From c94d2b34792191e7a4cb301635d18703e6342890 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 6 Nov 2014 09:40:56 +0100 Subject: [PATCH] Increase the readability of the configuration file * document undocumented parameters * group similiar parameters * rename parameter 'stack_pass' to 'stack_password' * use 'secretsecret' as default value for secrets ('secretsecret' is used in the OpenStack manuals as default value) * add missing dots at the end of sentences * use 79 chars per line Change-Id: Ibc667c2375fe39443574e2c424033dd13479cba9 --- config.yaml.sample | 77 ++++++++++++++------------ puppet/modules/user/manifests/stack.pp | 4 +- 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/config.yaml.sample b/config.yaml.sample index 98c6e5e..3729579 100644 --- a/config.yaml.sample +++ b/config.yaml.sample @@ -1,56 +1,61 @@ +# Hostname of the manager and the compute nodes. hostname_manager: manager.openstack.site hostname_compute: compute.openstack.site -stack_pass: somebiglongLinuxpasswordhash +# The passwort that should be used for the system user 'stack'. +stack_password: secretsecret + +# The password that should be used for services like the database or queuing. +service_password: secretsecret + +# The password that should be used for the OpenStack admin user. +admin_password: secretsecret + +# The public SSH key that should be used for the system user 'stack'. stack_sshkey: the_ssh_public_key_you_want_for_your_stack_user -# Define the setup mode to install the environment -# valid values: grenade/devstack default is devstack + +# Define the setup mode to install the environment. +# valid values: grenade, devstack +# default value: devstack setup_mode: devstack -# what interface on the host should be used for a bridge -# will often be eth0, but vagrant needs to know for sure -# This needs to be the full string descriptor of the interface. -# On some systems this can be something annoying like -# 'en1: Wi-Fi (Airport)'. Vagrant will not use this setting -# unless you get it exactly right. + +# What interface on the host should be used for a bridge will often be eth0, +# but vagrant needs to know for sure. This needs to be the full string +# descriptor of the interface. On some systems this can be something annoying +# like 'en1: Wi-Fi (Airport)'. Vagrant will not use this setting unless you get +# it exactly right. bridge_int: eth1 -# A non upstream for the base box, used to speed things up. -# Choose one of box_name (for a locally added box) or box_url -# for the url of a nearby box. + +# A non upstream for the base box, used to speed things up. Choose one of +# box_name (for a locally added box) or box_url for the url of a nearby box. #box_name: 'my.favorite' #box_url: http://gallifrey/vagrant/devstack-2014-02-19.box -# The password that should be used for services like the database -# or queuing. -service_password: pass - -# The password that should be used for the admin user -admin_password: pass - -# Local devstack options -# a non upstream git url to fetch devstack from instead +# Non upstream Git URL to fetch Devstack from instead. #devstack_git: /home/vagrant/openstack/devstack -# if you have code on a different branch than master, you can set it here + +# If you have code on a different branch than master, you can set it here. #devstack_branch: compute_err_exit # You can specify a proxy, for example https://github.com/tmatilai/polipo-box, # to be used for HTTP connections to speed things up. #proxy: http://10.0.10.30:8123/ -# Uncomment below to setup LDAP on the management node and use it as -# backend for keystone +# Uncomment below to setup LDAP on the management node and use it as backend +# for keystone. #use_ldap: true -# You can specify stable mac addresses to keep this from resetting -# on every create -# mac_address_manager: 0800274a508c -# mac_address_compute: 0800274a508d +# You can specify stable MAC addresses to keep this from resetting on every +# create. +#mac_address_manager: 0800274a508c +#mac_address_compute: 0800274a508d -# It is possible to use a hostonly-network instead of a bridged network -# when setting the parameter use_bridge to false. -# use_bridge: false +# It is possible to use a hostonly-network instead of a bridged network when +# setting the parameter use_bridge to false. +#use_bridge: false -# When using a hostonly-network it is possible to specify static IP -# addresses using the following parameters. If those parameters are -# not specified DHCP will be used. -# ip_address_manager: 10.0.10.10 -# ip_address_compute: 10.0.10.20 +# When using a hostonly-network it is possible to specify static IP addresses +# using the following parameters. If those parameters are not specified DHCP +# will be used. +#ip_address_manager: 10.0.10.10 +#ip_address_compute: 10.0.10.20 diff --git a/puppet/modules/user/manifests/stack.pp b/puppet/modules/user/manifests/stack.pp index 4fd9b93..a476e1d 100644 --- a/puppet/modules/user/manifests/stack.pp +++ b/puppet/modules/user/manifests/stack.pp @@ -7,7 +7,7 @@ class user::stack( { notify { 'after': - message => "User params: u => $username, p => $stack_pass, k => $stack_sshkey" + message => "User params: u => $username, p => $stack_password, k => $stack_sshkey" } @@ -20,7 +20,7 @@ class user::stack( user::create { 'stack': user => $username, - pass => $stack_pass, + pass => $stack_password, key => $stack_sshkey, is_admin => true, } ->