Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from roman-mueller/master
Browse files Browse the repository at this point in the history
Initial support for puppetserver 2.0.0 paths
  • Loading branch information
mcanevet committed Jul 9, 2015
2 parents 7eb89c7 + fbcdb16 commit 2bb33f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion files/lenses/trapperkeeper.aug
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ let rec entry = hash (entry|simple|array)
let lns = (empty|comment)* . (entry . (empty|comment)*)*

(* Variable: filter *)
let filter = incl "/etc/puppetserver/conf.d/*"
let filter = incl "/etc/puppetserver/conf.d/*" . incl "/etc/puppetlabs/puppetserver/conf.d/*"
. Util.stdexcl

let xfm = transform lns filter
6 changes: 5 additions & 1 deletion manifests/config/puppetserver.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
) {
require ::puppetserver::augeas

$targetdir = '/etc/puppetserver/conf.d'
if versioncmp($::puppetversion, '4.0.0') >= 0 {
$targetdir = '/etc/puppetlabs/puppetserver/conf.d'
} else {
$targetdir = '/etc/puppetserver/conf.d'
}
$target = "/files${targetdir}/${name}"

case $ensure {
Expand Down

0 comments on commit 2bb33f9

Please sign in to comment.