Skip to content

Commit

Permalink
Add client_authentication parameter to plugin::pulp
Browse files Browse the repository at this point in the history
The client_authentication parameter controls the available types
of client authentication supported by the Pulp installation.
  • Loading branch information
ehelms committed Jun 18, 2021
1 parent 2f5f2f0 commit e4f23a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions manifests/plugin/pulp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,16 @@
#
# $pulpcore_content_url:: The URL to the Pulp 3 content
#
# $client_authentication:: An array of client authentication types supported by the Pulp installation.
#
class foreman_proxy::plugin::pulp (
Foreman_proxy::ListenOn $listen_on = 'https',
Boolean $pulpcore_enabled = true,
Boolean $pulpcore_mirror = false,
Stdlib::HTTPUrl $pulpcore_api_url = $foreman_proxy::plugin::pulp::params::pulpcore_api_url,
Stdlib::HTTPUrl $pulpcore_content_url = $foreman_proxy::plugin::pulp::params::pulpcore_content_url,
Optional[String] $version = undef,
Boolean $client_authentication = ['client_certificate'],
) inherits foreman_proxy::plugin::pulp::params {

foreman_proxy::plugin {'pulp':
Expand Down
7 changes: 5 additions & 2 deletions spec/classes/foreman_proxy__plugin__pulp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
':enabled: https',
":pulp_url: https://#{facts[:fqdn]}",
":content_app_url: https://#{facts[:fqdn]}/pulp/content",
':mirror: false'
':mirror: false',
':certificate_common_name_auth: true',
])
end

Expand All @@ -49,6 +50,7 @@
pulpcore_mirror: true,
pulpcore_api_url: 'https://pulpcore.example.com',
pulpcore_content_url: 'https://pulpcore.example.com/pulp/content',
certificate_common_name_auth: false,
}
end

Expand All @@ -61,7 +63,8 @@
':enabled: https',
':pulp_url: https://pulpcore.example.com',
":content_app_url: https://pulpcore.example.com/pulp/content",
':mirror: true'
':mirror: true',
':certificate_common_name_auth: false',
])
end
end
Expand Down
1 change: 1 addition & 0 deletions templates/plugin/pulpcore.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
:pulp_url: <%= scope.lookupvar("foreman_proxy::plugin::pulp::pulpcore_api_url") %>
:content_app_url: <%= scope.lookupvar("foreman_proxy::plugin::pulp::pulpcore_content_url") %>
:mirror: <%= scope.lookupvar("foreman_proxy::plugin::pulp::pulpcore_mirror") %>
:certificate_common_name_auth: <%= scope.lookupvar("foreman_proxy::plugin::pulp::certificate_common_name_auth") %>

0 comments on commit e4f23a5

Please sign in to comment.