Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Pull the repo base directly from the centralized params.pp file.
Browse files Browse the repository at this point in the history
  • Loading branch information
purpleidea committed May 8, 2014
1 parent 2c0d467 commit 9280d58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/tree/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# gluster/data/tree/RedHat.yaml
---
gluster::repo::base: 'https://download.gluster.org/pub/gluster/glusterfs/'
gluster::params::misc_gluster_repo: 'https://download.gluster.org/pub/gluster/glusterfs/'

# vim: ts=8
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

# misc...
$misc_gluster_reload = '/sbin/service glusterd reload',
$misc_gluster_repo = 'https://download.gluster.org/pub/gluster/glusterfs/',

# comment...
$comment = ''
Expand Down
4 changes: 3 additions & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
# if you leave this blank, we assume you want the latest version...
$version = ''
) {
$base = hiera('gluster::repo::base') # eg: 'https://download.gluster.org/pub/gluster/glusterfs/'
include gluster::params

$base = "${::gluster::params::misc_gluster_repo}"

if "${version}" == '' {
# latest
Expand Down

0 comments on commit 9280d58

Please sign in to comment.