3 # each component defines exactly one static master. Content is copied from the source host
4 # to the master, and from there to all the mirrors.
6 class staticsync::static_master (
8 include staticsync::base
9 include staticsync::srvdir
11 # masters need to talk to mirrors and sources and themselves
12 class { 'staticsync::ssh':
13 add_tag => [ 'staticsync-mirror', 'staticsync-source', 'staticsync-master' ],
14 collect_tag => 'staticsync-master',
17 file { '/usr/local/bin/static-master-run':
18 source => 'puppet:///modules/staticsync/static-master-run',
21 file { '/usr/local/bin/static-master-update-component':
22 source => 'puppet:///modules/staticsync/static-master-update-component',
25 concat { '/etc/static-clients.conf':
26 ensure_newline => true,
28 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
31 Concat::Fragment <<| tag == 'staticsync::static-mirrors-to-trigger' |>>
33 file { "/home/${staticsync::user}/static-master":
35 target => $staticsync::basedir,
37 file { "${staticsync::basedir}/master":
40 owner => $staticsync::user,
41 group => $staticsync::user,