Skip to content

Commit

Permalink
Manage puppetdb_api_version config entry
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Oct 25, 2017
1 parent 56d196b commit c20c699
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/plugin/puppetdb.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@
#
# $ssl_private_key:: Private key file which will be used to connect to the PuppetDB API.
# Defaults to client_ssl_key
#
# $api_version:: PuppetDB API version.
# Defaults to 4
class foreman::plugin::puppetdb (
String $package = $::foreman::plugin::puppetdb::params::package,
Stdlib::HTTPUrl $address = $::foreman::plugin::puppetdb::params::address,
Stdlib::HTTPUrl $dashboard_address = $::foreman::plugin::puppetdb::params::dashboard_address,
String $ssl_ca_file = $::foreman::plugin::puppetdb::params::ssl_ca_file,
String $ssl_certificate = $::foreman::plugin::puppetdb::params::ssl_certificate,
String $ssl_private_key = $::foreman::plugin::puppetdb::params::ssl_private_key,
Enum['1', '3', '4'] $api_version = '4',
) inherits foreman::plugin::puppetdb::params {
foreman::plugin { 'puppetdb':
package => $package,
Expand All @@ -49,4 +53,7 @@
-> foreman_config_entry { 'puppetdb_ssl_private_key':
value => $ssl_private_key,
}
-> foreman_config_entry { 'puppetdb_api_version':
value => $api_version,
}
}

0 comments on commit c20c699

Please sign in to comment.