Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage puppetdb_api_version config entry #604

Merged
merged 1 commit into from
Oct 26, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
}
}