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/58d43394-0f21-4a95-8f64-9027f1d89714%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.