1 # Sources are systems that produce content that is then shipped to masters (which ship it to mirrors).
2 # Source can trigger these mirror pulses.
4 # the class doesn't need anything beyond what is in the common base set for now.
5 class staticsync::static_source (
7 include staticsync::base
9 if ! defined(Class["staticsync::static_master"]) {
10 # sources talk only to masters, but only set this up if we are not
11 # *also* a static master since we cannot have two meaningful staticsync:ssh
12 # instances in the current setup.
14 # this adds the limitation that if a system is both master and source, then
15 # any components which have this system as a source need to also use the same
16 # system as their master.
17 class { 'staticsync::ssh':
18 add_tag => 'staticsync-master',
19 collect_tag => 'staticsync-source',