diff --git a/releasenotes/notes/add-template-file-var-cac35a99a3faf563.yaml b/releasenotes/notes/add-template-file-var-cac35a99a3faf563.yaml new file mode 100644 index 0000000000..0d2dcc5799 --- /dev/null +++ b/releasenotes/notes/add-template-file-var-cac35a99a3faf563.yaml @@ -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 diff --git a/tests/roles/bootstrap-host/defaults/main.yml b/tests/roles/bootstrap-host/defaults/main.yml index 24c012595b..4103055ba6 100644 --- a/tests/roles/bootstrap-host/defaults/main.yml +++ b/tests/roles/bootstrap-host/defaults/main.yml @@ -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 diff --git a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml index 43982e3d7c..b89edbd3dc 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_aio_config.yml @@ -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