Re: [Puppet Users] Puppet not picking up new configs

2011-11-21 Thread Denmat
On 21/11/2011, at 15:20, Michal Ludvig wrote: > On 11/21/2011 04:46 PM, Denmat wrote: >> Hi, >> >> Puppetmasterd uses the webrick web server which is meant really for >> development only. Once you get over a number of nodes you see these issue. >> Check the puppetlabs docs on scaling for you

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-21 Thread Luke Bigum
Yes, big difference. The 'import' function will literally add the contents of a manifest file into where your import statement is, it's like a 'include "woof.h"' in C/C++ or "source /etc/sysconfig/woof" in Bash. It should really never be used anywhere outside of site.pp to add classes and func

Re: [Puppet Users] Escaping Quotes

2011-11-21 Thread Peter Meier
exec { 'oracle-extract-part': command => "/usr/bin/printf \"n\np\n2\n2091\n+16384M\nw\n\" | /sbin/fdisk /dev/xvdj", unless => "/bin/cat /proc/partitions | /bin/grep ${orcl_ephm_device}2"; } if you don't need to interpolate a variable, you can simply use single

Re: [Puppet Users] Escaping Quotes

2011-11-21 Thread Phil Frost
On 11/21/2011 01:30 AM, Douglas Garstang wrote: Grrr. I have the exec{} below in my puppet module. How do I escape the \ characters? I've tried every possible combination I can think of. I've used one, I've used two, and I've used THREE \. exec { 'oracle-extract-part': comm

[Puppet Users] Re: Foreman API, problem when creating hostgroups

2011-11-21 Thread Poul Sørensen
On Nov 21, 8:29 am, Ohad Levy wrote: > CC foreman users list. > > 2011/11/20 Poul Sørensen : > > > I am trying to create a hostgroup using the Foreman API > > > > POST /hostgroups > > > > {"name":"api-created-hostgroup",...","puppetmaster":"puppet.dev.somewhere.com",...} > > > which returns a

Re: [Puppet Users] Dashboard not working (406 Not Acceptable)

2011-11-21 Thread Galed Friedmann
Anybody? Any ideas? Thanks again On Sun, Nov 13, 2011 at 2:45 PM, Galed Friedmann wrote: > Hi all, > I've created a replication of my puppet environment in order to set it up > in a new location. > I've created an exact replication of my master server which is running the > puppet master, dashbo

Re: [Puppet Users] Escaping Quotes

2011-11-21 Thread Max Schubert
How about using the alternate single quotes in ruby %q{string string string} Max On 11/21/11, Phil Frost wrote: > On 11/21/2011 01:30 AM, Douglas Garstang wrote: >> Grrr. I have the exec{} below in my puppet module. How do I escape the >> \ characters? I've tried every possible combination I ca

Re: [Puppet Users] Escaping Quotes

2011-11-21 Thread Peter Meier
Zitat von Max Schubert : How about using the alternate single quotes in ruby %q{string string string} puppet manifests are not ruby code. ~pete -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-use

AW: [Puppet Users] Dashboard not working (406 Not Acceptable)

2011-11-21 Thread Bernd Adamowicz
Just an idea: Seems, Puppet is using the URL http://localhost/reports/upload though you have specified 'reporturl = http://localhost:3000/reports/upload'. Is it possible that there is some command line argument overriding your puppet.conf? However I don't use the 'reporturl' argument at all. Th

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-21 Thread Alexander Fortin
On 11/21/11 11:13 AM, Luke Bigum wrote: Yes, big difference. The 'import' function will literally add the contents of a manifest file into where your import statement is, it's like a 'include "woof.h"' in C/C++ or "source /etc/sysconfig/woof" in Bash. It should really never be used anywhere outs

Re: [Puppet Users] Escaping Quotes

2011-11-21 Thread Max Schubert
Right - forgot that :). Maybe support for an alternate quoting operator should be added. On 11/21/11, Peter Meier wrote: > Zitat von Max Schubert : > >> How about using the alternate single quotes in ruby >> >> %q{string string string} > > puppet manifests are not ruby code. > > ~pete > > -- > Y

WG: Re: [Puppet Users] AW: nagios_service does not replace target file

2011-11-21 Thread Bernd Adamowicz
This module does basically what I have done in the very beginning. Create an empty directory as a preparation step for the configuration files. But this configuration also did not regenerate the files. Seems, I will stick with my workaround and delete the files manually and the restart the Puppe

Re: [Puppet Users] Escaping Quotes

2011-11-21 Thread Mike Pountney
I'd deploy a wee script that does what you are trying to handle in the command string, and just call that instead. On 21 Nov 2011, at 06:30, Douglas Garstang wrote: > Grrr. I have the exec{} below in my puppet module. How do I escape the > \ characters? I've tried every possible combination I c

[Puppet Users] Re: Variables inside node definition

2011-11-21 Thread jcbollinger
On Nov 18, 6:20 pm, Gonzalo Servat wrote: > On Sat, Nov 19, 2011 at 12:58 AM, jcbollinger > wrote: > > > [..snip..] > > You have a great use case here for external data: instead of using a > > > node variable to communicate the machine's purpose, you could instead > > have class motd look it up

[Puppet Users] Re: Puppet changes mount point directory ownership.

2011-11-21 Thread jcbollinger
On Nov 20, 3:59 pm, Douglas Garstang wrote: > I've got a directory, /u01/app that is owned by oracle.oinstall. I > have this in my manifest: > >         # >         # Mount point for the Oracle database. >         # >         '/u01/app': >             device  => '/dev/xvdo', >             atboot

Re: [Puppet Users] Puppet not picking up new configs

2011-11-21 Thread Jacob Helwig
On 2011-11-20 16:08 , Michal Ludvig wrote: > Hi all, > > I've got a Puppet 2.6.8 setup on RHEL 5.6 with nodes.pp containing a > simple import "nodes/*.pp" and per-node configs in nodes/.pp > > Occasionally puppet master misses new nodes' files, simply ignores them > and the subsequent puppet agen

Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?

2011-11-21 Thread Brian Gallew
This is (almost) trivial. First, create a fact that turns /var/lib/puppet/state/classes.txt into an array. Then extract that fact from the storedconfigs DB programmatically. Admittedly, this won't get all defined nodes, as that is somewhat meaningless since nodes can be "default" or regular ex

Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-21 Thread Evan Hisey
On Thu, Nov 17, 2011 at 2:04 PM, Ramin K wrote: > Tech documentation is littered with examples that illustrate exactly > one thing and call it day. 99% of the power of any system comes from > learning to combine multiple functions. I chose that example because > it illustrates regex, using regex i

[Puppet Users] puppet catalog command ? Deprecated or am I a version behind ?

2011-11-21 Thread Dan White
http://linux.die.net/man/8/puppet-catalog This command is not recognized by my puppet 2.6.12-1.el5 client “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- You received this

[Puppet Users] Multi-Dimensional Arrays and Templates?

2011-11-21 Thread Jon Davis
I'm trying to figure out if I can pass multiple variables from puppet, into a template, and have them iterate out. I'm using puppet to configure Varnish and I want to pass it 3 pieces of information repeatedly: The domain name, what the backend should be, and if it should force SSL. Can I just do

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Evan Hisey
On Sun, Nov 20, 2011 at 8:05 PM, Mohamed Lrhazi wrote: > I stated tweaking my puppet modules and site.pp to support the new > OS.. things like: > > if ( $operatingsystem == "windows" ) { >    Exec { path => > "C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\Win

Re: [Solved] [Puppet Users] Puppet throws error when evaluating block after statement

2011-11-21 Thread Evan Hisey
> > We found, that we had some hidden, invisible characters in that line. > Neither vim nor nano showed those characters. > > Problem is solved by removing and retyping the affected lines. > > Kind regards, > > Martin > > Not a completely uncommon issue for some reason. I have encountered it a few

[Puppet Users] Puppet and OVO/ITO/OML

2011-11-21 Thread Stefan Schulte
At $WORK we currently use HP Operations Manager (aka ITO aka OVO aka OML...) to monitor our infrastructure. Because adding new nodes and configuring them can be time consuming and painful I'd like to know: Is anyone using the same product and how much / what exactly do you do with puppet? We curr

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Aaron Grewell
Another way to handle this is to have class-level logic: class something { if ( $operatingsystem == "windows" ) { include something::windows } if ( $operatingsystem == "redhat" ) { include something::redhat } } Then put your resources in something::windows, something::redhat, etc. You m

Re: [Puppet Users] puppet catalog command ? Deprecated or am I a version behind ?

2011-11-21 Thread Nan Liu
On Mon, Nov 21, 2011 at 9:58 AM, Dan White wrote: > http://linux.die.net/man/8/puppet-catalog > > This command is not recognized by my puppet 2.6.12-1.el5 client You need puppet 2.7. Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

Re: [Puppet Users] puppet catalog command ? Deprecated or am I a version behind ?

2011-11-21 Thread Dan White
OK. When can I expect it in EPEL ? I'm on RHEL systems and I need to be able to "yum install" them. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Nan Liu wrote: > On

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Mohamed Lrhazi
Thanks guys. We do use environments already, and we also do use this pattern for separating operating system specific details to sub classes... but we only had to deal with Red Hat/CentOS/Oracle Enterprise Linux, and Solaris I guess I was thinking that "windows" is so different that it should

[Puppet Users] Could not retrieve metadata

2011-11-21 Thread Dmitry
I am having the same problem now with puppet-2.7.6 on FreeBSD. That original post by Chris has no response since may. Developers, do you have any idea why that happenes? Thanks! -- Forwarded message -- From: Chris Phillips Date: May 10, 1:35 am Subject: Could not retrieve metada

[Puppet Users] Re: Could not retrieve metadata

2011-11-21 Thread Dmitry
Example: Nov 21 22:56:35 comp01 puppet-agent[46828]: (/Stage[main]/Bsd/File[/ etc/inetd.conf]) Could not evaluate: end of file reached Could not retrieve file metadata for puppet:///modules/bsd/etc/inetd.conf: end of file reached at /usr/local/etc/puppet/modules/bsd/manifests/init.pp: 80 This mes

Re: [Puppet Users] puppet users module

2011-11-21 Thread Jo Rhett
On Nov 18, 2011, at 8:50 AM, vasanth kumar wrote: >Manifests – must be stored in manifests/, and if you create > manifests/init.pp then that file will be loaded if you import the > module name directly, e.g. import “mymodule”. All other manifests must > have the module name included in the impo

Re: [Puppet Users] Puppet Windows: Should I use dedicated "environment" ?

2011-11-21 Thread Aaron Grewell
I wouldn't expect a lot of class overlap, so it might be simpler to do it that way, but it also means a completely different directory tree. It's going to come down to the personal taste of the admins I expect. On Mon, Nov 21, 2011 at 11:31 AM, Mohamed Lrhazi wrote: > Thanks guys. We do use envir

Re: [Puppet Users] puppet catalog command ? Deprecated or am I a version behind ?

2011-11-21 Thread Jo Rhett
You can get the RPMs from yum.puppetlabs.com On Nov 21, 2011, at 11:26 AM, Dan White wrote: > OK. When can I expect it in EPEL ? I'm on RHEL systems and I need to be > able to "yum install" them. > > “Sometimes I think the surest sign that intelligent life exists elsewhere in > the universe i

[Puppet Users] Re: Multiple nodes.pp files

2011-11-21 Thread jcbollinger
On Nov 21, 8:05 am, Alexander Fortin wrote: > On 11/21/11 11:13 AM, Luke Bigum wrote:> Yes, big difference. > > > The 'import' function will literally add the contents of a manifest file > > into where your import statement is, it's like a 'include "woof.h"' in > > C/C++ or "source /etc/sysconfi

[Puppet Users] Installing puppet agent on Windows XP

2011-11-21 Thread Jeff Sussna
Trying to get Puppet 2.7.6/Facter 1.6.2 running on Windows XP SP3. Followed the install instructions carefully, got no errors. facter and puppet both hang no matter what I try. The only things that don't hang are: facter operatingsystem (or any other individual facter query) facter --version fact

Re: [Puppet Users] Re: puppet agent 2.7 on windows

2011-11-21 Thread Josh Cooper
On Sun, Nov 20, 2011 at 4:17 PM, Josh Cooper wrote: > Hi Ravi, > > On Sun, Nov 20, 2011 at 11:07 AM, Ravi wrote: > >> Thanks for your reply. Tried this and was able to get the config file. >> But i now have a strange problem - The agent starts up and in the log >> file i see the following error

Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?

2011-11-21 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks for the suggestions guys but I'm giving this one up as too annoying to bother. The issue was to detect the nodes that hadn't checked in but were defined in the manifest. Getting the information out of the YAML is pretty easy, yes. Thanks!

Re: [Puppet Users] Installing puppet agent on Windows XP

2011-11-21 Thread Jacob Helwig
On 2011-11-21 12:50 , Jeff Sussna wrote: > Trying to get Puppet 2.7.6/Facter 1.6.2 running on Windows XP SP3. > Followed the install instructions carefully, got no errors. facter and > puppet both hang no matter what I try. The only things that don't hang > are: > > facter operatingsystem (or any

Re: [Puppet Users] Re: Is it possible to get a list of all nodes in your manifests and all classes assigned to those nodes programatically in Ruby?

2011-11-21 Thread Gonzalo Servat
I rely on Puppet dashboard to tell me which nodes haven't checked in for a while... :) - Gonzalo On Tue, Nov 22, 2011 at 11:43 AM, Trevor Vaughan wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Thanks for the suggestions guys but I'm giving this one up as too annoying > to bother. >

Re: [Puppet Users] Installing puppet agent on Windows XP

2011-11-21 Thread Russell Van Tassell
On Mon, Nov 21, 2011 at 5:31 PM, Jacob Helwig wrote: > On 2011-11-21 12:50 , Jeff Sussna wrote: > > Trying to get Puppet 2.7.6/Facter 1.6.2 running on Windows XP SP3. > > [...] > > Anyone have success getting puppet running on XP? > > Right now, Puppet & Facter are only supported on Server 2003 &

[Puppet Users] struggling with vcsrepo, git, latest

2011-11-21 Thread jwag
I am working with 2.7.3, latest vcsrepo from github. Trying to get a git workarea kept up to date (latest). The call: vcsrepo { "puppetm:git:co": ensure => latest, provider => git, path => "$srcdir", so

[Puppet Users] Puppet IRC logs

2011-11-21 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all I finally got around to fixing the IRC logs up a little and adding them to their own site: http://www.puppetlogs.com/ The site contains search-able IRC logs for #puppet and #puppet-dev going back to late 2007 or so. It's maintained by me (no

[Puppet Users] FOSDEM 2012: Configuration & Systems Management DevRoom

2011-11-21 Thread James Turnbull
Call for Papers - FOSDEM 2012 **Call for talks for the Configuration & Systems Management DevRoom at FOSDEM 2012** Configuration Management DevRoom - http://fosdem.puppetlabs.com FOSDEM 2012 - http://fosdem.org/2012/ 4th & 5th of February (date TBD) 2012, 09:00 to 17:00, Brussels, Belgium Cont

Re: [Puppet Users] struggling with vcsrepo, git, latest

2011-11-21 Thread Jacob Helwig
On 2011-11-21 22:00 , jwag wrote: > I am working with 2.7.3, latest vcsrepo from github. Trying to get a > git workarea kept up to date (latest). > The call: > > vcsrepo { "puppetm:git:co": > ensure => latest, > provider => git, >