Displaying 20 results from an estimated 30000 matches similar to: "Idiom for throwing an error if a command fails"
2009 Nov 19
12
Templates and loops..
How come this doesnt work? I write this in a normal ruby script it
works just fine.
<% for cpu in (0..processorcount) %>
I want to loop through the number of processor so a specific action
can be taken to generate content for a file. I get an error on the
master of:
bad value for range at /etc/puppet"
-Chris
--
You received this message because you are subscribed to the Google
2009 Dec 09
3
facter 1.5.7 all lsb* items missing
I have 2 RHEL 5.4 systems where all facter lsb* items are missing. Any
ideas?
Sanitized facter output:
architecture => i386
domain => missyou.edu
facterversion => 1.5.7
fqdn => broken.missyou.edu
hardwareisa => i686
hardwaremodel => i686
hostname => broken
id => root
interfaces => eth0,sit0
ipaddress => 1.2.1.5
ipaddress_eth0 => 1.2.1.5
is_virtual => true
2010 Aug 02
1
wrong facts going into storeconfigs, 0.25+2.6
I''m re-posting this because I''m not sure that it got through the first
time. If someone could at least echo back that this is reaching the
list, I''d appreciate it. (I''m new to the list.)
Sometimes (with variable frequency) storeconfigs stores the wrong data
in the fact_values table. This has the end result that exported
resources, when collected, have
2012 Sep 24
4
Overriding variables.
I am trying to override variables in a class that is defined in the default
node profile. I want parent class to be included in every single node, but
override its variables in others. I have tried it several different ways
now, and every single time the variables either become unset (undefined) or
are set to the value of the first if statement.
Here is my current iteration of failure.
2013 Apr 18
4
fact_stomp_server
Does anyone have any insight into this error message?
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
The fact named fact_stomp_server does not appear to be a valid hostname.
The value of '''' does not match ''^[a-zA-Z0-9.-]+$''. A common cause of this
problem is running puppet agent as a normal user instead of root, or the
fact is
2008 Jul 01
6
OpenVZ configuration of networking with puppet - big crash
I am trying to streamline the current distribution specific setup and
creation of VE''s within OpenVZ with puppet. My first attempt has gone
horribly wrong as you will see below. Here''s the script I wrote to
replace the redhat specific setup that OpenVZ used:
[jleggett@lxp6d15m3 scripts]$ cat redhat-add_ip.sh
#!/bin/bash
#
# Debug - take out later
set -x
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
2007 Nov 13
6
Facter and arrays
Hi,
Is it possible to have an array as the output of a custom fact? And
then to pass it into a template in Puppet?
I currently have a fact that looks like this:
Facter.add("exports") do
setcode do
case Facter.hostname
when (/thishost/i):
[ "/local", "/local2" ]
end
end
end
& a template like this:
<%
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
2012 Nov 05
9
puppetdb postgresql Connection refused
Greetings,
we are trying to setup puppetdb, nut our clients get the following error:
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Could not retrieve facts for lxa7t.unix.lan:
Failed to submit ''replace facts'' command for lxa7t.unix.lan to PuppetDB at
puppetdb:8081: Connection refused - connect(2)
Info: Retrieving
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
2012 Oct 09
3
After upgrade to 3.0: Warning: Error 400 on SERVER: Could not retrieve facts for
I auto-upgraded puppet (as usual) using "yum upgrade -y", and now all
agents are getting error 400.
# puppet --version
3.0.0
On agent (any!)
# puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Could not retrieve facts for
build6.[censored]: Failed to find facts from PuppetDB at
abyss.[censored]:8081:
2012 Dec 14
2
Duplicate declaration for invoking a class
Hi everyone,
Here are the manifest I am using:
In file ''*modules/test/manifest/init.pp*'':
class test (
$test = undef,
) {
notice("Here is the message: ${test}")
}
Now in ''*modules/saas/manifests/client/sudo.pp*'':
class saas::client::sudo {
class { ''test'': }
}
Now in ''*manifests/sites.pp*'':
import
2012 May 05
3
Error 400 on SERVER - pe_mcollective - missing value of param 'undef'
New install of 2.5.1 on Ubuntu 10.10 server. Multiple (6) new installs on
Ubuntu 12.04 clients running agent 2.7.14-1puppetlabs1 from the puppetlabs
repo generating the following error.
err: Could not retrieve catalog from remote server: Error 400 on SERVER: No
matching value for selector param ‘undef’ at
/opt/puppet/share/puppet/modules/pe_mcollective/manifests/init.pp:89 on
node
2013 Jun 12
4
certificate problem
When I try to connect to my new puppet master, I get an error because of
a self-signed certificate:
---snip---
# puppet agent --test --noop
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server
certificate B: certificate verify failed: [self signed certificate in
certificate chain for /CN=Puppet CA:
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
2011 Jan 13
5
Problem restarting the agent
Just installed Puppet 2.6.4 on Ubuntu 10.10
I was trying to restart the puppet agent but got the following error
and the agent didn''t run:
$ sudo puppetd --server server.domain.com --waitforcert 60 --test
err: Could not retrieve catalog from remote server: SSL_connect
returned=1 errno=0 state=SSLv3 read server certificate B: certificate
verify failed
warning: Not using cache on failed
2013 Mar 19
4
OS specific configuration
Beginner question:
I have a very simple configuration in site.pp for all agents.
Is it possible to split actions based on operating system. I am interested
into running certain commands
only on Windows 7, some on Windows Xp and some on Mac OS X agents.
Is there a simple way of achieving this while keeping a simple
configuration ?
Thank you,
Dragos
--
You received this message because
2013 Oct 12
2
Warning: appears to have a negative number of dependencies
Hello
After add some packagelist to puppet class.
I get lots of warning message "appears to have a negative number of
dependencies".
My puppet master and agent version are 3.3.1.
Here is the log out:
[root@gpu022 ~]# puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in
2013 Sep 18
1
All nodes stopped reporting to puppet enterprise console
My install was working for a couple of months until I rebooted my puppet
server. The clients do not report an error when I run puppet agent -t.
I''ve attempted to remove certificates and renew. The clients get new
certificates, but the console still does not update. Even the puppet
server itself is not updating as a client. After reboot the only thing I
have noticed that changed