Add support for EL7
Support Puppet 6
Support Puppet 5
Add support for management of User crontabs
Clarify Ubuntu support (remove descriptions pointing to Debian) Support Puppet 4.9 Appease Puppet Forge scoring
Fixed periodic cron jobs not getting removed on RHEL5 and Suse anymore. If you want to keep the old unfixed behaviour of the module, set $periodic_jobs_manage to false.
This release breaks with backward compatibility in these cases:
cron::enable_cron
tocron::service_enable
cron::ensure_state
tocron::service_ensure
cron::fragment::ensure_cron
tocron::fragment::ensure
cron::fragment::cron_content
tocron::fragment::content
For convenient transition, there is support using the old names for a limited time. This comes at the price of deprecation warnings.
This changes the default behavior so cron.deny is created (empty) by default. This is in line with what is default from the cron packages.
This fixes an issue where cron.allow would always be created if cron_allow_users is defined in Hiera, even though cron_allow is set to 'absent' higher up in the hierarchy.
- Add package_name and service_name parameters
- Add support for SLES 12
- Add possibility to manage file attributes of cron related directories
- Add possibility to manage file attributes of fragment files
- Add support for hourly cron jobs fragment files
- Allow to use 'file' for cron.{allow|deny} ensure parameter
- Add documentation for cron::fragment
- Fix dependency for fragment files
- Validate $cron_files being a hash
When upgrading from version 1.x you need to search for the deprecated parameter names and replace them with the new names. There is no need to change the data itself.
In most cases it should be good enough to change the keys in $cron_files hashes to the new names.
old deprecated names
cron::cron_files: 'daily_task': ensure_cron: 'present' type: 'daily' cron_content: | #!/bin/bash # This File is managed by puppet command
new parameter names
cron::cron_files: 'daily_task': ensure: 'present' type: 'daily' content: | #!/bin/bash # This File is managed by puppet command
old deprecated names
cron::fragment { 'daily_task': ensure_cron => 'present', type => 'daily', cron_content => "#!/bin/bash\n# This File is managed by puppet\ncommand", }
new parameter names
cron::fragment { 'daily_task': ensure => 'present', type => 'daily', content => "#!/bin/bash\n# This File is managed by puppet\ncommand", }