Rush has uploaded a new change for review.
https://gerrit.wikimedia.org/r/272900
Change subject: labstore: real time application of tc setup
......................................................................
labstore: real time application of tc setup
This is intended to be merged post careful manual post
staggered rollout of 272891
Change-Id: Id3892fc74cb42cbb92622eebf783979ce119d70d
---
M modules/labstore/manifests/traffic_shaping.pp
1 file changed, 10 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/00/272900/1
diff --git a/modules/labstore/manifests/traffic_shaping.pp
b/modules/labstore/manifests/traffic_shaping.pp
index df9f55c..4650f9f 100644
--- a/modules/labstore/manifests/traffic_shaping.pp
+++ b/modules/labstore/manifests/traffic_shaping.pp
@@ -6,12 +6,20 @@
owner => 'root',
group => 'root',
source => 'puppet:///modules/labstore/tc-setup.sh',
+ notify => Exec['apply_tc_config'],
+ }
+
+ # if native qdisc of pfifo_fast is applied then run tc setup
+ exec { 'apply_tc_config':
+ command => '/usr/sbin/tc-setup',
+ onlyif => '/sbin/tc -s qdisc show | /bin/grep "qdisc pfifo"',
}
# run when interfaces come up.
file { '/etc/network/if-up.d/tc':
- ensure => 'link',
- target => '/usr/local/sbin/tc-setup',
+ ensure => 'link',
+ target => '/usr/local/sbin/tc-setup',
+ require => File['/usr/local/sbin/tc-setup'],
}
# under systemd either /etc/modules or /etc/load-modules.d works
--
To view, visit https://gerrit.wikimedia.org/r/272900
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3892fc74cb42cbb92622eebf783979ce119d70d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Rush <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits