You should use the 'require' metaparameter, or if you absolutely need to, explicit ordering. docs.puppetlabs.com will give you further information.
You should also read the Style Guide, and not throw all of that in one manifest. On Wed, Jun 25, 2014 at 8:04 AM, Malintha Adikari <malin...@wso2.com> wrote: > Hi, > > In my manifest file there are 3 elements ( 2 defined types and one exec) > > define *fill_templates*($location) { > file { "$location/$name/": > ensure => present, > owner => 'root', > group => 'root', > mode => '0777', > content => template("config/${name}.erb"), > } > > } > > *fill_templates { $filelist: location=>$agentLocation}* > > exec { "unzip_pack": > command => "unzip ${product_pack}", > cwd => $agentLocation, > path => $command_path, > logoutput => true, > timeout => 3600, > require => File["${agentLocation}/${product_pack}"], > } > > > > $foo = [{"addr" => $source, "port" => > $destination}, > {"addr" => "bat", "port" => "2"}] > > * testmod::bar {$foo:} * > > define *testmod*::bar () > { > $var1 = > $name["addr"] > $var2 = > $name["port"] > notify > {"**********************${var1}_${var2}***********************************": > } > > When I execute this manifest what is the order of the above 3 elements > execution. I have noticed the they are executed in mixed order. How can I > define the order of execution in this kind of scenario ? > > Regards, > Malintha Adikari > } > > -- > 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/fcdb2227-918e-4273-a5da-6dd29c0000a5%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/fcdb2227-918e-4273-a5da-6dd29c0000a5%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 puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAFt4V4no5BJhgcFk%3DUSaSoOB6zP1Y1CNGd9qnES0Y6T%2B4HfPEA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.