Yuvipanda has uploaded a new change for review.
https://gerrit.wikimedia.org/r/253654
Change subject: labs: Set realm in hiera
......................................................................
labs: Set realm in hiera
This allows us to get rid of it from LDAP variable lists
Bug: T101447
Change-Id: I176a97bf74252a55037a5a575c0572f08410eb0a
---
M hieradata/labs.yaml
M manifests/realm.pp
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/54/253654/1
diff --git a/hieradata/labs.yaml b/hieradata/labs.yaml
index 17b38ea..b3135ad 100644
--- a/hieradata/labs.yaml
+++ b/hieradata/labs.yaml
@@ -1,4 +1,5 @@
# General variables that once would have been in realm.pp
+realm: labs
datacenters: [eqiad]
standard::has_ganglia: false
has_nrpe: false
diff --git a/manifests/realm.pp b/manifests/realm.pp
index dd5ae18..193d268 100644
--- a/manifests/realm.pp
+++ b/manifests/realm.pp
@@ -3,7 +3,7 @@
#
if $::realm == undef {
- $realm = 'production'
+ $realm = hiera('realm', 'production')
}
if $::projectgroup == undef {
--
To view, visit https://gerrit.wikimedia.org/r/253654
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I176a97bf74252a55037a5a575c0572f08410eb0a
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Yuvipanda <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits