On Wed, Apr 27, 2011 at 2:47 PM, Nigel Kersten <[email protected]> wrote:
>
>
> On Wed, Apr 27, 2011 at 3:40 PM, Stig Sandbeck Mathisen <[email protected]>
> wrote:
>>
>> Martin Harrigan <[email protected]> writes:
>>
>> > Hi all,
>> >
>> > Does a subscription result in an auto-requirement?
>>
>> A "subscribe" should imply a "require", although this is not explicitly
>> stated at
>> http://docs.puppetlabs.com/references/stable/metaparameter.html#subscribe
>>
>> The answer is a firm "I think so". :)
>>
>
> This might make it a bit firmer :)
> file { "/tmp/testfile":
>   ensure  => file,
>   content => generate("/bin/date"),
> }
> exec { "/opt/local/bin/cowsay moo":
>   subscribe => File["/tmp/testfile"],
>   before    => File["/tmp/testfile"],
> }
> kripke:~ nbk$ puppet apply -v /tmp/test.pp
> err: Could not apply complete catalog: Found 1 dependency cycle:
> (File[/tmp/testfile] => Exec[/opt/local/bin/cowsay moo] =>
> File[/tmp/testfile])

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to