Herron has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/389490 )
Change subject: puppet: add conditional for puppetmaster rack path
......................................................................
puppet: add conditional for puppetmaster rack path
Debian puppet 4.8.x packages have a different naming convention and place
files under a new path. This updates the Apache backend configuration
template to use the new path when puppet 4 is selected.
Depends on T178825
Bug: T179720
Change-Id: I5efb0fc1b1478aa2470abb1f4ad4a4024c6b5e33
---
M modules/puppetmaster/manifests/init.pp
M modules/puppetmaster/templates/puppetmaster-backend.conf.erb
2 files changed, 8 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/90/389490/1
diff --git a/modules/puppetmaster/manifests/init.pp
b/modules/puppetmaster/manifests/init.pp
index b7bdafe..d9b046d 100644
--- a/modules/puppetmaster/manifests/init.pp
+++ b/modules/puppetmaster/manifests/init.pp
@@ -106,6 +106,12 @@
$ssl_settings = ssl_ciphersuite('apache', 'compat')
+ # path and name change with puppet 4 packages
+ $puppetmaster_rack_path = $puppet_major_version ? {
+ 4 => '/usr/share/puppet/rack/puppet-master',
+ default => '/usr/share/puppet/rack/puppetmasterd',
+ }
+
# Part dependent on the server_type
case $server_type {
'frontend': {
diff --git a/modules/puppetmaster/templates/puppetmaster-backend.conf.erb
b/modules/puppetmaster/templates/puppetmaster-backend.conf.erb
index 84e9284..eb3bd39 100644
--- a/modules/puppetmaster/templates/puppetmaster-backend.conf.erb
+++ b/modules/puppetmaster/templates/puppetmaster-backend.conf.erb
@@ -20,8 +20,8 @@
<%- end -%>
</Location>
- DocumentRoot /usr/share/puppet/rack/puppetmasterd/public
- <Directory /usr/share/puppet/rack/puppetmasterd/>
+ DocumentRoot <%= @puppetmaster_rack_path %>/public
+ <Directory <%= @puppetmaster_rack_path %>/>
Options None
AllowOverride None
Require all granted
--
To view, visit https://gerrit.wikimedia.org/r/389490
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5efb0fc1b1478aa2470abb1f4ad4a4024c6b5e33
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Herron <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits