I have now something like this in one of my modules:
require 'facter'
Facter.add("temp_dir") { setcode { Dir::tmpdir } }
Why I was asking about a standard fact: I wanted to contribute to some
external module and I needed to download a file on Windows.machines.
And I realized there is now standard location where any user can
download files.
Thank you all for your answers.
Best regards,
Cristian Falcas
On Mon, May 5, 2014 at 8:21 PM, jcbollinger <[email protected]> wrote:
>
>
> On Saturday, May 3, 2014 12:50:11 PM UTC-5, Cristian Falcas wrote:
>>
>> Hello,
>>
>> Does puppet have a variable for temporary directories for each os, or
>> I need to write a custom fact with this?
>>
>
>
> You can get the complete list of facts that any node will provide to Puppet
> by running "facter -p" on that node. I don't see a standard fact naming a
> designated temporary directory when I try it on CentOS 5 or 6.
>
>
> John
>
> --
> 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/4a312035-105f-4d2f-9788-d9841f9900a0%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
--
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/CAMo7R_eHPZNRfFfrPcUxd%3D8Yd8Be5tEoRubtgPSpJNyuT5UcDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.