Skip to content

Commit

Permalink
Add enc/report api options to puppetmaster
Browse files Browse the repository at this point in the history
  • Loading branch information
GregSutcliffe committed Sep 5, 2013
1 parent f2687c8 commit 827cdde
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
10 changes: 9 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@
#
# $server_reports:: List of report types to include on the puppetmaster
#
# $server_enc_api:: What version of enc script to deploy. Valid values are
# 'v2' for latest, and 'v1' for Foreman =< 1.2
#
# $server_report_api:: What version of report processor to deploy. Valid values
# are 'v2' for latest, and 'v1' for Foreman =< 1.2
#
# === Usage:
#
# * Simple usage:
Expand Down Expand Up @@ -208,7 +214,9 @@
$server_foreman_url = $foreman::params::foreman_url,
$server_facts = $foreman::params::facts,
$server_puppet_home = $foreman::params::puppet_home,
$server_puppet_basedir = $foreman::params::puppet_basedir
$server_puppet_basedir = $foreman::params::puppet_basedir,
$server_enc_api = 'v2',
$server_report_api = 'v2'
) inherits puppet::params {

validate_bool($listen)
Expand Down
10 changes: 6 additions & 4 deletions manifests/server/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
# Include foreman components for the puppetmaster
# ENC script, reporting script etc.
class {'foreman::puppetmaster':
foreman_url => $puppet::server_foreman_url,
facts => $puppet::server_facts,
puppet_home => $puppet::server_puppet_home,
puppet_basedir => $puppet::server_puppet_basedir
foreman_url => $puppet::server_foreman_url,
facts => $puppet::server_facts,
puppet_home => $puppet::server_puppet_home,
puppet_basedir => $puppet::server_puppet_basedir,
enc_api => $puppet::server_enc_api,
report_api => $puppet::server_report_api,
}

$ca_server = $::puppet::ca_server
Expand Down

0 comments on commit 827cdde

Please sign in to comment.