On Fri, May 28, 2010 at 4:33 PM, Nigel Kersten <nig...@google.com> wrote:

>
>
> On Fri, May 28, 2010 at 4:19 PM, James Turnbull 
> <ja...@lovedthanlost.net>wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Nigel Kersten wrote:
>> > I mentioned we had a custom fact for the client certname in IRC the
>> > other day and someone poked fun at me as it's apparently built in.
>> >
>> > For the life of me I can't work out what variable it is. Anyone know?
>> >
>> > (our certnames bear no relationship to any other attribute, fqdn etc)
>>
>> It is not built-in - someone has misled you young man.
>>
>
> Anyone see any problems with doing it like this?
>
> require 'puppet'
>
> Facter.add("certname") do
>   setcode do
>     Puppet[:config] = "/etc/puppet/puppet.conf"
>     Puppet.parse_config
>     Puppet[:certname]
>   end
> end
>
> Doing this will break local 'puppet' runs for us at least.

Remove the Puppet.parse_config line.....



>
>
>
>
>>
>> Regards
>>
>> James Turnbull
>>
>> - --
>> Author of:
>> * Pro Linux Systems Administration
>> (http://www.amazon.com/gp/product/1430219122/)
>> * Pulling Strings with Puppet
>> (http://www.amazon.com/gp/product/1590599780/)
>> * Pro Nagios 2.0
>> (http://www.amazon.com/gp/product/1590596099/)
>> * Hardening Linux
>> (http://www.amazon.com/gp/product/1590594444/)
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.7 (Darwin)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iQEVAwUBTABPZiFa/lDkFHAyAQLkywgAl1tn3QraNmZLn3Tsdt1Ymt7gOuVoISzX
>> bz1BxW+QDWGVZZFw0hYZ8ob1kgiCgdkrZkLtjIzQbzJNR2yNY0PURqUvpGNpfoVi
>> wB2O2JmtNu3v1mFovvHrSTtcruQ53VBpOaL2wdKcoPX+IF/sZbeQic1RTLS2S0YZ
>> fa/iRRABidN7g5BSIiK5xPmRBbTuG25BngWs242p/vFeIbHOn57ix3dBVKZpZHnO
>> DT0mt8uCYz2pEEVHVVDXwf4GL43jbATGRCgWuXKt0WATvwg06a8/njDmXTV45OEC
>> 6FL2/yETt6sUk9snXyKyTWtTzKN++gXNadtPs+/LaJPwVHh0AHyzhQ==
>> =M0AA
>> -----END PGP SIGNATURE-----
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To post to this group, send email to puppet-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>>
>
>
> --
> nigel
>



-- 
nigel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to