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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to