4362ebbfcd
Turns out vim-minimal is so minimal it does not install the vim symlink. vim-enhanced does - and has the added benefit of not instaling gnome libs. Change-Id: I3f13c84dc1aacc42cf6ada119d8ea5d2ff5a5dd0
31 lines
972 B
Puppet
31 lines
972 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 = ['emacs-nox', 'vim-enhanced']
|
|
$update_pkg_list_cmd = ''
|
|
$login_defs = 'puppet:///modules/openstack_project/login.defs.redhat'
|
|
}
|
|
'Debian': {
|
|
$packages = ['puppet', 'wget']
|
|
case $::operatingsystemrelease {
|
|
/^(12|14)\.(04|10)$/: {
|
|
$user_packages = ['emacs23-nox', 'vim-nox']
|
|
}
|
|
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).")
|
|
}
|
|
}
|
|
}
|