FAQ
Should you require all explicit dependencies when working with resources or can you "cheat" like the following: https://gist.github.com/4197521

Basically, should the File['bas'] resource explicitly require File['foo'] and File['baz']?

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

Search Discussions

  • Gary Larizza at Dec 3, 2012 at 8:13 pm
    Mark,

    Dependencies can be 'chained' exactly as you specified in your gist.
    File['baz'] will indeed come after File['foo'] and File['bar'] without the
    explicit dependency on File['bar'].

    On Mon, Dec 3, 2012 at 11:54 AM, Mark wrote:

    Should you require all explicit dependencies when working with resources
    or can you "cheat" like the following: https://gist.github.com/4197521

    Basically, should the File['bas'] resource explicitly require File['foo']
    and File['baz']?

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


    --

    Gary Larizza
    Professional Services Engineer
    Puppet Labs

    --
    You received this message because you are subscribed to the Google Groups "Puppet Users" group.
    To post to this group, send email to puppet-users@googlegroups.com.
    To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
  • Gary Larizza at Dec 3, 2012 at 8:23 pm
    As for the 'SHOULD I do this?' question, I think it's a perfectly
    acceptable pattern as long as you understand that if File['bar'] fails,
    File['baz'] will NOT be evaluated/created. If that's what you want, then
    that's okay. If that's NOT what you want, then you need to change the
    dependency.

    On Mon, Dec 3, 2012 at 11:54 AM, Mark wrote:

    Should you require all explicit dependencies when working with resources
    or can you "cheat" like the following: https://gist.github.com/4197521

    Basically, should the File['bas'] resource explicitly require File['foo']
    and File['baz']?

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


    --

    Gary Larizza
    Professional Services Engineer
    Puppet Labs

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedDec 3, '12 at 7:54p
activeDec 3, '12 at 8:23p
posts3
users2
websitepuppetlabs.com

2 users in discussion

Gary Larizza: 2 posts Mark: 1 post

People

Translate

site design / logo © 2021 Grokbase