From 1f3e2a9f59e83dc3f0fcbecf096a7e7b40d36ed7 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 28 Feb 2018 23:46:55 +0100 Subject: First running prototype --- roles/glusterfs/tasks/data | 1 - roles/glusterfs/tasks/data/vols2.yml | 13 +++++++++++++ roles/glusterfs/tasks/data/vols3.yml | 14 ++++++++++++++ roles/glusterfs/tasks/la/vols2.yml | 1 + roles/glusterfs/tasks/la/vols3.yml | 11 +++++++++++ roles/glusterfs/tasks/tmp | 1 + roles/glusterfs/tasks/tmp/vols2.yml | 1 - roles/glusterfs/tasks/tmp/vols3.yml | 11 ----------- 8 files changed, 40 insertions(+), 13 deletions(-) delete mode 120000 roles/glusterfs/tasks/data create mode 100644 roles/glusterfs/tasks/data/vols2.yml create mode 100644 roles/glusterfs/tasks/data/vols3.yml create mode 120000 roles/glusterfs/tasks/la/vols2.yml create mode 100644 roles/glusterfs/tasks/la/vols3.yml create mode 120000 roles/glusterfs/tasks/tmp delete mode 120000 roles/glusterfs/tasks/tmp/vols2.yml delete mode 100644 roles/glusterfs/tasks/tmp/vols3.yml (limited to 'roles/glusterfs') diff --git a/roles/glusterfs/tasks/data b/roles/glusterfs/tasks/data deleted file mode 120000 index 31bb52e..0000000 --- a/roles/glusterfs/tasks/data +++ /dev/null @@ -1 +0,0 @@ -cfg \ No newline at end of file diff --git a/roles/glusterfs/tasks/data/vols2.yml b/roles/glusterfs/tasks/data/vols2.yml new file mode 100644 index 0000000..d094797 --- /dev/null +++ b/roles/glusterfs/tasks/data/vols2.yml @@ -0,0 +1,13 @@ +--- +- name: "Create {{ name }} volume" + gluster_volume: + state: present + name: "{{ name }}" + cluster: "{{ domain_servers | join(',') }}" + replicas: "{{ domain_servers | length }}" + bricks: "{{ glusterfs_bricks_path }}/brick-{{ name }}" + transport: "{{ glusterfs_transport }}" + + +- name: "Start {{ name }} volume" + gluster_volume: state="started" name="{{ name }}" diff --git a/roles/glusterfs/tasks/data/vols3.yml b/roles/glusterfs/tasks/data/vols3.yml new file mode 100644 index 0000000..866480c --- /dev/null +++ b/roles/glusterfs/tasks/data/vols3.yml @@ -0,0 +1,14 @@ +--- +- name: "Create {{ name }} volume" + gluster_volume: + state: present + name: "{{ name }}" + cluster: "{{ domain_servers | join(',') }}" + replicas: 3 + arbiters: 1 + bricks: "{{ glusterfs_bricks_path }}/brick-{{ name }}" + transport: "{{ glusterfs_transport }}" + + +- name: "Start {{ name }} volume" + gluster_volume: state="started" name="{{ name }}" diff --git a/roles/glusterfs/tasks/la/vols2.yml b/roles/glusterfs/tasks/la/vols2.yml new file mode 120000 index 0000000..b6a3e8f --- /dev/null +++ b/roles/glusterfs/tasks/la/vols2.yml @@ -0,0 +1 @@ +vols3.yml \ No newline at end of file diff --git a/roles/glusterfs/tasks/la/vols3.yml b/roles/glusterfs/tasks/la/vols3.yml new file mode 100644 index 0000000..9565bb3 --- /dev/null +++ b/roles/glusterfs/tasks/la/vols3.yml @@ -0,0 +1,11 @@ +--- +- name: "Create {{ name }} volume" + gluster_volume: + state: present + name: "{{ name }}" + cluster: "{{ domain_servers | join(',') }}" + bricks: "{{ glusterfs_bricks_path }}/brick-{{ name }}" + transport: "{{ glusterfs_transport }}" + +- name: "Start {{ name }} volume" + gluster_volume: state="started" name="{{ name }}" diff --git a/roles/glusterfs/tasks/tmp b/roles/glusterfs/tasks/tmp new file mode 120000 index 0000000..6320cd2 --- /dev/null +++ b/roles/glusterfs/tasks/tmp @@ -0,0 +1 @@ +data \ No newline at end of file diff --git a/roles/glusterfs/tasks/tmp/vols2.yml b/roles/glusterfs/tasks/tmp/vols2.yml deleted file mode 120000 index b6a3e8f..0000000 --- a/roles/glusterfs/tasks/tmp/vols2.yml +++ /dev/null @@ -1 +0,0 @@ -vols3.yml \ No newline at end of file diff --git a/roles/glusterfs/tasks/tmp/vols3.yml b/roles/glusterfs/tasks/tmp/vols3.yml deleted file mode 100644 index 9565bb3..0000000 --- a/roles/glusterfs/tasks/tmp/vols3.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -- name: "Create {{ name }} volume" - gluster_volume: - state: present - name: "{{ name }}" - cluster: "{{ domain_servers | join(',') }}" - bricks: "{{ glusterfs_bricks_path }}/brick-{{ name }}" - transport: "{{ glusterfs_transport }}" - -- name: "Start {{ name }} volume" - gluster_volume: state="started" name="{{ name }}" -- cgit v1.2.3