summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAlex Simenduev <shamil.si@gmail.com>2015-06-04 23:18:16 +0300
committerAlex Simenduev <shamil.si@gmail.com>2015-06-04 23:18:16 +0300
commitb7cd43093d3cda9cb8b02827b7efcbf7ada26695 (patch)
tree092866f2435e42a26ddb4c7c6669a4a285cdff1f /manifests
parent158903264c3c77ea6e8ce96e240716b0686cfa78 (diff)
Add support for Amazon Linux AMI
Diffstat (limited to 'manifests')
-rw-r--r--manifests/params.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/params.pp b/manifests/params.pp
index e540033..6d4017e 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -7,7 +7,11 @@ class augeas::params {
case $::osfamily {
'RedHat': {
- $ruby_pkg = 'ruby-augeas'
+ $ruby_pkg = $::operatingsystem ? {
+ # Amazon Linux AMI (2014.09 and 2015.03) uses ruby 2.0
+ 'Amazon' => 'ruby20-augeas',
+ default => 'ruby-augeas'
+ }
$augeas_pkgs = ['augeas', 'augeas-libs']
}