It works, Thank you
On Thursday, June 26, 2014 1:24:51 PM UTC+5:30, Gavin Williams wrote:
>
> Something like:
>
> require => Fille_template[$foo]
>>
>
> should do it...
>
> Gav
>
> On Thursday, 26 June 2014 06:49:55 UTC+1, Malintha Adikari wrote:
>>
>> 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/e55796cf-8555-4982-8ba4-a1ca2d386f91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.