Displaying 11 results from an estimated 11 matches for "processorcount".
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 Groups "Puppet Us...
2013 Oct 03
2
Idiom for throwing an error if a command fails
...ng a command on every Puppet run and
triggering an error if the command fails?
For example, the following code throws an error if the machine has anything
other than 8 cores.
exec { "echo ''This machine does not have 8 cores!''; exit 1":
unless => "facter processorcount | grep -q 8",
}
The "; exit 1" changes this from a Notice to an Error, but it seems a bit
hackish. I couldn''t discover a way to do this with err() or notify{}.
I''m envisioning something like this:
notify { ''This machine does not have 8 cores''...
2012 Sep 24
4
Overriding variables.
...d 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. warn_real is always equal
to processorcount, no matter if I override it or not.
class nrpe::load ($warn = ''UNSET'', $crit = ''UNSET'') {
package { nagios-plugins-load: ensure => installed }
if $warn == ''UNSET'' {
$warn_real = $processorcount
}
if $crit == '...
2009 Dec 09
3
facter 1.5.7 all lsb* items missing
...ysize => 1.98 GB
netmask => 255.255.255.240
netmask_eth0 => 255.255.255.240
network_eth0 => 1xxxxx
operatingsystem => RedHat
operatingsystemrelease => 5.4
path =>
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
physicalprocessorcount => 0
processor0 => Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
processor1 => Intel(R) Xeon(R) CPU E7450 @ 2.40GHz
processorcount => 2
productname => VMware Virtual Platform
ps => ps -ef
puppetversion => 0.24.8
rubysitedir => /usr/lib/ruby/site_ruby/1.8
rubyver...
2011 Oct 10
0
Announce: Facter 1.6.2. available
...ent architecture fact and Darwin was added by
removing the kernel confine statement for the architecture fact.
##New fact: (6792) Added osfamily fact.
Added osfamily fact to determine if a given operating system is a
derivative of a common operating system.
##Fix (6515 and 2945) Fix processorcount for arm, sparc & ppc for linux.
Previously we were unable to check processor type and count on other
architectures for linux. This fix corrects that.
To remove complication from the fact we have moved the logic for parsing
cpuinfo and lsdev into their own static classes in Fac...
2010 Aug 02
1
wrong facts going into storeconfigs, 0.25+2.6
...quency) storeconfigs stores the wrong data
in the fact_values table. This has the end result that exported
resources, when collected, have invalid configuration.
The most recent example: the "hostname" fact for one of our nodes got,
in stead, the value that should have gone in the "processorcount"
fact. The had the end result that the node''s nagios configuration
started trying to monitor a host "8" rather than "cn19", and ssh keys
for cn19 were collected at other nodes as "8,8.example.com <keytext>"
in stead of "cn19,cn19.example.com &...
2007 May 10
3
Bug or misconfiguration? Trying to add local user in NIS environment
...n(TM) CPU 2.80GHz
processor2 => Intel(R) Xeon(TM) CPU 2.80GHz
processor3 => Intel(R) Xeon(TM) CPU 2.80GHz
processor4 => Intel(R) Xeon(TM) CPU 2.80GHz
processor5 => Intel(R) Xeon(TM) CPU 2.80GHz
processor6 => Intel(R) Xeon(TM) CPU 2.80GHz
processor7 => Intel(R) Xeon(TM) CPU 2.80GHz
processorcount => 8
ps => ps -ef
puppetversion => 0.22.4
rubysitedir => /usr/lib/ruby/site_ruby/1.8
rubyversion => 1.8.4
sshdsakey => AAAAB3NzaC1kc3MAAACBAN/gekgppHT+IrwOqAHsou/Z5ykIF83UiAUbBTQ7yuP1PWyE9/Jz4itjIr3U6BVtwy0SEmiRmPAbyP+Atov0FaUkdL/Fa74m5H+lp42crOQeYQsARPOEgwK7+W4t4zF6o7Xz5M0wAoLEKu...
2007 Jan 30
19
PuppetReporting
hi
I''ve read about PuppetReporting at the Trac website. Apparently you are
working on integrating the benchmark tests for every type in ruby.
Do you have any idea when this will all get implemented?
This is a crucial part (and actually a necessary feature) in the
configuration management system we have set up using Puppet.
grtz
Koen Vereeken
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 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