Hi Martin,
Il giorno 13/mag/2016, alle ore 09:36, Martin Alfke ha
scritto:
> The Ruby part must be a function - like in the example you provided in your
> first email.
> You can then use the function inside your manifest.
>
> Functions are always executed on the Master.
Hi Michael,
there are 2 possibilities:
1) i have not got what you mean.
2) you have not got what i mean.
To better explain:
your suggestion is to look over a fact in the agents.
my needed environmentpath variable is the master one.
i need to check over the existence of a file, but i want to
You may need to create a custom fact to determine the environment when
the agent runs. For example, here's a
custom fact that reads the environment from a file.
Facter.add("environment") do
setcode do
Facter::Util::Resolution.exec('/bin/cat /usr/local/etc/environment')
end
end
Your
Hi Daniele,
On 13 May 2016, at 02:13, Daniele Palumbo wrote:
> Il giorno 12/mag/2016, alle ore 10:19, Martin Alfke ha
> scritto:
>> You might want to access the Puppet settings:
>>
>> Puppet.initialize_settings unless Puppet[:confdir]
>>
>> and then
Il giorno 12/mag/2016, alle ore 10:19, Martin Alfke ha
scritto:
> You might want to access the Puppet settings:
>
> Puppet.initialize_settings unless Puppet[:confdir]
>
> and then check for the environmentpath setting.
Hi Martin,
Thank you very much for your hint.
But I
Hi Daniele,
On 08 May 2016, at 23:36, Daniele Palumbo wrote:
> Hi,
>
> i need to check if a file exists on the puppet master.
>
> No big deal:
> http://stackoverflow.com/questions/18784329/how-to-test-for-existence-of-a-file-on-the-puppet-master
>
> So i made:
> --
>