summaryrefslogtreecommitdiffstats
path: root/vagrant/README
blob: 7918d1160d8d7f5440a389bd5aa1e3f82e1b99d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
This is Puppet-Gluster+Vagrant! (https://ttboj.wordpress.com/)

You'll first need to get vagrant working. Here are some background articles:

* https://ttboj.wordpress.com/2013/12/09/vagrant-on-fedora-with-libvirt/
* https://ttboj.wordpress.com/2013/12/21/vagrant-vsftp-and-other-tricks/
* https://ttboj.wordpress.com/2014/01/02/vagrant-clustered-ssh-and-screen/

I've written a detailed article about all of this, which is available here:

* https://ttboj.wordpress.com/2014/01/08/automatically-deploying-glusterfs-with-puppet-gluster-vagrant

This will not work perfectly on Fedora 19. You must use Fedora 20 or greater.

Once you're comfortable that vagrant is working properly, run this command:

	vagrant up puppet && sudo -v && vagrant up annex{1..4} --no-parallel

Sit back and watch, or go have a beverage...
The first run can take a while because it has to download/install a base image.

When the above command completes, puppet will still be provisioning your hosts.
Once the cluster state settles, puppet will create and start a gluster volume.
Once your volume is started, you can build a few clients:

	vagrant up client{1..2} --gluster-clients=2

Happy hacking,

James