Displaying 20 results from an estimated 30000 matches similar to: "Custom fact question"
2007 Dec 20
11
No networking
I''m trying to run puppet on a node I''m cloning from CD. No IP, no DNS,
puppet with a standalone manifest and --use-nodes.
I get dnsdomainname errors and a "Network is unreachable" error. I''m
using 0.20, but I checked for new options in 0.23 and didn''t see one
to turn off networking.
Is this an option?
Thanks.
2010 Apr 05
5
Problem syncing custom fact
I am trying to get a custom fact to sync. The fact is in a module. It
will sync if I run puppet with "--pluginsync" but not otherwise. I
have "pluginsync=true" in my puppet.conf. Shouldn''t the command line
option and puppet.conf option have the same results?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
2011 Jun 06
1
use a custom fact value in a manifest
Hi everybody,
i''m a lucky Puppet user for a few weeks and i''m currently "blocked"
for a "simple" thing.
I try to use facter custom values deployed with pluginsync feature in
one manifest. Unfortunately, values aren''t available when manifest is
executed.
I tried to use pre/main stage in order to deploy my facts with a pre
stage class but it
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
2013 Sep 21
3
symlink creation using facter, but facter is nil at first run.
Hi all,
I''m trying to find a better way to implement this, but I can''t think of. I
have a jdk module that requires to create a symlink to whatever version is
the one installed. Say I install jdk-6u35, it will create something like
/usr/java/jdk_1.6.35. I would like to create a symlink /usr/java/jdk whose
target would be /usr/java/jdk_1.6.35.
The point here isn''t to ask
2013 Oct 30
4
Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production"
Hi,
When I run puppet agent --test --environment 42A, I have the following
warning :
Warning: Local environment: "42A" doesn''t match server specified node
environment "production", switching agent to "production".
...
The puppet manifest for the environment "42A" isn''t applied.
The puppet version is 3.3.1-1puppetlabs1 on agent and
2013 Oct 07
6
Force Fact within manifest
I have a requirement where I want a Fact to be stored in PuppetDB during
the manifest run and not during the initial fact gathering phase.
I know I can, in my manifests, create a file in /etc/facter/facts.d or I
can write a Ruby script that will then be distributed by plugin sync. But
both of these methods will only publish the fact during the initial phase
of the puppet agent run. What I
2013 Feb 15
2
Puppet agent daemon not seeing a Facter fact
Hi all, first post here... reposting this from Stack Overflow as it didn''t
get much traction there...
I am using puppet to read a fact from facter, and based on that I apply a
different configuration to my modules.
Problem:
the puppet agent isn''t seeing this fact. Running puppet agent --test interactively
works as expected. Even running it non-interactively from a script
2013 Jan 22
2
Fact chicken and egg problem
I am trying to expose a custom fact that requires a certain gem to be
installed. However, the facts are being loaded before the module is loaded
(and I see why this is the case sine the fact should be made available to
the module). So my question is, is there a way to avoid this chicken and
egg problem? I tried putting the module in a stage before main, but it
still looks like the facts
2010 May 19
4
How Does the Interaction Between Facter, Clients, and the Server work
Group -
I''m putting a presentation together for $work (a large .gov) and I want to
make sure I get my facts (pun intended) straight ...
Are the following steps for Facter-Client-Server interaction correct (I have
a feeling not):
1. Client puppet run is initiated (via regular schedule, puppetrun, or
puppetd)
2. The client contacts the server and downloads any custom facts it does not
2012 Mar 08
1
Puppet / Facter plugin issue
If I externalise my Puppet module config to a directory outside of
Puppet using the modulepath / manifestdir settings:
[main]
pluginsync=true
modulepath=/home/ec2-user/projects/qmg-puppet/etc/puppet/modules
manifestdir=/home/ec2-user/projects/qmg-puppet/etc/puppet/
manifests
the agents log the following error:
"Could not evaluate: Could not retrieve information from source(s)
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:
2011 Oct 04
4
facter variables empty
Hi,
On my puppet node, there are many facter variables that are empty in
my manifests.
But, there are not empty when I start "facter" on the node.
why ?
ex in a module:
class resolver {
if $::ipaddress6 {
...
}
$domainename = "$domain"
}
In this manifest, $domain and $ipaddress6 are empty
In the facter command line, there not empty.
--
You received this
2007 Jul 13
7
new puppet providers
I might have the terminology wrong, but how to a give new puppet
providers to the puppet clients?
I''m thinking a provider is the thing the puppet client uses to
implement a task that the master has given it.
Am I way off here?
Mike B.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
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
2012 Jul 04
12
How to get an input file to a facter ?
Dears all,
I was testing my localusers facter by puppetmaster fileserver but i''d
got in error
Could not retrieve localusers: No such file or directory - /etc/
puppet/whitelist
I was pretending the file was served by fileserver of puppetmaster
doing in init.pp :
file { "/etc/puppet/whitelist":
ensure => present,
Just before to call a facter.
I
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
2011 Jan 07
4
facter --puppet does not report "environment"
Is it normal that "facter --puppet" does not show the environment
variable? is there a way to have it include it?
Thanks a lot,
Mohamed.
--
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 group, send email to
2011 Aug 25
5
custom fact regex problem
Hi guys
I have a custom fact envt, it was working fine but now I have to make
some changes in it;
puppet client''s hostname is of the type 1234qa-abc-de.local where 1234
can be any thing of any length.My custom fact should contain qa, ie I
want to check in the first part(before the first -) of the hostname
if there exists a pattern/word qa and if it exists then my custom
fact
for envt