
For one, replace puppet agent --test with a slightly less verbose version that does not return strange error codes. Then update the script to log things a little more readably. Change-Id: Ib95edc59020d443ee83a04bdf19430f5c56196ec
23 lines
767 B
Puppet
23 lines
767 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']
|
|
$update_pkg_list_cmd = ''
|
|
}
|
|
'Debian': {
|
|
$packages = ['puppet', '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).")
|
|
}
|
|
}
|
|
$allowed_ssh_command = 'timeout -s 9 30m puppet agent --onetime --ignorecache --no-daemonize --no-usecacheonfailure --no-splay'
|
|
}
|