Merge "Add variable for template filename"

This commit is contained in:
Jenkins 2017-04-24 15:21:53 +00:00 committed by Gerrit Code Review
commit 8e68625e1b
3 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
features:
- |
A variable named ``bootstrap_user_variables_template`` has been added
to the bootstrap-host role so the user can define the user variable
template filename for AIO deployments

View File

@ -31,6 +31,9 @@ bootstrap_host_aio_script_path: "{{ playbook_dir }}/../scripts"
bootstrap_host_user_variables_filename: "user_variables.yml"
bootstrap_host_user_secrets_filename: "user_secrets.yml"
# The user variables template to use
bootstrap_user_variables_template: "user_variables.{{ bootstrap_host_scenario }}.yml.j2"
## Swap memory
# If there is no swap memory present, the bootstrap will create a loopback disk
# for the purpose of having swap memory available. Swap is required for some of

View File

@ -113,7 +113,7 @@
- name: Set the user_variables
config_template:
src: "user_variables.{{ bootstrap_host_scenario }}.yml.j2"
src: "{{ bootstrap_user_variables_template }}"
dest: "/etc/openstack_deploy/{{ bootstrap_host_user_variables_filename }}"
config_overrides: "{{ user_variables_overrides | default({}) }}"
config_type: yaml