Project

General

Profile

« Previous | Next » 

Revision c26be029

Added by Justin Sherrill almost 10 years ago

refs #6330 - adding support for pulp smart proxy plugin

View differences:

manifests/init.pp
# $pulp:: should Pulp be configured on the node
# type:boolean
#
# $pulp_master:: whether the capsule should be identified as a pulp master server
#
# $pulp_admin_password:: passowrd for the Pulp admin user.It should be left blank so that random password is generated
#
# $pulp_oauth_effective_user:: User to be used for Pulp REST interaction
......
$parent_fqdn = $capsule::params::parent_fqdn,
$certs_tar = $capsule::params::certs_tar,
$pulp = $capsule::params::pulp,
$pulp_master = $capsule::params::pulp_master,
$pulp_admin_password = $capsule::params::pulp_admin_password,
$pulp_oauth_effective_user = $capsule::params::pulp_oauth_effective_user,
$pulp_oauth_key = $capsule::params::pulp_oauth_key,
......
validate_present($capsule::parent_fqdn)
if $pulp_master {
foreman_proxy::settings_file { 'pulp':
template_path => 'capsule/pulp.yml'
}
}
if $pulp {
foreman_proxy::settings_file { 'pulpnode':
template_path => 'capsule/pulpnode.yml'
}
validate_pulp($pulp)
validate_present($pulp_oauth_secret)
}
class { 'capsule::install': }
$capsule_fqdn = $::fqdn
$foreman_url = "https://${parent_fqdn}"
manifests/install.pp
# Pulp Installation Packages
class capsule::install {
if $capsule::pulp or $capsule::pulp_master {
package{ ['rubygem-smart_proxy_pulp']:
ensure => installed,
}
}
}
manifests/params.pp
$foreman_oauth_secret = cache_data('oauth_consumer_secret', random_password(32))
$pulp = false
$pulp_master = false
$pulp_admin_password = cache_data('pulp_node_admin_password', random_password(32))
$pulp_oauth_effective_user = 'admin'
$pulp_oauth_key = 'katello'
templates/pulp.yml
---
:enabled: true
:pulp_url: https://localhost/pulp
templates/pulpnode.yml
---
:enabled: true
:pulp_url: https://localhost/pulp

Also available in: Unified diff