Skip to content

Instantly share code, notes, and snippets.

@lantian
Created February 27, 2014 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lantian/9249058 to your computer and use it in GitHub Desktop.
Save lantian/9249058 to your computer and use it in GitHub Desktop.
# Class: phalconphp::deps::sys
# Installs gcc, make, automake, autoconf, re2c, pcre, pcre-devel, libcurl, libcurl-devel, wget
class phalconphp::deps::sys {
case $::osfamily {
'centos', 'redhat' : { # Define the package names for rhel
$packages = [
'gcc',
'git',
'autoconf',
'make',
'automake',
're2c',
'pcre',
'pcre-devel',
'openssl',
'openssl-devel',
'libcurl',
'libcurl-devel',
'wget'
]
}
'ubuntu', 'debian' : { # Define the package names for debian
$packages = [
'git',
'gcc',
'make',
're2c',
'libpcre3-dev',
'openssl',
'libssl-dev',
'wget',
'curl',
'libcurl4',
'libcurl4-dev',
'libcurl4-openssl-dev'
]
}
default : { # fail, unknown OS
fail('Unknown Operating System')
}
}
package { $packages:
ensure => present
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment