Add puppetdb manage dbserver#125
Add puppetdb manage dbserver#125chrisowensboston wants to merge 20 commits intoabstractitptyltd:productionfrom
Conversation
|
Can you also remove the Gemfile.lock changes from this please. |
|
I probably can’t get to that until tomorrow. Stand by. From: Pete Brown [mailto:notifications@github.com] Can you also remove the Gemfile.lock changes from this please. — |
| :disable_ssl => false, | ||
| :listen_address => '127.0.0.1', | ||
| :ssl_listen_address => '0.0.0.0', | ||
| :manage_dbserver => true, |
There was a problem hiding this comment.
Can you also add a test for when this is not set.
There was a problem hiding this comment.
Adding that test surfaced a bug in the puppetlabs/postgresql module: https://tickets.puppetlabs.com/browse/MODULES-4054.
There was a problem hiding this comment.
Ouch.
Maybe we need to looks at later versions of the module.
I will have a look later and se what we can do about this.
There was a problem hiding this comment.
Given discussion in main thread lets leave this for now.
There was a problem hiding this comment.
Where is discussion?
| in Gemfile, forced json_pure to be < 2.0.1 when ruby < 2.0 @chrisowensboston | ||
| in .travis.yml, added a line for rvm 2.2.0, puppet gem 4.7.0, facter gem 2.4.6, hiera gem 3.2.1 @chrisowensboston | ||
|
|
||
|
|
There was a problem hiding this comment.
You can remove your changes to this file too.
|
The problem is probably theoretical… it occurs in testing, because declaring puppet::profile::puppetdb with manage_dbserver false, invokes the puppetdb class with manage_dbserver false, which declares an instance of postgresql::server::db but (because it’s not trying to manage the server) does not declare postgresql::server. In actual deployments, the the likely reason for setting manage_dbserver to false would be because you’re managing the Postgresql server out of some other catalog entry, i.e. postgresql::server is going to be declared on that host somewhere, somehow. The exception would be a host that has a postgresql server on it that is not under the control of puppet. I’m not sure what the right answer would be. I don’t love the whole postgresql::globals pattern, but perhaps the right thing would be for postgresql::server::db and friends to include postgresql::globals and get things like character encoding from that class? From: Pete Brown [mailto:notifications@github.com] @rendhalver commented on this pull request. In spec/classes/puppet_profile_puppetdb_spec.rb #125 :
Ouch. — |
|
Yeah that makes sense. |
|
I can't make sense of the pull request chronology... are you still waiting for changes from me? |
* Attempt to fix Travis builds * Adjust travis version matrix
* Drop log format config for puppetsyntax * Set max version for puppetserevr_gem * Lock puppet-syntax to 2.1.0 * Lock puppet-lint to 2.0.2 * lock concat to 1.2.2 * Code cleanup * cleanup versions
|
@chrisowensboston Please rebase and remove your changes to the CHANGELOG.md |
|
Sorry, been tied up. Will look at this in the AM.
From: Pete Brown [mailto:notifications@github.com]
Sent: 04/01/2017 12:54 PM
To: abstractitptyltd/abstractit-puppet <abstractit-puppet@noreply.github.com>
Cc: chrisowensboston <ctag@chris-owens.com>; Mention <mention@noreply.github.com>
Subject: Re: [abstractitptyltd/abstractit-puppet] Add puppetdb manage dbserver (#125)
@chrisowensboston <https://github.com/chrisowensboston> Please rebase and remove your changes to the CHANGELOG.md
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AQKb5-03M3YlOTIVPGC88jEXqtm_nYlGks5rroEagaJpZM4Knuin> . <https://github.com/notifications/beacon/AQKb53tc5rRp_5TeyMCoD9oHvPDMpBz3ks5rroEagaJpZM4Knuin.gif>
|
|
Hi Pete (sorry for muddying the waters by replying here but I don’t have an e-mail address for you).
Could you help me verify my own sanity by trying this and letting me know what you see?
Very oddly, puppet agent v4.9 and 4.10 (at least) seem to read the puppet.conf file differently depending upon whether run as a service or run manually.
https://tickets.puppetlabs.com/browse/PUP-7434
Thanks much,
/c
From: Pete Brown [mailto:notifications@github.com]
Sent: 04/01/2017 12:54 PM
To: abstractitptyltd/abstractit-puppet <abstractit-puppet@noreply.github.com>
Cc: chrisowensboston <ctag@chris-owens.com>; Mention <mention@noreply.github.com>
Subject: Re: [abstractitptyltd/abstractit-puppet] Add puppetdb manage dbserver (#125)
@chrisowensboston <https://github.com/chrisowensboston> Please rebase and remove your changes to the CHANGELOG.md
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#125 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AQKb5-03M3YlOTIVPGC88jEXqtm_nYlGks5rroEagaJpZM4Knuin> . <https://github.com/notifications/beacon/AQKb53tc5rRp_5TeyMCoD9oHvPDMpBz3ks5rroEagaJpZM4Knuin.gif>
|
|
Interesting. |
|
Yep it looks like that is what's happening. |
|
@chrisowensboston If you are happy with this I am going to merge it. |
|
Actually can you please rebase @chrisowensboston ? |
|
Will do
Sent from handheld; pls excuse terseness...
…-------- Original message --------
From: Pete Brown <notifications@github.com>
Date: 4/8/17 14:38 (GMT-05:00)
To: abstractitptyltd/abstractit-puppet <abstractit-puppet@noreply.github.com>
Cc: chrisowensboston <ctag@chris-owens.com>, Mention <mention@noreply.github.com>
Subject: Re: [abstractitptyltd/abstractit-puppet] Add puppetdb manage dbserver
(#125)
Actually can you please rebase @chrisowensboston ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/abstractitptyltd/abstractit-puppet","title":"abstractitptyltd/abstractit-puppet","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/abstractitptyltd/abstractit-puppet"}},"updates":{"snippets":[{"icon":"PERSON","message":"@rendhalver in #125: Actually can you please rebase @chrisowensboston ?"}],"action":{"name":"View Pull Request","url":"#125 (comment)"}}}
|
…wensboston/abstractit-puppet into add_puppetdb_manage_dbserver
|
It's possible that this branch is now munted due to me having made a mess of the rebase. |
|
Yes it looks like it. |
|
At this point, my end is such a mess of commits that I’m going to create a new fork of your ‘production’ branch, manually make my changes to that branch, commit all in one, and then do a new PR.
From: Pete Brown [mailto:notifications@github.com]
Sent: 04/10/2017 7:41 AM
To: abstractitptyltd/abstractit-puppet <abstractit-puppet@noreply.github.com>
Cc: calmenergy <cowens@calmenergyinc.com>; Comment <comment@noreply.github.com>
Subject: Re: [abstractitptyltd/abstractit-puppet] Add puppetdb manage dbserver (#125)
Yes it looks like it.
It's best to just setup an upstream remote and sync up your local production branch with that and then do a manual rebase.
I don't use the sync buttons in GitHub at all.
This will show you how to sync a fork: https://help.github.com/articles/syncing-a-fork/
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#125 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AZMqfsYadIgBZXVVlhAPNmCPMGM95EGQks5ruhVbgaJpZM4Knuin> . <https://github.com/notifications/beacon/AZMqftK2EVDusicb_uQux1xVugdghToKks5ruhVbgaJpZM4Knuin.gif>
|
|
git cherry-pick is a good way to copy commits to a new branch. |
|
See PR #144 |
Added manage_dbserver param to profile/puppetdb, to make it consistent with profile/master.