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

Allow puppetdb conn validation when ssl is disabled #68

Merged
merged 1 commit into from
Jun 7, 2013

Conversation

bodepd
Copy link
Contributor

@bodepd bodepd commented Jun 6, 2013

the puppetdb module allows the usage of https to
be disabled, but the connection validation resource
did not support the ability to verify non https
connections.

This patch introduces a new resource parameter
use_ssl which defaults to true (thus not changing
the current behavior). When set to false, the
connection validation occurs using regular http.

@kbarber-jenkins-bot
Copy link

Merged build triggered. (Status: PENDING, Details: null)

@kbarber-jenkins-bot
Copy link

Merged build started. (Status: PENDING, Details: http://box.bob.sh:8080/job/puppetlabs-puppetdb-system/63/)

@kbarber-jenkins-bot
Copy link

Merged build finished. (Status: SUCCESS, Details: http://box.bob.sh:8080/job/puppetlabs-puppetdb-system/63/)

@bodepd
Copy link
Contributor Author

bodepd commented Jun 7, 2013

this patch is fundamentally flawed atm, b/c the validation uses the same port that it used to configure puppet. I need validation to be able to use the http port and for the master to still be confgured to use the https port. I may just update the patch so that it only updates the type/provider code so that I can just create my own custom validator in my own manifest.

for my use case, I am not able to validate the
ssl endpoint b/c I am creating my puppet certificates
during my puppet run, so they are not available to
the http get request.

This patch adds a new resource parameter to
the puppetdb_conn_validator that allows it
to make a non-ssl connection. This allows me
to declare my own http only resource that I
can use to verify the puppetdb connection.
@bodepd
Copy link
Contributor Author

bodepd commented Jun 7, 2013

patch updated.

@kbarber-jenkins-bot
Copy link

Merged build triggered. (Status: PENDING, Details: null)

@kbarber-jenkins-bot
Copy link

Merged build started. (Status: PENDING, Details: http://box.bob.sh:8080/job/puppetlabs-puppetdb/65/)

@kbarber-jenkins-bot
Copy link

Merged build finished. (Status: SUCCESS, Details: http://box.bob.sh:8080/job/puppetlabs-puppetdb/65/)

kbarber added a commit that referenced this pull request Jun 7, 2013
Allow puppetdb conn validation when ssl is disabled
@kbarber kbarber merged commit 2d3a611 into puppetlabs:master Jun 7, 2013
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.

4 participants