Skip to content
Browse files

Merge pull request #15 from hunner/add_pe_param_detection

Add condition to detect PE installations and provide different parameters
  • Loading branch information...
2 parents 4d0154d + 63f1c52 commit 75532a060e69f14a759d8ace220ee5d6e7600dee @cprice404 cprice404 committed Oct 1, 2012
Showing with 16 additions and 7 deletions.
  1. +16 −7 manifests/params.pp
View
23 manifests/params.pp
@@ -46,12 +46,21 @@
}
}
- # TODO: need to condition this for PE
- $puppetdb_package = 'puppetdb'
- $puppetdb_service = 'puppetdb'
- $confdir = '/etc/puppetdb/conf.d'
- $puppet_service_name = 'puppetmaster'
- $puppet_confdir = '/etc/puppet'
+ if $::puppetversion =~ /Puppet Enterprise/ {
+ $puppetdb_package = 'pe-puppetdb'
+ $puppetdb_service = 'pe-puppetdb'
+ $confdir = '/etc/puppetlabs/puppetdb/conf.d'
+ $puppet_service_name = 'pe-httpd'
+ $puppet_confdir = '/etc/puppetlabs/puppet'
+ $terminus_package = 'pe-puppetdb-terminus'
+ } else {
+ $puppetdb_package = 'puppetdb'
+ $puppetdb_service = 'puppetdb'
+ $confdir = '/etc/puppetdb/conf.d'
+ $puppet_service_name = 'puppetmaster'
+ $puppet_confdir = '/etc/puppet'
+ $terminus_package = 'puppetdb-terminus'
+ }
+
$puppet_conf = "${puppet_confdir}/puppet.conf"
- $terminus_package = 'puppetdb-terminus'
}

0 comments on commit 75532a0

Please sign in to comment.
Something went wrong with that request. Please try again.