summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/xmlsimple.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-07-12 16:46:02 -0400
committerMicah <micah@leap.se>2016-07-12 16:46:02 -0400
commit10c80c65126cd84e6010495d30cb921d245f0d33 (patch)
tree63c45dbde4c8aca9e9ec847aaae87d352e0b0a00 /puppet/modules/rubygems/manifests/xmlsimple.pp
parentb5c3c14ae094bff896d19ee37f967e8fc8c34017 (diff)
git subrepo clone https://leap.se/git/puppet_rubygems puppet/modules/rubygems
subrepo: subdir: "puppet/modules/rubygems" merged: "510a369" upstream: origin: "https://leap.se/git/puppet_rubygems" branch: "master" commit: "510a369" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "1e79595" Change-Id: Id2668c747e7d8b0a73415180baee9edece1017db
Diffstat (limited to 'puppet/modules/rubygems/manifests/xmlsimple.pp')
-rw-r--r--puppet/modules/rubygems/manifests/xmlsimple.pp20
1 files changed, 20 insertions, 0 deletions
diff --git a/puppet/modules/rubygems/manifests/xmlsimple.pp b/puppet/modules/rubygems/manifests/xmlsimple.pp
new file mode 100644
index 00000000..914156b0
--- /dev/null
+++ b/puppet/modules/rubygems/manifests/xmlsimple.pp
@@ -0,0 +1,20 @@
+# xml simple lib
+class rubygems::xmlsimple {
+ package{'rubygem-xml-simple':
+ ensure => present,
+ }
+ case $::operatingsystem {
+ debian,ubuntu: {
+ Package['rubygem-xml-simple']{
+ name => 'libxml-simple-ruby'
+ }
+ }
+ }
+ if $::operatingsystem == 'CentOS' and versioncmp($::operatingsystemrelease, '6') > 0 {
+ # not yet packaged
+ Package['rubygem-xml-simple']{
+ name => 'xml-simple',
+ provider => gem,
+ }
+ }
+}