Hi, Yes there is at least one way. I have been using tags to achieve this like so:
$default_a = { tag => 'do_a' } $some_hasha = hiera('a') $default_b = { tag => 'do_b' } $some_hashb = hiera('b') create_resource(resource_type, $some_hasha, $default_a) create_resource(resource_type, $some_hashb, $default_b) Resource_type<| tag == 'do_a' |> -> Resource_type<| tag == 'do_b' |> You should also be able to tag in your yaml 'a' or 'b' hash but you have to tag every hash throughout the hierarchy (which could lead to unexpected results if you forget). Den > On 30 Mar 2014, at 0:48, Vishwa Kumba <vish.for...@gmail.com> wrote: > > I was wondering if there is a way to define ordering between 2 > create_resources in puppet manifests. > > For example: > > create_resources('php::install', $php_packages) -> > create_resources('webapps::deploy', $apps) > > The above does not work, but does puppet support the ordering between 2 > create_sources statements? > I need my webapps to be deployed after the required packages have been > installed. > > I have seen a syntax like this below. Here class['apache'] seems to be > execued before the create_resources here. > > include apache > Class['apache'] -> Webapps::Deploy_files <| |> > create_resources('webapps::deploy_files', $apps) > > Is there any puppet documentation on this strange syntax <| |>? Using this > syntax, is it possible to call create_resources before and after a class > declaration? > > > -Vishwa > -- > 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 puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/2e1fb72d-02e3-4c1d-a552-23090ad6be06%40googlegroups.com. > 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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/F0AD206A-C151-4CE0-87A3-32FE27E5BB04%40gmail.com. For more options, visit https://groups.google.com/d/optout.