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' |>
}


2015-01-12 16:10 GMT+01:00 Michael Wörz <[email protected]>:

>       mounts:
>
>          1_usr_sap:
>             device: /dev/.....
>             mountpoint: /usr/sap
>          2_usr_sap_lmp:
>             device: /dev/....
>             mountpoint: /usr/sap/LMP
>
>
> define mountenty(){
>
>        # some mount ressource
>
>        # some directory resource
>
> }
>
>
> class sysctl::mounts() {
>   create_resources(mountentry, $mounts)
> }
>
>
> Hello,
>
> i need to iterate over all mounts, creating mountpoint and mount the
> ressource.
> But the generated ressources need to be ordered, bcs i can only mount
> /usr/sap/lmp if usr sap is mounted.
>
> the definded type just creates ressources ans executes them randomly
>
> thanks
>
> --
> 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/b6440d12-99cb-4959-ab42-c263057d6360%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/b6440d12-99cb-4959-ab42-c263057d6360%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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%2BVuAm%3DztUdLJ215ODwK_LAd72eukwnsRVjDH4Snrs-pqWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to