jenkins-bot has submitted this change and it was merged.
Change subject: Add fabric entry to refresh slaves scripts
......................................................................
Add fabric entry to refresh slaves scripts
Just git pull integration/config on all slaves.
Add doc blocks for nice help.
Change-Id: Ia978d47bd54d81c616119002a864e09d2005215d
---
M fabfile.py
1 file changed, 13 insertions(+), 2 deletions(-)
Approvals:
Hashar: Looks good to me, approved
jenkins-bot: Verified
diff --git a/fabfile.py b/fabfile.py
index f8ce16c..61cc06d 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -13,14 +13,16 @@
from fabric.api import * # noqa
from fabric.contrib.console import confirm
-env.hosts = ['gallium.wikimedia.org']
-env.sudo_user = 'zuul'
env.sudo_prefix = 'sudo -ni '
env.use_ssh_config = True
@task
def deploy_zuul():
+ """Deploy a Zuul layout change"""
+ env.sudo_user = 'zuul'
+ env.host_string = 'gallium.wikimedia.org'
+
with cd('/etc/zuul/wikimedia'):
sudo('git remote update')
sudo('git --no-pager log -p HEAD..origin/master zuul')
@@ -31,6 +33,15 @@
sudo('/etc/init.d/zuul reload')
+@task
+def deploy_slave_scripts():
+ """Pull integration/config on CI labs slaves"""
+ env.sudo_user = 'root'
+ env.host_string = 'integration-saltmaster.integration.eqiad.wmflabs'
+ sudo("salt -v '*slave*' cmd.run "
+ "'cd /srv/deployment/integration/slave-scripts && git pull'")
+
+
@task(default=True)
def help():
"""Usage and list of commands"""
--
To view, visit https://gerrit.wikimedia.org/r/273466
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia978d47bd54d81c616119002a864e09d2005215d
Gerrit-PatchSet: 3
Gerrit-Project: integration/config
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits