7a0d2df17c
It's so useful. Change-Id: I7d2b96aa1e1cf7186ee88c6a3a3d878a29ac536d
31 lines
1.0 KiB
Puppet
31 lines
1.0 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']
|
|
}
|
|
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).")
|
|
}
|
|
}
|
|
}
|