From 54d1473b72751e03abd6ea5c9539278c87e64946 Mon Sep 17 00:00:00 2001 From: Justin Sherrill Date: Wed, 13 Apr 2016 12:05:32 -0400 Subject: [PATCH] Fixes #14617 - communicate with candlepin over fqdn --- manifests/params.pp | 2 +- spec/classes/katello_config_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/params.pp b/manifests/params.pp index 3c3c7478..f54ced2d 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -57,7 +57,7 @@ $post_sync_token = cache_data('foreman_cache_data', 'post_sync_token', random_password(32)) # Subsystems settings - $candlepin_url = 'https://localhost:8443/candlepin' + $candlepin_url = "https://${::fqdn}:8443/candlepin" $pulp_url = "https://${::fqdn}/pulp/api/v2/" $mongodb_path = '/var/lib/mongodb' diff --git a/spec/classes/katello_config_spec.rb b/spec/classes/katello_config_spec.rb index 61b70f6c..4d441ef8 100644 --- a/spec/classes/katello_config_spec.rb +++ b/spec/classes/katello_config_spec.rb @@ -37,7 +37,7 @@ ' :rest_client_timeout: 120', ' :post_sync_url: https://host.example.org/katello/api/v2/repositories/sync_complete?token=test_token', ' :candlepin:', - ' :url: https://localhost:8443/candlepin', + ' :url: https://host.example.org:8443/candlepin', ' :oauth_key: katello', ' :oauth_secret: secret', ' :pulp:', @@ -75,7 +75,7 @@ ' :rest_client_timeout: 120', ' :post_sync_url: https://host.example.org/katello/api/v2/repositories/sync_complete?token=test_token', ' :candlepin:', - ' :url: https://localhost:8443/candlepin', + ' :url: https://host.example.org:8443/candlepin', ' :oauth_key: katello', ' :oauth_secret: secret', ' :pulp:',