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

Don't run enable_ca_trust on EL7 #40

Merged
merged 1 commit into from
Mar 19, 2018
Merged

Conversation

alexjfisher
Copy link
Member

update-ca-trust ignores all arguments on EL7 so update-ca-trust enable and even update-ca-trust check (from the unless parameter)
actually perform an update.

Fixes #GH-38

I've converted the spec tests for that class to use rspec-puppet-facts.

`update-ca-trust` ignores all arguments on EL7 so `update-ca-trust
enable` and even `update-ca-trust check` (from the unless parameter)
actually perform an update.

Fixes #voxpupuliGH-38
@@ -1,6 +1,6 @@
fixtures:
repositories:
stdlib: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
remote_file: "git://github.com/lwf/puppet-remote_file.git"
stdlib: "https://github.com/puppetlabs/puppetlabs-stdlib.git"
Copy link
Member Author

Choose a reason for hiding this comment

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

This makes it nicer for those of us stuck behind corporate firewalls.

@@ -2,7 +2,7 @@
class ca_cert::update {
include ::ca_cert::params

if $::osfamily == 'RedHat' {
if ($::osfamily == 'RedHat' and versioncmp($::operatingsystemrelease, '7') < 0) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure how long this module will continue to support puppet 3, but since it is currently marked as supported, I've not switched to the newer non-legacy facts.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need to support Puppet 3 any longer - I just haven't run across anything that breaks it yet either.

Feel free to break it and update metadata if you want/need to.

@pcfens
Copy link
Contributor

pcfens commented Mar 19, 2018

Thanks for working through this one - we're not a big RHEL shop so this one was low on the list even though it looks pretty important.

@pcfens pcfens merged commit 3b916df into voxpupuli:master Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants