Ah, I see. Still, out of curiosity - have you tried Mountentry<| order == 1 |> ...?
On 01/12/2015 07:42 PM, Michael Wörz wrote: > 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] > <mailto:[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 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/54B415D9.9040800%40alumni.tu-berlin.de. For more options, visit https://groups.google.com/d/optout.
