Re: [Puppet Users] Re: Do we need a new name for "--test"?

2011-01-24 Thread Adam Nielsen
The problem seems to be --test does so many things you can't concisely describe it. On the other hand, maybe --live-test would be good, as it makes it clear changes will be made which seems to be the biggest complaint about --test. Cheers, Adam. -- You received this message because you are s

Re: [Puppet Users] Re: Do we need a new name for "--test"?

2011-01-24 Thread Adam Nielsen
Well, I see where you're coming from, but I see all flags as commands given to the program meaning you're telling puppet to do that thing. So, "--no-daemonize" tells puppet not to daemonize. In this case, I'd expect "watch" to tell puppet to watch something. I really think this is a bad choice

Re: [Puppet Users] Do we need a new name for "--test"?

2011-01-24 Thread Adam Nielsen
It's more than that though. --onetime --no-daemonize --ignorecache --verbose --no-usecacheonfailure and I think I'm missing some newer additions too. Hmm that's true, and it is similar to --onetime. How about --explain? The end result is that you get a detailed explanation of what is happening

Re: [Puppet Users] Do we need a new name for "--test"?

2011-01-24 Thread Adam Nielsen
What would be a better name for "--test"? Using Gentoo's emerge as an example, how about --oneshot? It's more than that though. --onetime --no-daemonize --ignorecache --verbose --no-usecacheonfailure and I think I'm missing some newer additions too. Hmm that's true, and it is similar to --

Re: [Puppet Users] Do we need a new name for "--test"?

2011-01-23 Thread Adam Nielsen
https://projects.puppetlabs.com/issues/2476 This does seem to confuse a fair few new users. What would be a better name for "--test"? Using Gentoo's emerge as an example, how about --oneshot? Cheers, Adam. -- You received this message because you are subscribed to the Google Groups "Puppet

Re: [Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Adam Nielsen
No, I want the 'source' line to be as you suggest - the contents of *both* paths should be copied into the same folder, as it's a "conf.d" style directory. For example, the first path contains 10-main.conf and the second path contains 20-mailman.conf. Both these should be copied into the destina

Re: [Puppet Users] Is there a nice syntax for calling functions?

2011-01-08 Thread Adam Nielsen
It's the minimum required syntax for declaring a resource. The : is required to seperate the resource title and the list of attributes: Thanks for the explanation. Shame the colon isn't optional when there are no attributes ;-) You can use puppet filebucket command to backup the files befor

Re: [Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Adam Nielsen
Both these classes need to copy configuration files into the same directory, but I can only get lighttpd's files copied in, Mailman's seem to be ignored. What am I doing wrong? It looks to me that you're going to end up with: source => ["puppet:///files/lighttpd/$hostname/",

[Puppet Users] Is there a nice syntax for calling functions?

2011-01-08 Thread Adam Nielsen
Hi all, I'm using the class below to set the timezone on a Debian system, however there are two things I'm unhappy with. 1) Why do I have to specify a trailing colon after the exec command and when calling timezone::set? If I leave it off I get the very helpful error "Syntax error at '}'; e

[Puppet Users] Inheriting doesn't work with files?

2011-01-08 Thread Adam Nielsen
Hi all, I've got two classes. One installs and configures the web server lighttpd, and the other installs and configures Mailman. Both these classes need to copy configuration files into the same directory, but I can only get lighttpd's files copied in, Mailman's seem to be ignored. In my

Re: [Puppet Users] Puppet doesn't work over slow connections?

2010-12-30 Thread Adam Nielsen
Adam, can you vote or watch that bug please so we know other people are being affected by it? Thanks Nigel, done. It's actually suggesting that you edit the puppet source code. Obviously this is not a long term solution, but it would be very helpful if you had success doing this and could let

[Puppet Users] Puppet doesn't work over slow connections?

2010-12-29 Thread Adam Nielsen
Hi all, I'm trying to do exactly the same thing as described on this bug report, and I'm having exactly the same problem: http://projects.puppetlabs.com/issues/4762 The bug report seems to suggest that "editing the line on the puppet master" will fix the problem, but I don't know what this

Re: [Puppet Users] How do you extend a previous setting?

2010-12-29 Thread Adam Nielsen
Is there any way I can make the node definition "inherit" the site one? All I want to do is add another entry into the array passed as the 'groups' parameter. Good keyword that. Put the use definition in a class. Each list of groups is a subclass such that class my_user_in_group_foo inherits m

[Puppet Users] How do you extend a previous setting?

2010-12-29 Thread Adam Nielsen
Hi all, I have a site.pp which defines the user I want to log in as, however on some nodes (depending on which software is installed) this user needs to be a member of particular groups. If I define the user in site.pp with core details and then in each class alter the group membership (the

[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