Skip to content

Instantly share code, notes, and snippets.

@bdenning
Created June 9, 2014 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bdenning/a7cc1640a5ee52b09eae to your computer and use it in GitHub Desktop.
Save bdenning/a7cc1640a5ee52b09eae to your computer and use it in GitHub Desktop.
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