From bcafe34cfb5ac463e5da070953ca01ed37c1d09b Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Wed, 8 Jan 2014 12:07:10 +0800 Subject: [PATCH] Have Zuul replicate to git.o.o Change-Id: I750e8ea75181dacb10275a38fa702ed1edb56d4c --- manifests/init.pp | 3 ++- templates/zuul.conf.erb | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index 0a31f10..8f3c9d8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -32,7 +32,8 @@ class zuul ( $push_change_refs = false, $job_name_in_report = false, $revision = 'master', - $statsd_host = '' + $statsd_host = '', + $replication_targets = [] ) { include apache include pip diff --git a/templates/zuul.conf.erb b/templates/zuul.conf.erb index 7302201..ddcc364 100644 --- a/templates/zuul.conf.erb +++ b/templates/zuul.conf.erb @@ -20,3 +20,9 @@ url_pattern=<%= url_pattern %> status_url=<%= status_url %> job_name_in_report=<%= job_name_in_report %> zuul_url=<%= zuul_url %> + +<% if replication_targets != [] -%> +[replication] +<% replication_targets.each do |target| -%> +<%= target['name'] %>=<%= target['url'] %> +<% end -%>