Add condition to detect PE installations and provide different parameters

This commit is contained in:
Hunter Haugen 2012-10-01 11:05:25 -07:00
parent 7dde8c3e36
commit 63f1c52d8b

View file

@ -46,12 +46,21 @@ class puppetdb::params {
}
}
# 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'
}