Skip to content

Commit

Permalink
Merge pull request #4 from tokyowizard/use_glusterfs_repo
Browse files Browse the repository at this point in the history
Repo moved. Use Storage SIG Yum Repos. Default to version 3.8
  • Loading branch information
MiLk authored Sep 9, 2016
2 parents 493a050 + 3cc33de commit 71171a8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Variables

* `gluster_volumes` is a list of the volumes you want to create.
* `glusterfs_cluster_name` must be set to the name of the group containing all the nodes of the GlusterFS cluster.
* `glusterfs_version` is the Gluster version. Choices are '36', '37 or '38' which provides 3.6, 3.7 or 3.8, respectively. Default is '38'.

See also
--------
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
gluster_volumes: []
gluster_version: 38
8 changes: 0 additions & 8 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,5 @@ galaxy_info:
categories:
- system
dependencies:
- role: AerisCloud.repos
remote_repositories:
centos6:
- http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo
centos7:
- http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo
tags:
- glusterfs
- role: AerisCloud.yum

25 changes: 24 additions & 1 deletion tasks/centos.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
- name: "Install Storage SIG Yum Repos"
yum: >
name="centos-release-gluster{{ gluster_version }}"
tags:
- glusterfs

- name: "Install GlusterFS"
yum: >
name={{ item }}
state=present
enablerepo=centos-gluster{{ gluster_version }}
disablerepo=base
with_items:
- glusterfs
- glusterfs-cli
- glusterfs-server
- glusterfs-fuse
- glusterfs-geo-replication
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version|int <= 6
tags:
- glusterfs

- name: "Install GlusterFS"
yum: >
name={{ item }}
state=present
enablerepo=glusterfs-epel
enablerepo=centos-gluster{{ gluster_version }}
with_items:
- glusterfs
- glusterfs-cli
- glusterfs-server
- glusterfs-fuse
- glusterfs-geo-replication
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version|int >= 7
tags:
- glusterfs

0 comments on commit 71171a8

Please sign in to comment.