|
1 | | -# == Class: Gluster |
| 1 | +# @summary Installs GlusterFS and optionally creates a trusted storage pool |
2 | 2 | # |
3 | | -# Installs GlusterFS and optionally creates a trusted storage pool |
| 3 | +# @param client |
| 4 | +# whether to install the Gluster client package(s) |
| 5 | +# @param pool |
| 6 | +# the name of the trusted storage pool to create |
| 7 | +# @param repo |
| 8 | +# whether to install and manage the upstream Gluster repo |
| 9 | +# @param server |
| 10 | +# whether to the install the Gluster server packages |
| 11 | +# @param use_exported_resources |
| 12 | +# whether or not to export this server's gluster::server and collect other |
| 13 | +# gluster::server resources |
| 14 | +# @param version |
| 15 | +# the version to install |
| 16 | +# @param volumes |
| 17 | +# optional list of volumes (and their properties) to create |
4 | 18 | # |
5 | | -# === Parameters |
6 | | -# |
7 | | -# client: whether to install the Gluster client package(s) |
8 | | -# pool: the name of the trusted storage pool to create |
9 | | -# repo: whether to install and manage the upstream Gluster repo |
10 | | -# server: whether to the install the Gluster server packages |
11 | | -# use_exported_resources: whether or not to export this server's gluster::server and |
12 | | -# collect other gluster::server resources |
13 | | -# version: the version to install |
14 | | -# volumes: optional list of volumes (and their properties) to create |
15 | | -# |
16 | | -# === Example |
17 | | -# |
18 | | -# class { ::gluster: |
19 | | -# client => false, |
20 | | -# server => true, |
21 | | -# pool => 'production', |
22 | | -# use_exported_resources => true, |
23 | | -# version => '3.5', |
24 | | -# volumes => { 'data1' => { |
25 | | -# replica => 2, |
26 | | -# bricks => [ 'srv1.local:/export/brick1/brick', |
27 | | -# 'srv2.local:/export/brick1/brick', |
28 | | -# 'srv3.local:/export/brick1/brick', |
29 | | -# 'srv4.local:/export/brick1/brick', ], |
30 | | -# options => [ 'server.allow-insecure: on', |
31 | | -# 'nfs.disable: true', ], |
| 19 | +# @example |
| 20 | +# class { ::gluster: |
| 21 | +# client => false, |
| 22 | +# server => true, |
| 23 | +# pool => 'production', |
| 24 | +# use_exported_resources => true, |
| 25 | +# version => '3.5', |
| 26 | +# volumes => { 'data1' => { |
| 27 | +# replica => 2, |
| 28 | +# bricks => [ 'srv1.local:/export/brick1/brick', |
| 29 | +# 'srv2.local:/export/brick1/brick', |
| 30 | +# 'srv3.local:/export/brick1/brick', |
| 31 | +# 'srv4.local:/export/brick1/brick', ], |
| 32 | +# options => [ 'server.allow-insecure: on', |
| 33 | +# 'nfs.disable: true', ], |
| 34 | +# }, |
32 | 35 | # }, |
33 | | -# }, |
34 | | -# } |
35 | | -# |
36 | | -# === Authors |
37 | | -# |
38 | | -# Scott Merrill <[email protected]> |
39 | | -# |
40 | | -# === Copyright |
| 36 | +# } |
41 | 37 | # |
42 | | -# Copyright 2014 CoverMyMeds, unless otherwise noted |
| 38 | +# @author Scott Merrill <[email protected]> |
| 39 | +# @note Copyright 2014 CoverMyMeds, unless otherwise noted |
43 | 40 | # |
44 | 41 | class gluster ( |
45 | | - $client = $gluster::params::install_client, |
| 42 | + Boolean $client = $gluster::params::install_client, |
46 | 43 | $client_package = $gluster::params::client_package, |
47 | 44 | $pool = $gluster::params::pool, |
48 | 45 | $repo = $gluster::params::repo, |
|
0 commit comments