I'm using Puppet 3.4.3.
I'm trying to use the cron type to manage cron jobs (as documented here: https://docs.puppetlabs.com/references/latest/type.html). However, any time I try and run my configuration:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class cron for app on node app
As far as I can tell, the documentation is referencing and inbuilt type, and I shouldn't have to include any modules or download anything extra? Is the minimum version for the cron type higher than 3.4.3?
It's not a problem with my individual configuration, as even the logrotate example given on the documentation page fails with the same error message.
Any help would be appreciated!
Edit: Here is the code i'm using:
cron { laravelschedule: command => "php /var/www/sociaspire/artisan schedule:run >> /dev/null 2>&1", user => www-data, hour => '*', minute => '*', month => '*', monthday => '*', week => '*', }
Edit: Output from ls -ltr
:
total 36 -rw-r--r-- 1 root root 7357 Aug 20 10:37 sociaspire-testing.pp -rw-r--r-- 1 root root 6481 Aug 20 10:37 sociaspire.pp -rw-r--r-- 1 root root 3128 Aug 20 10:37 sociaspire-lb.pp -rw-r--r-- 1 root root 3074 Aug 20 10:37 sociaspire-db.pp -rw-r--r-- 1 root root 8195 Sep 10 13:23 sociaspire-standalone.pp
Output from tree -f
:
. ├── ./classes │ └── ./classes/sociaspire-standalone.pp └── ./site.pp