| - name: The glusterfs registry volume is created |
| bricks: "{{ barrier_fs_dir }}/reg_brick1" |
| cluster: "{{groups.cluster | join(\",\")}}" |
| - name: The glusterfs logging volume is created |
| bricks: "{{ barrier_fs_dir }}/log_brick1" |
| cluster: "{{groups.cluster | join(\",\")}}" |
| - name: Start the gluster volumes |
| - name: The replicated registry filesystem is mounted |
| path: "{{ target_voltha_dir }}/registry_data" |
| src: "{{ inventory_hostname }}:/registry_volume" |
| opts: "defaults,_netdev,noauto,x-systemd.automount" |
| when: target == "cluster" |
| - name: The replicated logging filesystem is mounted on boot |
| src: "{{ inventory_hostname }}:/logging_volume" |
| opts: "defaults,_netdev,noauto,x-systemd.automount" |
| when: target == "cluster" |