Make staticsync a module and update references
[mirror/dsa-puppet.git] / modules / staticsync / manifests / static_source.pp
index 960366c..02e9938 100644 (file)
@@ -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',
     }