Merge "Don't rotate passwords when updating plan"
This commit is contained in:
commit
83dab913b4
|
@ -59,6 +59,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- Overcloud plan container name
|
- Overcloud plan container name
|
||||||
default: overcloud
|
default: overcloud
|
||||||
|
rotate_passwords:
|
||||||
|
description: flag for rotate passwords or not
|
||||||
|
default: true
|
||||||
|
type: bool
|
||||||
password_list:
|
password_list:
|
||||||
description:
|
description:
|
||||||
- Password list to be rotated
|
- Password list to be rotated
|
||||||
|
@ -73,6 +77,7 @@ EXAMPLES = '''
|
||||||
- name: Rotate passwords and update plan
|
- name: Rotate passwords and update plan
|
||||||
tripleo_password_rotate:
|
tripleo_password_rotate:
|
||||||
container: overcloud
|
container: overcloud
|
||||||
|
rotate_passwords: true
|
||||||
password_list: []
|
password_list: []
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -119,6 +124,7 @@ def run_module():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
container = module.params.get('container')
|
container = module.params.get('container')
|
||||||
|
rotate_passwords = module.params.get('rotate_passwords')
|
||||||
password_list = module.params.get('password_list')
|
password_list = module.params.get('password_list')
|
||||||
_, conn = openstack_cloud_from_module(module)
|
_, conn = openstack_cloud_from_module(module)
|
||||||
session = conn.session
|
session = conn.session
|
||||||
|
@ -134,7 +140,7 @@ def run_module():
|
||||||
mistral = get_workflow_client(mistral_url, session)
|
mistral = get_workflow_client(mistral_url, session)
|
||||||
rotated_passwords = plan_utils.generate_passwords(
|
rotated_passwords = plan_utils.generate_passwords(
|
||||||
swift, heat, mistral, container,
|
swift, heat, mistral, container,
|
||||||
rotate_passwords=True,
|
rotate_passwords=rotate_passwords,
|
||||||
rotate_pw_list=password_list)
|
rotate_pw_list=password_list)
|
||||||
result['success'] = True
|
result['success'] = True
|
||||||
result['passwords'] = rotated_passwords
|
result['passwords'] = rotated_passwords
|
||||||
|
|
|
@ -59,9 +59,10 @@
|
||||||
|
|
||||||
when: source_url is not none
|
when: source_url is not none
|
||||||
|
|
||||||
- name: Generate passwords and update plan
|
- name: Generate passwords if does not exist and update plan
|
||||||
tripleo_passwords_rotate:
|
tripleo_passwords_rotate:
|
||||||
container: "{{ container }}"
|
container: "{{ container }}"
|
||||||
|
rotate_passwords: false
|
||||||
when: generate_passwords|bool
|
when: generate_passwords|bool
|
||||||
|
|
||||||
- name: Prepare Container images and update plan
|
- name: Prepare Container images and update plan
|
||||||
|
|
Loading…
Reference in New Issue