replace some checks for roles::static_master with staticync::static_master
authorPeter Palfrader <peter@palfrader.org>
Sat, 14 Sep 2019 14:41:28 +0000 (16:41 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 14 Sep 2019 14:41:28 +0000 (16:41 +0200)
modules/samhain/templates/samhainrc.erb
modules/tcp_bbr/manifests/init.pp

index e2e399a..9bc3019 100644 (file)
@@ -106,7 +106,7 @@ file=/etc/apache2/conf.d/puppet-builddlist
 <% if classes.include?("roles::static_mirror") -%>
 file=/etc/apache2/sites-available/static-vhosts-simple
 file=/etc/static-clients.conf
-<% elsif classes.include?("roles::static_master") -%>
+<% elsif classes.include?("staticsync::static_master") -%>
 file=/etc/static-clients.conf
 <% elsif classes.include?("roles::static_source") -%>
 file=/etc/static-clients.conf
@@ -185,7 +185,7 @@ file=/etc/rc.local
 file=/etc/unbound
 file=/etc/dsa
 file=/etc/rabbitmq
-<% if scope.function_has_role(['static_mirror']) or scope.function_has_role(['static_source']) or classes.include?("roles::static_master")  -%>
+<% if scope.function_has_role(['static_mirror']) or scope.function_has_role(['static_source']) or classes.include?("staticsync::static_master")  -%>
 file=/etc/ssh/userkeys
 file=/etc/ssh/userkeys/staticsync
 <% end -%>
index 90b0e53..a7ae478 100644 (file)
@@ -24,7 +24,7 @@ class tcp_bbr {
                   has_role('security_mirror') or
                   has_role('security_upload') or
                   has_role('ssh.upload.d.o') or
-                  defined(Class["roles::static_master"]) or
+                  defined(Class["staticync::static_master"]) or
                   has_role('static_mirror') or
                   has_role('static_source') or
                   has_role('syncproxy') or