From 451530b0b161d41ab09f10333f3e849c82cda70d Mon Sep 17 00:00:00 2001 From: Sean O'Keeffe Date: Thu, 7 Sep 2017 12:48:12 +0100 Subject: [PATCH] Fixes #20857 - override post_sync_url (#211) --- manifests/application.pp | 3 ++- templates/katello.yaml.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/manifests/application.pp b/manifests/application.pp index c12fda4b..7e20daac 100644 --- a/manifests/application.pp +++ b/manifests/application.pp @@ -17,11 +17,13 @@ Optional[String] $proxy_username = $::katello::proxy_username, Optional[String] $proxy_password = $::katello::proxy_password, ) { + include ::foreman include ::certs include ::certs::apache include ::certs::foreman include ::certs::pulp_client + $post_sync_url = "${::foreman::foreman_url}${deployment_url}/api/v2/repositories/sync_complete?token=${post_sync_token}" $candlepin_ca_cert = $::certs::ca_cert $pulp_ca_cert = $::certs::katello_server_ca_cert @@ -45,7 +47,6 @@ mode => '0644', } - include ::foreman include ::foreman::plugin::tasks Class['certs', 'certs::ca', 'certs::apache'] ~> Class['apache::service'] diff --git a/templates/katello.yaml.erb b/templates/katello.yaml.erb index 46a21d81..d8813412 100644 --- a/templates/katello.yaml.erb +++ b/templates/katello.yaml.erb @@ -7,7 +7,7 @@ <%- end -%> :rest_client_timeout: 3600 - :post_sync_url: https://<%= @fqdn %><%= @deployment_url %>/api/v2/repositories/sync_complete?token=<%= @post_sync_token %> + :post_sync_url: <%= @post_sync_url %> :candlepin: :url: <%= @candlepin_url %>