X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fstaticsync%2Fmanifests%2Fstatic_source.pp;h=02e993845845a270a871aac027429a6f5c4815e2;hb=b3766327be68cc9aad0da7aa0c7bf42668f23590;hp=960366cf9602f0eb085adcfa59e84909fc9ec7ac;hpb=0c067639ec7d7050b69249b85e6aa83ab91820b5;p=mirror%2Fdsa-puppet.git diff --git a/modules/staticsync/manifests/static_source.pp b/modules/staticsync/manifests/static_source.pp index 960366cf9..02e993845 100644 --- a/modules/staticsync/manifests/static_source.pp +++ b/modules/staticsync/manifests/static_source.pp @@ -1,17 +1,20 @@ -# a static source +# Sources are systems that produce content that is then shipped to masters (which ship it to mirrors). +# Source can trigger these mirror pulses. # -# origin of static content. From here it goes to the static master before that one pushes it to the mirrors -class roles::static_source { - include roles::static::base +# the class doesn't need anything beyond what is in the common base set for now. +class staticsync::static_source ( +) { + include staticsync::base - if ! defined(Class["roles::static_master"]) { + if ! defined(Class["staticsync::static_master"]) { # sources talk only to masters, but only set this up if we are not - # *also* a static master since we cannot have two meaningful roles::static:ssh + # *also* a static master since we cannot have two meaningful staticsync:ssh # instances in the current setup. # - # this adds the limitation that the master of any component whose source is also a - # master node needs to have that same host as its master and not some other one. - class { 'roles::static::ssh': + # this adds the limitation that if a system is both master and source, then + # any components which have this system as a source need to also use the same + # system as their master. + class { 'staticsync::ssh': add_tag => 'staticsync-master', collect_tag => 'staticsync-source', }