asked 2018-11-27 08:41:50 -0600

chichaglisha gravatar image

hi all

this is a snippet of my code :

class cron::config {

if $lsbmajdistrelease == '5' {

if Integer($facts['os']['release']['major']) == 5 {

    $minute1 = ip_to_cron(60)
    $minute0 = ip_to_cron(29)
    $minute2 = $minute0 + 1
    $minute3 = $minute0 + 31

Im using RH Sat 6.3 with puppet 4, recently updated to 4, and this snippet worked fine under puppet 3 but now breaks with the following error message :

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown function: 'ip_to_cron'. at /etc/puppetlabs/code/environments/nonproduction/modules/cron/manifests/config.pp:12:20 on node

Any help is much appreciated. If you need any additional info ill be happy to provide it.



edit retag flag offensive close merge delete