diff --git a/manifests/init.pp b/manifests/init.pp index 0f6f8ce..4027ca7 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -256,7 +256,7 @@ } class { 'foreman_proxy::plugin::container_gateway': - pulp_endpoint => "https://${servername}", + pulp_endpoint => "https://${client_facing_servername}", } } } else { diff --git a/spec/classes/foreman_proxy_content_spec.rb b/spec/classes/foreman_proxy_content_spec.rb index 2ff1d7a..2a1a8a7 100644 --- a/spec/classes/foreman_proxy_content_spec.rb +++ b/spec/classes/foreman_proxy_content_spec.rb @@ -244,6 +244,11 @@ class { 'certs': is_expected.to contain_class('foreman_proxy::plugin::pulp') .with_pulpcore_content_url("https://loadbalancer.example.com/pulp/content") end + + it do + is_expected.to contain_class('foreman_proxy::plugin::container_gateway') + .with_pulp_endpoint("https://loadbalancer.example.com") + end end describe 'should throw an error if cname and registration_url do not match' do