Dzahn has uploaded a new change for review. https://gerrit.wikimedia.org/r/289334
Change subject: hiera: add variable for the active datacenter ...................................................................... hiera: add variable for the active datacenter Can we add one global variable in common.yaml, next to the list of datacenters, that is set to the currently active data center? Then we could use this in several places to make a decision based on this and flip the switch in this one place. For example, i have a misc. service on a VM and set it up in both eqiad and codfw and want them both to use my role and be up and running, but only one of them should be active, in this case, some crons should only be running on the active one. And "if this is $active_dc, then $ensure = ensure" would make sense. Change-Id: I1e150538e574ae476fe54fe818e52e2da8c9cfbd --- M hieradata/common.yaml 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/34/289334/1 diff --git a/hieradata/common.yaml b/hieradata/common.yaml index 26f25ae..90e98ea 100644 --- a/hieradata/common.yaml +++ b/hieradata/common.yaml @@ -5,6 +5,9 @@ - esams - ulsfo +# the datacenter that currently gets traffic +active_datacenter: eqiad + # Main statsd instance statsd: statsd.eqiad.wmnet:8125 -- To view, visit https://gerrit.wikimedia.org/r/289334 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1e150538e574ae476fe54fe818e52e2da8c9cfbd Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Dzahn <dz...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits