If any puppet module is designed to be executed at customized time schedule instead of every 30 min, still the module is executed at every puppet run.

Solution Verified - Updated -

Issue

  • Even after setting day and time range in init.pp file command getting executed at every 30 minute.
class execdate (
  $time_run_between = "2 - 4",
  $day_run = 'Sunday',
  ) {

  schedule { 'execute_once':
    range => $time_run_between,
    weekday => $day_run,
  }

  exec { 'exec_date':
    schedule => 'execute_once',
    path => '/usr/bin:/bin',
    command => 'date >> /tmp/date.txt',
  }
}

Using above pp file the command 'date >> /tmp/date.txt' should be executed on Sunday between 2 to 4, but it executes in every 30 minutes.

Environment

  • Red Hat Satellite v.6.1.8
  • Puppet

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content