960366cf9602f0eb085adcfa59e84909fc9ec7ac
[mirror/dsa-puppet.git] / modules / roles / manifests / static_source.pp
1 # a static source
2 #
3 # origin of static content.  From here it goes to the static master before that one pushes it to the mirrors
4 class roles::static_source {
5   include roles::static::base
6
7   if ! defined(Class["roles::static_master"]) {
8     # sources talk only to masters, but only set this up if we are not
9     # *also* a static master since we cannot have two meaningful roles::static:ssh
10     # instances in the current setup.
11     #
12     # this adds the limitation that the master of any component whose source is also a
13     # master node needs to have that same host as its master and not some other one.
14     class { 'roles::static::ssh':
15       add_tag     => 'staticsync-master',
16       collect_tag => 'staticsync-source',
17     }
18   }
19 }