Merge "BaR Ceph authenticacion more ansible way"
This commit is contained in:
commit
08e87e54db
|
@ -38,13 +38,14 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: test_deps
|
- role: test_deps
|
||||||
|
test_deps_setup_tripleo: true
|
||||||
|
test_deps_tripleo_packages:
|
||||||
|
- hiera
|
||||||
test_deps_extra_packages:
|
test_deps_extra_packages:
|
||||||
- rear
|
- rear
|
||||||
- syslinux
|
- syslinux
|
||||||
- genisoimage
|
- genisoimage
|
||||||
- kbd
|
- kbd
|
||||||
- puppet
|
|
||||||
- hiera
|
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Create hiera config file
|
- name: Create hiera config file
|
||||||
|
|
|
@ -35,7 +35,16 @@
|
||||||
- name: Export ceph authentication
|
- name: Export ceph authentication
|
||||||
shell: |
|
shell: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
{{ tripleo_container_cli }} exec ceph-mon-{{ ansible_hostname }} bash -c "ceph auth export" > {{ tripleo_backup_and_restore_ceph_auth_file }}
|
{{ tripleo_container_cli }} exec ceph-mon-{{ ansible_hostname }} bash -c "ceph auth export"
|
||||||
become: true
|
become: true
|
||||||
|
register: bar_ceph_autentication_content
|
||||||
|
tags:
|
||||||
|
- bar_create_recover_image
|
||||||
|
|
||||||
|
- name: Save ceph authentication at {{ tripleo_backup_and_restore_ceph_auth_file }}
|
||||||
|
copy:
|
||||||
|
dest: "{{ tripleo_backup_and_restore_ceph_auth_file }}"
|
||||||
|
content: |
|
||||||
|
{{ bar_ceph_autentication_content.stdout }}
|
||||||
tags:
|
tags:
|
||||||
- bar_create_recover_image
|
- bar_create_recover_image
|
||||||
|
|
Loading…
Reference in New Issue