Permalink
Please sign in to comment.
Browse files
Pull operating system specific data from yaml files.
This patch includes package names.
- Loading branch information...
Showing
with
143 additions
and 20 deletions.
- +3 −0 .gitmodules
- +1 −0 README
- +5 −0 data/common.yaml
- +9 −0 data/hiera.yaml
- +4 −0 data/tree/Debian.yaml
- +4 −0 data/tree/Debian/Debian.yaml
- +4 −0 data/tree/Debian/Debian/7.4.yaml
- +4 −0 data/tree/Debian/Ubuntu.yaml
- +4 −0 data/tree/Debian/Ubuntu/12.04.yaml
- +5 −0 data/tree/RedHat.yaml
- +4 −0 data/tree/RedHat/CentOS.yaml
- +4 −0 data/tree/RedHat/CentOS/6.5.yaml
- +4 −0 data/tree/RedHat/Fedora.yaml
- +4 −0 data/tree/RedHat/Fedora/20.yaml
- +3 −1 manifests/api.pp
- +3 −2 manifests/brick.pp
- +4 −1 manifests/brick/ext4.pp
- +4 −1 manifests/brick/xfs.pp
- +2 −1 manifests/host.pp
- +6 −1 manifests/mount.pp
- +4 −2 manifests/mount/base.pp
- +38 −0 manifests/params.pp
- +1 −1 manifests/repo.pp
- +5 −4 manifests/server.pp
- +2 −1 manifests/volume.pp
- +4 −1 manifests/volume/ping.pp
- +6 −4 manifests/xml.pp
- +1 −0 vagrant/gluster/puppet/modules/Makefile
- +1 −0 vagrant/gluster/puppet/modules/module-data
| @@ -0,0 +1,5 @@ | ||
| +# gluster/data/common.yaml | ||
| +--- | ||
| +gluster::params::comment: 'Hello from @purpleidea!' # do not erase! | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,9 @@ | ||
| +# gluster/data/hiera.yaml | ||
| +--- | ||
| +:hierarchy: | ||
| +- tree/%{::osfamily}/%{::operatingsystem}/%{::operatingsystemrelease} | ||
| +- tree/%{::osfamily}/%{::operatingsystem} | ||
| +- tree/%{::osfamily} | ||
| +- common | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/Debian.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/Debian/Debian.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/Debian/Debian/7.4.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/Debian/Ubuntu.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/Debian/Ubuntu/12.04.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,5 @@ | ||
| +# gluster/data/tree/RedHat.yaml | ||
| +--- | ||
| +gluster::repo::base: 'https://download.gluster.org/pub/gluster/glusterfs/' | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/RedHat/CentOS.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/RedHat/CentOS/6.5.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/RedHat/Fedora.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,4 @@ | ||
| +# gluster/data/tree/RedHat/Fedora/20.yaml | ||
| +--- | ||
| + | ||
| +# vim: ts=8 |
| @@ -0,0 +1,38 @@ | ||
| +# GlusterFS module by James | ||
| +# Copyright (C) 2010-2013+ James Shubin | ||
| +# Written by James Shubin <james@shubin.ca> | ||
| +# | ||
| +# This program is free software: you can redistribute it and/or modify | ||
| +# it under the terms of the GNU Affero General Public License as published by | ||
| +# the Free Software Foundation, either version 3 of the License, or | ||
| +# (at your option) any later version. | ||
| +# | ||
| +# This program is distributed in the hope that it will be useful, | ||
| +# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| +# GNU Affero General Public License for more details. | ||
| +# | ||
| +# You should have received a copy of the GNU Affero General Public License | ||
| +# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| + | ||
| +class gluster::params( | ||
| + $package_glusterfs = 'glusterfs', | ||
| + $package_glusterfs_fuse = 'glusterfs-fuse', | ||
| + $package_glusterfs_server = 'glusterfs-server', | ||
| + $package_glusterfs_api = 'glusterfs-api', | ||
| + | ||
| + $package_e2fsprogs = 'e2fsprogs', | ||
| + $package_xfsprogs = 'xfsprogs', | ||
| + | ||
| + $package_python_argparse = 'python-argparse', | ||
| + $package_python_lxml = 'python-lxml', | ||
| + $package_fping = 'fping', | ||
| + | ||
| + $comment = '' | ||
| +) { | ||
| + if "${comment}" == '' { | ||
| + warning('Unable to load yaml data/ directory!') | ||
| + } | ||
| + | ||
| +} | ||
| +# vim: ts=8 |
Submodule module-data
added at
4b3ad1
0 comments on commit
32fdb61