https://bugzilla.wikimedia.org/show_bug.cgi?id=36422

--- Comment #15 from Bryan Davis <bda...@wikimedia.org> ---
Salt has a built in module for communicating with apache [0]. Our puppet
configuration now creates a salt grain for each system role [1]. Putting the
two of these together allows us to send all apaches acting as application
servers a restart signal from deployment-salt.eqiad.wmflabs:

    sudo salt -G 'rolename:role::applicationserver::appserver::beta'
apache.signal restart


All apache instances across the whole beta cluster could be restarted as well:

    sudo salt -G '*' apache.signal restart


[0]:
http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.apache.html
[1]: https://gerrit.wikimedia.org/r/#/c/107831/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to