Skip to content

Instantly share code, notes, and snippets.

@lantian

lantian/sys.pp

Created Feb 27, 2014
Embed
What would you like to do?
# 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