system-config/modules/openstack_project/manifests/params.pp
Dan Prince 7d003b8f68 Add update_pkg_list_cmd to openstack_project.
Add a new update_pkg_list_cmd parameter to the openstack_project
module so we can control what each distribution runs to
update package lists. On Ubuntu we want to run 'apt-get update'
and on RHEL we want to run nothing since yum does this automatically.

Change-Id: Iab08930bac5f992711b05bcbfa23b7daab12a060
Reviewed-on: https://review.openstack.org/23571
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-03-05 20:55:27 +00:00

22 lines
688 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', 'Ubuntu': {
$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 Ubuntu or Redhat(slaves only).")
}
}
}