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

Certonly: Refactor manage_cron to ensure_cron with appropriate data type #161

Merged
merged 4 commits into from
Jan 16, 2019
Merged

Certonly: Refactor manage_cron to ensure_cron with appropriate data type #161

merged 4 commits into from
Jan 16, 2019

Conversation

craigwatson
Copy link
Contributor

Pull Request (PR) description

Ensures cron is removed when manage_cron is false.

This Pull Request (PR) fixes the following issues

Fixes #139

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.

Looks good. Do we also want to ensure the renew file so it's only present when managing the cron?

@craigwatson
Copy link
Contributor Author

@ekohl fair point 👍

@craigwatson craigwatson changed the title Certonly: Ensure cron is absent if manage_cron is false Certonly: Ensure cron and cron script are absent if manage_cron is false Jan 16, 2019
Copy link
Member

@Dan33l Dan33l left a comment

Choose a reason for hiding this comment

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

I strongly disagree with the current implementation.

With puppet language, we describe the state we want. With manage_cron to false, i understand we do not want a cron management. And what is doing this setting ? It manage the cron to ensure it is absent.

IMO it should be clearer to rename manage_cron to ensure_cron with data type Enum['present','absent'].

@ekohl
Copy link
Member

ekohl commented Jan 16, 2019

That's a very fair point and I do agree ensure_cron is much better.

@craigwatson
Copy link
Contributor Author

@Dan33l and @ekohl I agree, thanks for raising - I've updated the PR to use $ensure_cron with the correct data type. As this is a backwards-imcompatible change, how would you like to handle deprecation of manage_cron?

@craigwatson craigwatson changed the title Certonly: Ensure cron and cron script are absent if manage_cron is false Certonly: Refactor manage_cron to ensure_cron with appropriate data type Jan 16, 2019
@Dan33l
Copy link
Member

Dan33l commented Jan 16, 2019

@craigwatson Thank you.

@Dan33l Dan33l merged commit 43b340f into voxpupuli:master Jan 16, 2019
@baurmatt
Copy link
Contributor

Ööööhm so as this is a breaking change, do we release 4.0.0?

@bastelfreak
Copy link
Member

Yes, the next release will be a major one.

This was referenced Mar 12, 2019
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.

Disabling manage-cron does not remove crontab record
6 participants