Permalink
Browse files

added centos dependencies

  • Loading branch information...
1 parent c2a17ae commit 0b10c244f12b297a88bcf405ab8c45feb187007b @nisbus nisbus committed Feb 14, 2014
Showing with 13 additions and 0 deletions.
  1. +1 −0 manifests/dependencies.pp
  2. +12 −0 manifests/dependencies/centos.pp
@@ -2,6 +2,7 @@
class nginx::dependencies {
case $::operatingsystem {
Ubuntu,Debian: { require nginx::dependencies::ubuntu }
+ Centos,RedHat: { require nginx::dependencies::centos }
default: { notify { 'not-available': message => "This OS is not supported" } }
}
}
@@ -0,0 +1,12 @@
+# = Class to manage ubuntu and debian packages
+class nginx::dependencies::ubuntu {
+ if ! defined(Package['gcc']) { package { 'gcc': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['gcc-c++']) { package { 'gcc-c++': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['kernel-devel']) { package { 'kernel-devel': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['readline-devel']) { package { 'readline-devel': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['ncurses-devel']) { package { 'libncurses5-dev': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['pcre']) { package { 'pcre': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['pcre-devel']) { package { 'pcre-devel': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['openssl-devel']) { package { 'openssl-devel': ensure => 'installed', provider => 'yum' } }
+ if ! defined(Package['perl']) { package { 'perl': ensure => 'installed', provider => 'yum' } }
+}

0 comments on commit 0b10c24

Please sign in to comment.