Hi,
I have defined type as follows
*define fill_templates($location) { $fileName =
$name["filename"]
$fileLocation = $name["filelocation"] file {
"${fileLocation}/${fileName}/": ensure => present, owner
=> 'root', group => 'root', mode => '0777',
content => template("config/${fileName}.erb"), require =>
Exec["unzip_pack"],}}*
And I call that type as
*fill_templates { $foo: location=>$agentLocation}*
I want to make this a pre-requirement to my another exec. So I want to make
it "require" for that exec.
exec { "strating":
user => 'root',
environment => 'JAVA_HOME=/home/agent2/jdk1.6.0',
path => $command_path,
command => "${agents_location}/...../bin/myFiler.sh",
logoutput => true,
timeout => 3600,
require =>*XXXXXXXXXXX*,
}
How Can I do that ?
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/8c8d642d-05fc-44df-894c-b8ece4a1731e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.