Merge pull request #233 from buzzdeee/fixup_puppetdb_user_group_openbsd
FIX: Unbreak on OpenBSD
This commit is contained in:
commit
d3915a4e31
1 changed files with 12 additions and 3 deletions
|
@ -64,8 +64,6 @@ class puppetdb::params inherits puppetdb::globals {
|
|||
|
||||
$puppetdb_package = 'puppetdb'
|
||||
$puppetdb_service = 'puppetdb'
|
||||
$puppetdb_user = 'puppetdb'
|
||||
$puppetdb_group = 'puppetdb'
|
||||
$masterless = false
|
||||
|
||||
if !($puppetdb_version in ['latest','present','absent']) and versioncmp($puppetdb_version, '3.0.0') < 0 {
|
||||
|
@ -129,12 +127,23 @@ class puppetdb::params inherits puppetdb::globals {
|
|||
|
||||
case $::osfamily {
|
||||
'RedHat', 'Suse', 'Archlinux': {
|
||||
$puppetdb_user = 'puppetdb'
|
||||
$puppetdb_group = 'puppetdb'
|
||||
$puppetdb_initconf = '/etc/sysconfig/puppetdb'
|
||||
}
|
||||
'Debian': {
|
||||
$puppetdb_user = 'puppetdb'
|
||||
$puppetdb_group = 'puppetdb'
|
||||
$puppetdb_initconf = '/etc/default/puppetdb'
|
||||
}
|
||||
'OpenBSD','FreeBSD': {
|
||||
'OpenBSD': {
|
||||
$puppetdb_user = '_puppetdb'
|
||||
$puppetdb_group = '_puppetdb'
|
||||
$puppetdb_initconf = undef
|
||||
}
|
||||
'FreeBSD': {
|
||||
$puppetdb_user = 'puppetdb'
|
||||
$puppetdb_group = 'puppetdb'
|
||||
$puppetdb_initconf = undef
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Reference in a new issue