Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

OSP Compatibility Updates #87

Merged
merged 4 commits into from
Feb 10, 2020
Merged

OSP Compatibility Updates #87

merged 4 commits into from
Feb 10, 2020

Conversation

jarretlavallee
Copy link
Contributor

@jarretlavallee jarretlavallee commented Jan 27, 2020

This PR has some basic OSP compatibility updates to the module. It includes the following.

  • Use the client certificate for all PuppetDB API requests
  • Update the pe_server_version conditionals to check if NotUndef
  • Remove the file sync query from PuppetDB when pe_server_version is not defined
  • Allow for specifying the PostgreSQL databases in the profile
  • Failing on the postgres_access class if it is OSP since it uses PE classes and we cannot guarantee the method used in OSP.

The biggest change is the client certificates on the PuppetDB API requests over skipping validation.

This is a draft PR since there are no spec tests on these profiles and want to identify what is appropriate.

Jarret Lavallee added 2 commits January 27, 2020 11:54
Prior to this commit, telegraf was using insecure SSL connections to
PuppetDB. This worked in some cases, but would fail in other cases due
to not providing a client certificate. As the clent certificate is
available on the host, this commit enables using the client certificate
by default on all PuppetDB queries.
Prior to this commit, the profiles would not fail with OSP, but added
some additional metrics that are not used in OSP. This commit makes some
minor updates to the conditionals and removes the file sync query from
OSP PuppetDB.
manifests/profile/compiler.pp Outdated Show resolved Hide resolved
manifests/profile/master/postgres.pp Outdated Show resolved Hide resolved
manifests/profile/puppetdb.pp Outdated Show resolved Hide resolved
This commit aligns the style with best practices and the repos style
lines.
@jarretlavallee jarretlavallee marked this pull request as ready for review January 29, 2020 17:08
@suckatrash
Copy link
Contributor

@jarretlavallee - could you also update changelog with this PR?

This commit adds the changes from #87 to the changelog.
@jarretlavallee
Copy link
Contributor Author

Thanks @suckatrash. The changelog has been updated. It put it as a Y release with the change to the client ssl certs. Let me know if you think it would qualify as a Z release instead.

@suckatrash
Copy link
Contributor

Makes sense to me. @genebean anything else needed here from your perspective?

@suckatrash suckatrash merged commit 144bb4b into puppetlabs:master Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants