From 2d6664d3c5aae50bc64f391c89903fe0e6fbc388 Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Wed, 28 Jun 2017 08:51:35 -0400 Subject: [PATCH] Allow possibility to disable heatstack password This allow the possibility to disable the heat stack password field. Change-Id: I8dcf212398570c5d124bac769614b968d8b8cb12 --- defaults/main.yml | 1 + releasenotes/notes/heatstack_password-25956b6143577735.yaml | 5 +++++ templates/horizon_local_settings.py.j2 | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/heatstack_password-25956b6143577735.yaml diff --git a/defaults/main.yml b/defaults/main.yml index f1d2c037..665fa346 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -101,6 +101,7 @@ horizon_enforce_password_check: False horizon_disable_password_reveal: False horizon_enable_password_retrieve: False horizon_enable_password_autocomplete: False +horizon_enable_heatstack_user_pass: True # If nova_libvirt_inject_password is set to True, then this can also be enabled: horizon_can_set_password: False horizon_enable_cinder_backup: False diff --git a/releasenotes/notes/heatstack_password-25956b6143577735.yaml b/releasenotes/notes/heatstack_password-25956b6143577735.yaml new file mode 100644 index 00000000..bf573dcf --- /dev/null +++ b/releasenotes/notes/heatstack_password-25956b6143577735.yaml @@ -0,0 +1,5 @@ +--- +features: + - It's now possible to disable heat stack password field in horizon. + ``horizon_enable_heatstack_user_pass`` variable has been added and + default to True. diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index b123e6b3..5e72c58c 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -315,7 +315,7 @@ OPENSTACK_NEUTRON_NETWORK = { # The OPENSTACK_HEAT_STACK settings can be used to disable password # field required while launching the stack. OPENSTACK_HEAT_STACK = { - 'enable_user_pass': True, + 'enable_user_pass': {{ horizon_enable_heatstack_user_pass }}, } # The OPENSTACK_IMAGE_BACKEND settings can be used to customize features