Skip to content

Commit

Permalink
Merge pull request #78 from johnpmitsch/pulp_parent_removal
Browse files Browse the repository at this point in the history
Fixes #14188 - change pulp_parent to qpid_client class
  • Loading branch information
ehelms committed Mar 16, 2016
2 parents a28bcf1 + e55f49b commit 65bb6c9
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 140 deletions.
4 changes: 2 additions & 2 deletions manifests/capsule.pp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
class { '::certs::apache': hostname => $capsule_fqdn }
class { '::certs::qpid': hostname => $capsule_fqdn }
class { '::certs::qpid_router': hostname => $capsule_fqdn }
class { '::certs::pulp_child': hostname => $capsule_fqdn }
class { '::certs::qpid_client': hostname => $capsule_fqdn }

if $certs_tar {
certs::tar_create { $certs_tar:
Expand All @@ -36,7 +36,7 @@
Class['certs::qpid'],
Class['certs::qpid_router'],
Class['certs::apache'],
Class['certs::pulp_child']],
Class['certs::qpid_client']],
}
}
}
60 changes: 0 additions & 60 deletions manifests/pulp_child.pp

This file was deleted.

78 changes: 0 additions & 78 deletions manifests/pulp_parent.pp

This file was deleted.

44 changes: 44 additions & 0 deletions manifests/qpid_client.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Pulp Master Certs configuration
class certs::qpid_client (

$hostname = $::certs::node_fqdn,
$generate = $::certs::generate,
$regenerate = $::certs::regenerate,
$deploy = $::certs::deploy,

$messaging_client_cert = $certs::params::messaging_client_cert

) {

cert { "${hostname}-qpid-client-cert":
hostname => $hostname,
common_name => 'pulp-qpid-client-cert',
purpose => client,
country => $::certs::country,
state => $::certs::state,
city => $::certs::city,
org => 'PULP',
org_unit => $::certs::org_unit,
expiration => $::certs::expiration,
ca => $::certs::default_ca,
generate => $generate,
regenerate => $regenerate,
deploy => $deploy,
password_file => $certs::ca_key_password_file,
}

if $deploy {

Cert["${hostname}-qpid-client-cert"] ~>
key_bundle { $messaging_client_cert:
key_pair => Cert["${hostname}-qpid-client-cert"],
} ~>
file { $messaging_client_cert:
owner => 'apache',
group => 'apache',
mode => '0640',
}

}

}

0 comments on commit 65bb6c9

Please sign in to comment.