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}"

Also available in: Unified diff