f3f611548a
Because they are very useful. Change-Id: Iaed256828fd426f1a883fc2c2398d51d5960bf47
32 lines
1.1 KiB
Puppet
32 lines
1.1 KiB
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', 'iftop',
|
|
'sysstat', 'iotop']
|
|
}
|
|
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).")
|
|
}
|
|
}
|
|
}
|