Resource Type: schedule error

asked 2019-01-11 12:48:38 -0600

Hello! I created de follow script:

schedule { 'dlu_schedule': range => '00:00 - 02:00', period => daily, repeat => 1, } define delete_local_user () {

exec { "delete_local_user_$name": path => "/bin:/usr/bin:/sbin:/usr/sbin:/sbin:/usr/sbin", command => "userdel $name", onlyif => "cut -d: -f1 < /etc/passwd | grep -E \'^$name$\'", schedule => 'dlu_schedule', } }

But when i run the puppet client i receive the follow erro: err: Could not apply complete catalog: Could not find schedule dlu_schedule at /export/puppet/environments/production/modules/delete_local_user/manifests/init.pp:24

Some idea what can do this error ?

TKS !!

edit retag flag offensive close merge delete