Skip to content

Commit

Permalink
Handle lense_dir based on $::rubysitedir.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzed committed Jul 6, 2017
1 parent 6637229 commit ce2acb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
default: { fail("Unsupported OS family: ${::osfamily}") }
}

if versioncmp($::puppetversion, '4.0.0') >= 0 {
if (versioncmp($::puppetversion, '4.0.0') >= 0) and ($::rubysitedir =~ /\/opt\/puppetlabs\/puppet/) {
$lens_dir = '/opt/puppetlabs/puppet/share/augeas/lenses'
} elsif (defined('$is_pe') and str2bool("${::is_pe}")) { # lint:ignore:only_variable_string
# puppet enterpise has a different lens location
Expand Down

0 comments on commit ce2acb6

Please sign in to comment.