X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Ftcp_bbr%2Fmanifests%2Finit.pp;h=22ee67628dd8420a84c8dba4df26d2d7f61c929d;hb=46be0972475f02f51cfda7c1acc0d775faef9efa;hp=ac7470f78dfe18d2b69448ec9b160b24c43d33eb;hpb=04f714a0d02974825f1fa256dfb7cc6dde004b53;p=mirror%2Fdsa-puppet.git diff --git a/modules/tcp_bbr/manifests/init.pp b/modules/tcp_bbr/manifests/init.pp index ac7470f78..22ee67628 100644 --- a/modules/tcp_bbr/manifests/init.pp +++ b/modules/tcp_bbr/manifests/init.pp @@ -2,45 +2,46 @@ class tcp_bbr { # this is included by all hosts, # so filtering needs to happen here. - if - has_role('api.ftp-master') or - has_role('bacula_storage') or - has_role('bugs_master') or - has_role('bugs_mirror') or - has_role('debian_mirror') or - has_role('debug_mirror') or - has_role('dgit_git') or - has_role('ftp.d.o') or - has_role('ftp.upload.d.o') or - has_role('ftp_master') or - has_role('git_master') or - has_role('historical_master') or - has_role('historical_mirror') or - has_role('ports_master') or - has_role('ports_mirror') or - has_role('postgres_backup_server') or - has_role('postgresql_server') or - has_role('security_master') or - 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 - has_role('syncproxy') or - has_role('www_master') or - false { + if versioncmp($::lsbmajdistrelease, '9') >= 0 { + if + has_role('api.ftp-master') or + has_role('bacula_storage') or + has_role('bugs_master') or + has_role('bugs_mirror') or + has_role('debian_mirror') or + has_role('debug_mirror') or + has_role('dgit_git') or + has_role('ftp.upload.d.o') or + has_role('ftp_master') or + has_role('git_master') or + has_role('historical_master') or + has_role('historical_mirror') or + has_role('ports_master') or + has_role('ports_mirror') or + has_role('postgres_backup_server') or + has_role('postgresql_server') or + has_role('security_master') or + has_role('security_mirror') or + has_role('security_upload') or + has_role('ssh.upload.d.o') 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': - key => 'net.core.default_qdisc', - value => 'fq', - } - site::sysctl { 'puppet-net_ipv4_tcp_congestion_control': - key => 'net.ipv4.tcp_congestion_control', - value => 'bbr', + base::sysctl { 'puppet-net_core_default_qdisc': + key => 'net.core.default_qdisc', + value => 'fq', + } + base::sysctl { 'puppet-net_ipv4_tcp_congestion_control': + key => 'net.ipv4.tcp_congestion_control', + value => 'bbr', + } } } }