20after4 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/149364
Change subject: collect host keys on deployment-bastion for beta environment.
......................................................................
collect host keys on deployment-bastion for beta environment.
Change-Id: Iac547efa83cf059a1276b6e279c3ebd4c7224b2c
---
M modules/ssh/manifests/hostkeys-collect.pp
1 file changed, 10 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/64/149364/1
diff --git a/modules/ssh/manifests/hostkeys-collect.pp
b/modules/ssh/manifests/hostkeys-collect.pp
index 5c39bbc..914c102 100644
--- a/modules/ssh/manifests/hostkeys-collect.pp
+++ b/modules/ssh/manifests/hostkeys-collect.pp
@@ -1,10 +1,15 @@
class ssh::hostkeys-collect {
- # Do this about twice a day
- $potm = inline_template('<%= srand ; (rand(25) == 5).to_s.capitalize -%>')
- if $hostname == "fenari" or $hostname == "tin" or $hostname == "bast1001"
or $potm == "True" {
- notice("Collecting SSH host keys on $hostname.")
- # Install all collected ssh host keys
+ if $hostname =~ /^(fenari)|(tin)|(bast1001)|(deployment-bastion)$/ {
+ $potm = "True"
+ } else {
+ # Do this about twice a day
+ $potm = inline_template('<%= srand ; (rand(25) == 5).to_s.capitalize
-%>')
+ }
+
+ if $potm == "True" {
+ notice("Collecting SSH host keys on $hostname.")
+ # Install all collected ssh host keys
Ssh::Hostkey <<| |>>
}
}
--
To view, visit https://gerrit.wikimedia.org/r/149364
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac547efa83cf059a1276b6e279c3ebd4c7224b2c
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: 20after4 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits