[Puppet Users] Re: Using external facts in puppet manifests

2014-06-19 Thread Malintha Adikari
Hi all


I could solve it using *$::items* in my manifest.


On Friday, June 20, 2014 11:30:27 AM UTC+5:30, Malintha Adikari wrote:
>
> I am facing the same issue. I have set 
>
> key1=value1
>
> inside my puppet agent facts.d/file.txt.
>
> How this value can be taken into manifest in my puppet agent. I have tried 
> *$key1* and *${::key1}* but not worked. What is the correct way of taking 
> it ?
>
> Regards,
> Malintha 
>
> On Friday, February 14, 2014 10:12:30 PM UTC+5:30, Deep wrote:
>>
>> Hi,
>>
>> I have created few external facts by putting an yaml file in 
>> /etc/puppetlabs/facter/facts.d folder on agent and they are available in 
>> puppetdb and in my erb templates.
>>
>> But I am not able to use them in puppet manifests.I am getting undef 
>> value.
>>
>> Is there anyway to use them?
>>
>> Deep
>>
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7b1aa3af-31ff-4871-adb2-85be2eff1f9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Using external facts in puppet manifests

2014-06-19 Thread Malintha Adikari
I am facing the same issue. I have set 

key1=value1

inside my puppet agent facts.d/file.txt.

How this value can be taken into manifest in my puppet agent. I have tried 
*$key1* and *${::key1}* but not worked. What is the correct way of taking 
it ?

Regards,
Malintha 

On Friday, February 14, 2014 10:12:30 PM UTC+5:30, Deep wrote:
>
> Hi,
>
> I have created few external facts by putting an yaml file in 
> /etc/puppetlabs/facter/facts.d folder on agent and they are available in 
> puppetdb and in my erb templates.
>
> But I am not able to use them in puppet manifests.I am getting undef value.
>
> Is there anyway to use them?
>
> Deep
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/36732b0d-a667-4c84-87f6-d4a7aeb88309%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Using external facts in puppet manifests

2014-02-17 Thread Deep
Hi John,

thanks a lot for your response. I am able to see the external fact value 
now. 

On Monday, February 17, 2014 2:33:40 PM UTC, jcbollinger wrote:
>
>
>
> On Friday, February 14, 2014 10:42:30 AM UTC-6, Deep wrote:
>>
>> Hi,
>>
>> I have created few external facts by putting an yaml file in 
>> /etc/puppetlabs/facter/facts.d folder on agent and they are available in 
>> puppetdb and in my erb templates.
>>
>> But I am not able to use them in puppet manifests.I am getting undef 
>> value.
>>
>> Is there anyway to use them?
>>
>>
>
> If the facts are being interpolated into your templates then they are also 
> available in your manifests.  If you present an example manifest wherein 
> the fact value does not seem to be read correctly, then we may be able to 
> help.  At a first guess, though, I'd rate the chances near unity that 
> either the manifest is reading the fact value correctly, or that its name 
> is misspelled.
>
>
> 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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b10f0b44-5101-4cc6-bb49-571809433840%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Using external facts in puppet manifests

2014-02-17 Thread jcbollinger


On Friday, February 14, 2014 10:42:30 AM UTC-6, Deep wrote:
>
> Hi,
>
> I have created few external facts by putting an yaml file in 
> /etc/puppetlabs/facter/facts.d folder on agent and they are available in 
> puppetdb and in my erb templates.
>
> But I am not able to use them in puppet manifests.I am getting undef value.
>
> Is there anyway to use them?
>
>

If the facts are being interpolated into your templates then they are also 
available in your manifests.  If you present an example manifest wherein 
the fact value does not seem to be read correctly, then we may be able to 
help.  At a first guess, though, I'd rate the chances near unity that 
either the manifest is reading the fact value correctly, or that its name 
is misspelled.


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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/924f75c2-7ae7-4585-ada1-52536ec6ff07%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.