Define local gerrit replication and cronjob only once
We are moving this functionality to puppet module, so in order to avoid errors, define only these settings here if needed. Change-Id: Ie21642c75ec5f3ccd21528c094ff4d34970e5564
This commit is contained in:
parent
9e6c0df803
commit
fa4d54931e
@ -399,6 +399,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',
|
||||
@ -413,6 +414,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