-# a static mirror
-#
-# this receives pushes from the master and then usually serves the content to the public
-class roles::static_mirror {
- include roles::static::base
- include roles::static::srvdir
-
- # mirrors talk only to masters
- class { 'roles::static::ssh':
- add_tag => 'staticsync-master',
- collect_tag => 'staticsync-mirror',
- }
-
- file { '/usr/local/bin/static-mirror-run':
- source => 'puppet:///modules/roles/static-mirroring/static-mirror-run',
- mode => '0555',
- }
-
- file { '/usr/local/bin/static-mirror-run-all':
- source => 'puppet:///modules/roles/static-mirroring/static-mirror-run-all',
- mode => '0555',
- }
-
- file { '/etc/cron.d/puppet-static-mirror': ensure => absent, }
- concat::fragment { 'dsa-puppet-stuff--static-mirror':
- target => '/etc/cron.d/dsa-puppet-stuff',
- content => @(EOF)
- @reboot staticsync sleep 60; chronic static-mirror-run-all
- | EOF
- }
+# a static mirror. It will get content for all components that it servers
+# from each component's master.
+class roles::static_mirror () {
+ include staticsync::static_mirror
}