-
Notifications
You must be signed in to change notification settings - Fork 230
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
Allow puppetdb to be configure for masterless conf #163
Allow puppetdb to be configure for masterless conf #163
Conversation
| puppet_conf => $puppet_conf, | ||
| puppet_conf_section => $puppet_conf_section, | ||
| enable => $enable_reports, | ||
| require => $strict_validation ? { | ||
| true => Puppetdb_conn_validator['puppetdb_conn'], | ||
| default => Package[$terminus_package], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you still need the terminus in a masterless configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ajroetker yes you still need the terminus on every node https://docs.puppetlabs.com/puppetdb/2.2/connect_puppet_apply.html#step-2-install-terminus-plugins-on-every-puppet-node
|
I'm tempted to say that maybe the storeconfigs and report_processor classes should be moved to a different namespace now, maybe under |
|
@ajroetker Thanks for reviewing. I agree about moving it out under another namespace, just wasn't make sure such a huge change will be accepted. If @kbarber agrees with the idea, I can make the needed changes. |
|
Up ? |
|
@ajroetker we can't change the API on a non-major boundary. We'd need to create new classes or something and find some way to proxy from the old ones to the new ones to keep backwards compatibility. Having said that, we could almost start considering a 5.0 release at this point ... since we probably will need this for PDB 3.0.0 later on, however there is some complexity in just doing that right now - my concern is about the package naming really for the terminus, since that might introduce some lack of backwards compatibility with PDB 2.2.x. Maybe if this all gets too nasty we should cut a stable & master branch. This needs some more thought, and to be truly honest with you - introducing complexity like this right now is somewhat bad timing, due to the pressures we are under :-). But I get what you are trying to say about naming, it does make some sense to create some differently named classes. Not sure if I like the term 'consumer' however, seems very generic, I'd just say 'puppet' or something like that, since thats what its trying to manage really. |
|
@ajroetker so ... I'd shelve your idea in a ticket. I like it, its nice, but lets try and do it for a major release and when we have the time. Mark it as a 'fix for 5.0.0' or something like that, so we know exactly when it can be worked on. I think the naming problem here isn't terrible, and most people would be forgiving if they saw it. At least we know about it :-). |
|
@ajroetker lets talk about this one today. |
|
@Spredzy if you wouldn't mind we thought that instead of having |
7100cb7
to
ca933a2
Compare
|
@kbarber @ajroetker updated based on your comments. Tests fails only on ruby 1.8.7, I think it might be related to rspec-core 3.2.0 that came out 2 days ago based on the trace. I noticed the same issue on puppetlabs-mongodb module |
|
@Spredzy yeah, I'm sending up a pinning patch now. Double check your patch with a grep, there are still some mentions of the old parameter btw. |
Currently the module only allows PuppetDB to be configured in a agent/master setup configuration, by configuring the master section of the puppet.conf and applying on the routes for such a configuration. This commit allows one to use this module to configure the main section of the puppet.conf and applying the proper routes so the module can configure nodes to use PuppetDB in a masterless setup. Doc about puppet.conf configure in masterless way available here https://docs.puppetlabs.com/puppetdb/2.2/connect_puppet_apply.html#manage-puppetconf
ca933a2
to
a826d85
Compare
|
@kbarber Sorry I forgot to update the README. It has been fixed. |
Allow puppetdb to be configure for masterless conf
|
@Spredzy thanks mate, looking good. |
|
@kbarber @ajroetker Thanks to both of you for the reviews. |
|
If I already have a puppet apply that happens on a box in a 30 minute cron job, with say /etc/puppet stuff, and /var/lib/puppet stuff, how can I install masterless puppetdb with these changes? Just do a puppet apply with class 'puppetdb', and params:masterless true? One issue is my puppet apply/config defaults to using /etc/puppet stuff, or /var/lib/puppet stuff. Is there some simple install commands of puppetdb/postgres you guys used? Are there any examples you can provide? |
Currently the module only allows PuppetDB to be configured in a
agent/master setup configuration, by configuring the
[master]section ofthe puppet.conf. This commit allows one to use this module to configure
the
[main]section of the puppet.conf so the module can configure nodes touse PuppetDB in a masterless setup.
Doc about puppet.conf configure in masterless way available here
https://docs.puppetlabs.com/puppetdb/2.2/connect_puppet_apply.html#manage-puppetconf