Make git_url parameter useful

Without this patch, the source repository for the bugdaystats vcsrepo
is hard-coded and the $bugdaystats::site::git_url parameter is unused.
This patch adds the flexibility that was presumably intended by that
parameter originally.

An alternative to this patch is to remove the parameter completely,
since users are not likely to use this module with another repo. This
would require a patch to system-config and would break other users
currently trying to use this parameter (even though it doesn't do
anything).

Change-Id: If5e547c9270a05359a1bacbfe5dfbe4ec28ed383
This commit is contained in:
Colleen Murphy 2015-07-14 19:37:45 -07:00
parent f0017ec40a
commit a3240a7c5a
1 changed files with 6 additions and 6 deletions

View File

@ -15,7 +15,7 @@
# == Define: bugdaystats
#
define bugdaystats::site(
$git_url = '',
$git_url = 'https://git.openstack.org/openstack-infra/bugdaystats',
$configfile = '',
$httproot = '',
$serveradmin = ''
@ -27,16 +27,16 @@ define bugdaystats::site(
}
file { $httproot:
ensure => directory,
owner => 'bugdaystats',
group => 'bugdaystats',
mode => '0755',
ensure => directory,
owner => 'bugdaystats',
group => 'bugdaystats',
mode => '0755',
}
vcsrepo { '/var/lib/bugdaystats/bugdaystats':
ensure => latest,
provider => git,
source => 'https://git.openstack.org/openstack-infra/bugdaystats',
source => $git_url,
revision => 'master',
require => File['/var/lib/bugdaystats'],
}