You could use resource defaults[1] to achieve this. If your class is
using the schedule metaparameter for a bunch of exec's you could add
Exec {
schedule => 'my_schedule',
}
schedule { 'my_schedule':
period => daily,
range => '2-4',
}
This would add the schedule parameter with the value 'my_schedule' to
all of the exec{} resources within the class.
[1] -
https://docs.puppetlabs.com/puppet/latest/reference/lang_defaults.html
Best regards,
-g
--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile:
+1.206.414.8658