Skip to content

Commit

Permalink
Merge pull request #65 from nbetm/pe38_support
Browse files Browse the repository at this point in the history
Added support for PE v3.8.0
  • Loading branch information
hunner committed May 8, 2015
2 parents 56c2eed + cea49d4 commit 818025f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@
# Copyright (C) 2013 Mike Arnold, unless otherwise noted.
#
class hiera::params {
if $::puppetversion =~ /Puppet Enterprise/ {
if str2bool($::is_pe) {
$hiera_yaml = '/etc/puppetlabs/puppet/hiera.yaml'
$datadir = '/etc/puppetlabs/puppet/hieradata'
$owner = 'pe-puppet'
$group = 'pe-puppet'
$confdir = '/etc/puppetlabs/puppet'
if $::puppetversion =~ /3.7/ {


if versioncmp($::pe_version, '3.7.0') >= 0 {
$provider = 'pe_puppetserver_gem'
} else {
}
else {
$provider = 'pe_gem'
}
} else {
}
else {
$hiera_yaml = '/etc/puppet/hiera.yaml'
$datadir = '/etc/puppet/hieradata'
$owner = 'puppet'
Expand Down

0 comments on commit 818025f

Please sign in to comment.