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 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/54B40FDF.2040809%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to