Thcipriani has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/368808 )

Change subject: Scap: Create "active" environment for restart
......................................................................

Scap: Create "active" environment for restart

Creates a new environment that can be used for service restart in the
active datacenter. This is achieved by making the assumption that the
deployment server from which jobrunner/jobchron is being restarted is
the currently active datacenter. As a result the dsh file for that
datacenter's hosts will be used.

Usage:

    scap deploy --environment active --service-restart

Change-Id: I0d97d49f70941be42a27515e4018084be3ac7d83
Depends-On: Ib693cee472b01cd920ca34dfb0af636aef405791
Bug: T129148
---
A scap/environments/active/scap.cfg
M scap/scap.cfg
2 files changed, 12 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/jobrunner 
refs/changes/08/368808/1

diff --git a/scap/environments/active/scap.cfg 
b/scap/environments/active/scap.cfg
new file mode 100644
index 0000000..3b47918
--- /dev/null
+++ b/scap/environments/active/scap.cfg
@@ -0,0 +1,11 @@
+[global]
+service_name: jobrunner,jobchron
+service_port: 9005
+
+[eqiad.wmnet]
+server_groups: default
+dsh_targets: jobrunner-eqiad
+
+[codfw.wmnet]
+server_groups: default
+dsh_targets: jobrunner-codfw
diff --git a/scap/scap.cfg b/scap/scap.cfg
index d3f3e56..245c995 100644
--- a/scap/scap.cfg
+++ b/scap/scap.cfg
@@ -2,8 +2,7 @@
 git_repo: jobrunner/jobrunner
 git_repo_user: mwdeploy
 ssh_user: mwdeploy
-server_groups: canary, default
-canary_dsh_targets: jobrunner-canaries
+server_groups: default
 dsh_targets: jobrunner
 git_submodules: False
 

-- 
To view, visit https://gerrit.wikimedia.org/r/368808
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d97d49f70941be42a27515e4018084be3ac7d83
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/jobrunner
Gerrit-Branch: master
Gerrit-Owner: Thcipriani <tcipri...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to