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:
parent
f0017ec40a
commit
a3240a7c5a
|
@ -15,7 +15,7 @@
|
||||||
# == Define: bugdaystats
|
# == Define: bugdaystats
|
||||||
#
|
#
|
||||||
define bugdaystats::site(
|
define bugdaystats::site(
|
||||||
$git_url = '',
|
$git_url = 'https://git.openstack.org/openstack-infra/bugdaystats',
|
||||||
$configfile = '',
|
$configfile = '',
|
||||||
$httproot = '',
|
$httproot = '',
|
||||||
$serveradmin = ''
|
$serveradmin = ''
|
||||||
|
@ -36,7 +36,7 @@ define bugdaystats::site(
|
||||||
vcsrepo { '/var/lib/bugdaystats/bugdaystats':
|
vcsrepo { '/var/lib/bugdaystats/bugdaystats':
|
||||||
ensure => latest,
|
ensure => latest,
|
||||||
provider => git,
|
provider => git,
|
||||||
source => 'https://git.openstack.org/openstack-infra/bugdaystats',
|
source => $git_url,
|
||||||
revision => 'master',
|
revision => 'master',
|
||||||
require => File['/var/lib/bugdaystats'],
|
require => File['/var/lib/bugdaystats'],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue