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

Resource type not found: Cron::Special #124

Open
Helkar opened this issue Sep 25, 2023 · 2 comments
Open

Resource type not found: Cron::Special #124

Helkar opened this issue Sep 25, 2023 · 2 comments

Comments

@Helkar
Copy link

Helkar commented Sep 25, 2023

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.26.0
  • Ruby: 2.7.8
  • Distribution: Ubuntu 18.04
  • Module version: 4.1.0

How to reproduce (e.g Puppet code you use)

What are you seeing

An evaluation problem running puppet apply command

What behaviour did you expect instead

No evaluation error

Output log

Error: Evaluation Error: Resource type not found: Cron::Special (file: /etc/puppetlabs/code/modules/cron/manifests/job.pp, line: 30, column: 3)

Any additional information you'd like to impart

I have downgraded the module to 4.0.0 and the problem went away

@alexjfisher
Copy link
Member

Odd. Is this repeatable? The Cron::Special type has been in the module for 6 years and I can't see anything related in the 4.1.0 changelog.

@Helkar
Copy link
Author

Helkar commented Sep 25, 2023

Yes, every single time I executed the puppet apply it failed with the same reason. We are just defining some cron jobs, this is an example:

cron::job { 'Cronjob name':
command => '/usr/local/bin/<script>.sh',
user => 'root',
hour => '*',
minute => '0',
environment => ['MAILTO=""'],
require => File['/usr/local/bin/<script>.sh'],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants