<feed xmlns='http://www.w3.org/2005/Atom'>
<title>puppet-cron_core/spec, branch main</title>
<subtitle>Puppet module for core cron functionality</subtitle>
<id>https://cgit.fluxo.info/puppet-cron_core/atom?h=main</id>
<link rel='self' href='https://cgit.fluxo.info/puppet-cron_core/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/'/>
<updated>2023-12-04T17:26:17+00:00</updated>
<entry>
<title>(PA-5954) Add Amazon linux to install the 'cronie' (instead of cron) module used in rpm based platforms</title>
<updated>2023-12-04T17:26:17+00:00</updated>
<author>
<name>Shubham Shinde</name>
<email>shubham.shinde@perforce.com</email>
</author>
<published>2023-12-04T16:41:21+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=c3805adc5d8155fc0193f35c547f08f181a71710'/>
<id>urn:sha1:c3805adc5d8155fc0193f35c547f08f181a71710</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert ProcessOutput to String explicitly</title>
<updated>2023-11-22T23:13:28+00:00</updated>
<author>
<name>Josh Cooper</name>
<email>joshcooper@users.noreply.github.com</email>
</author>
<published>2023-11-22T18:54:32+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=be5ae9bc9e198a00f2a790992b663dda374006ba'/>
<id>urn:sha1:be5ae9bc9e198a00f2a790992b663dda374006ba</id>
<content type='text'>
The `filetype` provider executes `crontab` using Puppet's execution API, which
returns ProcessOutput objects that inherit from String. See puppetlabs/puppet@732d450

The provider later uses String#gsub to strip off the HEADER. In Ruby 2.7, the
gsub method returns a new instance of ProcessOutput:

    irb(main):002:0&gt; Puppet::Util::Execution::ProcessOutput.new("# HEADER\n0 4 * * * /etc/init.d/script.sh\n", 0).gsub(/# HEADER/, '').class
    =&gt; Puppet::Util::Execution::ProcessOutput

If you later serialize the crontab entries to YAML using `puppet resource`, then
puppet warns about serializing unknown data types:

    # puppet resource cron --to_yaml
    Warning: Cron[unmanaged:/etc/init.d/script.sh-1]['command'] contains a Puppet::Util::Execution::ProcessOutput value. It will be converted to the String '/etc/init.d/script.sh'

This wasn't an issue with Ruby 3.2, because String#gsub always returns a String:

    irb(main):002:0&gt; Puppet::Util::Execution::ProcessOutput.new("# HEADER\n0 4 * * * /etc/init.d/script.sh\n", 0).gsub(/# HEADER/, '').class
    =&gt; String

This commit explicitly converts the ProcessOutput to a String so the provider
behaves consistently on all Ruby versions.

Fixes #61
</content>
</entry>
<entry>
<title>(MODULES-11371) Updates legacy facts</title>
<updated>2023-02-17T17:22:29+00:00</updated>
<author>
<name>Michael Hashizume</name>
<email>michael.hashizume@puppet.com</email>
</author>
<published>2023-02-17T17:22:29+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=694fd4d6d92c868e3ec52b021961e43b04903db1'/>
<id>urn:sha1:694fd4d6d92c868e3ec52b021961e43b04903db1</id>
<content type='text'>
Legacy facts are removed in Puppet 8. This commit updates a spec
file from using legacy facts to using structured facts.
</content>
</entry>
<entry>
<title>(MODULES-11371) Add Vox Beaker gem</title>
<updated>2023-02-14T22:41:13+00:00</updated>
<author>
<name>Michael Hashizume</name>
<email>michael.hashizume@puppet.com</email>
</author>
<published>2023-02-14T22:41:13+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=3e48a3c78b00cc619020c97445525aaaca616f01'/>
<id>urn:sha1:3e48a3c78b00cc619020c97445525aaaca616f01</id>
<content type='text'>
In acb57af, we updated the module according to PDK template 7.2.1,
which updated puppetlabs_spec_helper. The updated version of
puppetlabs_spec_helper removed the Beaker rake task, which we use
for acceptance testing.

This commit adds the voxpupuli-acceptance gem, which re-adds the
Beaker rake task.
</content>
</entry>
<entry>
<title>(maint) Rubocop implicit begin fix</title>
<updated>2023-02-10T18:45:29+00:00</updated>
<author>
<name>Michael Hashizume</name>
<email>michael.hashizume@puppet.com</email>
</author>
<published>2023-02-10T18:45:29+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=cf562a8bda5df98b91fea01a43e128a8e821058c'/>
<id>urn:sha1:cf562a8bda5df98b91fea01a43e128a8e821058c</id>
<content type='text'>
This commit addresses the Rubocop Style/RedundantBegin cop and
removes an explicit `begin` block in favor of implicit syntax.
</content>
</entry>
<entry>
<title>(MODULES-11197) Update to pdk-templates 2.2.0</title>
<updated>2021-10-01T11:57:09+00:00</updated>
<author>
<name>Gabriel Nagy</name>
<email>gabriel.nagy@puppet.com</email>
</author>
<published>2021-10-01T11:57:09+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=dd42efd5323314047d2c44e02f2f7e3472954697'/>
<id>urn:sha1:dd42efd5323314047d2c44e02f2f7e3472954697</id>
<content type='text'>
Includes REFERENCE.md ToC fixes for MODULES-8183.
</content>
</entry>
<entry>
<title>(maint) Fix rubocop errors</title>
<updated>2021-08-17T16:46:58+00:00</updated>
<author>
<name>Josh Cooper</name>
<email>joshcooper@users.noreply.github.com</email>
</author>
<published>2021-08-17T16:46:58+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=54db10d91bb5da04f8f4fb9d66138aba9e5e38a4'/>
<id>urn:sha1:54db10d91bb5da04f8f4fb9d66138aba9e5e38a4</id>
<content type='text'>
Took the safest route and disabled cops either globally in .rubocop.yml
for just for specific cases in lib/
</content>
</entry>
<entry>
<title>(maint) Update to pdk templates 2.2.0</title>
<updated>2021-08-17T16:18:57+00:00</updated>
<author>
<name>Josh Cooper</name>
<email>joshcooper@users.noreply.github.com</email>
</author>
<published>2021-08-17T16:18:57+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=a3dcc2e0070e6223342a5ce72f9003fd12c1eab9'/>
<id>urn:sha1:a3dcc2e0070e6223342a5ce72f9003fd12c1eab9</id>
<content type='text'>
Generated using:

    $ pdk --version
    2.2.0
    $ pdk update --template-ref 2.2.0
</content>
</entry>
<entry>
<title>(maint) Switch to rspec-mocks</title>
<updated>2021-03-11T12:37:19+00:00</updated>
<author>
<name>Gabriel Nagy</name>
<email>gabriel.nagy@puppet.com</email>
</author>
<published>2021-03-11T12:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=51ebf2d8d5c02c7cd314edd9e6507163a8073785'/>
<id>urn:sha1:51ebf2d8d5c02c7cd314edd9e6507163a8073785</id>
<content type='text'>
</content>
</entry>
<entry>
<title>(MODULES-7786) Allow leading zeroes for cron params</title>
<updated>2020-08-10T12:44:35+00:00</updated>
<author>
<name>Dorin Pleava</name>
<email>dorin.pleava@puppet.com</email>
</author>
<published>2020-08-06T12:14:37+00:00</published>
<link rel='alternate' type='text/html' href='https://cgit.fluxo.info/puppet-cron_core/commit/?id=29925fb28a09075ea4c4105674dca2415e1c7800'/>
<id>urn:sha1:29925fb28a09075ea4c4105674dca2415e1c7800</id>
<content type='text'>
When applying a cron manigest that contains leading zeroes in a periodic
attribute (hour, minute, month, monthday, weekday), puppet will strip
down the zeroes even if they are accepted by the system cron.

Now puppet will only convert to integer the periodic attributes when
validating them, but will not change the input from the manifest.
</content>
</entry>
</feed>
