summaryrefslogtreecommitdiffstats
path: root/manifests/volume.pp
Commit message (Collapse)AuthorAgeFilesLines
* Used owner/group param for file/directory. Needed because group "nobody" ↵Vincent Deygas2015-01-211-2/+2
| | | | doesn't exist on Ubuntu systems, see : http://askubuntu.com/questions/138972/what-is-the-equivalent-user-for-nobodynobody-from-centos
* Added gluster service dependency to "volume stop" command.Vincent Deygas2015-01-201-1/+1
| | | | This is needed in order to run "onlyif" option properly.
* Used `--mode-script` option for "volume stop" commandVincent Deygas2015-01-201-4/+3
| | | | | Workaround for : "Stopping volume make its data inaccessible. Do you want to continue? (y/n)" See https://access.redhat.com/documentation/en-US/Red_Hat_Storage/2.0/html/Installation_Guide/ch08.html
* Add Debian/Ubuntu specific service naming changes.James Shubin2014-05-071-5/+5
| | | | | This patch also generalizes the service name, so that other operating systems will also benefit from this patch by dropping in a yaml file.
* Pull more operating system specific data from yaml files.James Shubin2014-05-071-12/+12
| | | | This patch includes program paths.
* Pull operating system specific data from yaml files.James Shubin2014-05-071-1/+2
| | | | This patch includes package names.
* Make Exec['again'] optional. As a result puppet-common is optional.James Shubin2014-04-101-5/+20
| | | | Although if you remove all the features, it's not as awesome anymore :)
* Type name should be 'array', not 'list'.James Shubin2014-03-161-1/+1
| | | | Small bug due to lesser used code path, now squashed!
* Add per volume support for brick chaining.James Shubin2014-03-161-1/+11
| | | | | | | | | | * Don't use this feature unless you _really_ know what you're doing. * Managing chained volumes is much harder than managing normal ones. * If some of the volumes in the cluster use this, and others don't, then you'll probably have an even crazier time with management. * Please verify my algorithm and feel free to suggest changes. * Some edge cases haven't been tested. * This patch breaks out brick layout ordering into individual functions.
* Fix small bugs for setgroups.James Shubin2014-03-161-7/+0
|
* Add support for volume set groups.James Shubin2014-03-161-0/+7
| | | | | | | | This adds support for setting volume set groups which are groups of properties that are set all at once on a volume. This is managed in a clever way, so that if the definition of what a certain group contains gets updated by the package manager, your volumes will get updated too, on the next puppet run.
* Add in a custom sponge utility to break the dependence on the EPEL repo.James Shubin2014-03-161-2/+2
|
* Add client mounting and associated magic.James Shubin2014-01-211-0/+7
| | | | | | | | | | | * Rename gluster::client to gluster::mount * Add support to gluster::mount * Add client machines and mounts to vagrant setup * Fixed version interface for gluster::mount and gluster::server * Improved firewall support for gluster::mount * Update examples to use gluster::mount instead of gluster::client * Update documentation * Other small fixes
* This is Puppet-Gluster+Vagrant! (https://ttboj.wordpress.com/)James Shubin2014-01-081-1/+21
| | | | Puppet-Gluster, now with Vagrant! - Initial release. Happy hacking!
* The volume create script shouldn't depend on VIP existence.James Shubin2013-12-311-19/+16
| | | | | | | * If VIP comes and goes, the create script gets added/deleted too. * If VIP isn't present on first run (it usually isn't) then the Exec['again'] won't get run because it's inside the VIP check. * This also consolidates the two identical conditional blocks.
* Update template variables to use the '@' prefix.James Shubin2013-12-311-16/+16
| | | | I've updated wrapper.pp too, but I haven't tested it recently.
* Updated shell scripts to use sponge.James Shubin2013-12-241-2/+2
| | | | Avoids any chance of a race due to modifying the file in place.
* Added preliminary Exec['again'] support to puppet-gluster.James Shubin2013-12-241-1/+12
| | | | | | | * This will make magic things happen faster. * This doesn't give you an option to disable it. * This doesn't let you set the timeout. * This isn't necessarily complete. There might be more notify's needed.
* Small fixes for gluster::simple.James Shubin2013-10-261-1/+3
|
* Automatic brick ordering and finite state machine support.James Shubin2013-10-101-19/+174
| | | | | | | | | | | | | This patch adds preliminary FSM support. This will be used and abused more extensively in later patches. Automatic brick ordering is an advanced feature and is meant for experienced puppet users. Changing the available bricks before the cluster is built is not currently supported. For that type of magic, please wait for gluster::elastic. This feature expects that you name your bricks and hosts intelligently. Future patches will recommend a specific nomenclature, but for now as long as the brick paths and hostnames follow a padded, incrementing integer pattern, with a common prefix, you shouldn't see any problems.
* Module needs a better description.James Shubin2013-10-101-1/+1
| | | | | | | While the module can still be used in a simple way: * It is pretty complicated at this point. It does some advanced stuff. * I wanted to avoid confusion with gluster::simple which is coming soon.
* Small VIP fixes.James Shubin2013-10-101-3/+8
| | | | This lets us specify the VIP in ::server, and inherit it in all volumes.
* Use better namespacing for volume create tmp log files.James Shubin2013-10-101-1/+1
|
* Give glusterd a chance to settle down before we create a volume.James Shubin2013-09-191-1/+3
| | | | | | | | | | This is usually only relevant right after initial peering if we're doing a hot (clean) puppet build. This probably happens because puppet is eager to run things as soon as possible, and after glusterd is restarted, it takes a short moment for glusterd to see the other nodes as fully peered. Ideally puppet should really only check the $onlyif conditions *right* before it runs the command. I think that it might be cheating here and running it in parallel slightly before... Who knows.
* Added fancy volume creation.James Shubin2013-09-181-1/+20
| | | | | | This moves the command into a separate file. This also adds temporary saving of stdout and stderr to /tmp for easy debugging of command output.
* Added short comment.James Shubin2013-09-181-0/+7
|
* Misc comments.James Shubin2013-09-181-0/+1
|
* Finally, Fancy Firewalling...James Shubin2013-09-181-11/+35
| | | | | | | | | | | This adds experimental support for automatic firewalling. Initially, we don't know the other hosts (until they are exported and collected) so we start with an blank firewall to all hosts. After hosts start checking in, we start only allowing specify host ips. For the volume building, we can't predict (AFAICT) which ports will be used until after the volume is started, so we initially allow all ports inbound, until the fact gets the data from the started volume and uses those specific ports. This naturally takes multiple puppet runs to complete.
* Updated xml parser with new features...James Shubin2013-09-181-1/+1
|
* Remove unnecessary folder creation.James Shubin2013-09-081-11/+13
| | | | | | | | | | Gluster creates this folder on volume creation. Whether this is new in version 3.4 or not is unknown. If any of the hosts have this folder prior to volume creation, then volume creation will fail. It is not sure if this is needed when normal bricks on separate file systems are being used. If someone wants to donate some hardware, I'm happy to test this.
* Add proper ping/status checks before volume creation.James Shubin2013-09-071-1/+40
| | | | | | | | | | | | This adds proper (optional) ping checks with fping and gluster peer status checks to ensure the peer are available before a volume create command. This required rewriting of the xml.py hack which helps puppet interface with the xml formatted gluster cli output. In addition, downstream commands such as volume::property gained checks to ensure the volume was present beforehand. While it is not obvious, it should be noted that because of the distributed nature of glusterfs, more than one puppet run will be required for complete deployment. With these patches, individual runs shouldn't ever end in temporary error as they used too.
* Small bugfixes.James Shubin2013-09-061-0/+1
|
* I was bored, so I updated all the numbers!James Shubin2013-06-041-1/+1
|
* Small nitpicksJames Shubin2013-01-101-1/+1
|
* Cluster VIP management.James Shubin2012-08-231-35/+47
|
* Sadly, I could not read my own code, so I had to revert back to tabs. Sorry ↵James Shubin2012-07-271-81/+82
| | | | bodepd!
* Whitespace cleanup.James Shubin2012-07-271-9/+9
|
* Change tabs to spaces as per bodepd's insistence :)James Shubin2012-07-261-90/+90
|
* Initial commit. puppet-gluster, welcome to git.James Shubin2012-07-241-0/+111