switch the statis hosts to hiera roles
[mirror/dsa-puppet.git] / modules / tcp_bbr / manifests / init.pp
index 78e966e..22ee676 100644 (file)
@@ -24,21 +24,21 @@ class tcp_bbr {
                   has_role('security_mirror') or
                   has_role('security_upload') or
                   has_role('ssh.upload.d.o') or
-                  has_role('static_master') or
-                  has_role('static_mirror') or
-                  has_role('static_source') or
+                  defined(Class["staticync::static_master"]) or
+                  defined(Class["staticync::static_mirror"]) or
+                  defined(Class["staticync::static_source"]) or
                   has_role('syncproxy') or
                   has_role('www_master') or
                   false {
 
-                       site::linux_module { 'tcp_bbr': }
-                       site::linux_module { 'sch_fq': }
+                       base::linux_module { 'tcp_bbr': }
+                       base::linux_module { 'sch_fq': }
 
-                       site::sysctl { 'puppet-net_core_default_qdisc':
+                       base::sysctl { 'puppet-net_core_default_qdisc':
                                key   => 'net.core.default_qdisc',
                                value => 'fq',
                        }
-                       site::sysctl { 'puppet-net_ipv4_tcp_congestion_control':
+                       base::sysctl { 'puppet-net_ipv4_tcp_congestion_control':
                                key   => 'net.ipv4.tcp_congestion_control',
                                value => 'bbr',
                        }