Skip to content

Commit 08199bd

Browse files
authored
Merge pull request voxpupuli#79 from bastelfreak/badges
Badges
2 parents cf95c69 + 641a2f2 commit 08199bd

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed

README.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
# MOVED TO VOX PUPULI
2-
**This module has been moved to the [Vox Pupuli](https://github.com/voxpupuli/) organization. Please update all bookmarks and Puppetfile references.**
31

4-
Puppet Gluster
5-
==============
2+
# Gluster module for Puppet
63

7-
Table of Contents
8-
-----------------
4+
[![Build Status](https://travis-ci.org/voxpupuli/puppet-gluster.png?branch=master)](https://travis-ci.org/voxpupuli/puppet-gluster)
5+
[![Code Coverage](https://coveralls.io/repos/github/voxpupuli/puppet-gluster/badge.svg?branch=master)](https://coveralls.io/github/voxpupuli/puppet-gluster)
6+
[![Puppet Forge](https://img.shields.io/puppetforge/v/puppet/gluster.svg)](https://forge.puppetlabs.com/puppet/gluster)
7+
[![Puppet Forge - downloads](https://img.shields.io/puppetforge/dt/puppet/gluster.svg)](https://forge.puppetlabs.com/puppet/gluster)
8+
[![Puppet Forge - endorsement](https://img.shields.io/puppetforge/e/puppet/gluster.svg)](https://forge.puppetlabs.com/puppet/gluster)
9+
[![Puppet Forge - scores](https://img.shields.io/puppetforge/f/puppet/gluster.svg)](https://forge.puppetlabs.com/puppet/gluster)
10+
11+
## Moved to Vox Pupuli
12+
This module has been moved to the [Vox Pupuli](https://github.com/voxpupuli/) organization. Please update all bookmarks and Puppetfile references.
13+
14+
## Table of Contents
915

1016
1. [Overview](#overview)
1117
2. [Custom Facts](#custom-facts)
@@ -15,15 +21,13 @@ Table of Contents
1521
6. [Contributing](#contributing)
1622
7. [Copyright](#copyright)
1723

18-
Overview
19-
--------
24+
## Overview
2025

2126
This module installs and configures servers to participate in a [Gluster](http://www.gluster.org/) Trusted Storage Pool, create or modify one or more Gluster volumes, and mount Gluster volumes.
2227

2328
Also provided with this module are a number of custom Gluster-related facts.
2429

25-
Custom Facts
26-
------------
30+
## Custom Facts
2731

2832
* `gluster_binary`: the full pathname of the Gluster CLI command
2933
* `gluster_peer_count`: the number of peers to which this server is connected in the pool.
@@ -35,30 +39,32 @@ Custom Facts
3539

3640
The `gluster_binary` fact will look for an [external fact](http://docs.puppetlabs.com/guides/custom_facts.html#external-facts) named `gluster_custom_binary`. If this fact is defined, `gluster_binary` will use that value. Otherwise the path will be searched until the gluster command is found.
3741

38-
Classes
39-
-------
42+
## Classes
4043

41-
### params.pp ###
44+
### params.pp
4245
This class establishes a number of default values used by the other classes.
4346

4447
You should not need to include or reference this class directly.
4548

46-
### repo.pp ###
49+
### repo.pp
4750
This class enables the GlusterFS repository. Either [Gluster.org](http://download.gluster.org/pub/) for APT or [CentOS](https://wiki.centos.org/SpecialInterestGroup/Storage) managed YUM for EL.
4851

4952
Fedora users can get GlusterFS packages directly from Fedora's repository. Red Hat users with a Gluster Storage subscription should set the appropriate subscription/repo for their OS. Therefore for both Fedora and Red Hat Gluster Storage users, the default upstream community repo should be off:
53+
5054
```puppet
5155
gluster::repo => false
5256
```
5357

5458
For systems using APT, the latest packages of the latest release will be installed by default. Otherwise, specify a version:
59+
5560
```puppet
5661
class { ::gluster::repo:
5762
version => '3.5.2',
5863
}
5964
```
6065

6166
For systems using YUM, the latest package from the 3.8 release branch will be installed. You can specify a specific version and release:
67+
6268
```puppet
6369
class { ::gluster::repo:
6470
release => '3.7',
@@ -76,7 +82,7 @@ Apt: If a `priority` parameter is passed to this class, it will be passed as is
7682

7783
This is [useful](http://blog.gluster.org/2014/11/installing-glusterfs-3-4-x-3-5-x-or-3-6-0-on-rhel-or-centos-6-6-2/) in the event that you want to install a version from the upstream repos that is older than that provided by your distribution's repositories.
7884

79-
### install.pp ###
85+
### install.pp
8086
This class handles the installation of the Gluster packages (both server and client).
8187

8288
If the upstream Gluster repo is enabled (default), this class will install packages from there. Otherwise it will attempt to use native OS packages.
@@ -91,10 +97,10 @@ Currently, RHEL 6, RHEL 7, Debian 8, Raspbian and Ubuntu provide native Gluster
9197
}
9298

9399
Note that on Red Hat (and derivative) systems, the `version` parameter should match the version number used by yum for the RPM package.
94-
Beware that Red Hat provides its own build of the GlusterFS FUSE client on RHEL but its minor version doesn't match the upstream. Therefore if you run a community GlusterFS server, you should try to match the version on your RHEL clients by running the community FUSE client.
100+
Beware that Red Hat provides its own build of the GlusterFS FUSE client on RHEL but its minor version doesn't match the upstream. Therefore if you run a community GlusterFS server, you should try to match the version on your RHEL clients by running the community FUSE client.
95101
On Debian-based systems, only the first two version places are significant ("x.y"). The latest minor version from that release will be installed unless the "priority" parameter is used.
96102

97-
### client.pp ###
103+
### client.pp
98104
This class installs **only** the Gluster client package(s). If you need to install both the server and client, please use the `install.pp` (or `init.pp`) classes.
99105

100106
class { ::gluster::client:
@@ -104,14 +110,14 @@ This class installs **only** the Gluster client package(s). If you need to insta
104110

105111
Use of `gluster::client` is not supported with either `gluster::install` or `gluster::init`.
106112

107-
### service.pp ###
113+
### service.pp
108114
This class manages the `glusterd` service.
109115

110116
class { ::gluster::service:
111117
ensure => running,
112118
}
113119

114-
### init.pp ###
120+
### init.pp
115121
This class implements a basic Gluster server.
116122

117123
In the default configuration, this class exports a `gluster::peer` defined type for itself, and then collects any other exported `gluster::peer` resources for the same pool for instantiation.
@@ -140,10 +146,9 @@ If a `volumes` parameter is passed, the defined Gluster volume(s) can be created
140146
}
141147
}
142148

143-
Resources
144-
-------------
149+
## Resources
145150

146-
### gluster::peer ###
151+
### gluster::peer
147152
This defined type creates a Gluster peering relationship. The name of the resource should be the fully-qualified domain name of a peer to which to connect. An optional `pool` parameter permits you to configure different storage pools built from different hosts.
148153

149154
With the exported resource implementation in `init.pp`, the first server to be defined in the pool will find no peers, and therefore not do anything. The second server to execute this module will collect the first server's exported resource and initiate the `gluster peer probe`, thus creating the storage pool.
@@ -156,7 +161,7 @@ See [this mailing list post](http://supercolony.gluster.org/pipermail/gluster-us
156161
pool => 'production',
157162
}
158163

159-
### gluster::volume ###
164+
### gluster::volume
160165
This defined type creates a Gluster volume. You can specify a stripe count, a replica count, the transport type, a list of bricks to use, and an optional set of volume options to enforce.
161166

162167
Note that creating brick filesystems is up to you. May I recommend the [Puppet Labs LVM module](https://forge.puppetlabs.com/puppetlabs/lvm) ?
@@ -183,7 +188,7 @@ Note that adding or removing options does not (currently) restart the volume.
183188
],
184189
}
185190

186-
### gluster::volume::option ###
191+
### gluster::volume::option
187192
This defined type applies [Gluster options](https://github.com/gluster/glusterfs/blob/master/doc/admin-guide/en-US/markdown/admin_managing_volumes.md#tuning-options) to a volume.
188193

189194
In order to ensure uniqueness across multiple volumes, the title of each `gluster::volume::option` must include the name of the volume to which it applies. The format for these titles is `volume:option_name`:
@@ -198,7 +203,7 @@ To remove an option, set the `ensure` parameter to `absent`:
198203
ensure => absent,
199204
}
200205

201-
### gluster::mount ###
206+
### gluster::mount
202207
This defined type mounts a Gluster volume. Most of the parameters to this defined type match either the gluster FUSE options or the [Puppet mount](http://docs.puppetlabs.com/references/3.4.stable/type.html#mount) options.
203208

204209
gluster::mount { '/gluster/data1':
@@ -210,16 +215,14 @@ This defined type mounts a Gluster volume. Most of the parameters to this defin
210215
pass => 0,
211216
}
212217

213-
Examples
214-
--------
218+
## Examples
219+
215220
Please see the examples directory.
216221

217-
Contributing
218-
------------
222+
## Contributing
219223

220224
Pull requests are warmly welcomed!
221225

222-
Copyright
223-
---------
226+
## Copyright
224227

225228
Copyright 2014 [CoverMyMeds](https://www.covermymeds.com/) and released under the terms of the [MIT License](http://opensource.org/licenses/MIT).

0 commit comments

Comments
 (0)