system-config/modules/openstack_project/manifests/params.pp
Gregory Haynes f51c653ff1 Add parted to devstack images
This is a d-g requirement.

Change-Id: I68eec50e873dc3c543b0a468d32613eb7d2469f2
2015-08-04 16:19:55 +00:00

31 lines
1019 B
Puppet

# Class: openstack_project::params
#
# This class holds parameters that need to be
# accessed by other classes.
class openstack_project::params {
case $::osfamily {
'RedHat': {
$packages = ['parted', 'puppet', 'wget', 'iputils']
$user_packages = ['emacs-nox', 'vim-enhanced']
$update_pkg_list_cmd = ''
$login_defs = 'puppet:///modules/openstack_project/login.defs.redhat'
}
'Debian': {
$packages = ['parted', 'puppet', 'wget', 'iputils-ping']
case $::operatingsystemrelease {
/^(12|14)\.(04|10)$/: {
$user_packages = ['emacs23-nox', 'vim-nox']
}
default: {
$user_packages = ['emacs-nox', 'vim-nox']
}
}
$update_pkg_list_cmd = 'apt-get update >/dev/null 2>&1;'
$login_defs = 'puppet:///modules/openstack_project/login.defs.debian'
}
default: {
fail("Unsupported osfamily: ${::osfamily} The 'openstack_project' module only supports osfamily Debian or RedHat (slaves only).")
}
}
}