Re: [Puppet Users] Classes in templates

2010-11-24 Thread Dan Carley
On 23 November 2010 19:27, Dan Bode wrote: > > This is unfortunately true. It's possible that this may work in a future > version. > It's described by this ticket: http://projects.puppetlabs.com/issues/3049 Which you might want to add yourself as a watcher to, Alaric. -- You received this mess

[Puppet Users] browsing puppet file server

2010-11-24 Thread Arnau Bria
Hi all, I'm wondering if there is some way for browsing puppet file server. Sometimes I get the "Could not retrieve information from source" and I get crazy looking for typos in paths. If not, how do you check path sanity? Cheers, Arnau -- You received this message because you are subscribed

[Puppet Users] file content

2010-11-24 Thread Arnau Bria
Hi all, I have a problem when adding content to a file. I know this sound basic, but I don't know what I'm doing wrong... my server runs puppet-server-2.6.3-0.4.el5 and client puppet-2.6.1-0.6.el5. I firs defined a file like: file { 'default_dns': name=> '/etc/resolv.conf', content => "se

Re: [Puppet Users] file content

2010-11-24 Thread Mohit Chawla
Hi, On Wed, Nov 24, 2010 at 5:02 PM, Arnau Bria wrote: > SO I tried the example from > http://docs.puppetlabs.com/references/stable/type.html#file like In that example, a define is being used, called resolve. There is no extra curly bracket, the formatting of the documentation looks a bit scre

Re: [Puppet Users] file content

2010-11-24 Thread Arnau Bria
On Wed, 24 Nov 2010 17:27:23 +0530 Mohit Chawla wrote: > Hi, > > On Wed, Nov 24, 2010 at 5:02 PM, Arnau Bria wrote: > > > SO I tried the example from > > http://docs.puppetlabs.com/references/stable/type.html#file like > > > In that example, a define is being used, called resolve. There is no

Re: [Puppet Users] file content

2010-11-24 Thread Ohad Levy
Hi, You probably have a File statement somewhere (like site.pp) which has a default source or target attributes. Ohad On Wed, Nov 24, 2010 at 2:06 PM, Arnau Bria wrote: > On Wed, 24 Nov 2010 17:27:23 +0530 > Mohit Chawla wrote: > > > Hi, > > > > On Wed, Nov 24, 2010 at 5:02 PM, Arnau Bria wro

Re: [Puppet Users] Initial data population

2010-11-24 Thread Ashley Penney
On Tue, Nov 23, 2010 at 6:41 PM, Daniel Pittman wrote: > Ashley Penney writes: > > > As an example of the kind of thing we're talking about we use a product > > called Sonatype Nexus that relies on a bunch of on disk data in > > /srv/sonatype-nexus/. When installing the system for the first tim

Re: [Puppet Users] Initial data population

2010-11-24 Thread Ashley Penney
On Tue, Nov 23, 2010 at 2:30 PM, Patrick wrote: > > 1) So are the Puppet clients (Nexus servers) supposed to be modifying the > data in /srv/sonatype-nexus like a database or is it used read-only like a > file server? > They modify data in that directory. I explained further in another email bu

[Puppet Users] Re: Class inheritance

2010-11-24 Thread jcbollinger
On Nov 23, 2:22 pm, Chris C wrote: > I'm trying to establish a simple inheritance Although people new to Puppet seem to like to try that, especially when they have a programming background, it's usually not a very good idea. For one thing, inheritance in Puppet doesn't work the way newbies typ

[Puppet Users] Parsing files at nodes

2010-11-24 Thread Nicolas Arias
Hi, i want to check if the nodes are forwarding logs to a syslog server. At this moment i cant just push a new syslog.conf file to the nodes, so, i want to know if its possible to tell the nodes to parse the syslog.conf files and fail the run or something like that if a specific line is not found.

[Puppet Users] Re: file content

2010-11-24 Thread jcbollinger
On Nov 24, 6:17 am, Ohad Levy wrote: > You probably have a File statement somewhere (like site.pp) which has a > default source or target attributes. Right. And if you do then it is certainly wrong, because default source or target just does not make sense. If that's not it, then make sure yo

[Puppet Users] Re: file content

2010-11-24 Thread jcbollinger
On Nov 24, 6:17 am, Ohad Levy wrote: > You probably have a File statement somewhere (like site.pp) which has a > default source or target attributes. Or, it could be because you have written "name =>" where you want "path =>". Or you could omit both and simply title your resource with the path

[Puppet Users] Re: file content

2010-11-24 Thread jcbollinger
On Nov 24, 5:32 am, Arnau Bria wrote: [...] > I tried the example > fromhttp://docs.puppetlabs.com/references/stable/type.html#filelike > > $srt="search mydomain.com \nnameserver 192.168.1.1 \ > \nnameserver192.168.1.2" > > file { >'default_ntp': > name=> '/etc/ntp.conf', >

[Puppet Users] Documenting an infrastructure with Puppet

2010-11-24 Thread Ryan Y. Coleman
Hello All, I've been thinking recently about how one could use Puppet to aid in the process of documenting infrastructure for other administrators, managers and so forth. Puppetdoc gets me somewhat close, since I can add content above my class definitions and have that content associated wit

Re: [Puppet Users] Re: Class inheritance

2010-11-24 Thread Chris C
Thanks for the reply! I was able to get override to work correctly. My classes are inheriting each other. prac inherits all_hosts_redhat which inherits all_hosts. I cleaned up some unnecessary duplicate checks like chmod and own. I changed the definition to the overided file to File['/etc/motd']

Re: [Puppet Users] Re: file content

2010-11-24 Thread Arnau Bria
On Wed, 24 Nov 2010 07:22:11 -0800 (PST) jcbollinger jcbollinger wrote: > On Nov 24, 6:17 am, Ohad Levy wrote: Hi ! I'm getting a little crazy with this... I'll paste some code and see if you see what's happening... > > You probably have a File statement somewhere (like site.pp) which > > has

Re: [Puppet Users] Re: file content

2010-11-24 Thread Arnau Bria
On Wed, 24 Nov 2010 07:39:09 -0800 (PST) jcbollinger jcbollinger wrote: > > > On Nov 24, 6:17 am, Ohad Levy wrote: > > You probably have a File statement somewhere (like site.pp) which > > has a default source or target attributes. > > Or, it could be because you have written "name =>" where y

Re: [Puppet Users] Parsing files at nodes

2010-11-24 Thread Nigel Kersten
On Wed, Nov 24, 2010 at 7:13 AM, Nicolas Arias wrote: > Hi, i want to check if the nodes are forwarding logs to a syslog > server. At this moment i cant just push a new syslog.conf file to the > nodes, so, i want to know if its possible to tell the nodes to parse > the syslog.conf files and fail t

[Puppet Users] using define of different moule's manifest

2010-11-24 Thread sanjiv.singh
hi all, I had defined a module like this .. modulea -- ---manifest -- ---myclassa.pp # i have declared number defines..like define defile1

[Puppet Users] What is Puppet capable of?

2010-11-24 Thread Adam Nielsen
Hi all, I've been reading up on Puppet but there are a few things I am unsure of, and I'm hoping someone here can advise. As I understand it the idea behind Puppet is to describe how a machine should be configured in a single place, and then let Puppet handle the actual set up of the machine

[Puppet Users] Puppet & Daemontools

2010-11-24 Thread Romain Pelisse
Hi there, I've been playing with puppet for a couple of weeks (So, I'm still quite a newbie at it) and there is something I just can't seem to be able to fix. I'm trying to have puppet manage daemontools service. Following the documentation , I

Re: [Puppet Users] Parsing files at nodes

2010-11-24 Thread Nicolas Arias
Thanks Nigel!!, i will give it a try later! On Wed, Nov 24, 2010 at 1:41 PM, Nigel Kersten wrote: > On Wed, Nov 24, 2010 at 7:13 AM, Nicolas Arias wrote: >> Hi, i want to check if the nodes are forwarding logs to a syslog >> server. At this moment i cant just push a new syslog.conf file to the >

Re: [Puppet Users] What is Puppet capable of?

2010-11-24 Thread Patrick
On Nov 23, 2010, at 4:53 PM, Adam Nielsen wrote: > Hi all, > > I've been reading up on Puppet but there are a few things I am unsure of, and > I'm hoping someone here can advise. > > As I understand it the idea behind Puppet is to describe how a machine should > be configured in a single plac

Re: [Puppet Users] The puppet model

2010-11-24 Thread Gabriel Filion
Hello, On 11/23/2010 12:34 PM, Dan Bode wrote: > http://projects.puppetlabs.com/projects/1/wiki/Puppet_Internals > > The model in puppet is implemented as a directed acyclic graph (DAG). The > vertices of the graph are resoures, the edges are the relationships (order > dependencies) between resou

Re: [Puppet Users] The puppet model

2010-11-24 Thread Nigel Kersten
On Wed, Nov 24, 2010 at 10:46 AM, Gabriel Filion wrote: > Hello, > > On 11/23/2010 12:34 PM, Dan Bode wrote: >> http://projects.puppetlabs.com/projects/1/wiki/Puppet_Internals >> >> The model in puppet is implemented as a directed acyclic graph (DAG). The >> vertices of the graph are resoures, the

[Puppet Users] Re: puppetdoc and wrong comparison

2010-11-24 Thread Chris C
Has there been any update to this issue? Iam seeing the same thing in my environment. redhat el 5.5 2.6.18-194.11.3.el5 rhel - ruby-1.8.5-5.el5_4.8 epel - puppet-dashboard-1.0.4-1 epel - puppet-server-2.6.0-1 epel - puppet-2.6.0-1 Thanks, /Chris C -- You received this message because you ar

Re: [Puppet Users] Re: file content

2010-11-24 Thread Stefan Schulte
On Wed, Nov 24, 2010 at 05:03:45PM +0100, Arnau Bria wrote: > On Wed, 24 Nov 2010 07:22:11 -0800 (PST) > jcbollinger jcbollinger wrote: > > > > On Nov 24, 6:17 am, Ohad Levy wrote: > Hi ! > > I'm getting a little crazy with this... I'll paste some code and see if > you see what's happening... >

Re: [Puppet Users] What is Puppet capable of?

2010-11-24 Thread Daniel Pittman
Patrick writes: > On Nov 23, 2010, at 4:53 PM, Adam Nielsen wrote: > >> I've been reading up on Puppet but there are a few things I am unsure of, >> and I'm hoping someone here can advise. >> >> As I understand it the idea behind Puppet is to describe how a machine >> should be configured in a sin

Re: [Puppet Users] Initial data population

2010-11-24 Thread Daniel Pittman
Ashley Penney writes: > On Tue, Nov 23, 2010 at 6:41 PM, Daniel Pittman wrote: >> Ashley Penney writes: >> >> > As an example of the kind of thing we're talking about we use a product > >> called Sonatype Nexus that relies on a bunch of on disk data in > >> /srv/sonatype-nexus/.  When installing

Re: [Puppet Users] using define of different moule's manifest

2010-11-24 Thread Nigel Kersten
On Wed, Nov 24, 2010 at 9:32 AM, sanjiv.singh wrote: > hi all, > > I had defined  a module  like this .. > > modulea > -- ---manifest > -- ---myclassa.pp >                                 >                                   # i have declared number > de

[Puppet Users] Thoughts on dropping 0.24.x client support in Puppet 2.7?

2010-11-24 Thread Nigel Kersten
I mentioned this in an earlier thread, but here's a dedicated one. We made a big change between 0.24.x and 0.25.x where we moved from XMLRPC to REST. How do people feel about us dropping all XMLRPC support from 2.7.x, such that it only supported Puppet clients 0.25.x and higher? -- Nigel Kers

Re: [Puppet Users] Parsing files at nodes

2010-11-24 Thread Gary Law
On 24 November 2010 15:13, Nicolas Arias wrote: > > Is this possible?, if it's possible, any hint? Custom fact that tells you where the syslog is going. Custom facts, in general, are your friend. :) -- Gary Law Email/Chat googletalk/messenger: gary@gmail.com iChat/jabber/AIM: gary@ma

Re: [Puppet Users] Thoughts on dropping 0.24.x client support in Puppet 2.7?

2010-11-24 Thread Gary Law
On 24 November 2010 23:50, Nigel Kersten wrote: > I mentioned this in an earlier thread, but here's a dedicated one. > > We made a big change between 0.24.x and 0.25.x where we moved from > XMLRPC to REST. > > How do people feel about us dropping all XMLRPC support from 2.7.x, > such that it only

Re: [Puppet Users] Thoughts on dropping 0.24.x client support in Puppet 2.7?

2010-11-24 Thread Daniel Pittman
Gary Law writes: > On 24 November 2010 23:50, Nigel Kersten wrote: >> I mentioned this in an earlier thread, but here's a dedicated one. >> >> We made a big change between 0.24.x and 0.25.x where we moved from >> XMLRPC to REST. >> >> How do people feel about us dropping all XMLRPC support from 2

Re: [Puppet Users] Thoughts on dropping 0.24.x client support in Puppet 2.7?

2010-11-24 Thread Nigel Kersten
On Wed, Nov 24, 2010 at 4:35 PM, Daniel Pittman wrote: > Gary Law writes: >> On 24 November 2010 23:50, Nigel Kersten wrote: >>> I mentioned this in an earlier thread, but here's a dedicated one. >>> >>> We made a big change between 0.24.x and 0.25.x where we moved from >>> XMLRPC to REST. >>> >

Re: [Puppet Users] Thoughts on dropping 0.24.x client support in Puppet 2.7?

2010-11-24 Thread Ryan Dooley
I'd be in favor of only maintaining one rev behind for compatibility (2.7.x will support 2.6.x but not earlier). Cheers, Ryan On Nov 24, 2010, at 4:57 PM, Nigel Kersten wrote: > On Wed, Nov 24, 2010 at 4:35 PM, Daniel Pittman wrote: >> Gary Law writes: >>> On 24 November 2010 23:50, Nigel K

Re: [Puppet Users] Thoughts on dropping 0.24.x client support in Puppet 2.7?

2010-11-24 Thread Daniel Pittman
Nigel Kersten writes: > On Wed, Nov 24, 2010 at 4:35 PM, Daniel Pittman wrote: >> Gary Law writes: >>> On 24 November 2010 23:50, Nigel Kersten wrote: I mentioned this in an earlier thread, but here's a dedicated one. We made a big change between 0.24.x and 0.25.x where we moved

[Puppet Users] vim syntax highlight link broken?

2010-11-24 Thread ston8r
I'm trying to grab a syntax file for vim - but it appears this link is just a website served as plaintext. Can anyone else access this link and get a proper download link? http://www.puppetlabs.com/downloads/puppet/puppet.vim Cheers, Ston -- You received this message because you are subscribed

Re: [Puppet Users] vim syntax highlight link broken?

2010-11-24 Thread Nigel Kersten
On Wed, Nov 24, 2010 at 5:08 PM, ston8r wrote: > I'm trying to grab a syntax file for vim - but it appears this link is > just a website served as plaintext. Can anyone else access this link > and get a proper download link? > > http://www.puppetlabs.com/downloads/puppet/puppet.vim https://github

Re: [Puppet Users] facter fact catalog?

2010-11-24 Thread Paul Nasrat
On 21 November 2010 15:55, Nick wrote: > Hi, > > A problem I've run into during my first attempts at writing manifests, is > knowing what possible facts are available, and for a given fact, what values > my > manifest might encounter. > > A classic one is the possible values of $operatingsystem,

Re: [Puppet Users] Facter: My vision -- crazy?

2010-11-24 Thread Paul Nasrat
On 19 November 2010 01:54, Nathan wrote: > Hi, > > You guys may remember me as the dude at puppet camp who suggested in > the facter meeting about having facts return unknown for example, or > have a default set of facts. This, oddly to me, seemed to not go over > well. Let me explain where I'm co

Re: [Puppet Users] Dependencies between custom facts

2010-11-24 Thread Paul Nasrat
On 20 November 2010 16:42, Nigel Kersten wrote: > On Fri, Nov 19, 2010 at 12:56 PM, Steve Atwell wrote: >> I need to write a custom fact that depends on the value of another >> custom fact in a different file.  For example: >> >> # foo.rb >> Facter.add("foo") do >>    setcode do >>        [...] >

Re: [Puppet Users] Thoughts on dropping 0.24.x client support in Puppet 2.7?

2010-11-24 Thread Patrick
On Nov 24, 2010, at 3:50 PM, Nigel Kersten wrote: > I mentioned this in an earlier thread, but here's a dedicated one. > > We made a big change between 0.24.x and 0.25.x where we moved from > XMLRPC to REST. > > How do people feel about us dropping all XMLRPC support from 2.7.x, > such that it