Re: [Puppet Users] Re: Puppet uses catalog of node B for node A

2014-08-13 Thread Helmut Rickel
Hello John, from a puppet-beginners point of view it seems astonishing that running "puppet agent -t" on node A can have influence on the catalog prepared for node B. I agree that your inital response perfectly fitted to the solution of the problem. Thanks for that explanation! Kind regards H

Re: [Puppet Users] Augeas hates me!!!

2014-08-13 Thread Poil
Hi, I think you can use "file_line" from stdlib https://forge.puppetlabs.com/puppetlabs/stdlib#file_line It's really more simple than Augeas and it works better. For multi-line I also use "editfile" a custom module, but you need to be good with regex =) https://github.com/mstrauss/puppet-edit

Re: [Puppet Users] Very large resource_statuses. reports:prune:orphaned fails with Mysql error

2014-08-13 Thread Erling Ringen Elvsrud
On Tuesday, August 12, 2014 5:58:34 PM UTC+2, Ramin K wrote: > > On 8/12/2014 8:54 AM, Ramin K wrote: > [...] > > You could try dropping the table and recreating it, but it might orphan > > all the resources. If you want the longer safer way, this is how I've > > done it in the past. Note th

Re: [Puppet Users] Re: puppet slow when ensuring user with groups in combination with winbind auth

2014-08-13 Thread Garrett Honeycutt
On 8/13/14 12:57 PM, jcbollinger wrote: > > > On Monday, August 11, 2014 8:50:36 AM UTC-5, Jan van Lith wrote: > > Hi, > > I am using winbind with "winbind enum groups = yes" on some of our > servers. > When ensuring a user that is local (and also in AD, so it has a lot > of

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-13 Thread Garrett Honeycutt
On 8/13/14 9:08 PM, Wil Cooley wrote: > > On Aug 12, 2014 11:57 AM, "Sebastian Otaegui" > wrote: >> >> Hello all, >> >> I have created this module: >> >> https://github.com/Spantree/puppet-thrift and everything worked fine > all specs ran fine. >> >> Now I using the pup

Re: [Puppet Users] Re: Augeas hates me!!!

2014-08-13 Thread John Warburton
On 14 August 2014 01:22, randal cobb wrote: > ok, that didn't seem to help. I now have this result: > Debug: Augeas[apache2](provider=augeas): Opening augeas with root /, lens > path , flags 64 > You may find templates much easier to manage I gave up on Augeas a long time ago due to this compl

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-13 Thread Wil Cooley
On Aug 12, 2014 11:57 AM, "Sebastian Otaegui" wrote: > > Hello all, > > I have created this module: > > https://github.com/Spantree/puppet-thrift and everything worked fine all specs ran fine. > > Now I using the puppetlabs/apt module and when I run the 'rake spec' it is trying to run the 'apt' te

[Puppet Users] Re: scheduled_task changes on every puppet run

2014-08-13 Thread aaronm
I am getting similar logs every day, but I am not using any scheduled tasks in my manifests... (**this is on PE 3.3 installed a week or two ago**) trigger changed '{'every' => '1', 'schedule' => 'daily', 'start_date' => '2014-8-12', 'start_time' => '13:00'}' to '[{'every' => '1', 'schedule' =>

[Puppet Users] Submit a talk or attend a Puppet Camp

2014-08-13 Thread Dawn Foster
I wanted to let people know that we have several open CFPs for Puppet Camps around the world, and we are looking for talk proposals! Düsseldorf on October 16, 2014 * CFP deadline is August 16: https://docs.google.com/spreadsheet/viewform?formkey=dGFJQWdPeTREd01lZUxwNW12cEVUTFE6MA * Details: http:

[Puppet Users] CI manifest Validation when using Jenkins with a Windows node

2014-08-13 Thread aaronm
I'm working on trying to get some validations into my CI process but am hitting a speedbump - Windows I use Jenkins to do my builds, and the slave it uses is a Windows server. This works fine, as Winscp copies the files over to my linux Puppet Master and it sends the files on their merry w

Re: [Puppet Users] Puppet/yum fails to install old packages

2014-08-13 Thread jcbollinger
On Friday, August 8, 2014 10:33:48 AM UTC-5, Mark Rosedale wrote: > > Hey Matthias, > > Thanks for the response. So I do see some additional information that may > help. > > So it appears that puppet does successfully install postgresql and > postgresql-server and postgres92, and that explain

[Puppet Users] Re: Wild Card in Augeas

2014-08-13 Thread David Lutterkort
Hi Vikas, to set multiple nodes, you need to use the 'setm' command; 'set' will only change a single node. Also, the path expressions in Augeas are more like XPath, and therefore don't have globbing built in. In augtool, you'd do what you want with this command: setm /files/etc/sysconfig/ne

[Puppet Users] Re: puppet slow when ensuring user with groups in combination with winbind auth

2014-08-13 Thread jcbollinger
On Monday, August 11, 2014 8:50:36 AM UTC-5, Jan van Lith wrote: > > Hi, > > I am using winbind with "winbind enum groups = yes" on some of our > servers. > When ensuring a user that is local (and also in AD, so it has a lot of > groups) the puppet run takes ages. Winbind process is taking a l

[Puppet Users] Chocolatey repos

2014-08-13 Thread huhm4n
Can I create my local repo to fetch the packages from instead of pulling it from the web using chocolatey? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pupp

[Puppet Users] Managing multiple hosts in a single service

2014-08-13 Thread Andrew Melo
Hello, all- I've been (unsuccessfully) looking for/thinking of a solution to the following problem and am unsuccessful, so I figured I'd ask here. If you have a service that's across multiple hosts (say, memcached or a mysql/galera HA cluster) where each node needs to know the hostnames of the

[Puppet Users] Re: Exported resources applied on exporting host - EL7 only

2014-08-13 Thread jcbollinger
On Tuesday, August 12, 2014 12:49:27 PM UTC-5, treydock wrote: > > I have noticed a very strange problem on CentOS 7 nodes where they are > collecting and/or applying their exported resources. I have a class called > "brazos::firewall" that's used internally to export a firewall rule that is

Re: [Puppet Users] Re: Puppet uses catalog of node B for node A

2014-08-13 Thread jcbollinger
Hello Helmut, I am glad you have resolved your issue. I have recently been travelling, and hence not responsive to this list, but I feel compelled to observe that the problem turned out to be exactly what I said in my initial response it might be: "In particular, I am inclined to guess that on

[Puppet Users] Re: Augeas hates me!!!

2014-08-13 Thread randal cobb
ok, that didn't seem to help. I now have this result: Debug: Augeas[apache2](provider=augeas): Opening augeas with root /, lens path , flags 64 Debug: Augeas[apache2](provider=augeas): Augeas version 1.0.0 is installed Debug: Augeas[apache2](provider=augeas): Will attempt to save and only run if

Re: [Puppet Users] Re: Puppet uses catalog of node B for node A

2014-08-13 Thread Helmut Rickel
Hello Jose, I have to correct myself: In https://docs.puppetlabs.com/learning/modules1.html it is not suggested to use "include" in init.pp, but for an

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-13 Thread Jason Antman
Seb, I actually *just* came by a very similar issue myself. The examples at http://murphyslaw.github.io/blog/2012/04/06/run-specs-excluding-integration-specs/ should help you. -Jason On Wed, Aug 13, 2014 at 8:42 AM, Jason Antman wrote: > Seb, > > You really shouldn't be running specs for depe

Re: [Puppet Users] jenkins workflow

2014-08-13 Thread Jason Antman
(1) a compile test is good, really good. make sure cheap tests happen first (and fail fast) before expensive ones. (2) I have a strong bias for having the automated jobs just run "bundle exec rake test" or something like that, so that you can use the same job for multiple modules On Thu, Aug 7, 2

Re: [Puppet Users] Puppet's yumhelper.py vs. other pythons on the system

2014-08-13 Thread Jason Antman
So... there *is* a bug open that relates to this, https://tickets.puppetlabs.com/browse/PUP-2144 (and by extension https://tickets.puppetlabs.com/browse/PUP-1362 which appears to be being worked on, and would fix this). I don't know if that should work, and I honestly don't know how to set a globa

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-08-13 Thread José Luis Ledesma
+1000 El 13/08/2014 14:50, "Jason Antman" escribió: > > > > On Thu, Jul 31, 2014 at 9:21 AM, jcbollinger > wrote: > >> >> >> >>> That being said... don't run via cron. >>> >> >> >> ... if all you want it for is provisioning. For Puppet's core use -- >> ongoing configuration management -- there

Re: [Puppet Users] More admins using the same master

2014-08-13 Thread Jason Antman
Yeah. You don't need to give them access to the master, you need something (I use a git hook on the git server) that deploys new pushes to the master. On Tue, Aug 5, 2014 at 12:15 PM, Christopher Wood < christopher_w...@pobox.com> wrote: > Off the top of my head, have them commit/push to the sam

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-08-13 Thread Jason Antman
On Thu, Jul 31, 2014 at 9:21 AM, jcbollinger wrote: > > > >> That being said... don't run via cron. >> > > > ... if all you want it for is provisioning. For Puppet's core use -- > ongoing configuration management -- there are a lot of advantages to > scheduling agent runs via cron instead of run

Re: [Puppet Users] How to make puppetlabs_spec_helper ignore modules inside fixtures

2014-08-13 Thread Jason Antman
Seb, You really shouldn't be running specs for dependent modules. (1) If I were you, I'd really use the spec helper, and garethr's module skeleton - https://github.com/garethr/puppet-module-skeleton (2) looking at your code, you should just be able to t.pattern = 'spec/(classes|defines)/*_spec.rb

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-13 Thread Jason Antman
The module doesn't install git from source, because nobody should install packages from source on a RedHat derivative OS. Have you read the documentation for the git module? Or the package type, since you're specifying the "source" parameter? On Tue, Aug 12, 2014 at 7:17 PM, Vikas Kumar wrote:

[Puppet Users] puppet can't get the right service status from centos5.3

2014-08-13 Thread li jackie
why puppet think the service is running?

[Puppet Users] Re: Could not request certificate: Error 405 on SERVER

2014-08-13 Thread Patrick Robinson
I had a similar error getting 405. I found I hadn't set the PassengerRoot directory correctly in the puppetmaster vhost config: PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-4.0.48 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsub

[Puppet Users] Re: How to get agents ip address in master manifest file

2014-08-13 Thread Paul Tötterman
> > I have a requirement to get the value of the ip address which send the > request for the catalog for the master in one of my manifest file. How can > i retrieve it inside master manifest file ? > Read about facts: https://docs.puppetlabs.com/learning/variables.html Cheers, Paul -- You r

[Puppet Users] How to get agents ip address in master manifest file

2014-08-13 Thread Malintha Adikari
Hi, I have a requirement to get the value of the ip address which send the request for the catalog for the master in one of my manifest file. How can i retrieve it inside master manifest file ? Regards, Malintha -- You received this message because you are subscribed to the Google Groups "Pu