Skip to content

Commit

Permalink
Merge pull request #76 from johnpmitsch/installer_changes
Browse files Browse the repository at this point in the history
Fixes #13200 - Ensure that the capsule installer sets up a standart p…
  • Loading branch information
ehelms committed Mar 16, 2016
2 parents 5dbbd20 + 233e31a commit 1d0fe89
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
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.

0 comments on commit 1d0fe89

Please sign in to comment.