wrap utilities packages in a if \!defined to prevent conflict with rvm module
This commit is contained in:
parent
5f5f2fad9c
commit
66fb703e79
|
@ -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:}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue