Re: [Puppet Users] Re: error running puppetrun

2010-12-10 Thread Iain Sutton
Hi, Nothing has changed in your puppet config? Seems that this problem has appeared before: http://www.mail-archive.com/puppet-users@googlegroups.com/msg06477.html Not sure if this applies in your situation though... Cheers, Iain On 8 December 2010 16:59, Himanshu Raina dopedoxy...@gmail.com

Re: [Puppet Users] Re: error running puppetrun

2010-12-10 Thread James Louis
Have you tried to run with --debug? On Tue, Dec 7, 2010 at 11:59 PM, Himanshu Raina dopedoxy...@gmail.comwrote: Hi, The cpu is hardly busy. I'm not clear on the network part though cause DNS resolutions and n/w connectivity everything's fine. It's just that out of the blue had this problem.

[Puppet Users] Re: Could not evaluate: 'test' is not executable

2010-12-10 Thread luke.bigum
Thanks for the suggestion Patrick, it led me to the cause of the problem :) I wrote a very simple local test manifest to emulate the Exec problem with 'puppet apply' and it still occurred. Out of pure habit, I often execute 'ls -l' when I switch between terminals (so I know where I am) and

[Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
Hi all, We'd like to share a class, and do something like: class common_defaults { [...] user { 'root': ensure = present, password= $root_password ? { 'serviceA'= 'passwdA', default = 'passwdB', }, [...] }

Re: [Puppet Users] variables with no value

2010-12-10 Thread Felix Frank
nodes.pp nodea { $root_passwd=serviceA include common_defaults } nodeb { include common_defaults } Hi, could you be a little less cryptic about the node definitions? (I understand there may be privacy issues, but the above is censored too drastically.) Is it

Re: [Puppet Users] Re: Could not evaluate: 'test' is not executable

2010-12-10 Thread Patrick
On Dec 10, 2010, at 2:34 AM, luke.bigum wrote: Thanks for the suggestion Patrick, it led me to the cause of the problem :) I wrote a very simple local test manifest to emulate the Exec problem with 'puppet apply' and it still occurred. Out of pure habit, I often execute 'ls -l' when I

Re: [Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
On Fri, 10 Dec 2010 11:43:59 +0100 Felix Frank wrote: nodes.pp nodea { $root_passwd=serviceA include common_defaults } nodeb { include common_defaults } Hi, Hi, could you be a little less cryptic about the node definitions? (I understand there may be privacy

Re: [Puppet Users] variables with no value

2010-12-10 Thread Felix Frank
We could simply as my previously example. is the selctor correct? password= $root_password ? { 'serviceA'= 'passwdA', default = 'passwdB', }, I mean, the default has any sense? if not default but ''? because if that selcetor

[Puppet Users] Re: Could not evaluate: 'test' is not executable

2010-12-10 Thread luke.bigum
This doesn't appear to affect the actual execution of commands, so don't be worried about the wrong commands being executed based on the CWD of Puppet. Except it might be.  Puppet might have been trying to execute the file and then failing because the permissions were 644 instead of 755.

Re: [Puppet Users] Mysql Admin

2010-12-10 Thread Mohit Chawla
On Fri, Dec 10, 2010 at 5:04 PM, Patrick kc7...@gmail.com wrote: *) The DB to have a root password. Use a preseed template. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To

Re: [Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
On Fri, 10 Dec 2010 12:33:39 +0100 Felix Frank wrote: We could simply as my previously example. is the selctor correct? password= $root_password ? { 'serviceA'= 'passwdA', default = 'passwdB', }, I mean, the default

Re: [Puppet Users] Mysql Admin

2010-12-10 Thread Adam Heinz
On Fri, Dec 10, 2010 at 6:34 AM, Patrick kc7...@gmail.com wrote: I'm trying to administer the mysql database on some servers using puppet. When I'm done, I want: *) The DB to have a root password. *) I want to define a few databases, users and grants. Any advice what to use? I've had

[Puppet Users] pp grammar test-files?

2010-12-10 Thread Henrik Lindberg
Hi, I am working on some tools that read and write pp files, and I wonder if there are some pp files available somewhere that can be used to test a parser. I am especially interested in if there are some tests written that capture invalid syntax. - henrik -- You received this message because

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread Dan Bode
--parseonly option will catch parsing mistakes. On Fri, Dec 10, 2010 at 8:00 AM, Henrik Lindberg henrik.lindberg.priv...@gmail.com wrote: Hi, I am working on some tools that read and write pp files, and I wonder if there are some pp files available somewhere that can be used to test a

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread Henrik Lindberg
Hi, I understand that - I wonder if there is a set of pp files available for testing the parser. - henrik On Dec 10, 2010, at 5:04 PM, Dan Bode wrote: --parseonly option will catch parsing mistakes. On Fri, Dec 10, 2010 at 8:00 AM, Henrik Lindberg henrik.lindberg.priv...@gmail.com

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread Felix Frank
On 12/10/2010 05:42 PM, Henrik Lindberg wrote: Hi, I understand that - I wonder if there is a set of pp files available for testing the parser. http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Patterns -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread Henrik Lindberg
Thanks, that is a good starting point. Are the underlying pp files available in git by any chance? - henrik On Dec 10, 2010, at 5:47 PM, Felix Frank wrote: On 12/10/2010 05:42 PM, Henrik Lindberg wrote: Hi, I understand that - I wonder if there is a set of pp files available for

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread Felix Frank
On 12/10/2010 05:58 PM, Henrik Lindberg wrote: Thanks, that is a good starting point. Are the underlying pp files available in git by any chance? If not, wget and a little awk should go a long way... -- You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] Re: some files are getting errors during source = puppet:///...

2010-12-10 Thread Eric Snow
I just tried using the REST API to pull the file metadata and noticed that the environment is not part of the API for files: http://docs.puppetlabs.com/guides/rest_api.html Does that mean that it will not respect my environments for the following: file { 'test': source =

[Puppet Users] yum repository files blank

2010-12-10 Thread Russell Perkins
So I'm using the standard yum module from example42. Every single file ends up blank on my targets. Do I have a logic error in my file? Here is my yum/modules/manifests/init.pp - http://pastie.org/1366030 -- You received this message because you are subscribed to the Google Groups Puppet Users

[Puppet Users] Re: some files are getting errors during source = puppet:///...

2010-12-10 Thread Eric Snow
So it looks like that doc is misleading. It would help if there were a curl example for the API request for files... As it is, it may be that the environment is factored in after all. Still trying to figure it out. Any ideas would be great! -eric On Dec 10, 11:17 am, Eric Snow

Re: [Puppet Users] Mysql Admin

2010-12-10 Thread Patrick
On Dec 10, 2010, at 5:47 AM, Adam Heinz wrote: On Fri, Dec 10, 2010 at 6:34 AM, Patrick kc7...@gmail.com wrote: I'm trying to administer the mysql database on some servers using puppet. When I'm done, I want: *) The DB to have a root password. *) I want to define a few databases, users

Re: [Puppet Users] Howto check if augeas is available

2010-12-10 Thread Patrick
On Dec 9, 2010, at 7:14 AM, Martijn Grendelman wrote: I made a small mistake. Please see at the bottom. On 09-12-10 15:30, Martijn Grendelman wrote: An example: add the following to puppet_path/modules/modulename/lib/facter/augeas_available.rb -- cut here -- require 'facter'

Re: [Puppet Users] Re: Could not evaluate: 'test' is not executable

2010-12-10 Thread Patrick
On Dec 10, 2010, at 3:40 AM, luke.bigum wrote: This doesn't appear to affect the actual execution of commands, so don't be worried about the wrong commands being executed based on the CWD of Puppet. Except it might be. Puppet might have been trying to execute the file and then failing

Re: [Puppet Users] Mysql Admin

2010-12-10 Thread Justin Brehm
There's an exec in this that sets the root password (line 180). https://github.com/blt04/puppet-mysql/blob/master/manifests/classes/server.pp On Fri, Dec 10, 2010 at 3:35 PM, Patrick kc7...@gmail.com wrote: On Dec 10, 2010, at 5:47 AM, Adam Heinz wrote: On Fri, Dec 10, 2010 at 6:34 AM,

[Puppet Users] Re: some files are getting errors during source = puppet:///...

2010-12-10 Thread Eric Snow
So I got past the confusion. Here is what the rest_api.html doc should say (it was missing the underscore) for an example: curl -H Accept: yaml https://puppetmaster:8140/production/file_metadata/modules/puppet/puppet.conf As to the problem I am having, I am guessing that I have something

Re: [Puppet Users] Mysql Admin

2010-12-10 Thread Patrick
Thanks. I didn't see that. On Dec 10, 2010, at 12:45 PM, Justin Brehm wrote: There's an exec in this that sets the root password (line 180). https://github.com/blt04/puppet-mysql/blob/master/manifests/classes/server.pp On Fri, Dec 10, 2010 at 3:35 PM, Patrick kc7...@gmail.com wrote:

[Puppet Users] Re: yum repository files blank

2010-12-10 Thread Russell Perkins
got it, it was an issue where it was dropping the base.repo file blank and then requiring yum-priorities to populate the files. Russell Perkins wrote: So I'm using the standard yum module from example42. Every single file ends up blank on my targets. Do I have a logic error in my file? Here

[Puppet Users] Re: File not found during puppet fileserving

2010-12-10 Thread Eric Snow
The issue was that I was not passing the --environment flag during my puppet run. Apparently it ignores the environment returned by the external node classifier. Thanks for all the feedback. -eric On Dec 7, 10:15 am, Stefan Schulte stefan.schu...@taunusstein.net wrote: On Mon, Dec 06, 2010 at

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread Daniel Pittman
On Sat, Dec 11, 2010 at 03:42, Henrik Lindberg henrik.lindberg.priv...@gmail.com wrote: I understand that - I wonder if there is a set of pp files available for testing the parser. Puppet labs don't have a hidden repository of them to use as part of testing or anything like that. What I would

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread James Turnbull
Daniel Pittman wrote: On Sat, Dec 11, 2010 at 03:42, Henrik Lindberg henrik.lindberg.priv...@gmail.com wrote: I understand that - I wonder if there is a set of pp files available for testing the parser. Puppet labs don't have a hidden repository of them to use as part of testing or

Re: [Puppet Users] pp grammar test-files?

2010-12-10 Thread Nathan Rich
Don't forget about example42.com On Fri, Dec 10, 2010 at 3:26 PM, James Turnbull ja...@puppetlabs.comwrote: Daniel Pittman wrote: On Sat, Dec 11, 2010 at 03:42, Henrik Lindberg henrik.lindberg.priv...@gmail.com wrote: I understand that - I wonder if there is a set of pp files available

Re: [Puppet Users] Re: File not found during puppet fileserving

2010-12-10 Thread Nigel Kersten
On Fri, Dec 10, 2010 at 12:55 PM, Eric Snow es...@verio.net wrote: The issue was that I was not passing the --environment flag during my puppet run.  Apparently it ignores the environment returned by the external node classifier.  Thanks for all the feedback. Ahah. I was wondering if you'd

Re: [Puppet Users] Re: some files are getting errors during source = puppet:///...

2010-12-10 Thread Nigel Kersten
On Fri, Dec 10, 2010 at 12:50 PM, Eric Snow es...@verio.net wrote: So I got past the confusion.  Here is what the rest_api.html doc should say (it was missing the underscore) for an example:  curl -H Accept: yaml https://puppetmaster:8140/production/file_metadata/modules/puppet/puppet.conf