wrap utilities packages in a if \!defined to prevent conflict with rvm module

This commit is contained in:
Aimon Bustardo 2012-11-06 15:13:47 -08:00
parent 5f5f2fad9c
commit 66fb703e79
1 changed files with 9 additions and 3 deletions

View File

@ -1,8 +1,14 @@
# unzip swig screen parted curl euca2ools - extra packages
class nova::utilities {
if $::osfamily == 'Debian' {
package { ['unzip', 'screen', 'parted', 'curl', 'euca2ools']:
ensure => present
define nova::utilities::install(){
if !defined(Package[$title]){
package { $title:
ensure => present
}
}
}
if $::osfamily == 'Debian' {
$pkgs=['unzip', 'screen', 'parted', 'curl', 'euca2ools']
nova::utilities::install{$pkgs:}
}
}