no, but thats a good hint since i have a mount and directory ressource in the defined type and i wouuld have ton define a orer for both
Mountentry<| title == '1_usr_sap' |> > -> > Mountentry<| title == '2_usr_sap_lmp' |> looks better 2015-01-12 19:43 GMT+01:00 Felix Frank <[email protected]>: > 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 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/54B415D9.9040800%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%2BVv9LnnQdcVpG%2BrTmegc7HR3tUNw2ex6icd65DQ6HRSXUg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
