Merge "Hide passwords better"
This commit is contained in:
commit
bd79e9e440
|
@ -45,6 +45,7 @@
|
||||||
os_password: "{{ lookup('env', 'OS_PASSWORD') }}"
|
os_password: "{{ lookup('env', 'OS_PASSWORD') }}"
|
||||||
os_project_name: "{{ lookup('env', 'OS_PROJECT_NAME') }}"
|
os_project_name: "{{ lookup('env', 'OS_PROJECT_NAME') }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
no_log: "{{ not ((ansible_verbosity | int) >= 2) | bool }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: crate container and upload templates
|
- name: crate container and upload templates
|
||||||
|
@ -57,6 +58,7 @@
|
||||||
--os-project-name "{{ os_project_name }}"
|
--os-project-name "{{ os_project_name }}"
|
||||||
--auth-version "{{ auth_version }}"
|
--auth-version "{{ auth_version }}"
|
||||||
post "{{ container }}" --header 'x-container-meta-usage-tripleo:plan'
|
post "{{ container }}" --header 'x-container-meta-usage-tripleo:plan'
|
||||||
|
no_log: "{{ not ((ansible_verbosity | int) >= 2) | bool }}"
|
||||||
|
|
||||||
- name: Create temp directory
|
- name: Create temp directory
|
||||||
tempfile:
|
tempfile:
|
||||||
|
|
|
@ -85,10 +85,12 @@
|
||||||
- name: Set mysql root password
|
- name: Set mysql root password
|
||||||
set_fact:
|
set_fact:
|
||||||
MysqlRootPassword: "{{ (tripleo_undercloud_passwords['content'] | b64decode | from_yaml)['parameter_defaults']['MysqlRootPassword'] }}"
|
MysqlRootPassword: "{{ (tripleo_undercloud_passwords['content'] | b64decode | from_yaml)['parameter_defaults']['MysqlRootPassword'] }}"
|
||||||
|
no_log: "{{ not ((ansible_verbosity | int) >= 2) | bool }}"
|
||||||
rescue:
|
rescue:
|
||||||
- name: Set mysql root password (fallback)
|
- name: Set mysql root password (fallback)
|
||||||
set_fact:
|
set_fact:
|
||||||
MysqlRootPassword: "{{ lookup('ini', 'undercloud_mysql_root_password section=auth file=' ~ ansible_home ~ '/undercloud-passwords.conf') }}"
|
MysqlRootPassword: "{{ lookup('ini', 'undercloud_mysql_root_password section=auth file=' ~ ansible_home ~ '/undercloud-passwords.conf') }}"
|
||||||
|
no_log: "{{ not ((ansible_verbosity | int) >= 2) | bool }}"
|
||||||
|
|
||||||
- name: Create the names for the temporary backup files
|
- name: Create the names for the temporary backup files
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
hiera -c '{{ tripleo_backup_and_restore_hiera_config_file }}' 'mysql::server::root_password'
|
hiera -c '{{ tripleo_backup_and_restore_hiera_config_file }}' 'mysql::server::root_password'
|
||||||
when: mysql_password is undefined
|
when: mysql_password is undefined
|
||||||
register: mysql_password
|
register: mysql_password
|
||||||
|
no_log: "{{ not ((ansible_verbosity | int) >= 2) | bool }}"
|
||||||
become: true
|
become: true
|
||||||
tags:
|
tags:
|
||||||
- bar_create_recover_image
|
- bar_create_recover_image
|
||||||
|
@ -75,6 +76,7 @@
|
||||||
when: mysql_password.stderr is defined
|
when: mysql_password.stderr is defined
|
||||||
tags:
|
tags:
|
||||||
- bar_create_recover_image
|
- bar_create_recover_image
|
||||||
|
no_log: "{{ not ((ansible_verbosity | int) >= 2) | bool }}"
|
||||||
|
|
||||||
- name: MySQL BBDDs backup
|
- name: MySQL BBDDs backup
|
||||||
shell: |
|
shell: |
|
||||||
|
@ -87,6 +89,7 @@
|
||||||
when: mysql_password.stderr is defined
|
when: mysql_password.stderr is defined
|
||||||
tags:
|
tags:
|
||||||
- bar_create_recover_image
|
- bar_create_recover_image
|
||||||
|
no_log: "{{ not ((ansible_verbosity | int) >= 2) | bool }}"
|
||||||
|
|
||||||
- name: Pause mysql.
|
- name: Pause mysql.
|
||||||
command: "{{ tripleo_container_cli }} pause {{ tripleo_backup_and_restore_mysql_container }}"
|
command: "{{ tripleo_container_cli }} pause {{ tripleo_backup_and_restore_mysql_container }}"
|
||||||
|
|
Loading…
Reference in New Issue