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 
> 
> $  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',
> }
After installing the now refactored moduls from forge (through
librarian-puppet) I upgraded all my nodes to Puppet 6 without hassle.
Stuff just works.

Unless I hear objections, I'll commit your work in day or two.

Thanks!

Reply via email to