From d404a31e789d9e2d90aa1238374a11fd3d3f565b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 13 Mar 2013 11:17:16 +0100 Subject: Reorganize classes --- manifests/init.pp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index e82e21c..9b8ba42 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,7 +1,10 @@ -class augeas { - case $::operatingsystem { - /RedHat|CentOS|Fedora/: { include augeas::redhat } - /Debian|Ubuntu|kFreeBSD/: { include augeas::debian } - default: { include augeas::base } - } +class augeas ( + $version = $augeas_version, + $ruby_version = $augeas_ruby_version, + $lens_dir = $augeas::params::lens_dir, +) inherits augeas::params { + + class {'::augeas::packages': } -> + class {'::augeas::files': } -> + Class['augeas'] } -- cgit v1.2.3 From 616b59bead6a57f71b4b4e59aaf080cd130ab250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Thu, 14 Mar 2013 09:42:08 +0100 Subject: Abstract package name for ruby-augeas, define dependency for all Augeas resources --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 9b8ba42..6374955 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,4 +7,6 @@ class augeas ( class {'::augeas::packages': } -> class {'::augeas::files': } -> Class['augeas'] + + Package['ruby-augeas'] -> Augeas <| |> } -- cgit v1.2.3 From 0c6ca2848fbbe849a3e59779ffeb2c7979c6b0c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Fri, 22 Mar 2013 10:09:35 +0100 Subject: Doc and lint --- manifests/init.pp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 6374955..80fbbd8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,3 +1,11 @@ +# Class: augeas +# +# Install and configure Augeas +# +# Parameters: +# ['version'] - the desired version of Augeas +# ['ruby_version'] - the desired version of the Ruby bindings for Augeas +# ['lens_dir'] - the lens directory to use class augeas ( $version = $augeas_version, $ruby_version = $augeas_ruby_version, -- cgit v1.2.3 From ab2805c76a1c73594bd71d83f542cf3375cdf271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Mon, 3 Mar 2014 12:16:30 +0100 Subject: Add purge parameter to augeas class --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 80fbbd8..206f65c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -6,10 +6,12 @@ # ['version'] - the desired version of Augeas # ['ruby_version'] - the desired version of the Ruby bindings for Augeas # ['lens_dir'] - the lens directory to use +# ['purge'] - whether to purge lens directories class augeas ( $version = $augeas_version, $ruby_version = $augeas_ruby_version, $lens_dir = $augeas::params::lens_dir, + $purge = true, ) inherits augeas::params { class {'::augeas::packages': } -> -- cgit v1.2.3 From fe92d9649812174c35bcaed9080eb16e11b9940b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Mon, 24 Mar 2014 11:19:05 +0100 Subject: Add all augeas packages to dependency --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 206f65c..41178ee 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -18,5 +18,5 @@ class augeas ( class {'::augeas::files': } -> Class['augeas'] - Package['ruby-augeas'] -> Augeas <| |> + Package['ruby-augeas', $augeas::params::augeas_pkgs] -> Augeas <| |> } -- cgit v1.2.3 From cdcf531ee299e0bbab959da0579ebac7531e3d26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Can=C3=A9vet?= Date: Tue, 8 Apr 2014 09:56:52 +0200 Subject: Fix dynamic scoping --- manifests/init.pp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 41178ee..4289765 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,10 +8,10 @@ # ['lens_dir'] - the lens directory to use # ['purge'] - whether to purge lens directories class augeas ( - $version = $augeas_version, - $ruby_version = $augeas_ruby_version, - $lens_dir = $augeas::params::lens_dir, - $purge = true, + $version = present, + $ruby_version = present, + $lens_dir = $augeas::params::lens_dir, + $purge = true, ) inherits augeas::params { class {'::augeas::packages': } -> -- cgit v1.2.3 From 6e8c8b7e9b798fb6091dcba593e362e9e6f914a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Mon, 12 Jan 2015 08:55:16 +0100 Subject: Ignore spaceship_operator_without_tag + note in README --- manifests/init.pp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'manifests/init.pp') diff --git a/manifests/init.pp b/manifests/init.pp index 4289765..41f4f87 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -18,5 +18,7 @@ class augeas ( class {'::augeas::files': } -> Class['augeas'] + # lint:ignore:spaceship_operator_without_tag Package['ruby-augeas', $augeas::params::augeas_pkgs] -> Augeas <| |> + # lint:endignore } -- cgit v1.2.3