Skip to content

Commit

Permalink
Use Stdlib::HTTPUrl to support setting a proxy protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
laugmanuel authored and ekohl committed Dec 20, 2019
1 parent ac38043 commit 37104d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifests/application.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class katello::application (
Integer[0] $rest_client_timeout = 3600,
Optional[Enum['SSLv23', 'TLSv1', '']] $cdn_ssl_version = undef,
Optional[Stdlib::Host] $proxy_host = undef,
Optional[Stdlib::HTTPUrl] $proxy_host = undef,
Optional[Stdlib::Port] $proxy_port = undef,
Optional[String] $proxy_username = undef,
Optional[String] $proxy_password = undef,
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
Stdlib::Host $qpid_hostname = 'localhost',
Optional[Integer[1]] $num_pulp_workers = undef,
Integer[0] $pulp_worker_timeout = 60,
Optional[Stdlib::Host] $proxy_url = undef,
Optional[Stdlib::HTTPUrl] $proxy_url = undef,
Optional[Stdlib::Port] $proxy_port = undef,
Optional[String] $proxy_username = undef,
Optional[String] $proxy_password = undef,
Expand Down
4 changes: 2 additions & 2 deletions spec/classes/application_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class { 'katello::params':
{
rest_client_timeout: 4000,
cdn_ssl_version: 'TLSv1',
proxy_host: 'myproxy.example.org',
proxy_host: 'http://myproxy.example.org',
proxy_port: 8888,
proxy_username: 'admin',
proxy_password: 'secret_password',
Expand Down Expand Up @@ -131,7 +131,7 @@ class { 'katello::params':
' :crane_url: https://foo.example.com:5000',
' :crane_ca_cert_file: /etc/pki/katello/certs/katello-server-ca.crt',
' :cdn_proxy:',
' :host: myproxy.example.org',
' :host: http://myproxy.example.org',
' :port: 8888',
' :user: "admin"',
' :password: "secret_password"',
Expand Down

0 comments on commit 37104d7

Please sign in to comment.