-
Notifications
You must be signed in to change notification settings - Fork 234
add possibility to manage puppetdb terminus package #424
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
base: main
Are you sure you want to change the base?
add possibility to manage puppetdb terminus package #424
Conversation
e062c81
to
3ad0d11
Compare
greetings to sys11 from betadots :) |
14e88f2
to
82ecf0e
Compare
82ecf0e
to
742cf16
Compare
Also looking forward to openvox support from this module |
Hi @techsk8 -- so as is this doesn't really "do" anything. Meaning it adds a parameter but it does not change the code that references $puppetdb::params::terminus_package directly. However -- you can accomplish this already "as is" with: At least as far as I have tested so far. |
Hi @jadestorm, class mywrapper_puppet::puppetdb::upstream (
) {
assert_private()
##
## Upstream module
##
class { 'puppetdb':
certificate_whitelist => $mywrapper_puppet::puppetdb::certificate_whitelist,
cipher_suites => $mywrapper_puppet::puppetdb::cipher_suites,
command_threads => $mywrapper_puppet::puppetdb::command_threads,
database_password => $mywrapper_puppet::puppetdb::database_password,
disable_cleartext => $mywrapper_puppet::puppetdb::disable_cleartext,
disable_update_checking => $mywrapper_puppet::puppetdb::disable_update_checking,
java_args => $mywrapper_puppet::puppetdb::java_args,
manage_firewall => $mywrapper_puppet::puppetdb::manage_firewall,
manage_package_repo => false,
max_threads => $mywrapper_puppet::puppetdb::max_threads,
node_purge_ttl => $mywrapper_puppet::puppetdb::node_purge_ttl,
node_ttl => $mywrapper_puppet::puppetdb::node_ttl,
postgres_version => $mywrapper_puppet::puppetdb::postgres_version,
puppetdb_terminus_package => $mywrapper_puppet::puppetdb_terminus_package,
puppetdb_package => $mywrapper_puppet::puppetdb_package,
report_ttl => $mywrapper_puppet::puppetdb::report_ttl,
ssl_listen_address => $mywrapper_puppet::puppetdb::ssl_listen_address,
}
.
.
.
} |
Hi @techsk8 ! Sorry yesterday I was in a hurry I meant to show you what I was referring to. So what I see under files changed is that you added an option to pass in the parameter: And some documentation. However, the part of the code that actually creates the terminus package resource is in: Specifically:
Which is set from puppetdb::master:config's parameter: Now as you can see -- unless you explicitly set that parameter on puppetdb::master::config, it defaults to $puppetdb::params::terminus_package, which would bypass your puppetdb::puppetdb_terminus_package setting. Now, as is, puppetdb::master::config inherits puppetdb::params, do just changing the default on that class isn't going to accomplish anything. However, the documentation suggests using it like:
In which case, you could simply pass the terminus_package param to your call of puppetdb::master::config there. FWIW I did try your fork and it didn't change what package it was trying to pull in, so I went digging to try to figure out why and that's when I found I could work around it. |
I understand what you're saying.
Actually, I think the main point of Hiera and Puppet is that it enables you to separate configuration data from your Puppet manifests, making your code more reusable and easier to manage. |
I'd like to be able to install
openvoxdb-termini
through the main class and currently that's not possible.