Skip to content

Instantly share code, notes, and snippets.

View GregSutcliffe's full-sized avatar

Greg "Gwmngilfen" Sutcliffe GregSutcliffe

  • Red Hat
  • Scotland
View GitHub Profile
Original:
class { '::certs::pulp_parent': } ~>
class { 'pulp':
oauth_key => $katello::oauth_key,
oauth_secret => $katello::oauth_secret,
messaging_url => 'ssl://localhost:5671',
before => Exec['foreman-rake-db:seed']
}

Puppet dependency removed

We completed removing the Puppet dependency from Foreman core, so all Puppet usage is in the smart proxy only. This will make it optional for people who don't use Puppet, plus avoid conflicts we've seen when loading Puppet as a library. In addition, if your puppetmaster is not on the same server as Foreman, you no longer need Puppet installed there at all.

To accomplish this, we have changed the way facts and reports are uploaded. Specifically, Foreman itself now uses a JSON format, and the ENC (node.rb) and

file { $certs::params::keystore_password_file:
content => undef,
audit => ['content'],
}
exec { "generate-ssl-keystore":
command => "openssl pkcs12 -export -in /etc/candlepin/certs/candlepin-ca.crt -inkey /etc/candlepin/certs/candlepin-ca.key -out ${katello_keystore} -name tomcat -CAfile ${candlepin_pub_cert} -caname root -password \"file:${certs::params::keystore_password_file}\"",
path => "/usr/bin",
refreshonly => true,
subscribe => File["$certs::params::keystore_password_file"],