Re: [Puppet Users] Apply manifests on Puppet Managed Nodes from Puppet Master and appending to an existing file

2013-01-02 Thread Nikola Petrov
On Mon, Dec 31, 2012 at 08:51:55AM -0500, Adam Goucher wrote: > On 2012-12-31 7:21 AM, Sivaraman Viswanathan wrote: > > > >Hello All, > > > >I have written a manifest which will upgrade the JAVA to a recent > >version (ex: JDK 6u33 to JDK7) using exec type. The installation > >is nothing but untarr

[Puppet Users] Puppet and installing packages from source

2013-01-02 Thread magic . rh
Hello Everyone, I'm looking for a way to install packages from source via puppet, I was able to locate maybe 5 posts on this subject which is very strange, as I would expect people to still use ./configure with their own customized options. For example, I need to compile Curl with c-ares suppor

[Puppet Users] Re: Error on building basic agent-master

2013-01-02 Thread Balasubramaniam Natarajan
The closest I came to see a same kind of error in the link http://projects.puppetlabs.com/issues/9702 Here they have mentioned to delete the database and have puppet recreate it once again. Could some one give me more points as to how to delete the database ? On Mon, Dec 31, 2012 at 11:35 AM, B

Re: [Puppet Users] Puppet and installing packages from source

2013-01-02 Thread Matthew Burgess
On Wed, Jan 2, 2013 at 9:32 AM, wrote: > Hello Everyone, > > I'm looking for a way to install packages from source via puppet, I was able > to locate maybe 5 posts on this subject which is very strange, as I would > expect people to still use ./configure with their own customized options. > For e

Re: [Puppet Users] Coverage reports of manifests

2013-01-02 Thread Matthias Viehweger
Hi Vincent! On Tue, Dec 25, 2012 at 03:26:55PM -0800, Vincent Janelle wrote: > Is there a way of determining spec testing reports of manifests? I'm > adding tests to an existing deployment and it'd be useful to find out what > code isn't being tested. I am not aware of such a tool. Also, I do

[Puppet Users] Re: Puppet cloud provisioning and VMware mac address allocation?

2013-01-02 Thread mbianco
Hi Ohad, Yes, you are right, Foreman team is great with this community - I didn't meant otherwise. All I want is to explore options to fetch mac addresses assigned by vsphere. that's all. Anyone can shed some light from experience? thanks all. On Sunday, December 30, 2012 5:58:32 PM UTC, mb

Re: [Puppet Users] Re: puppetlabs/apt and apt::ppa

2013-01-02 Thread Matthias Viehweger
Hi Gareth! On Wed, Dec 26, 2012 at 11:34:07AM +, Gareth Rushgrove wrote: > I'm not sure why the module has a dependency on something that it > doesn't manage though, I tend to try and avoid doing that if possible. I have those in my modules a lot. Otherwise I would get god-modules or wrong or

Re: [Puppet Users] Puppet and installing packages from source

2013-01-02 Thread Throwe, Jesse
One thing I will say about that ( at least with RPM ) is that packaging binaries and libraries in out of place locations can become an uphill battle. I've yet to find a clean way of getting RPM to let me have the OS version of something, say curl or perl in /usr, and my own internal one in /usr/lo

[Puppet Users] MySQL replication

2013-01-02 Thread droog72
Hi, Could anyone direct me to any existing Puppet modules that include basic MySQL replication (master / slave configuration), or provide advice on the following? It seems easy enough to require the proper my.cnf and create the replication user and privileges, but I'm unsure about executing MyS

[Puppet Users] puppet master keeps spawning new child processes

2013-01-02 Thread alcc
Hi, running a puppet master managing 15-20 agents. When I start the puppetmaster service system load will stay around 2 for a couple of minutes (sometimes hours). Then after a while (sometimes sooner, sometimes later) system load increases and puppetmaster process keeps spawning child processes

[Puppet Users] err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target ...

2013-01-02 Thread Maykel Moya
Hello Using Puppet 3.0.2 in master and 2.7.18 in client I got this error. The complete error is err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "Floating_ip[{\"address\"=>\"10.0.3.15\", \"netmask\"=>\"

[Puppet Users] Re: puppet master keeps spawning new child processes

2013-01-02 Thread alcc
> rpm -qa | egrep "puppet|ruby" rubygem-rake-0.8.7-2.1.el6.noarch ruby-mysql-2.8.2-1.el6.x86_64 libselinux-ruby-2.0.94-5.3.el6.x86_64 puppet-3.0.2-1.el6.noarch puppet-dashboard-1.2.16-1.el6.noarch ruby-1.8.7.352-7.el6_2.x86_64 ruby-irb-1.8.7.352-7.el6_2.x86_64 rubygems-1.3.7-1.el6.noarch ruby-augea

[Puppet Users] Re: Error 400 on Server

2013-01-02 Thread jcbollinger
On Friday, December 21, 2012 11:08:59 AM UTC-6, Kevin Kitchen wrote: > > Thank you for getting back to me on this. This is my init.pp file: > class java { > > require java::params > > file {"$java::params::java_base": > ensure => "directory", > owne

[Puppet Users] Re: Multiple Requires not allowed, not sure what this is for...

2013-01-02 Thread jcbollinger
On Friday, December 21, 2012 10:36:27 PM UTC-6, John Moser wrote: > > I'm having a case where, as with Puppet, multiple packages use the same > file. For example, puppet and puppetmaster both use /etc/puppet/puppet.conf > > My first attempt was to have a class 'puppet::client' include a service

[Puppet Users] Re: inspect resources that are already added to a manifest

2013-01-02 Thread jcbollinger
On Saturday, December 22, 2012 12:20:10 PM UTC-6, Luke Bigum wrote: > > Hi all, > > Does anyone know of a way to inspect resources that are already parsed in > a node's manifest during catalog compilation? This would certainly need > some serious Ruby Fu. > This is a bad idea. If your the Pu

Re: [Puppet Users] Puppet and installing packages from source

2013-01-02 Thread magic . rh
Thanks for the reply Matt and Jesse, I accept the reasons (Matt) mentioned for not using source files. I guess the 1st reason I didn't go with rolling up my own .deb fie is that I lack the knowledge to do so, and I'm under a tight schedule for this project so I thought to stick with what I know.

Re: [Puppet Users] How do I check content of a file in puppet

2013-01-02 Thread pdiddy
When I build the server I make sure it meets all the compliance requirements (ex: PermitRootLogin, login banner). However, I would like to double check those compliance requirements on daily basis through Puppet (in case someone has changed them). This is an audit requirement. I was able to wri

[Puppet Users] Re: Using extlookup to set hostname

2013-01-02 Thread jcbollinger
On Friday, December 28, 2012 3:32:43 PM UTC-6, Rafi wrote: > > I am using a masterless puppet 3.0 setup with EC2. Using extlookup, I > intend to set a more meaningful hostname than the usual ip* and dom* names > assigned by Amazon. > > My source csv file is setup as: > > publicdns,name > ec2-18

[Puppet Users] Re: Resource collector problem

2013-01-02 Thread jcbollinger
On Friday, December 28, 2012 9:46:01 AM UTC-6, Ygor wrote: > > Puppet 3.0.2 > > I define a virtual user resource (@users::useraccount) with tags and then > try to realize them with a resource collector (spaceship operator) > > Here's the problem: > > If I have >tag => ['test'], > > and

Re: [Puppet Users] Re: how to avoid duplicate types (i.e. users)

2013-01-02 Thread jcbollinger
On Monday, December 31, 2012 7:51:37 PM UTC-6, Jason Edgecombe wrote: > > On 12/31/2012 07:20 PM, Schofield wrote: > > > >> How do I automatically create a user (including home directory and cp > of > >> /etc/skel) as triggered by buildbot::slave::instance, and avoid the > >> duplicate user

Re: [Puppet Users] Puppet and installing packages from source

2013-01-02 Thread Jochen Schalanda
Hi, On 02.01.2013 16:56, magic...@gmail.com wrote: > I accept the reasons (Matt) mentioned for not using source files. > I guess the 1st reason I didn't go with rolling up my own .deb fie is > that I lack the knowledge to do so, and I'm under a tight schedule for > this project so I thought to sti

[Puppet Users] Re: Modules, yum repo's & best practices

2013-01-02 Thread jcbollinger
On Monday, December 31, 2012 12:40:26 PM UTC-6, Matthew Barr wrote: > > I'm working with a forge module that specifies & installs a yum repo > before it installs the packages, then goes about it's business. > * package isn't part of a standard repo > > We operate on a policy of minimizing the

Re: [Puppet Users] Re: inspect resources that are already added to a manifest

2013-01-02 Thread Matthias Viehweger
Hi John! On Wed, Jan 02, 2013 at 07:51:37AM -0800, jcbollinger wrote: > You need a Puppet-bogometer. I need one, too! Where can I order it? Cheers, Matthias Viehweger -- Serververwaltung und Softwareentwicklung https://www.heute-kaufen.de Prinzessinnenstraße 20 - 10969 Berlin signature.asc

[Puppet Users] Re: Puppet and installing packages from source

2013-01-02 Thread jcbollinger
On Wednesday, January 2, 2013 3:32:55 AM UTC-6, magi...@gmail.com wrote: > > Hello Everyone, > > I'm looking for a way to install packages from source via puppet, I was > able to locate maybe 5 posts on this subject which is very strange, as I > would expect people to still use ./configure with

Re: [Puppet Users] Puppet and installing packages from source

2013-01-02 Thread jcbollinger
On Wednesday, January 2, 2013 8:01:36 AM UTC-6, Jesse Throwe wrote: > > One thing I will say about that ( at least with RPM ) is that packaging > binaries and libraries in out of place locations can become an uphill > battle. I've yet to find a clean way of getting RPM to let me have the OS >

Re: [Puppet Users] Re: Modules, yum repo's & best practices

2013-01-02 Thread Ryan Coleman
On Mon, Dec 31, 2012 at 12:18 PM, Matthew Barr wrote: > So: should forge modules use repo's explicitly? or is there already a > standard design pattern that implements a parameter for repos? > I would like to see Forge modules make the usage of a yumrepo configurable via parameterized classes

Re: [Puppet Users] Re: Puppet cloud provisioning and VMware mac address allocation?

2013-01-02 Thread Ohad Levy
On Wed, Jan 2, 2013 at 2:58 PM, wrote: > Hi Ohad, > > Yes, you are right, Foreman team is great with this community - I didn't > meant otherwise. > > All I want is to explore options to fetch mac addresses assigned by > vsphere. that's all. > > Anyone can shed some light from experience? > You c

[Puppet Users] Schedule yum update not found

2013-01-02 Thread Kazor
Hello guys, I'm creating class for update my servers these are Centos (RedHat Family) . But when i run from puppet client, only apply update version but the command "yum update" declared within in my class not found . My class "updateso" (/etc/puppet/modules/updateso/manifests/init.pp) : [..

Re: [Puppet Users] Re: Resource collector problem

2013-01-02 Thread Andy Parker
On Wed, Jan 2, 2013 at 8:26 AM, jcbollinger wrote: > > > On Friday, December 28, 2012 9:46:01 AM UTC-6, Ygor wrote: >> >> Puppet 3.0.2 >> >> I define a virtual user resource (@users::useraccount) with tags and then >> try to realize them with a resource collector (spaceship operator) >> >> Here's

Re: [Puppet Users] Re: Resource collector problem

2013-01-02 Thread Dan White
Try Notify <| tag == "other" |> for me please. I will try it on my system as well. Another possibility that comes to mind: Users::Useraccount is a DEFINE. That could make the difference. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none

Re: [Puppet Users] Re: puppetdb listening on TCP Ports 1099 and 58772

2013-01-02 Thread Deepak Giridharagopal
This is tracked in the following ticket: http://projects.puppetlabs.com/issues/18285 , and there's some discussion in the ticket about the particulars. A fix has been merged into master; thanks for pointing this issue out to us! deepak On Thu, Dec 27, 2012 at 2:47 AM, Michael Henry wrote: > So

Re: [Puppet Users] Re: RHEL/Oracle Linux - user creation.

2013-01-02 Thread Garrett Honeycutt
On 12/30/12 9:47 PM, Mike Rochford wrote: > It looks like I need to file a bug report as Oracle change the name of > their linux distribution. > > > def check_manage_home > cmd = [] > if @resource.managehome? > cmd << "-m" > elsif %w{Fedora RedHat CentOS OEL > OVS}.include?(Fact

[Puppet Users] file copy, multiple ignore doesn't work

2013-01-02 Thread iamauser
I am trying the following to recursively copy a dir while ignoring things like .hg and a few others. file { "/etc/work-related-dir" : source => "/path/to/masterfiles/work-related-dir", recurse => 'inf', owner => '0', group => '0', ignore => '{.hg,*.conf~}',

[Puppet Users] puppet-dashboard load balanced report processing issues.

2013-01-02 Thread jemmorey
I just upgraded the second half of a two node puppetmaster cluster and now I am having issues with puppet-dashboard report processing. If I have workers running on both servers, they try to process each others reports, but since the report data file is not there, it fails. I would have assume

[Puppet Users] Re: puppet-dashboard load balanced report processing issues.

2013-01-02 Thread jemmorey
I haven't tried using the puppet-dashboard.rb processor, I'm using the following: reports = http,store reporturl = http://localhost/reports/upload/ I'm guessing that the puppet-dashboard.rb processor exhibits the same behavior by queuing the processing. Thanks! On Wednesday, January 2

[Puppet Users] Re: puppet-dashboard load balanced report processing issues.

2013-01-02 Thread jemmorey
Looks like there is no current method to prevent multiple dashboard nodes from stomping on each others reports, the delayed_jobs table does have a locked_by, but that is only used during the actual event processing. mysql> describe delayed_jobs; ++--+--+-+

Re: [Puppet Users] multiple ignore in file type

2013-01-02 Thread Cade Thacker
I keep hitting this post with Google, so I thought I'd provide an update. The original syntax appears to be working at written with Puppet 2.7. I could not get the globbing syntax to work correctly. file { "/tmp/cade": ensure => directory, recurse => true, force => true,

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

2013-01-02 Thread Mandla Mbuli
I found ruby-facter-1.6.17 on AUR and `facter ipaddress` still does not work. (I have NO ruby experience) I looked at the facter.rb file and it seems to import the util/ip file and I think those use the /sbin/ip What could be the problem? On Tuesday, 1 January 2013 02:28:58 UTC+2, Jared Curtis

[Puppet Users] Deprecating PostgreSQL versions < 8.4 for use with PuppetDB

2013-01-02 Thread Deepak Giridharagopal
Hello! We'd like to deprecate some fairly old and crusty PostgreSQL versions (anything older than 8.4) for use with PuppetDB. There are a few reasons we want to do this: * 8.0, 8.1, and 8.2 have been EOL by upstream for quite some time now, and 8.3 goes EOL in a couple of weeks: http://www.postgre

Re: [Puppet Users] How to use Agent on localized Windows?

2013-01-02 Thread Josh Cooper
Hi Евгений, On Fri, Dec 21, 2012 at 2:57 AM, Евгений Верещагин wrote: > I try configure Puppet for manage Windows. My OS is localized, all system > users and paths are renamed. If I write some russian text, puppet agent > can't work correctly. For example, if I create user: > > user { 'Тест2': >

[Puppet Users] Re: Puppet3 CSW packages for Solaris

2013-01-02 Thread Alex Box
Mark, Been using CSWpuppet3 packages for a few weeks now, thanks very much. I have found the client SMF manifest needs to be updated to reflect the new invocation (puppet agent vs puppetd): svccfg delete cswpuppetmasterd cat <