diff options
author | Mickaël Canévet <mickael.canevet@camptocamp.com> | 2015-08-12 15:07:35 +0200 |
---|---|---|
committer | Mickaël Canévet <mickael.canevet@camptocamp.com> | 2015-08-12 15:07:35 +0200 |
commit | ea07077f8427fc9807b9de8503f2f73dc0f7d1f8 (patch) | |
tree | 0de3ee34aa802f0135c2d2bbe38e96dc6d8d6af3 /manifests/init.pp | |
parent | 2afa04fa07399f66917aa24ee6ca959ea38cc0ac (diff) | |
parent | 3e23d677370d44b62495022338b8cc12f42bd30f (diff) |
Merge pull request #54 from mcanevet/puppet4
Puppet4
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 653925e..f927fe1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -14,12 +14,19 @@ class augeas ( $purge = true, ) inherits augeas::params { - anchor { 'augeas::begin': } -> - class {'::augeas::packages': } -> - class {'::augeas::files': } -> - anchor { 'augeas::end': } + if versioncmp($::puppetversion, '4.0.0') >= 0 { + anchor { 'augeas::begin': } -> + class {'::augeas::files': } -> + anchor { 'augeas::end': } + } else { + anchor { 'augeas::begin': } -> + class {'::augeas::packages': } -> + class {'::augeas::files': } -> + anchor { 'augeas::end': } + + # lint:ignore:spaceship_operator_without_tag + Package['ruby-augeas', $augeas::params::augeas_pkgs] -> Augeas <| |> + # lint:endignore + } - # lint:ignore:spaceship_operator_without_tag - Package['ruby-augeas', $augeas::params::augeas_pkgs] -> Augeas <| |> - # lint:endignore } |