summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2012-12-05 07:03:17 -0800
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2012-12-05 07:03:17 -0800
commitbd9717b02fde8a3eab1675e1fdf62c015d2e537f (patch)
treec923b5e8bb3ecc754be1dcfd895a2aefa1e9e80e /manifests
parent3cf354f6c94ec581eceb354e7452cfdef8bf8d9c (diff)
parentec6c45c149f7f4d4b9e0b6de00e5744777d1f1b7 (diff)
Merge pull request #17 from mcanevet/lint
Lint
Diffstat (limited to 'manifests')
-rw-r--r--manifests/debian.pp6
-rw-r--r--manifests/init.pp2
-rw-r--r--manifests/lens.pp3
-rw-r--r--manifests/redhat.pp7
4 files changed, 12 insertions, 6 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp
index 5b737d6..a56d8f0 100644
--- a/manifests/debian.pp
+++ b/manifests/debian.pp
@@ -2,10 +2,12 @@ class augeas::debian inherits augeas::base {
package {
['augeas-lenses', 'libaugeas0', 'augeas-tools']:
- ensure => "${augeas::base::version}",
+ ensure => $augeas::base::version,
before => File['/usr/share/augeas/lenses'],
}
- package {'libaugeas-ruby1.8': ensure => "${augeas::base::rubylib_version}" }
+ package {'libaugeas-ruby1.8':
+ ensure => $augeas::base::rubylib_version,
+ }
}
diff --git a/manifests/init.pp b/manifests/init.pp
index 7919625..e82e21c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,5 +1,5 @@
class augeas {
- case $operatingsystem {
+ case $::operatingsystem {
/RedHat|CentOS|Fedora/: { include augeas::redhat }
/Debian|Ubuntu|kFreeBSD/: { include augeas::debian }
default: { include augeas::base }
diff --git a/manifests/lens.pp b/manifests/lens.pp
index 95f7370..ee85318 100644
--- a/manifests/lens.pp
+++ b/manifests/lens.pp
@@ -3,7 +3,8 @@
== Definition: augeas::lens
Deploy an Augeas lens (and its test file).
-Check the lens (and run the unit tests) automatically and remove the files if the checks fail.
+Check the lens (and run the unit tests) automatically and remove the files if
+the checks fail.
Parameters:
- *ensure*: present/absent
diff --git a/manifests/redhat.pp b/manifests/redhat.pp
index e03b420..1e95728 100644
--- a/manifests/redhat.pp
+++ b/manifests/redhat.pp
@@ -2,9 +2,12 @@ class augeas::redhat inherits augeas::base {
package {
['augeas', 'augeas-libs']:
- ensure => "${augeas::base::version}",
+ ensure => $augeas::base::version,
before => File['/usr/share/augeas/lenses'],
}
- package { 'ruby-augeas': ensure => "${augeas::base::rubylib_version}" }
+
+ package { 'ruby-augeas':
+ ensure => $augeas::base::rubylib_version,
+ }
}