search for: facterlib

Displaying 13 results from an estimated 13 matches for "facterlib".

2007 Jul 17
5
Recommended way to set $FACTERLIB?
Is there a recommended way to set $FACTERLIB so that Puppet will be able to access custom facts when running as a Red Hat service? If I export $FACTERLIB=/var/puppet/facts and then run Puppet manually I have no problems, but I''m not sure how I should be setting $FACTERLIB when Puppet is running automatically. Cheers, James ******...
2007 Sep 13
2
Weird Facter behaviour
I have a custom fact. It syncs correctly, works correctly everywhere when run via ''facter'', and works correctly from puppet on all but one machine. >From ''facter'': # export FACTERLIB=/var/puppet/facts # /opt/puppet/bin/facter itg_location mel But from within puppetd I get: Sep 13 14:54:29 hordac puppetd[768]: [ID 702911 daemon.warning] Could not load fa ct /var/puppet/facts/itg_extras.rb: unsupported address family Sep 13 14:55:49 hordac puppetd[768]: [ID 702911 daemon.error]...
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
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
2013 Sep 11
4
getting array of hostnames of clients
...9;') else output = "empty" end output end end but this isn''t getting anything in the fact at all, not even "empty". Running that cat command on the commandline returns exactly what I would expect. If I run facter on the commandline like this: FACTERLIB="/etc/puppet/modules/smokeping_prep/lib/facts" facter nodelist I get the list I expect. On each node I have this: @@file { "testnode-{$::fqdn}": ensure => file, path => "/tmp/testnode-$::fqdn.txt", mode => 640, owner => root, tag =>...
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
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 May 16
2
Announce: Facter 2.0.0rc1 Available
...chpath For security reasons and principle of least surprise, Facter now explicitly excludes relative directories from its searchpath. When a directory is excluded, Facter will log a debug message. Removed deprecated memorytotal fact Previously deprecated, the preferred fact is memorysize. FACTERLIB enviroment variable On Windows, the FACTERLIB environment variable now uses the platform specific path separator. Facter 2.0.0rc1 Changelog =================== Chris Price (7): 26918b3 (#12012) Move "with_env" utility method from test code into lib code 810c465 (#12012) R...
2011 Mar 05
1
err: Could not run Puppet configuration client: Parameter require failed: No title provided and "" is not a valid resource reference
...=> "/usr/local/bin/launch-puppet", user => "root", minute => ip_to_cron(2), require => [ File["/var/log/puppet"], File["/usr/local/bin/ launch-puppet"], File["/etc/profile.d/puppet.sh"], File["/etc/ profile.d/facterlibs.sh"] ], } # cron # setup paths file { "/etc/profile.d/puppet.sh": owner => "root", group => "root", mode => "0755", content => template("puppet/profile.d/ puppet_gembased.sh.erb"),...
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
2012 Mar 23
11
Plugins and Hiera
Dear all, This is a continuation of another thread, but I think the question diverged enough to create a new one. I have a hiera hierarchy like this: :hierarchy: - %{fqdn} - %{secundary_group} - %{primary_group} - %{productname} - all And I need to define the secondary/primary groups as facts, on the nodes. Gary has suggested me to use plugins, that they will provide the facts before
2009 Jul 27
4
Custom fact errors
...then "siteA" when "10.1.1" then "siteA" when "192.168.88" then "siteB" else "Unknown" end netname end ---------- Running facter on the client machine directly after setting FACTERLIB to /var/lib/puppet/lib/facter/ shows the same error on the first line of output: "Could not retrieve test_fact: non-sh interpreters are not currently supported" Can anyone shed some light on this issue? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this me...
2013 Oct 13
24
exporting custom facts to puppet agents
Dear all, I have a custom fact, that reads a file and then generate the values dynamically based on the file content. It''s something like this: inFile = "/home/admin/OSs.txt" > gos = {} > > if File.exist?(inFile) > open(inFile, ''r'').each do |line| > next if line =~ /^\s*(#|$)/ > parts =