FAQ
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/1655571e-9eec-4f8b-9bb6-ed0bfff70588%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Jcbollinger at Feb 17, 2014 at 2:33 pm

    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 [email protected].
    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.
  • Deep at Feb 17, 2014 at 5:15 pm
    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 [email protected].
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedFeb 14, '14 at 4:48p
activeFeb 17, '14 at 5:15p
posts3
users2
websitepuppetlabs.com

2 users in discussion

Deep: 2 posts Jcbollinger: 1 post

People

Translate

site design / logo © 2023 Grokbase