blob: b8e17da688372faa16a7063d9976cca1c23ec22a [file] [log] [blame]
Sergio Slobodrian8725ea82017-08-27 23:47:41 -04001- name: The glusterfs registry volume is created
Sergio Slobodrian523ee782017-08-22 16:44:21 -04002 gluster_volume:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -04003 bricks: "{{ barrier_fs_dir }}/reg_brick1"
Sergio Slobodrian523ee782017-08-22 16:44:21 -04004 force: true
5 cluster: "{{groups.cluster | join(\",\")}}"
6 replicas: 3
7 name: registry_volume
8 state: present
9 run_once: true
10
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040011- name: The glusterfs logging volume is created
Sergio Slobodrian523ee782017-08-22 16:44:21 -040012 gluster_volume:
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040013 bricks: "{{ barrier_fs_dir }}/log_brick1"
14 force: true
15 cluster: "{{groups.cluster | join(\",\")}}"
16 disperses: 3
17 name: logging_volume
18 state: present
19 run_once: true
20
21- name: Start the gluster volumes
22 gluster_volume:
23 name: "{{ item }}"
Sergio Slobodrian523ee782017-08-22 16:44:21 -040024 state: started
Sergio Slobodrian8725ea82017-08-27 23:47:41 -040025 with_items:
26 - registry_volume
27 - logging_volume
28