034f37c32a
Instead of a shell script looping over ssh calls, use a simple ansible playbook. The benefit this gets is that we can then also script ad-hoc admin tasks either via playbooks or on the command line. We can also then get rid of the almost entirely unused salt infrastructure. Change-Id: I53112bd1f61d94c0521a32016c8a47c8cf9e50f7
22 lines
663 B
Puppet
22 lines
663 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 = ''
|
|
}
|
|
'Debian': {
|
|
$packages = ['puppet', 'wget']
|
|
$user_packages = ['byobu', 'emacs23-nox', 'vim-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).")
|
|
}
|
|
}
|
|
}
|