summaryrefslogtreecommitdiff
path: root/manifests/packages.pp
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-03-13 11:17:16 +0100
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-03-13 11:17:16 +0100
commitd404a31e789d9e2d90aa1238374a11fd3d3f565b (patch)
tree75b727579636d68fc785d8ea20ff194665d1fdc8 /manifests/packages.pp
parent8df48d003efcf055b27593091fb981c5c193bc6a (diff)
Reorganize classes
Diffstat (limited to 'manifests/packages.pp')
-rw-r--r--manifests/packages.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/packages.pp b/manifests/packages.pp
new file mode 100644
index 0000000..1192933
--- /dev/null
+++ b/manifests/packages.pp
@@ -0,0 +1,21 @@
+class augeas::packages {
+ # Augeas packages
+ $augeas_ensure = $augeas::version ? {
+ '' => 'present',
+ default => $augeas::version
+ }
+
+ package { $augeas::params::pkgs:
+ ensure => $augeas_ensure,
+ }
+
+ # Ruby package
+ $ruby_ensure = $augeas::ruby_version ? {
+ '' => 'present',
+ default => $augeas::ruby_version
+ }
+
+ package { $augeas::params::ruby_pkg:
+ ensure => $ruby_ensure,
+ }
+}