summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAlex Schultz <aschultz@next-development.com>2015-07-09 16:27:05 -0500
committerAlex Schultz <aschultz@mirantis.com>2015-08-27 09:59:23 -0500
commit597a2fce2f85d4ea509cddf7d59858b13446e233 (patch)
tree9981c17a9a693f6c48d27049490e0c9bd9ba883d /manifests
parentcd584339eaa1eeb659ac37248d3b75f971898912 (diff)
Update lens location for Puppet Enterprise
The lens location for Puppet Enterprise differs from the standard location for the opensource version. We can detect if we are running the enterprise version. This commit should resolve #52.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/params.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index 3d0b0f5..cce558d 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -6,6 +6,9 @@ class augeas::params {
if versioncmp($::puppetversion, '4.0.0') >= 0 {
$lens_dir = '/opt/puppetlabs/puppet/share/augeas/lenses'
+ } elsif (str2bool($::is_pe)) {
+ # puppet enterpise has a different lens location
+ $lens_dir = '/opt/puppet/share/augeas/lenses'
} else {
$lens_dir = '/usr/share/augeas/lenses'
}