diff options
author | Roman Mueller <roman.mueller@gmail.com> | 2015-04-21 17:47:39 +0200 |
---|---|---|
committer | Mickaël Canévet <mickael.canevet@camptocamp.com> | 2015-08-12 14:36:02 +0200 |
commit | c401a47f78972143814bceba05f7aa615cfaf9b7 (patch) | |
tree | 214e554a4385f976d940d334e789ae978beb3300 /manifests/init.pp | |
parent | 2afa04fa07399f66917aa24ee6ca959ea38cc0ac (diff) |
Initial support for Puppet 4 AIO package version
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 } |