Displaying 20 results from an estimated 30000 matches similar to: "Using custom facts in reports"
2010 Nov 19
1
Fwd: Re: Using custom facts in Puppet
May I please ask again for some assistance with the question below? I
hope somebody can help me.
Thanks,
Ed Greenberg
-------- Original Message --------
Subject: Re: [Puppet Users] Using custom facts in Puppet
Date: Tue, 16 Nov 2010 13:14:06 -0600
From: Ed Greenberg <edg@greenberg.org>
Reply-To: puppet-users@googlegroups.com
To: puppet-users@googlegroups.com
On 11/16/2010 09:33
2009 Jul 01
1
Facter infinite looping on custom facts
Hi All
Background:
I am running Puppet to configure ESX 3.5 servers by NFS mounting the Puppet
binaries and configuration from a shared server. This is to ensure VMware
don''t come back refusing support for installing non standard software on the
server.
# ruby -v
ruby 1.8.7 (2009-04-08 patchlevel 160) [i686-linux]
# facter -v
1.5.5
2008 Dec 01
2
configuring puppet to run custom facts
Hi,
I''m following
http://reductivelabs.com/trac/puppet/wiki/PluginsInModules in order to
use a custom fact.
My modules looks like:
# ls manifests/modules/network/
manifests plugins
# ls manifests/modules/network/plugins/facter/primaryint.rb
manifests/modules/network/plugins/facter/primaryint.rb
as is said in doc.
Then:
Turn on pluginsync and specify factpath, so that the facts
2010 Apr 09
2
Custom facts for a puppetmasterless environment
I see the instructions for creating custom facter recipes here:
http://projects.reductivelabs.com/projects/puppet/wiki/Adding_Facts
and in this thread, James Turnbull suggests that Facter might some day
support other languages besides ruby:
http://groups.google.com/group/puppet-users/browse_thread/thread/8c127ae8898d3bcf/c5ca551b77c4eb67?lnk=gst&q=facter+perl#c5ca551b77c4eb67
He writes:
2012 Jun 21
3
Question about best practices for custom facts in puppet
We''re running puppet 2.7.11 and facter 1.6.1. We''re at a point where we
need to start having some custom facts for our environment but we''re not
sure the best way to go around it, so I''m looking for feedback from the
community.
I''ve setup custom facts with facter now and have successfully polled these
and also proven that the puppet clients have
2011 Apr 07
12
Mutliple custom facts not showing in facter
Hi,
I''ve noticed that defining multiple facts in one file is possible, and
puppet can make use of them correctly, but when trying to call with facter
--puppet they are not shown, do I need something special to make them work
as any other single custom fact?
Master is running 2.6.7
This is a custom fact with two facts in it:
[modules/foobar/lib/facter/foobar.rb ]
require
2013 Mar 11
3
custom puppet facts
I have written a custom puppet fact using a ruby script. It is very simple
- it just adds a string to a fact. However I have written a module but it
appears to me that the custom fact has been applied to all my machines
without me specifying any node definitions. When I run a puppet agent
--test --noop, I see the custom fact appear in /var/lib/puppet/lib/facter.
Info: Loading facts in
2007 Jun 14
1
Custom facts not being displayed
I''ve added some custom facts to my Puppet setup but they aren''t being
displayed by facter. I''ve tested them and they work correctly when run
manually (and I''ve also tried a number of those listed on the wiki) but
they aren''t included in facter''s output.
I am using the default settings for factdest and factpath and the facts
are being copied
2010 Nov 10
4
Custom facts in current and old environments
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hello,
I read that there is several problems about custom facts on this list.
However, none is serving my task exactly so I start another. (Topic
»custom facts in legacy puppet 0.24.[89]« is the might be the same issue
but that gets no answer.)
My problem is that I have to serve clients with different versions of
puppet. The systems running ubuntu
2007 Aug 19
6
Problem with adding custom facts
Hi
I''m trying to add extra facts to facter. The puppetd is running on
Debian Etch Amd64 as Xen 3.1 guest. I''ve follow the Wiki on adding
the facts.
First I used relative path in the manifest and added "factsync=true"
in client''s puppetd.conf. And then tested it with "puppetd -vt". But
no matter what i tried, this error came:
File paths must be fully
2012 May 16
2
Announce: Facter 2.0.0rc1 Available
Facter 2.0.0rc1 is a feature release candidate with bug fixes,
features and other improvements.
Facter 2.0 is designed to accompany the upcoming Puppet 3.0 release
and has breaking changes from Facter 1.6.x. Facter 2.0 is not
backwards compatible with Puppet 2.6 or 2.7.
It includes contributions from the following people: Chris Price,
Daniel Black, Daniel Pittman, Garrett Honeycutt, Gary Larizza,
2007 May 01
8
Custom functions and facts
Hello!
I''ve been trying to use facts from Facter in a custom function. I''ve
been following Matthew''s entry in the wiki
(http://www.reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions).
What i''m seeing is that Facter[''fqdn''].value is always returning the
fqdn of the puppetmaster host. I was expecting the fqdn of the client
host.
2012 Aug 16
2
Custom Facts accessible via Facter
I don''t get it. I just wrote a simple test custom fact in ruby (ugh, I
hate ruby) and was able to access it as a variable on the client side.
However, it doesn''t appear in the facter output. Is is supposed to?
Doug
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to
2011 Jul 01
0
pluginsync fails to load custom facts or providers
possibly related to (or the same as) issues 4830 and 2244, i''m getting
errors when adding a custom fact and provider to a module to propagate
to clients.
am i missing something here? i tried the workaround of adding a
fileserver.conf to the master (referenced below and in the tickets)
with no change.
thanks for any help.
here''s a pile of details:
puppetmaster 2.6.9 is running
2011 Nov 01
2
Custom fact not set with mc-puppetd
Hello,
I''ve mcollective 1.2.1 with puppet 2.6.12 on rhel5.6, facter 1.6.2
setup from http://projects.puppetlabs.com/projects/mcollective-plugins/wiki/FactsFacterYAML.
Now I''ve create a custom fact in /usr/lib/ruby/site_ruby/1.8/facter/
customer_status.rb.
On the client;
Running facter customer_status works.
Running ''puppet agent --test'' works, customer_status
2012 Feb 07
1
Removing custom facts from Facter
Hi,
I need to remove a custom fact from facter. How to do this? For now, I
set the environment variable FACTER_customfact = something but would
like to get rid of it permanently.
Thanks,
Werner
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this
2007 May 11
3
Exception handling in custom facts
Hi.
I''d like to use exception handling in my custom facts. For example, in
plain Ruby:
begin
buildno = ''''
bcrelease = open("/etc/BCrelease")
while (line = bcrelease.gets)
line = line.chomp
buildno = $1 if line =~ /^Build:\s+(\d+)/
end
bcrelease.close
print "#{buildno}\n"
rescue
print "No
2009 Dec 21
5
custom fact and environment variable
Hello,
I''m trying to add an environment variable as fact like this :
#export $FACTER_test="infof"
#facter | grep test
test => infof
But my fact don''t synchronize with puppet master. I don''t see it in /
var/puppet/yaml/clientfile.yaml
If I want this works, I''ve need to start puppet like this :
#puppetd -vt --factsync
but factsync''s
2013 May 14
3
PuppetDB "Failed to submit 'replace facts' command"
I have a small environment with a single puppetmaster and puppetdb on the same node that I get sporadic "Failed to submit ''replace facts'' command" errors from nodes. It isn''t consistent about which nodes are causing the error and I can''t find anything else going on at the same time on either the master or the agent that these errors happen.
Here
2011 Feb 19
1
facts are loaded twice
Hi,
i''ve set up my puppet on several clients and today i noticed that the
facts are loaded twice by the clients. I took strace to get the list
of loaded fact file and i found that puppet seems to load the same
fact files twice:
chdir("/var/lib/puppet/lib/facter") = 0
open(".", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 6
info: Loading facts in vserver