# This file is managed by puppet.
# https://git.openstack.org/cgit/openstack-infra/system-config

[gerrit]
defaultForceUpdate = <%= @replication_force_update %>

<% @replication.each do |replication| -%>
[remote "<%= replication['name'] %>"]
	url = <%= replication['url'] %>${name}.git
<% if replication['replicationDelay'] != nil -%>
	replicationDelay = <%= replication['replicationDelay'] %>
<% end -%>
<% if replication['threads'] != nil -%>
	threads = <%= replication['threads'] %>
<% end -%>
<% if replication['authGroup'] != nil -%>
	authGroup = <%= replication['authGroup'] %>
<% end -%>
<% if replication['replicatePermissions'] != nil -%>
	replicatePermissions = <%= replication['replicatePermissions'] %>
<% end -%>
<% if replication['mirror'] != nil -%>
	mirror = <%= replication['mirror'] %>
<% end -%>
<% end -%>

# This file is managed by puppet.
# https://git.openstack.org/cgit/openstack-infra/system-config

[gerrit]
defaultForceUpdate = <%= @replication_force_update %>

<% @replication.each do |replication| -%>
[remote "<%= replication['name'] %>"]
	url = <%= replication['url'] %>${name}.git
<% if replication['replicationDelay'] != nil -%>
	replicationDelay = <%= replication['replicationDelay'] %>
<% end -%>
<% if replication['threads'] != nil -%>
	threads = <%= replication['threads'] %>
<% end -%>
<% if replication['authGroup'] != nil -%>
	authGroup = <%= replication['authGroup'] %>
<% end -%>
<% if replication['replicatePermissions'] != nil -%>
	replicatePermissions = <%= replication['replicatePermissions'] %>
<% end -%>
<% if replication['mirror'] != nil -%>
	mirror = <%= replication['mirror'] %>
<% end -%>
<% if replication['projects'] != nil -%>
<% replication['projects'].each do |project| -%>
	projects = <%= project %>
<% end -%>
<% end -%>
<% end -%>

Add support for 'projects' keyword
Add support for 'projects' keyword

To replicate only specific projects, the 'projects' keyword can be used
(multiple times if needed) in each remote section of the
replication.config.

Change-Id: I0f66120a7c9c8f849c03c87e621ae1c46a343297
Co-Authored-By: Spencer Krum <9f0bf2adee05513e15363471857cce616f4c4b2c@spencerkrum.com>
