Skip to content

Instantly share code, notes, and snippets.

@madAndroid
Created July 16, 2013 16:09
Show Gist options
  • Save madAndroid/6010139 to your computer and use it in GitHub Desktop.
Save madAndroid/6010139 to your computer and use it in GitHub Desktop.
diff --git a/puppet/scalefactory.com/modules/sf_defaults/manifests/puppet.pp b/puppet/scalefactory.com/modules/sf_defaults/manifests/puppet.pp
index 9af67cc..3fd023c 100644
--- a/puppet/scalefactory.com/modules/sf_defaults/manifests/puppet.pp
+++ b/puppet/scalefactory.com/modules/sf_defaults/manifests/puppet.pp
@@ -3,9 +3,53 @@
class sf_defaults::puppet {
include sf_defaults::puppet::monitoring
+ include sf_defaults::puppet::packages
}
+class sf_defaults::puppet::packages {
+
+ if $sf_opt_automation {
+ case $osfamily {
+ 'RedHat': {
+ package { 'automation-hiera':
+ ensure => '1.2.1-1'
+ }
+ package { 'automation-hiera-puppet':
+ ensure => '1.0.0-1'
+ }
+ }
+ 'Debian': {
+ package { 'automation-ruby-hiera':
+ ensure => '1.2.1-1'
+ }
+ package { 'automation-ruby-hiera-puppet':
+ ensure => '1.0.0-1'
+ }
+ }
+ }
+ } else {
+ case $osfamily {
+ 'RedHat': {
+ package { 'hiera':
+ ensure => '1.2.1-1'
+ }
+ package { 'hiera-puppet':
+ ensure => '1.0.0-1'
+ }
+ }
+ 'Debian': {
+ package { 'ruby-hiera':
+ ensure => '1.2.1-1'
+ }
+ package { 'ruby-hiera-puppet':
+ ensure => '1.0.0-1'
+ }
+ }
+ }
+ }
+}
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment