On Tuesday, March 25, 2014 3:00:13 AM UTC-5, Weng Wilson wrote:
>
> Hi,
>
> I'm new to puppet. Our deployment process is kind of sequential, so I 
> frequently use chain arrow "->" to solve the dependency. But when there is 
> conditional statements such as "if ... else ..." , the chain will broken. 
> The next operation cannot design which resource to depend on.
> Could anybody suggest me some good way or better structure to solve that?
>
>

You can use the require / before / subscribe / notify resource 
metaparameters instead of chaining operators.  You can also chain resource 
references instead of directly chaining declarations:

  Package['foo'] -> File['/etc/foo.conf']

And you can hide conditionals inside defined types, or simply move them 
elsewhere.  Variations on the last are particularly popular, as they 
include aspects of the "roles and profiles" pattern as well as common 
applications of hiera.


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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d9615f34-0fc8-4987-ac39-c45f88e0b14d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to