Ottomata has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/75158


Change subject: Supporting both short hostnames and fqdn for labs 
role::puppet::self
......................................................................

Supporting both short hostnames and fqdn for labs role::puppet::self

Change-Id: I95c050ff64570c31860410546981796f673aea12
---
M manifests/role/puppet.pp
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/58/75158/1

diff --git a/manifests/role/puppet.pp b/manifests/role/puppet.pp
index 65d37c0..6a54def 100644
--- a/manifests/role/puppet.pp
+++ b/manifests/role/puppet.pp
@@ -56,7 +56,10 @@
                undef       => 'localhost',
                'localhost' => 'localhost',
                ''          => 'localhost',
-               default     => "${::puppetmaster}.${domain}",
+               # if only word characters, assume that this is a short hostname
+               /^\w+$/     => "${::puppetmaster}::${::domain}",
+               # else use assume fqdn
+               default     => $::puppetmaster,
        }
 
        # If localhost or if $server matches this node's

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I95c050ff64570c31860410546981796f673aea12
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to