On Fri, May 15, 2020 at 10:02:41AM +1000, Arthur Barton wrote:
> Puppet 6 has moved some core functions/providers into modules, including 
> cron, mount, mailalias - a few others.
> Originally I think these were bundled into vendor_modules for v6, but that 
> was deprecated at some point around 6.10
> 
> See the forge list at 
> https://forge.puppet.com/modules?q=_core&page_size=25&puppet=6.x&sort=rank 
https://puppet.com/docs/puppet/6.0/type.html#supported-type-modules-in-puppet-agent

`cron` is one of those types that moved to forge but still ought to be
included in the puppet-agent package;  does that apply to our package,
that is to ask, will proper master/agent setup run with without an extra
manual cron module installation?  At least that's how I read it;  but
then again this talks about the agent whereas the two of us are using
a masterless setup without a (long running) agent involved.

> $  puppet resource cron before command=/usr/bin/true
> Error: Could not run: Could not find type cron
> $  puppet module install puppetlabs-cron_core
> Notice: Preparing to install into /home/arthurb/.puppetlabs/etc/code/modules 
> ...
> Notice: Created target directory /home/arthurb/.puppetlabs/etc/code/modules
> Notice: Downloading from https://forgeapi.puppet.com ...
> Notice: Installing -- do not interrupt ...
> /home/arthurb/.puppetlabs/etc/code/modules
> └── puppetlabs-cron_core (v1.0.4)
> $  puppet resource cron after command=/usr/bin/true
> Notice: /Cron[after]/ensure: created
> cron { 'after':
>   ensure   => 'present',
>   command  => '/usr/bin/true',
>   provider => 'crontab',
>   target   => 'arthurb',
> }

Reply via email to