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
}