Merge "sync-devstack-data: new argument devstack_data_base_dir"
This commit is contained in:
commit
45c1aa2f7d
@ -10,3 +10,10 @@ subnodes.
|
|||||||
:default: /opt/stack
|
:default: /opt/stack
|
||||||
|
|
||||||
The devstack base directory.
|
The devstack base directory.
|
||||||
|
|
||||||
|
.. zuul:rolevar:: devstack_data_base_dir
|
||||||
|
:default: {{ devstack_base_dir }}
|
||||||
|
|
||||||
|
The devstack base directory for data/.
|
||||||
|
Useful for example when multiple executions of devstack (i.e. grenade)
|
||||||
|
share the same data directory.
|
||||||
|
@ -1 +1,2 @@
|
|||||||
devstack_base_dir: /opt/stack
|
devstack_base_dir: /opt/stack
|
||||||
|
devstack_data_base_dir: "{{ devstack_base_dir }}"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
- name: Ensure the data folder exists
|
- name: Ensure the data folder exists
|
||||||
become: true
|
become: true
|
||||||
file:
|
file:
|
||||||
path: "{{ devstack_base_dir }}/data"
|
path: "{{ devstack_data_base_dir }}/data"
|
||||||
state: directory
|
state: directory
|
||||||
owner: stack
|
owner: stack
|
||||||
group: stack
|
group: stack
|
||||||
@ -11,7 +11,7 @@
|
|||||||
- name: Ensure the CA folder exists
|
- name: Ensure the CA folder exists
|
||||||
become: true
|
become: true
|
||||||
file:
|
file:
|
||||||
path: "{{ devstack_base_dir }}/data/CA"
|
path: "{{ devstack_data_base_dir }}/data/CA"
|
||||||
state: directory
|
state: directory
|
||||||
owner: stack
|
owner: stack
|
||||||
group: stack
|
group: stack
|
||||||
@ -25,8 +25,8 @@
|
|||||||
dest: "{{ zuul.executor.work_root }}/{{ item | basename }}"
|
dest: "{{ zuul.executor.work_root }}/{{ item | basename }}"
|
||||||
mode: pull
|
mode: pull
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ devstack_base_dir }}/data/ca-bundle.pem"
|
- "{{ devstack_data_base_dir }}/data/ca-bundle.pem"
|
||||||
- "{{ devstack_base_dir }}/data/CA"
|
- "{{ devstack_data_base_dir }}/data/CA"
|
||||||
when: inventory_hostname == 'controller'
|
when: inventory_hostname == 'controller'
|
||||||
|
|
||||||
- name: Push the CA certificate
|
- name: Push the CA certificate
|
||||||
@ -34,7 +34,7 @@
|
|||||||
become_user: stack
|
become_user: stack
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ zuul.executor.work_root }}/ca-bundle.pem"
|
src: "{{ zuul.executor.work_root }}/ca-bundle.pem"
|
||||||
dest: "{{ devstack_base_dir }}/data/ca-bundle.pem"
|
dest: "{{ devstack_data_base_dir }}/data/ca-bundle.pem"
|
||||||
mode: push
|
mode: push
|
||||||
when: 'inventory_hostname in groups["subnode"]|default([])'
|
when: 'inventory_hostname in groups["subnode"]|default([])'
|
||||||
|
|
||||||
@ -43,6 +43,6 @@
|
|||||||
become_user: stack
|
become_user: stack
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ zuul.executor.work_root }}/CA/"
|
src: "{{ zuul.executor.work_root }}/CA/"
|
||||||
dest: "{{ devstack_base_dir }}/data/"
|
dest: "{{ devstack_data_base_dir }}/data/"
|
||||||
mode: push
|
mode: push
|
||||||
when: 'inventory_hostname in groups["subnode"]|default([])'
|
when: 'inventory_hostname in groups["subnode"]|default([])'
|
||||||
|
Loading…
Reference in New Issue
Block a user