On Tuesday, September 17, 2013 5:37:36 AM UTC-5, jamido wrote:
>
> Hello, 
>
> the following small code works, but the file /tmp/test will never be 
> created because the schedule is skipped because running on an host.
>


You are misinterpreting the output.  File['/tmp/test'] is not applied 
because the schedule assigned to it does not allow it to be applied during 
that run.  *As a separate issue*, the schedule resource itself is not 
applied to the target node, but that's meaningless because schedules have 
no physical manifestation on nodes.

You may also be misunderstanding schedules in general.  In particular, they 
do not schedule a resource to be applied at some later time; instead, they 
restrict whether resources can be applied during the current run.  The 
schedule you are using says that each resource it is attached to can be 
applied only between 02:00 and 04:00 local time, and at most once a day.  
For it to be applied at all, the agent must run during the specified time 
window.  If you are testing outside that window then you should always see 
the File skipped.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to