Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CentOS 7.0. #21

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions data/tree/RedHat/CentOS/7.0.1406.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
gluster::params::misc_gluster_reload: '/usr/bin/systemctl reload glusterd'
gluster::params::package_python_argparse: '' # doesn't exist
gluster::params::program_modprobe: '/usr/sbin/modprobe'
gluster::params::program_lsmod: '/usr/sbin/lsmod'
gluster::params::program_parted: '/usr/sbin/parted'
gluster::params::program_pvcreate: '/usr/sbin/pvcreate'
gluster::params::program_vgcreate: '/usr/sbin/vgcreate'
gluster::params::program_lvcreate: '/usr/sbin/lvcreate'
gluster::params::program_vgs: '/usr/sbin/vgs'
gluster::params::program_lvs: '/usr/sbin/lvs'
gluster::params::program_pvdisplay: '/usr/sbin/pvdisplay'
gluster::params::program_vgdisplay: '/usr/sbin/vgdisplay'
gluster::params::program_mkfs_xfs: '/usr/sbin/mkfs.xfs'
gluster::params::program_mkfs_ext4: '/usr/sbin/mkfs.ext4'
gluster::params::program_mkfs_btrfs: '/usr/sbin/mkfs.btrfs'
gluster::params::program_findmnt: '/usr/bin/findmnt'
gluster::params::repo_operatingsystemrelease: '7'

# vim: ts=8
5 changes: 4 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@
$misc_gluster_repo = 'https://download.gluster.org/pub/gluster/glusterfs/',

# comment...
$comment = ''
$comment = '',

# the operatingsystemrelease string used in the repository URL.
$repo_operatingsystemrelease = "${operatingsystemrelease}",
) {
if "${comment}" == '' {
warning('Unable to load yaml data/ directory!')
Expand Down
4 changes: 2 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
fail("Architecture: '${architecture}' not yet supported.")
}

$base_arch = "${base_os}epel-${operatingsystemrelease}/"
$base_arch = "${base_os}epel-${::gluster::params::repo_operatingsystemrelease}/"

$gpgkey = "${base_os}pub.key"

Expand All @@ -103,7 +103,7 @@
enabled => true,
gpgcheck => true,
# XXX: this should not be an https:// link, it should be a file
gpgkeys => ["${gpgkey}"],
gpgkeys => "${gpgkey}",
ensure => present,
}

Expand Down