Revision 9d798147
Added by Greg Sutcliffe over 10 years ago
manifests/config/enc.pp | ||
---|---|---|
# Configure the foreman ENC for a puppet server
|
||
class foreman::config::enc (
|
||
$foreman_url = $foreman::params::foreman_url,
|
||
$facts = $foreman::params::facts,
|
||
$puppet_home = $foreman::params::puppet_home,
|
||
$ssl_ca = $foreman::params::client_ssl_ca,
|
||
$ssl_cert = $foreman::params::client_ssl_cert,
|
||
$ssl_key = $foreman::params::client_ssl_key
|
||
$foreman_url = $foreman::params::foreman_url,
|
||
$facts = $foreman::params::facts,
|
||
$puppet_home = $foreman::params::puppet_home,
|
||
$ssl_ca = $foreman::params::client_ssl_ca,
|
||
$ssl_cert = $foreman::params::client_ssl_cert,
|
||
$ssl_key = $foreman::params::client_ssl_key,
|
||
$enc_api = 'v2'
|
||
) inherits foreman::params {
|
||
|
||
File { require => Class['::puppet::server::install'] }
|
||
|
||
file { '/etc/puppet/node.rb':
|
||
content => template('foreman/external_node.rb.erb'),
|
||
content => template("foreman/external_node_${enc_api}.rb.erb"),
|
||
mode => '0550',
|
||
owner => 'puppet',
|
||
group => 'puppet',
|
Also available in: Unified diff
Add new ENC and report processor templates
Add new ENC node.rb for new Facts API
Add report processor for new Reports API
Add JSON dependency for both scripts
Add tests