Created
June 9, 2014 04:33
-
-
Save bdenning/a7cc1640a5ee52b09eae to your computer and use it in GitHub Desktop.
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
yum install -y http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
yum install -y ansible | |
cat << 'EOF' > /tmp/bootstrap.yaml | |
--- | |
- name: Install and configure basic GlusterFS setup on Centos 6 | |
hosts: localhost | |
connection: local | |
tasks: | |
- name: add the glusterfs yum repository | |
action: > | |
get_url | |
url=http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.0/EPEL.repo/glusterfs-epel.repo | |
dest=/etc/yum.repos.d/ | |
- name: install the glusterfs software | |
action: > | |
yum | |
name=glusterfs-server | |
state=installed | |
- name: start the gluster service | |
action: > | |
service | |
name=glusterd | |
state=started | |
EOF | |
ansible-playbook /tmp/bootstrap.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment