On Feb 6, 2013, at 10:36 PM, Brian Carpio wrote:
> I need a way to put down a file, /tmp/finished, for instance as the last step
> in an initial puppet run.
>
> I've tried playing with the relationship syntax:
>
> * <| |> -> File["/tmp/finished"]
>
> But that doesn't work
>
> For now I am using
>
> Package <| |> -> File["/tmp/finished"]
>
> And that seems to work most of the time but there are occurrences where
> another exec statement is run or even a file is put down after /tmp/finished
How about a run stage?
http://docs.puppetlabs.com/puppet/2.7/reference/lang_run_stages.html
You could do a stage called "finished" and declare the file in there.
stage {'last': after => Stage['main'] }
file {'/tmp/finished':
ensure => present,
stage => last,
}
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.