Displaying 16 results from an estimated 16 matches for "custom_fact".
Did you mean:
custom_facts
2008 Dec 31
6
tlsv1 alert decrypt error
I''m using the standard webrick server with puppet, and I just started
getting this today (for no apparent reason).
info: Loading fact custom_facts
info: Retrieving plugins
err: /File[/var/puppet/lib]: Failed to generate additional resources during
transaction: Certificates were not trusted: tlsv1 alert decrypt error
err: /File[/var/puppet/lib]: Failed to retrieve current state of resource:
Certificates were not trusted: tlsv1 alert decrypt e...
2012 Oct 02
3
Set variable value
Hi,
Is it possible to set the value of a variable from the content of
a text file?
Regards.
--
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 puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
2009 Mar 23
4
how to override hostname
I am trying to test stand alone puppet manifests invoking /usr/bin/
puppet.
Is there a way to override current hostname with some other value?
I have tried with no success:
FACTER_hostname=foo /usr/bin/puppet manifest.pp
Regards, Thomas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
2013 Jun 04
11
Share Hiera configuration between 2 nodes?
Hi,
I am trying to use Hiera in puppet 3 and I have two nodes that both need
the same configuration. In this case they are two web servers which have
the same apache configuration.
Rather than creating two seperate hiera files for node1.yaml and node2.yaml
is there a way to group these by role (e.g. webserver.yaml)? I want to
avoid duplicating the configuration if possible and keep the data
2013 Nov 05
5
Deployed custom facts with module do not show up
When I deploy a module I wrote with couple of custom facts, those facts do
not show up in factor.
But when I point FACTORLIB to the directory with those factor, they work
just fine.
I am running a masterless puppet version 2.7.22 and factor 1.7.1
The module structure looks like so:
-license
---lib
-----facter
-------license.rb
-------hardware_serial.rb
-----puppet
Any idea what is causing
2012 Jun 12
11
Determining the syslog provider
Hi,
I''m trying to make all my servers send their logs to a central server.
Which seems quite simple, at first.
My problem is that my servers are on different versions of different
operating systems.
And each of them has a different syslog default provider (syslog, rsyslog,
syslog-ng...).
Which of course might have been replaced by an admin who prefered another...
Even funnier, SLES10
2012 Jul 07
1
plugin sync in masterless mode
...ir/environments/$environment/modules
storeconfigs = true
thin_storeconfigs = true
dbadapter = mysql
dbuser = puppet
dbpassword = puppetpass
dbserver = db.mydomain
pluginsync = true
graph = true
preferred_serialization_format = yaml
And Ive got plugins in modules/custom_facts/lib/facter/
Running this:
puppet apply --environment=$PUPPET_ENV
--modulepath=/etc/puppet/environments/$PUPPET_ENV/modules --pluginsync
--storeconfigs /etc/puppet/environments/$PUPPET_ENV/manifests/site.pp
--verbose --factsync --debug
but there is no normal "pre catalog pluginsync" ty...
2013 Feb 22
0
Custom utils lib
...Is it possible to have a custom utils lib in puppet ?
By exemple I want to have a custom class used in many custom facts and many
custom function :
module_utils/lib/puppet/my_class.rb
And in my custom fact I can call this class :
> require ''module_utils''
Facter.add("custom_fact") do
> setcode do
> var = Puppet::Utils::my_class.getVariable()
> end
> end
Loïc
--
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...
2013 Apr 13
6
facter doesn't load from /ect/facter/facts.d
I''m trying to load custom facts via /etc/facter/facts.d/* according to
instructions on
http://docs.puppetlabs.com/guides/custom_facts.html#structured-data-facts
I must have missed a setting somewhere because I get nothing. The first
clue may be that /etc/facter didn''t exist. I had to create it manually.
Is there a setting or search path I need to create?
Details:
puppet 3.0.1
facter 1.6.14-1.el6
centos 6
I create...
2011 Apr 07
12
Mutliple custom facts not showing in facter
...[modules/foobar/lib/facter/foobar.rb ]
require ''facter''
Facter.add("foo") do
setcode do
%x{/bin/date +%s}.chomp
end
end
Facter.add("bar") do
setcode do
%x{/bin/date +%s}.chomp
end
end
I used a simple notify in the node like this: notify{ "custom_fact":
message => "foo:$foo bar:$bar"}
Tested with Puppet Agent 2.6.2 and 2.6.7
Pulling the fact and makes use of it:
# puppet agent -t --environment=test --pluginsync
info: Retrieving plugin
notice: /File[/var/lib/puppet/lib/facter/foobar.rb]/ensure: defined content
as ''{m...
2012 Dec 07
2
Is there any ways to fetching custom fact after some resources setuped?
I''m currently trying to create icinga module and the icinga-web and
icinga-idoutils-libdbi-mysql from rpmforge
store the initial sql file in version numbered
directory(/usr/share/doc/icinga-web-1.7.2/~~~).
So, I try to determine the version number from the yum info like as below,
but that repository installed after my yum module gets work done.
Is there any ways to fetching custom
2013 Sep 16
4
Executing command via puppet !
Hi,
Is it possible to get response of a command from puppet ?
For example if I run "nginx -t" it would give some details about the
configurations i.e. if configuration has some error then which file has the
error !
Regards
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving
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
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 =
2012 Jul 17
8
How to override $::operatingsystem fact
Hi,
I want to introduce "Proxmox" as new value in $::operatingsystem.
"Proxmox" is based on Debian, so the normal value is currently "Debian".
To change that, I just write a custom fact based on the facter fact
"operatingsystem"
Facter.add(:operatingsystem) do
> ...
> setcode do
> ...
> elsif
2012 Feb 22
4
Custom function issue
Hi,
I needed a function to check if a file is existing on the Debian box I
am configuring. So I used this one
module Puppet::Parser::Functions
newfunction(:file_exists, :type => :rvalue) do |args|
if File.exists?(args[0])
return 1
else
return 0
end
end
end
It work greats for some service where apache2 doesn''t work for me.
I am using it this way