RE: [Puppet Users] Removing nodes from puppetdb

2012-11-30 Thread Bernd Adamowicz
And as an alternative you also may delete the host and its resources directly inside the database. It's described here: http://www.bernd-adamowicz.de/209/removing-hosts-from-stored-configurations/. Bernd From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of De

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread GordonJB
Ramin: Yes, they were all checking in within a span of about two minutes. Passenger tuning is something that needs doing I think, the failures seem to have calmed down a lot over night, and the runs are a tiny bit more spread out, but obviously I'd like to avoid having this problem in the futur

Re: [Puppet Users] How does facter get ipaddress?

2012-11-30 Thread Bret Wortman
On Thursday, November 29, 2012 3:29:51 PM UTC-5, pmbuko wrote: > On Nov 29, 2012, at 3:16 PM, Bret Wortman wrote: > > I think the problem I'm having with not being able to run puppet for up to > 90 minutes after a reboot is related to this error, which goes away some > time in that time period:

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 11:29 AM, GordonJB wrote: > 1) I didn't think so, but looking in my ps, I have the following: > > puppet 17826 1 1 03:27 ?00:04:37 master > www-data 18614 1350 0 Nov29 ?00:00:00 /usr/sbin/apache2 -k start > root 18626 1350 0 Nov29 ?00

Re: [Puppet Users] How does facter get ipaddress?

2012-11-30 Thread Ashley Penney
On Fri, Nov 30, 2012 at 6:59 AM, Bret Wortman wrote: > Aha! The problem is that "ifconfig" doesn't return anything containing > "inet addr:" in Fedora 17. The output looks like this: > > eth0: flags=4163 mtu 1500 > inet 192.168.2.13 netmask 255.255.255.0 broadcast 192.168.2.255 >

Re: [Puppet Users] How does facter get ipaddress?

2012-11-30 Thread Bret Wortman
Awesome! I'll give it a try and report back. Happy to help test. * * * Bret Wortman*** http://bretwortman.com/ http://twitter.com/BretWortman On Fri, Nov 30, 2012 at 7:19 AM, Ashley Penney wrote: > > On Fri, Nov 30, 2012 at 6:59 AM, Bret Wortman wrote: > >> Aha! The problem is that "ifconfi

[Puppet Users] How to share a ruby hash between Puppet and standard ruby script?

2012-11-30 Thread KomodoDave
I have a hash defined containing some static information. This exists within a custom function for Puppet. I wish to share this code with a ruby test harness I'm writing; there will be additional resources that both Puppet and the test harness can make use of. My question is - what's the best

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-30 Thread r0k5t4r
Hi Adam, thanks a lot. I have successfully implemented your or_architecture fact on our machines. But it looks like it is not workung under Windows 2003 32Bit.I have to check this... Regards, Oli -- You received this message because you are subscribed to the Google Groups "Puppet Users" grou

Re: [Puppet Users] puppet.conf questiosn

2012-11-30 Thread Ugo Bellavance
On Sunday, November 25, 2012 9:07:54 PM UTC-5, Ryan Coleman wrote: > > > > > On Sun, Nov 25, 2012 at 10:22 AM, Ugo Bellavance > > wrote: > >> Hi, >> >> I have 2 questions regarding puppet.conf file: >> >> >>1. What should I do to use puppet to deploy puppet.conf files? I have >>only one

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread GordonJB
I don't suppose you know how to stop the service on 3.0? There is no puppetmaster process left, just puppet, and I'd like to keep the puppet client running! Thanks, Gordon On Friday, 30 November 2012 12:02:06 UTC, Matthew Burgess wrote: > > On Fri, Nov 30, 2012 at 11:29 AM, GordonJB > > wrote:

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 2:08 PM, GordonJB wrote: > I don't suppose you know how to stop the service on 3.0? There is no > puppetmaster process left, just puppet, and I'd like to keep the puppet > client running! If there's no master process left, then it is stopped, surely? Here's an output of '

[Puppet Users] Re: Using puppet to change passwords on nix systems

2012-11-30 Thread jcbollinger
On Thursday, November 29, 2012 11:14:57 PM UTC-6, O wrote: > > Hi, I am new to this and I discovered a manifest in an old post that > should change passwords. It runs fine, but the password does not change. I > am wondering how this would work since it would need to change the shadow. > > The

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Dan White
You are using passenger, right ? I believe you have to stop the passenger process and/or the apache process it is running on. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) --

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread GordonJB
I am, but there were standalone processes I'm not sure how to kill and disable. I've currently got (from ps -ef | grep puppet): root 1296 1 0 11:34 ?00:00:13 /usr/bin/ruby /usr/bin/puppet agent puppet2246 1 0 11:58 ?00:01:29 master puppet5868 1 1 14:33

Re: [Puppet Users] Using puppet to change passwords on nix systems

2012-11-30 Thread O
Thanks for the suggestion, but I would like to stick to see if I can get that script working correctly first before using an additional management software. On Friday, November 30, 2012 1:19:08 AM UTC-5, Pete wrote: > > Hi. > > I have stopped using puppet to manage users. (I now use FreeIPA for

[Puppet Users] Re: [Hiera]: How to solve a yaml files getting large issue?

2012-11-30 Thread jcbollinger
On Thursday, November 29, 2012 7:13:33 PM UTC-6, Vaidas Jablonskis wrote: > > Hi People, > > I use Puppet 3.0 with Hiera using Yaml backend. Everything works great. I > am getting to a point where my yaml files a becoming really large, for > instance '%{environment}/roles/myapp.yaml' is pretty

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 3:03 PM, GordonJB wrote: > I am, but there were standalone processes I'm not sure how to kill and > disable. > > I've currently got (from ps -ef | grep puppet): > root 1296 1 0 11:34 ?00:00:13 /usr/bin/ruby > /usr/bin/puppet agent > puppet2246 1 0

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-30 Thread r0k5t4r
Hi Adam, The class Win32_OperatingSystemexists on Vista and above. For older systems you can use Win32_ComputerSystem. I found this information here: http://www

Re: [Puppet Users] How to share a ruby hash between Puppet and standard ruby script?

2012-11-30 Thread Jeff McCune
On Fri, Nov 30, 2012 at 4:30 AM, KomodoDave wrote: > I have a hash defined containing some static information. This exists within > a custom function for Puppet. > > I wish to share this code with a ruby test harness I'm writing; there will > be additional resources that both Puppet and the test h

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread GordonJB
Killing apache seemed to get rid of that master process. Restarting the apache server however brought back another master process after a couple of minutes: puppet8549 1 22 16:25 ?00:00:03 master I think this was due to clients checking in, however they did not disappear. I cur

[Puppet Users] Re: Using puppet to change passwords on nix systems

2012-11-30 Thread O
You are right. I found a simpler way of doing it using puppet's built in "user" reference with shadow-lib installed. The only thing is, puppet doesn't seem to be able to create an md5 hash for you so you need to create a test user with the same password and use that value for password => 'hashg

Re: [Puppet Users] How to share a ruby hash between Puppet and standard ruby script?

2012-11-30 Thread Dave Brown
Sure thing, here you are: ## Usage:## artifacts()## Returns:## Puppet hash containing artifact info.## @author N David Brownmodule Puppet::Parser::Functions newfunction(:artifacts, :type => :rvalue) do |args| # Info common to all artifacts. _common = { 'pkg' =

[Puppet Users] How to do release managment integration with puppet?

2012-11-30 Thread Schofield
I am at the beginning of merging the traditional OS/Middleware update process with application development release process. The goal is to be able to test a complete versioned OS/Middleware/Application stack as it moves through dev/test/qa/prod environments. The key here is that entire stack

Re: [Puppet Users] Re: Using puppet to change passwords on nix systems

2012-11-30 Thread Brian Jolly
I've been using the openssl command line tool to generate the hash for my puppet users: openssl passwd -1 It's still a manual process to get the hash, but works pretty good for a small number of users. -- You received this message because you are subscribed to the Google Groups "Puppet Users" g

[Puppet Users] Re: Puppet CA corruption

2012-11-30 Thread tas
I have the same exact problem over and over and over, so I gave up on Puppet. But maybe you can try resolve this by checking if times are in sync? try ntpdate on master and slave. check date on both machines very quickly to see the time sync On Thursday, November 29, 2012 4:52:42 PM UTC-5, shoern

Re: [Puppet Users] How to share a ruby hash between Puppet and standard ruby script?

2012-11-30 Thread Jeff McCune
On Fri, Nov 30, 2012 at 8:42 AM, Dave Brown wrote: > Sure thing, here you are: This conversation might be better suited to the puppet-dev mailing list. I recommend posting follow up messages there. _common and _artifacts are local variables and won't be accessible outside of the scope they're d

Re: [Puppet Users] Puppet CA corruption

2012-11-30 Thread Deepak Giridharagopal
On Thu, Nov 29, 2012 at 2:52 PM, shoerner wrote: > Hello everyone, > > Just getting my first puppet master set up and I am having a problem that > I just do not know how to get past. For some reason, my certificate store > keeps getting corrupted. Basically what happens is that the server will >

Re: [Puppet Users] Re: Are these the same?

2012-11-30 Thread Jakov Sosic
On 11/26/2012 07:59 PM, jcbollinger wrote: > Trying to figure out if these would behave the same or not? > > Example 1: > - > > class Foo { > require Bar > > Example 2: > > > class Foo { > include Bar > > So will th

[Puppet Users] Re: Thu Nov 29 10:17:51 +0000 2012 Puppet (err): Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for XXX to PuppetDB at pupp

2012-11-30 Thread Kalyana sundaram
Thanks Felipe Syncing certs privatekeys with ca_server worked But could somebody help me understand why each masters should have ca server's private key? How exactly this authentication process works? On Thursday, November 29, 2012 11:55:08 PM UTC+5:30, Felipe Salum wrote: > > I had the same setu

Re: [Puppet Users] Puppetdb source install on Solaris. Agents complain about "invalid encoding ("UTF-8//IGNORE", "UTF-8")"

2012-11-30 Thread Tim Mooney
In regard to: Re: [Puppet Users] Puppetdb source install on Solaris. Agents...: It looks like the iconv library in the version of Ruby provided by the OpenIndiana repo may be too old, lack a required method or have an incompatible version of the method being used to transform the contents of the

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 4:34 PM, GordonJB wrote: > Also, 'lsof -i :8140' returned nothing. OK, let's start there then. You should have an /etc/httpd/conf.d/puppetmaster.conf that looks somewhat like the one at http://docs.puppetlabs.com/guides/passenger.html#apache-configuration-for-puppet-024

Re: [Puppet Users] Re: Thu Nov 29 10:17:51 +0000 2012 Puppet (err): Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for XXX to PuppetDB at

2012-11-30 Thread Felipe Salum
I'm not sure if I'm correct but what I understood after spending a few hours on it: Let's suppose you have: certname: puppet.example.com puppet_ca.example.com puppet_worker1.example.com puppet_worker2.example.com puppetdb1.example.com Your PuppetDB registered with your CA using the certname pup

[Puppet Users] Apparent problem with resource ordering using Puppetlabs Corosync module (does not bring up HA resources in correct order when configured to do so)

2012-11-30 Thread SirDiesALot
I'm setting up a simple application management with corosync via the puppetlabs module. What SHOULD happen is: 1. Ip gets brought up 2. jboss gets brought up I have defined the resources like this: cs_primitive { 'applayer_ip': primitive_class => 'ocf', primitive_type

Re: [Puppet Users] Puppet Agent on Windows and file paths 32 or 64 Bit

2012-11-30 Thread ad
Hi Oliver, Nice catch! Thanks for posting your patch. Cheers, Adam On Friday, November 30, 2012 9:27:05 AM UTC-6, r0k5t4r wrote: > > Hi Adam, > > The class > Win32_OperatingSystemexists > on Vista and above. For older systems y

Re: [Puppet Users] Re: Are these the same?

2012-11-30 Thread Johan De Wit
On 11/30/2012 09:01 PM, Jakov Sosic wrote: On 11/26/2012 07:59 PM, jcbollinger wrote: Trying to figure out if these would behave the same or not? Example 1: - class Foo { require Bar Example 2: class Foo { inc

Re: [Puppet Users] How to do release managment integration with puppet?

2012-11-30 Thread Craig White
On Nov 30, 2012, at 10:37 AM, Schofield wrote: > I am at the beginning of merging the traditional OS/Middleware update process > with application development release process. The goal is to be able to test > a complete versioned OS/Middleware/Application stack as it moves through > dev/test/q

Re: [Puppet Users] Re: Are these the same?

2012-11-30 Thread Jakov Sosic
On 11/30/2012 11:48 PM, Johan De Wit wrote: > Thy both includes the class, but require adds a dependency to the > included class. > from the docs : > This function is a superset of the ‘include’ function, adding a class > relationship so that the requiring class depends on the required class. > Gr

Re: [Puppet Users] New to Puppet -- why the puppet user

2012-11-30 Thread george
All answers helped a lot. Thanks, George On Tuesday, November 27, 2012 8:06:00 AM UTC-7, thbe wrote: > > 2012/11/27 Steven VanDevender > > >> [...] >> One gathers you're not really a practicing sysadmin. What you cite are >> a bunch of good reasons one should avoid running daemons and >> applicat

Re: [Puppet Users] Puppet on OpenSuSE & SLES

2012-11-30 Thread Ashley Gould
On Mon, Nov 26, 2012 at 10:35:55PM -0800, Niels Abspoel wrote: > Darin has given the right answer, > > Just branch the package, and submit a request. > Don't forget to add a comment in puppet.changes file before you submit it. > Thank you for this tip. OBS is sweet, but I'm still feeling my way

[Puppet Users] Announce: Facter 1.6.16 available

2012-11-30 Thread Matthaus Owens
Facter 1.6.16 is a maintenance release in the 1.6.x branch with bug fixes. This is a single bug-fix release to address the regression in ec2 facts found in Facter 1.6.15 (#17855). Downloads are available at: * Source: https://downloads.puppetlabs.com/facter/facter-1.6.16.tar.gz RPMs are availabl

Re: [Puppet Users] Puppetdb source install on Solaris. Agents complain about "invalid encoding ("UTF-8//IGNORE", "UTF-8")"

2012-11-30 Thread Ryan Cunningham
> I get the exact same error when I run Deepak's suggested command on > RHEL 6, which includes ruby 1.8.7: > Yeeeah. Or at least if there is an issue that's not the way to figure it out. Thanks for taking time to sanity check the diagnostic command. When I asked about the same issue in #puppet so