Add condition to detect PE installations and provide different parameters
This commit is contained in:
parent
7dde8c3e36
commit
63f1c52d8b
1 changed files with 16 additions and 7 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue