[Puppet Users] Re: Test driven manifests?

2011-02-26 Thread donavan
On Feb 25, 4:24 pm, Dan Bode wrote: > this is what cucumber-puppet does. > > https://github.com/nistude/cucumber-puppet I'll second cucumber-puppet. Being able to verify catalog compilation is a great step. Beyond that you can test resources for the catalogs as well. -- You received this messag

[Puppet Users] Re: How to add ubuntu ppa

2011-02-26 Thread Daniel Hahler
Hello, on Jan 13, 11:07 pm, Kevin Beckford wrote: > Now, I noticed the yumrepo, but this is of little use today, I need to add > an ubuntu ppa ( a few really ) to my installation.  How would this be done? >  Is there a provider that can do this? I have created a definition for this today, but onl

Re: [Puppet Users] Re: How to add ubuntu ppa

2011-02-26 Thread Nick Moffitt
Daniel Hahler: > http://daniel.hahler.de/puppet-definition-to-add-launchpad-ppa-repository > gist: https://gist.github.com/844735 > > This also supports APT keys via "apt::key". To me, it's cleaner to ship files than to run programs. I tend to go with something more like: http://pastebi

Re: [Puppet Users] Re: How to add ubuntu ppa

2011-02-26 Thread Nick Moffitt
Nick Moffitt: > http://pastebin.ubuntu.com/572759/ I should note that that's a rarified example. It really ought to pass an ensure parameter down to those files! -- Hey, how come nobody here in the future has a time machine except me? -- You received this message because you are subscr

[Puppet Users] Re: Variable scopes and overriding

2011-02-26 Thread Nick Fagerlund
Hey, Mohamed. Nan's got a good suggestion; I' Alternately, you could do this: node default { include $perhost_module # Do nothing else. } class some_host_module { $auth_aaa = "something" $other_variable = "something" include class_that_includes_everything } class class_that_i

[Puppet Users] Re: Variable scopes and overriding

2011-02-26 Thread Nick Fagerlund
Dammit, I hit send by accident. Anyway, the point of this is that Nan's method is still doing lookup across classes instead of strictly controlling the parent scopes, and I think building this as a strict cascade where everything only looks to its direct parent is going to get you closer to thinki

Re: [Puppet Users] Re: Variable scopes and overriding

2011-02-26 Thread Mohamed Lrhazi
Fantastic. Thank you very much guys. On Sat, Feb 26, 2011 at 3:42 PM, Nick Fagerlund wrote: > Dammit, I hit send by accident.  Anyway, the point of this is that > Nan's method is still doing lookup across classes instead of strictly > controlling the parent scopes, and I think building this as a

[Puppet Users] learning, but puppet does not detect change

2011-02-26 Thread mark bradley
Hi, I've just installed Puppet on two CentOS 5.5 servers, "S" for "A". "A" does not have the ntp package installed nor of course ntp running. The Puppet server is started on "S" with the ntp class from this tutorial: http://bitfieldconsulting.com/puppet-tutorial (included below) however when I ru

[Puppet Users] Re: "hostname not match with the server certificate" error

2011-02-26 Thread Hal Snyder
Are you specifying certname on puppet master as well as client? That is working for me as long as I set --server= and --certname= on the client and --certname= on the master. You may need to clean out /ssl on your AMIs and start over to get this to work. Specifying certname enables using puppe

[Puppet Users] using puppet to import keys

2011-02-26 Thread Tim Dunphy
hello list! I am attempting to import some repo keys into my puppet clients with the following lines in one of my manifests: $commands = ["cd /etc/yum.repos.d/","wget http://apt.sw.be/RPM-GPG-KEY.dag.txt","wget http://rpms.famillecollet.com/RPM-GPG-KEY-remi","wget http://download.fedora.redhat.c

Re: [Puppet Users] using puppet to import keys

2011-02-26 Thread Patrick
1) What you are doing won't work because all exec commands are executed independently, not sequentially. Because of this, the "cd" command would have no effect. There's a "current_working_directory" parameter or something similar that will give you that effect. 2) Unless you manually set the p

Re: [Puppet Users] learning, but puppet does not detect change

2011-02-26 Thread yzhk...@gmail.com
1、site.pp: import "nodes.pp" 2、ntp.ppshould be $module_path/manifests/init.pp 3、puppet agent --test --server=S -d -v Have a look at http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Best_Practice On Sun, Feb 27, 2011 at 8:01 AM, mark bradley wrote: > Hi, > > I've just installed

Re: [Puppet Users] Re: "hostname not match with the server certificate" error

2011-02-26 Thread Nigel Kersten
On Sat, Feb 26, 2011 at 4:05 PM, Hal Snyder wrote: > Are you specifying certname on puppet master as well as client? That is > working for me as long as I set --server= and > --certname= on the client and --certname= > on the master. You may need to clean out /ssl on your AMIs and > start over to