-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New playbook and roles for installing GlusterFS.
- Loading branch information
1 parent
e1536f3
commit 408417f
Showing
19 changed files
with
400 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
elasticluster/share/playbooks/roles/gluster/tasks/client.yml
This file was deleted.
Oops, something went wrong.
106 changes: 0 additions & 106 deletions
106
elasticluster/share/playbooks/roles/gluster/tasks/main.yml
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
elasticluster/share/playbooks/roles/gluster/templates/etc/yum.repos.d/gluster.repo.j2
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
elasticluster/share/playbooks/roles/glusterfs-client/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
|
||
# A list of GlusterFS filesystems to mount. | ||
# | ||
# Each filesystem is defined by an associative array with the | ||
# following key/value pairs: | ||
# | ||
# - fs: the remote filesystem to mount, in the form "server:volume" | ||
# - mountpoint: path to the local mountpoint | ||
# - options: mount options, defaults to `rw,async` if not given | ||
# - state: see documentation for Ansible module `mount`; the default value here is `mounted` | ||
# | ||
# For example:: | ||
# | ||
# GLUSTERFS_MOUNTS: | ||
# - fs: 'master:data' | ||
# mountpoint: '/data' | ||
# options: 'ro' | ||
# state: mounted | ||
# | ||
# By default, this parameter is the empty list, i.e., no GlusterFS filesystems are mounted. | ||
# | ||
GLUSTERFS_MOUNTS: [] |
4 changes: 4 additions & 0 deletions
4
elasticluster/share/playbooks/roles/glusterfs-client/meta/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
|
||
dependencies: | ||
- glusterfs-common |
33 changes: 33 additions & 0 deletions
33
elasticluster/share/playbooks/roles/glusterfs-client/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
|
||
# for once, the package name on Debian/Ubuntu and RHEL/CentOS is the same | ||
- name: Install GlusterFS client | ||
package: | ||
name=glusterfs-client | ||
state=installed | ||
tags: | ||
- gluster | ||
- glusterfs-client | ||
|
||
|
||
- name: Create mountpoint directory {{item.mountpoint}} | ||
file: | ||
path='{{item.mountpoint}}' | ||
state=directory | ||
with_items: '{{GLUSTERFS_MOUNTS}}' | ||
tags: | ||
- gluster | ||
- glusterfs-client | ||
|
||
|
||
- name: Mount GlusterFS filesystem {{item.mountpoint}} | ||
mount: | ||
src='{{item.fs}}' | ||
name='{{item.mountpoint}}' | ||
fstype=glusterfs | ||
opts='{{item.options|default("defaults")}}' | ||
state='{{item.state|default("mounted")}}' | ||
with_items: '{{GLUSTERFS_MOUNTS}}' | ||
tags: | ||
- gluster | ||
- glusterfs-client |
Oops, something went wrong.