669eb287c9
Clean up facter osfamily matches to just use Debian, not Ubuntu. This is manually tested and confirmed to at least be the case on Oneiric, Precise and Quantal. Change-Id: I27b184ac419910f9c3271c3b4e57886333282a5f Reviewed-on: https://review.openstack.org/27399 Reviewed-by: Spencer Krum <krum.spencer@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
22 lines
679 B
Puppet
22 lines
679 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 = ['puppet', 'python-setuptools', 'wget']
|
|
$user_packages = ['byobu', 'emacs-nox']
|
|
$update_pkg_list_cmd = ''
|
|
}
|
|
'Debian': {
|
|
$packages = ['puppet', 'python-setuptools', 'wget']
|
|
$user_packages = ['byobu', 'emacs23-nox']
|
|
$update_pkg_list_cmd = 'apt-get update >/dev/null 2>&1;'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} The 'openstack_project' module only supports osfamily Debian or RedHat (slaves only).")
|
|
}
|
|
}
|
|
}
|