Jens Rosenboom b46a384544 Make puppet work with Ubuntu Vivid
The repo for Vivid on apt.puppetlabs.com only contains a 'PC1' repo
instead of 'main', also only binary packages and no source. So skip
installing this repo completely for now until we find out which
packages are really needed from it.

Package emacs23-nox is replaced by emacs24-nox.

Change-Id: I23e60f09402c716e2d4a7bbf2d069aa9b975e9d3
2015-06-09 10:15:45 +02:00

31 lines
987 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', 'wget']
$user_packages = ['byobu', 'emacs-nox', 'vim-minimal']
$update_pkg_list_cmd = ''
$login_defs = 'puppet:///modules/openstack_project/login.defs.redhat'
}
'Debian': {
$packages = ['puppet', 'wget']
case $::operatingsystemrelease {
'15.04': {
$user_packages = ['byobu', 'emacs24-nox', 'vim-nox']
}
default: {
$user_packages = ['byobu', 'emacs23-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).")
}
}
}