Merge "Define local gerrit replication and cronjob only once"

This commit is contained in:
Jenkins 2015-10-21 08:24:55 +00:00 committed by Gerrit Code Review
commit 203a2c0be9

View File

@ -398,6 +398,7 @@ class openstack_project::gerrit (
if ($projects_file != 'UNDEF') { if ($projects_file != 'UNDEF') {
if ($replicate_local) { if ($replicate_local) {
if (!defined(File[$local_git_dir])) {
file { $local_git_dir: file { $local_git_dir:
ensure => directory, ensure => directory,
owner => 'gerrit2', owner => 'gerrit2',
@ -412,6 +413,7 @@ class openstack_project::gerrit (
environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin', environment => 'PATH=/usr/bin:/bin:/usr/sbin:/sbin',
} }
} }
}
file { '/home/gerrit2/projects.yaml': file { '/home/gerrit2/projects.yaml':
ensure => present, ensure => present,