3894d93266
If puppet creates users after any static UID/GID users are created, it will use the next available UID or GID even if we intend to use if for another static user. Solve this by increasing the dynamic range minimums in /etc/login.defs, and also define system account maximums explicitly so that they don't get interpreted as one less than the normal user minimums and potentially also conflict. Change-Id: Ie82ee5cbc23ef38b0eddd8c6af611724cc10fb28
24 lines
815 B
Puppet
24 lines
815 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']
|
|
$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).")
|
|
}
|
|
}
|
|
}
|