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

(PDB-1035) Add default PuppetDB root context #181

Conversation

ajroetker
Copy link
Contributor

This commit changes the terminus configuration to use the new root
prefix for PuppetDB and changes the connection validator to do the same.

@@ -0,0 +1,72 @@
# See: #10295 for more details.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Invalid file committed.

@ajroetker ajroetker force-pushed the ticket/pdb-1485/master/add_pdb_root_context_for_query_api branch 5 times, most recently from 50da3ba to 6e090a7 Compare May 21, 2015 21:53
:use_ssl => 'false')
}
:puppetdb_port => '1234',
:use_ssl => 'false')}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not crititcal, but I might be tempted to leave out the whitespace changes or put them in a separate patch so that this one is focused on the /pdb/query changes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more like a clojure formatting anyway, not ruby. I'd stay with what we had TBH, its more idiomatic.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh, we're guilty of clojure like formatting throughout all this code anyway. Lol.

@kbarber
Copy link
Contributor

kbarber commented May 26, 2015

@ajroetker I think this patch needs docs updates calling out how to use the old terminus name, and the old test url if one is still on the old version of PDB. Since users who have just used ensure => installed, won't be able to get the benefits of your auto-detection, and may still be using PDB 2.3.x.

@kbarber
Copy link
Contributor

kbarber commented May 26, 2015

This duplicates the work here: https://tickets.puppetlabs.com/browse/PDB-1035

@kbarber
Copy link
Contributor

kbarber commented May 29, 2015

@ajroetker this still needs doc updates.

@ajroetker
Copy link
Contributor Author

@kbarber I know I was waiting for the the version/cmd patch because this will have to change again after that goes in

@kbarber
Copy link
Contributor

kbarber commented May 29, 2015

@ajroetker okay, makes sense.

@ajroetker ajroetker force-pushed the ticket/pdb-1485/master/add_pdb_root_context_for_query_api branch from 6e090a7 to b9be30a Compare May 29, 2015 17:38
@ajroetker ajroetker changed the title (PDB-1485) Add default PuppetDB root context (PDB-1035) Add default PuppetDB root context Jun 2, 2015
* If you want to use 5.x of the module with PuppetDB 2.x, you'll need to set the `test_url => /v3/version` and either `puppetdb_version => 2.y.z` or `terminus_package => 2.y.z`

See the CHANGELOG file for more detailed information on changes for each release.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

v3/version is still mentioned a number of times in this file

This commit changes the terminus configuration to use the new root
prefix for PuppetDB and changes the connection validator to do the same.

This commit also adds the terminus package name changes `terminus` to
`termini` and tries to be smart about the default, checking to see what
version of PuppetDB was passed in and defaulting off of that value.
@ajroetker ajroetker force-pushed the ticket/pdb-1485/master/add_pdb_root_context_for_query_api branch from b9be30a to 829626f Compare June 3, 2015 18:20
kbarber added a commit that referenced this pull request Jun 4, 2015
…_root_context_for_query_api

(PDB-1035) Add default PuppetDB root context
@kbarber kbarber merged commit 37f21d6 into puppetlabs:master Jun 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants