[Puppet Users] Re: Puppet 2.6 Environments

2011-02-24 Thread donavan
I suspect you're hitting #3910, or a variant. It's possible for the master and client to disagree on the clients environment. The client will always request file paths based on it's concept of environment, regardless of what the master/catalog/external node classifier defines. Remove $environment

Re: [Puppet Users] external_nodes setting with Environments

2011-02-24 Thread Alan Barrett
On Wed, 23 Feb 2011, Douglas Garstang wrote: > So... in puppet.conf on the puppet master, there's the external_nodes > setting, which defines the location of the external nodes script. If > I am using multiple environments, I guess I have to have ONE set of > external nodes since external_nodes in

Re: [Puppet Users] ssh_authorized_key runs every time

2011-02-24 Thread Alan Barrett
On Wed, 23 Feb 2011, mark risher wrote: >ssh_authorized_key { $username: >ensure => present, >key => "abcdefghijklmnop_very_long_string", You don't have the 'user' or 'type' parameters. Perhaps that's related to the problem. --apb (Alan Barrett) -- You received this message

Re: [Puppet Users] external_nodes setting with Environments

2011-02-24 Thread Thomas Bellman
Douglas Garstang wrote: So... in puppet.conf on the puppet master, there's the external_nodes setting, which defines the location of the external nodes script. If I am using multiple environments, I guess I have to have ONE set of external nodes since external_nodes in puppet.conf is set ONCE,

[Puppet Users] Re: Install bin file through puppet

2011-02-24 Thread Ken Barber
I'd unpack the binary RPM, put it in a yum repo somewhere and install it with package {}. ken. On Feb 23, 8:05 pm, Steve wrote: > puppet newbie trying to install bin file through puppet. How would I > go about it? > > class java { > > package {"java_package": >         provider => "bin",        

[Puppet Users] Re: manifest doesn't get applied

2011-02-24 Thread Ken Barber
So your original case: class dbservices { ... class postgres { ... } class mysql { ... } } Wouldn't have worked if all you did was: include dbservices Because the 'include' only executes the contents of the dbservices class right? The 'inner classes' contents just get decla

[Puppet Users] any workarond recommendation for bug #3910 ?

2011-02-24 Thread Stefan Baryakov
Would anyone share workaround for the bug in the subject. (http://projects.puppetlabs.com/issues/3910) Apologizes if that has been answered, I couldn’t find anything ant it’s a real show-stopper for our planning. Thank you Best Regards, Stefan -- You received this message because you are subscri

Re: [Puppet Users] Re: manifest doesn't get applied

2011-02-24 Thread Tim Dunphy
Hi Ken, That's very illuminating. Thank you! I plan to try this when I get to work. If I run into any more issues I'll follow up, but I think I should be good! best regards! tim On Thu, Feb 24, 2011 at 5:31 AM, Ken Barber wrote: > So your original case: > > class dbservices { >  ... > >  class

Re: [Puppet Users] Config_version not working

2011-02-24 Thread Nan Liu
On Tue, Feb 8, 2011 at 10:38 PM, chakra wrote: > Hello, > > I tried using config_version with my simple shell script which returns > my SVN revision number. but  puppet doesn't seem to be applying the > config version in the logs. > > More Details > Puppet Master/Client Version: 2.6.4 > config_ver

[Puppet Users] Config Deployment: baseline manifest to all hosts, different sudoers,autofs..etc(manifest) to hosts, by hostname?

2011-02-24 Thread Jed
Hi all, I think this has been asked in one form or another, but my problem so far is i'm not sure of the terminology or nomenclature to use in my search string to find out my answer... So, here is my question.. I have lots of systems/instances, like most of us, and like most of they are spread a

[Puppet Users] Re: manifest doesn't get applied

2011-02-24 Thread GA_L
On Feb 23, 11:58 pm, Tim Dunphy wrote: > Hey guys, <...snip...> > > [root@pclient ~]# puppetd --test > info: Caching catalog for pclient.acadaca.net > info: Applying configuration version '1298504233' > err: //dbservices/Service[mysqld]/ensure: change from stopped to > running failed: Could not

[Puppet Users] Re: any workarond recommendation for bug #3910 ?

2011-02-24 Thread jcbollinger
On Feb 24, 4:53 am, Stefan Baryakov wrote: > Would anyone share workaround for the bug in the subject. > (http://projects.puppetlabs.com/issues/3910) > Apologizes if that has been answered, I couldn’t find anything ant > it’s a real show-stopper for our planning. That bug arises when client and

Re: [Puppet Users] Re: manifest doesn't get applied

2011-02-24 Thread Tim Dunphy
Hi guys, Ok well thanks for your input here! And some progress is being made. First I tried working with the manifest as one big class called "dbservices" class dbservices { $pgapps = [ "postgresql84-server","postgresql84" ] package { $pgapps: ensure => installed } $mysqlapps =

Re: [Puppet Users] Re: manifest doesn't get applied

2011-02-24 Thread Tim Dunphy
Also I should have mentioned that both services start by hand with an exit code of 0 (echo $?) best regards, tim On Thu, Feb 24, 2011 at 11:17 AM, Tim Dunphy wrote: > Hi guys, > >  Ok well thanks for your input here! And some progress is being made. > > > First I tried working with the manifest

[Puppet Users] augeas - add to beginning of file

2011-02-24 Thread cyrus
Hi: Using augeas, how do you add a comment to the beginning of a file. I know you can use ins but you need to specify a path to insert before or after. In my case I can't with 100% certainty say I will no what the first line. -- You received this message because you are subscribed to the Google

Re: [Puppet Users] any workarond recommendation for bug #3910 ?

2011-02-24 Thread Daniel Pittman
On Thu, Feb 24, 2011 at 02:53, Stefan Baryakov wrote: > Would anyone share workaround for the bug in the subject. > (http://projects.puppetlabs.com/issues/3910) > Apologizes if that has been answered, I couldn’t find anything ant > it’s a real show-stopper for our planning. > Thank you Make your

[Puppet Users] Cron monthday : bug?

2011-02-24 Thread Luc Suryo
Hello I have a cron entry that uses monthday = "1,15" , so I want the cron to be executed every first and 15th of the month however I get an error : Parameter monthday failed: 1,15 is not a valid monthday. Is this a bug or does puppet uses different syntax? can someone advice? thanks -- -ls -

[Puppet Users] Re: any workarond recommendation for bug #3910 ?

2011-02-24 Thread Thomas Bellman
jcbollinger wrote: That bug arises when client and server disagree about which environment the client should be in, which can happen (as I understand it) only when the client specifies a non-default environment to the server, and the server gets a different environment for the node from an exter

Re: [Puppet Users] any workarond recommendation for bug #3910 ?

2011-02-24 Thread Thomas Bellman
Stefan Baryakov wrote: Would anyone share workaround for the bug in the subject. (http://projects.puppetlabs.com/issues/3910) Apologizes if that has been answered, I couldn’t find anything ant it’s a real show-stopper for our planning. I think not using 'source => "puppet:///..."' references,

[Puppet Users] Re: ssh_authorized_key runs every time

2011-02-24 Thread mark risher
Thanks, but I do have those parameters; I was trying to keep my quote short. Here's the full monty: # create an ssh key for this user ssh_authorized_key { "$username.$ssh_public_key": ensure => present, key => $ssh_public_key, type=> $ssh_key_ty

Re: [Puppet Users] any workarond recommendation for bug #3910 ?

2011-02-24 Thread Nigel Kersten
On Thu, Feb 24, 2011 at 1:29 PM, Thomas Bellman wrote: > Stefan Baryakov wrote: > >> Would anyone share workaround for the bug in the subject. >> (http://projects.puppetlabs.com/issues/3910) >> Apologizes if that has been answered, I couldn’t find anything ant >> it’s a real show-stopper for our p

Re: [Puppet Users] any workarond recommendation for bug #3910 ?

2011-02-24 Thread Thomas Bellman
Nigel Kersten wrote: On Thu, Feb 24, 2011 at 1:29 PM, Thomas Bellman wrote: I think not using 'source => "puppet:///..."' references, but instead using 'content => file(...)' or 'content => template(...)' everywhere, would do the trick. Except you end up shipping the file contents *every*

Re: [Puppet Users] Unable to sync plugins/custom facts

2011-02-24 Thread Cosimo Streppone
On Thu, 24 Feb 2011 13:19:31 +1100, Brian Cully wrote: When running puppetd and it tries to download plugins I get: err: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': hostname not match with the server certificate Hi there, I had a very similar p

Re: [Puppet Users] any workarond recommendation for bug #3910 ?

2011-02-24 Thread Thomas Bellman
Nigel Kersten wrote: On Thu, Feb 24, 2011 at 1:29 PM, Thomas Bellman wrote: I think not using 'source => "puppet:///..."' references, but instead using 'content => file(...)' or 'content => template(...)' everywhere, would do the trick. Except you end up shipping the file contents *every*

Re: [Puppet Users] any workarond recommendation for bug #3910 ?

2011-02-24 Thread Nigel Kersten
On Thu, Feb 24, 2011 at 3:05 PM, Thomas Bellman wrote: > Nigel Kersten wrote: > >> On Thu, Feb 24, 2011 at 1:29 PM, Thomas Bellman >> wrote: > >>> I think not using 'source => "puppet:///..."' references, but instead >>> using 'content => file(...)' or 'content => template(...)' everywhere, >>> w

Re: [Puppet Users] Cron monthday : bug?

2011-02-24 Thread Nan Liu
On Thu, Feb 24, 2011 at 12:34 PM, Luc Suryo wrote: > Hello > > I have a cron entry that uses monthday = "1,15" , so I want the cron > to be executed every first and 15th of the month > however I get an error : Parameter monthday failed: 1,15 is not a > valid monthday. Try: monthday => ['1', '15']

Re: [Puppet Users] Re: auth.conf & namespaceauth.conf : which files belong on the master , and c

2011-02-24 Thread Iain Sutton
Yep, your experience matches what we see in our setup: The puppetmaster has neither an auth.conf nor a namespaceauth.conf and operates with just one error: we can't run puppetd on the puppetmaster because namespaceauth.conf is missing... On 23/02/2011, at 2:56 PM, Jed wrote: > so even more wi