generally yes,
but in this case the names are only examples and dont know which names are
defined in the database.
so the order tag is a more generic way to seperate data from code.
but  anyway  - thanks


2015-01-12 19:18 GMT+01:00 Felix Frank <[email protected]>:

> On 01/12/2015 05:03 PM, Michael Wörz wrote:
> > Solved - tags do the job
> >
> > define mountentry($device,$mountpoint,$order) {
> >   @notify{"$name":
> >     tag => ["mount$order"],
> >   }
> > }
> >
> > class sysctl::mounts() {
> >   $m=$yaml['mounts']
> >   create_resources(mountentry,$m)
> >   Notify <| tag == 'mount1' |> ->  Notify <| tag == 'mount2' |>
> > }
>
> Nice one, but you can even simplify.
>
> Mountentry<| title == '1_usr_sap' |>
> ->
> Mountentry<| title == '2_usr_sap_lmp' |>
>
> HTH,
> Felix
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/Es4P1tpfBRU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/54B40FDF.2040809%40alumni.tu-berlin.de
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGPb%2BVvvCKmM3unbRbEnNbzRYT-%3DUFj3%3DjrdOUGTe%3DYgeM0SLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to