Displaying 20 results from an estimated 100 matches similar to: "Re: Assertions"
2012 Jun 14
1
facter --yaml leaves some fields blank
Sometimes "facter --yaml" doesn''t list all the values specified on the
command line. I can''t find rhyme nor reason why. Here''s a demo to
show what I mean:
# facter --version
1.5.7
# facter --yaml fqdn macaddress lsbdistcodename
---
fqdn: my.host.name.example.com
lsbdistcodename: squeeze
macaddress: "00:00:00:00:00:00"
We had been using the above
2011 Mar 03
3
lsbdistcodename and Debian Squeeze
Hello all,
I use puppetmaster on a Debian Squeeze server (packaged from Debian 2.6.2-4)
I am using a template for Debian Servers which works great for Lenny
in order to update my sources.list automagically, here goes:
deb http://ftp.ie.debian.org/debian <%= lsbdistcodename %> main contrib non-free
deb http://security.debian.org/ <%= lsbdistcodename %>/updates main
Now the problem
2009 Feb 23
3
Require package not working as expected
I have the following as part of a module:
--------------------------------------------------------------------------------
# Ensure "lsb-release" installed
package {"lsb-release":
ensure => installed,
}
# Use our sources.list
file { "/etc/apt/sources.list":
owner => root,
group => root,
mode =>
2007 Jun 25
0
Assertions
Dear list!
For the ongoing modularisation of my config I wrote a assert_lsbdistcodename
class today, which can be used for failing parts or complete configurations
if a certain variable is not set (lsbdistcodename in this case). Please find
the file attached.
Regards, David
--
- hallo... wie gehts heute?
- *hust* gut *rotz* *keuch*
- gott sei dank kommunizieren wir über ein septisches
2012 Apr 18
1
$lsbdistcodename stays the same after dist-upgrade
Dear List,
i was running a few natty systems and upgraded one of them to oneiric.
Facter shows the right lsbdistcodename, lsbdistrelease, etc.
parameters, but when i''m running puppet agent the modules has access
to the previous (natty, etc.) values. As i see on puppetmaster in /var/
lib/puppet/yaml/{facts,node} the output from facter and the agent is
cached and won''t update
2011 May 13
1
ubuntu package installs
hello puppet list
My puppet server is now working quite wonderfully. Thanks go out to
all who have assisted in getting it to this point. At this point in
time my config is now correctly installing packages according to
arch,os and release. Centos is working quite well as of now, but I am
attempting to get the ubuntu side of things to work as well. I am
frankly more familiar with RHEL under
2007 Nov 29
2
puppet:// URIs don''t allow FQDN?
Hi List,
I''m using puppet 0.23.2 (tarball) on Debian sarge as server and the same
version on an etch client. When I try to use the following class :
class base {
$puppet = "security01.mydomain.com"
# bashrc file for global shell settings. file depends on used OS
version (etch, sarge etc).
file {
"/etc/bash.bashrc":
ensure =>
2012 Oct 04
4
Puppet 3.0 + Inventory search
Hello,
I am having problems with Puppet since upgrading to 3.0.0.
When I call an inventory search I get a Error 400. I have used dashboard +
Perl
Oct 4 08:58:43 puppet01 puppet-master[7008]: Handling request: GET
/production/facts_search/search?facts.lsbdistcodename.eq=lenny
Oct 4 08:58:43 puppet01 puppet-master[7008]: header too long
ii facter
2012 Dec 03
4
Unnecessary changes when creating facts.yaml
I have set up puppet to create a facts.yaml file for mcollective using the
following line:
content => inline_template("<%= scope.to_hash.reject { |k,v| k.to_s =~
/(uptime.*|timestamp|.*free|macaddress.*|ipaddress)/ }.to_yaml %>"),
However, it is creating a lot of unnecessary changes by reordering the
facts in the yaml output as you can see in the diff output between to
2009 Dec 01
3
Duplicate definition on the same line and in the same file ?
Hi,
I''m trying to add libapache2-mod-php5 as a dependency in my php5 module here is what I get
info: Loading facts in raidcontroller
info: Loading facts in raidcontroller
debug: Format s not supported for Puppet::Resource::Catalog; has not implemented method ''from_s''
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate definition:
2008 Jan 03
5
modules and parser plugins: function unknown
Hi,
We are totally sold on Pupet (what a nice concept) and are trying to
setup a proof-of-concept. We are trying to learn a bit from other
people''s work by integrating external modules. One of the modules we
wanted to start with was the ''ntp'' module from David Schmitt. It clearly
uses some functionalities from the ''common'' module, which we also
2010 Jan 20
2
Using ruby-1.9.x with Puppet 0.25.x
I read somewhere recently about problems with Puppet and Ruby 1.9.
I''m wondering if this is still an issue?
Thanks.
--
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
2007 Mar 29
7
Refering to node name (or part of node name) in a class / function
Hi,
I was wondering if it is possible to gain access to the nodename as a
variable, in order to refer to the name or part of it inside a class.
Eg: I have a lot of sites that essentially have the same configuration,
except they are in different domains and have different requirements for
things like resolv.conf. I can manage this by creating a node definition
for each node and specifying some
2007 Apr 30
3
syntax error, but wherz
sorry to come with such a silly request but i have a code:
shorewall-zone { "$name":
SHTYPE => ''ipv4'',
PARENT => "$PARENT"
}
and it bring a syntax error :
debug: importing
2012 Jul 05
1
hash to_yaml in erb template not giving valid yaml
Hi,
I want to use a file resource to write a facts.yaml file for
Mcollective. For some reason it won''t provide a valid yaml format if I
dump my scope to hash and convert to_yaml.
file {
"/etc/mcollective/facts.yaml" :
owner => root,
group => root,
mode => 400,
loglevel => debug,
#content => inline_template("<%= scope.to_hash.reject {
2007 Aug 29
4
Newbie stuck on facter not finding hostname
Hi all,
I''m trying to get puppet working for the first time, and I''ve run into
something that''s got me stumped. This is all on Solaris 10/x64. The
initial startup of puppetmasterd wasn''t working, and it appeared to be
related to the SSL certs not getting generated properly. I managed to
trace that down to the fact that facter isn''t finding the
2007 Oct 08
5
Is Puppet similar to Capistrano?
I discovered Capistrano while I was trying to figure out what I
wanted. See attached notes.
http://www.genunix.org/wiki/index.php/GNOSIS/Kraken
Puppet seems promising.
Thanks,
Brian
--
- Brian Gupta
http://opensolaris.org/os/project/nycosug/
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
2012 Feb 03
16
neatest way to determine a major version of centos/linux?
Just started a rollout of centos 6.x across our Puppet deployment
(100-odd servers).
what fact would people suggest I use to distinguish 5.x from 6.x
(quite a lot of subsystems are different between major releases)?
lsb* facts don''t seem to be present on centos 6 - is this an EPEL bug,
or have they
just been removed in Facter?
Thanks!
--
You received this message because you are