Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #13200 - Ensure that the capsule installer sets up a standart p… #76

Merged
merged 1 commit into from
Mar 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
}

class { '::certs::qpid': } ~>
class { '::certs::qpid_client': } ~>
class { '::qpid':
ssl => true,
ssl_cert_db => $::certs::nss_db_dir,
Expand All @@ -183,30 +184,18 @@
broker_url => "qpid://${qpid_router_broker_addr}:${qpid_router_broker_port}",
broker_use_ssl => true,
manage_broker => false,
manage_httpd => false,
manage_httpd => true,
manage_plugins_httpd => true,
manage_squid => true,
repo_auth => true,
node_oauth_effective_user => $pulp_oauth_effective_user,
node_oauth_key => $pulp_oauth_key,
node_oauth_secret => $pulp_oauth_secret,
node_server_ca_cert => $certs::params::pulp_server_ca_cert,
} ~>
class { '::pulp::child':
parent_fqdn => $parent_fqdn,
oauth_effective_user => $pulp_oauth_effective_user,
oauth_key => $pulp_oauth_key,
oauth_secret => $pulp_oauth_secret,
server_ca_cert => $certs::params::pulp_server_ca_cert,
}

pulp::child::fragment{'gpg_key_proxy':
ssl_content => template('capsule/_pulp_child_gpg_proxy.erb'),
}

class { '::certs::pulp_child':
hostname => $capsule_fqdn,
notify => [ Class['pulp'], Class['pulp::child'] ],
pulp::apache::fragment{'gpg_key_proxy':
ssl_content => template('capsule/_pulp_gpg_proxy.erb'),
}
}

Expand Down Expand Up @@ -243,7 +232,6 @@

if $pulp {
Certs::Tar_extract[$certs_tar] -> Class['certs'] -> Class['::certs::qpid']
Certs::Tar_extract[$certs_tar] -> Class['certs::pulp_child']
}

if $puppet {
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
{
"name": "katello-pulp",
"version_requirement": ">= 3.1.0 < 4.0.0"
"version_requirement": ">= 3.2.0 < 4.0.0"
},
{
"name": "katello-qpid",
Expand All @@ -50,7 +50,7 @@
},
{
"name": "katello-certs",
"version_requirement": ">= 0.1.0 < 1.0.0"
"version_requirement": ">= 0.5.0 < 1.0.0"
}
],
"requirements": [
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/capsule_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class {'apache': apache_version => '2.4'}"
it { should contain_class('crane').with( {'key' => '/etc/pki/katello/private/katello-apache.key',
'cert' => '/etc/pki/katello/certs/katello-apache.crt'} ) }

it { should contain_pulp__child__fragment('gpg_key_proxy').with({
it { should contain_pulp__apache__fragment('gpg_key_proxy').with({
:ssl_content => %r{ProxyPass /katello/api/repositories/}} ) }
end

Expand Down
File renamed without changes.