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

General code modernisation - assorted bugfixes. #46

Merged
merged 17 commits into from
Dec 1, 2018

Conversation

traylenator
Copy link
Contributor

Pull Request (PR) description

A number of commits addressing:

  • Remove all deprecated explicit hiera calls.
  • Add puppet 4 data types
  • Add more spec tests
  • Switch to rspec-puppet-facts
  • Bug fixes concerning agingtollerance vs ageingtollerance vs agingtolerance
  • Convert all erb to epp templates
  • New parameter noerrrors to suppress fetch-crl error messages at runtime.
  • Add puppet-string documentation
  • Move defaults from param.pp to init.pp.

This Pull Request (PR) fixes the following issues

Fixes #43 Add noerrors parameter.
Fixes #44 Add noerrors parameter.
FIxes #45 Use lookup function not hiera.

Defaults for all parameters moved from params.pp to init.pp
All hiera variables are now finally completly removed
after a long deprecation window.

* fetchcrl_pkg_version removed , use fetchcrl::pkg_version
* fetchcrl_proxy removed, use fetchcrl::proxy
* fetchcrl_capkgs removed, use fetchcrl::capkgs
* fetchcrl_carepo removed, use fetchcrl::carepo
* fetchcrl_capkgs_version removed, use fetchcrl::capkgs_version
In adition to the template conversion there were some
parts of the template that could never be reached and
should not have been there.
These keywords are added to the config file or not. Consequently
undef is a bad default. It never takes a difference action to false.
A new noerrors parameter can now be set to true
to supress errors from fetch-crl.

Fixes voxpupuli#43
Fixes voxpupuli#44
Completly new spec test for `fetchcrl::ca`

Discovered a bug with ageing vs aging one parameter name.
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I like the full removal of params.pp

manifests/ca.pp Outdated Show resolved Hide resolved
manifests/ca.pp Outdated Show resolved Hide resolved
manifests/init.pp Outdated Show resolved Hide resolved
Use
```puppet
Variant[Undef,X] $x = undef
```
instead of
```puppet
Optional[X] $x = undef
```
manifests/ca.pp Outdated Show resolved Hide resolved
@alexjfisher alexjfisher changed the title General code modernisation - assorted bugfixes. WIP: General code modernisation - assorted bugfixes. Nov 29, 2018
@alexjfisher
Copy link
Member

Updated title to include WIP. (Mainly to test the WIP plugin and branch protection configuration if I'm being honest!).

@traylenator
Copy link
Contributor Author

Should I remove the WIP once ready again?

@alexjfisher
Copy link
Member

@traylenator Sorry for using you and your PR as a guinea pig!

@traylenator traylenator changed the title WIP: General code modernisation - assorted bugfixes. General code modernisation - assorted bugfixes. Nov 30, 2018
@traylenator traylenator added bug Something isn't working enhancement New feature or request backwards-incompatible labels Nov 30, 2018
manifests/ca.pp Outdated Show resolved Hide resolved
@traylenator
Copy link
Contributor Author

@ekohl @alexjfisher thanks for the comments.

@traylenator traylenator merged commit caff5e8 into voxpupuli:master Dec 1, 2018
@traylenator traylenator deleted the puppet4 branch March 24, 2021 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-incompatible bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

noerrors is not included in template
3 participants