more os changes

This commit is contained in:
John Bintz 2012-06-13 07:58:41 -04:00
parent e7c3681d1e
commit 86e456c065
3 changed files with 20 additions and 18 deletions

View File

@ -1,17 +0,0 @@
class ruby::debian($version) {
$packages = [
'libyaml-dev', 'libreadline-dev', 'libssl-dev', 'libffi-dev',
'libncurses5-dev', 'libcurl4-openssl-dev', 'zlib1g-dev',
'libxml2', 'libxml2-dev', 'libxslt1.1', 'libxslt1-dev'
]
package { $packages: ensure => installed }
class { ruby: version => $version, require => Package[$packages] }
bash_rc_d { 'ruby':
ensure => present,
path => $base::local_path
}
}

View File

@ -9,6 +9,25 @@ class ruby($version, $configure = "--disable-install-doc", $build_path = '') {
path => "${base::path}:${path}:${build_path}" path => "${base::path}:${path}:${build_path}"
} }
if ($osfamily == 'debian') {
$packages = [
'libyaml-dev', 'libreadline-dev', 'libssl-dev', 'libffi-dev',
'libncurses5-dev', 'libcurl4-openssl-dev', 'zlib1g-dev',
'libxml2', 'libxml2-dev', 'libxslt1.1', 'libxslt1-dev'
]
package { $packages:
ensure => installed,
before => Build_and_install[$name]
}
bash_rc_d { 'ruby':
ensure => present,
path => $base::local_path,
require => Build_and_install[$name]
}
}
gem { [ 'bundler', 'penchant' ]: gem { [ 'bundler', 'penchant' ]:
require => Build_and_install[$name], require => Build_and_install[$name],
path => $with_ruby_path, path => $with_ruby_path,

View File

@ -62,7 +62,7 @@ class varnish($version, $vcl, $user = 'varnish', $group = 'varnish', $store_file
} }
/* debian stuff */ /* debian stuff */
if ($osfamily == 'debian') { if ($::osfamily == 'debian') {
user { $user: uid => 27835 } user { $user: uid => 27835 }
$packages = [ 'libpcre3', 'libpcre3-dev', 'pkg-config' ] $packages = [ 'libpcre3', 'libpcre3-dev', 'pkg-config' ]