Merge "Define local gerrit replication and cronjob only once"
This commit is contained in:
commit
203a2c0be9
@ -398,6 +398,7 @@ class openstack_project::gerrit (
|
||||
|
||||
if ($projects_file != 'UNDEF') {
|
||||
if ($replicate_local) {
|
||||
if (!defined(File[$local_git_dir])) {
|
||||
file { $local_git_dir:
|
||||
ensure => directory,
|
||||
owner => 'gerrit2',
|
||||
@ -412,6 +413,7 @@ class openstack_project::gerrit (
|
||||
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
file { '/home/gerrit2/projects.yaml':
|
||||
ensure => present,
|
||||
|
Loading…
x
Reference in New Issue
Block a user