[Puppet Users] Spurious warnings from NetworkManager

2014-08-29 Thread Jonathan Gazeley
For a little while now my puppet has been printing the same warning on every run. I ignored it for ages, but yesaterday since an upgrade to MCollective it now emails me with the warning on every run, so I've decided to fix it. This is the warning: ** (process:24410): WARNING **: nm_client_get

[Puppet Users] More than one array passed to a definition

2014-08-29 Thread Fran Rodríguez
Hi group, Im trying to do something with to arrays: array1 = ['name1', 'name2'] array2 = ['port1', 'port2'] The arrays has the same number of elements and what i want to do it is passing to a define function: instances { $array1:; $array2:; } The instances define does something simple: defin

[Puppet Users] puppet rspec with hiera helper, fails with error when class is parameterized

2014-08-29 Thread Manish Sapariya
Hi, I have two classes as posted in this gist. https://gist.github.com/msapariya/eca9f77c9f560f8a0e57 kp_ls derives from params and defines two variables. I am using hiera-puppet-helper in my specs to run hiera related tests. However the test is failing with 1) kp_ls Failure/Error: it {

Re: [Puppet Users] managing debian alternatives

2014-08-29 Thread daryl wiest
Marc, or anyone still paying attention. Sorry for the necro. I am trying to something similar to > exec { "update-java-alternatives --set java-6-sun": > unless => 'test $(readlink /etc/alternatives/java) == > "/usr/lib/jvm/java-6-sun/jre/bin/java"', > require => Package["sun-java6-bin"], >

[Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread Julien Pivotto
Hello I am facing a small problem concerning the puppetization of an highly available application. Some code worst 1000 words: myapp/common.pp: @@apache::balancer { "myapp": } apache.pp: Apache::Balancer <<||>> So long so good, until a second node also includes myapp/common.pp (the two no

[Puppet Users] Safe Way to Deploy New Setup?

2014-08-29 Thread thehailo
Hi all, I'm taking over a Puppet setup which was built on 2.7 and broken during a huge migration a few months back (before my time, so I don't have much info to go off). I figure since I'm basicaly starting from scratch (literally the only thing anyone can tell me the old setup did was manage s

[Puppet Users] Puppet agent loops and taking 100% of one CPU

2014-08-29 Thread pmorel
Hello, Recently 3 puppet agents instances (on 3 different servers yet with quasi-similar configurations) started running at 100% on one CPU and thus they cannot listen to the master anymore. Nothing appears to be wrong in the logs : no fail or execution problems. Starting the agent like so : p

[Puppet Users] need help in setting up database server for puppet open source

2014-08-29 Thread Spriya
Hi, I am new to opensource puppet. I know how to install puppet enterprise? But don't know how install or setup database for puppet opensource. Can any one help me in setting up the database for puppet opensource? what links or documents i need to follow. Appreciate your help -- You received

Re: [Puppet Users] Offline facts

2014-08-29 Thread Felix Frank
On 08/28/2014 11:01 PM, Khoury Brazil wrote: > I currently have it written to reuse the data using Facter.value() after > validation but wanted to make sure there wasn't something standardized > that I missed. Can you provide an example of that? I don't really see what you did there. -- You rece

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread José Luis Ledesma
If both nodes has to export the same resource ( same type/same title) they cannot be collected together. So, if you need to collect both, change the title to make it unique. Regards, El 29/08/2014 15:38, "Julien Pivotto" escribió: > > Hello > > I am facing a small problem concerning the puppeti

Re: [Puppet Users] Safe Way to Deploy New Setup?

2014-08-29 Thread José Luis Ledesma
Hi, If you installed puppet from the beginning it has generated a new ca certificate, so any client pointing to it will not be able to make the certificate validation and will not trust the new puppet master, so you don't have to care about it. Regards, El 29/08/2014 17:52, "thehailo" escribió:

Re: [Puppet Users] Safe Way to Deploy New Setup?

2014-08-29 Thread Nan Liu
On Fri, Aug 29, 2014 at 7:24 AM, thehailo wrote: > > I'm taking over a Puppet setup which was built on 2.7 and broken during a > huge migration a few months back (before my time, so I don't have much info > to go off). I figure since I'm basicaly starting from scratch (literally > the only thing a

[Puppet Users] Using puppet with Apache mod_disk_cache and passenger over SSL

2014-08-29 Thread Brian Wilkins
I have tried to setup Apache with passenger to host the puppetmaster but I also want to cache. I have no problems running puppet within Passenger with httpd. I also enabled mod_disk_cache within Apache. However, I still see my puppet client htting the puppetmaster and the puppetmaster compiles t

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread Atom Powers
I use something like @@apache::balancer { "myapp_${::hostname}": } On Aug 29, 2014 9:37 AM, "José Luis Ledesma" wrote: > If both nodes has to export the same resource ( same type/same title) they > cannot be collected together. > > So, if you need to collect both, change the title to make it uni

Re: [Puppet Users] need help in setting up database server for puppet open source

2014-08-29 Thread Atom Powers
You don't need a database for open source master. If you deploy puppetdb or dashboard you will need a database for those and that is usually managed by the module, like puppetlabs-puppetdb. On Aug 29, 2014 9:02 AM, "Spriya" wrote: > Hi, > > I am new to opensource puppet. I know how to install pup

Re: [Puppet Users] More than one array passed to a definition

2014-08-29 Thread Nan Liu
Puppet array expansion of resources titles doesn't perform any expansion for resource properties. There might be another way in experimental parser, but here's two options. 1. structure the data so you can pass it to create_resource: $hash_of_resources = { 'name1' => { 'port' => 'port1'}, 'name

[Puppet Users] havina an issue regarding puppet agent run

2014-08-29 Thread Spriya
Hi, I installed puppet server using opensource.when i run puppet agent -t i am having this issue: *Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for example.com to PuppetDB at example.com:8081: [404 Not Found] Error 404 HT

Re: [Puppet Users] need help in setting up database server for puppet open source

2014-08-29 Thread Spriya
Then how can we see the puppet dashboard if we dont need a database server On Friday, August 29, 2014 1:02:08 PM UTC-4, Atom Powers wrote: > > You don't need a database for open source master. If you deploy puppetdb > or dashboard you will need a database for those and that is usually managed >

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread Julien Pivotto
On Fri, Aug 29, 2014 at 06:37:19PM +0200, José Luis Ledesma wrote: >If both nodes has to export the same resource ( same >type/same title) they cannot be collected together. > >So, if you need to collect both, change the title to make it >unique. > >Regards, yes, but if they

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread José Luis Ledesma
Imho collect from all. Just make the title unique :) El 29/08/2014 21:50, "Julien Pivotto" escribió: > On Fri, Aug 29, 2014 at 06:37:19PM +0200, José Luis Ledesma wrote: > >If both nodes has to export the same resource ( same > >type/same title) they cannot be collected together. > > > >

[Puppet Users] Puppet Enterprise runonce fails but regularly scheduled agent run succeeds

2014-08-29 Thread Paul Chernoch
The node is a Windows 2008R2 box. I am attempting to fetch files from Team Foundation Server using an exec resource and the command line program TF.EXE. When I process the catalog using the regularly scheduled puppet run, it completes successfully. When I use "Live Management" > "Control Puppet"

[Puppet Users] Error when running "puppet agent --test"

2014-08-29 Thread shred
I have 3 identical servers. 2 of them work fine when I run "puppet agent --test". However the 3rd one generates this error and cannot complete the puppet run. Any ideas as to whats causing this? Error: No such file or directory - /proc/sys/fs/file-max.puppettmp_2620 Error: /Stage[main]/Zope::Bui

[Puppet Users] Re: Error when running "puppet agent --test"

2014-08-29 Thread shred
I also checked and the file exists and has the exact same permissions as the one on the working server. On Friday, August 29, 2014 2:04:31 PM UTC-7, shred wrote: > > I have 3 identical servers. 2 of them work fine when I run "puppet agent > --test". However the 3rd one generates this error and c

Re: [Puppet Users] need help in setting up database server for puppet open source

2014-08-29 Thread Matthew Schmitt
Opensource puppet-server doesn't come with a packaged dashboard. Opensource Puppetdashboard is installed separately. Matt On Aug 29, 2014, at 12:40 PM, Spriya wrote: > > Then how can we see the puppet dashboard if we dont need a database server > On Friday, August 29, 2014 1:02:08 PM UTC-4, A

Re: [Puppet Users] Using puppet with Apache mod_disk_cache and passenger over SSL

2014-08-29 Thread Wil Cooley
On Fri, Aug 29, 2014 at 9:50 AM, Brian Wilkins wrote: > # RHEL/CentOS: > # And the passenger performance tuning settings: > PassengerHighPerformance On > The Passenger doc says that this bypasses several layers of Apache processing, so it is incompatible with mod_rewrite and others -- I would no

[Puppet Users] creating custom facts - general usage

2014-08-29 Thread Mike Reed
Hello all, To start, I would like to thank you in advance for your responses. I'm attempting to create a custom fact that will determine the network location of a node, based on it's hostname. Ideally this would be run on a node prior to the rest of the puppet modules because I will use the re

Re: [Puppet Users] havina an issue regarding puppet agent run

2014-08-29 Thread Wyatt Alt
Hi Spriya, Can you try accessing your database server directly at the host and port specified in /etc/puppetdb/conf.d/jetty.ini and see if you get the same error? e.g curl http://localhost:8080/v4/version Wyatt On Fri, Aug 29, 2014 at 11:30 AM, Spriya wrote: > Hi, > > I installed puppet se

Re: [Puppet Users] Error when running "puppet agent --test"

2014-08-29 Thread Wil Cooley
On Fri, Aug 29, 2014 at 2:04 PM, shred wrote: > I have 3 identical servers. 2 of them work fine when I run "puppet agent > --test". However the 3rd one generates this error and cannot complete the > puppet run. Any ideas as to whats causing this? > > Error: No such file or directory - /proc/sys/f

Re: [Puppet Users] Puppet, HA & Duplicate definitions

2014-08-29 Thread Wil Cooley
On Fri, Aug 29, 2014 at 12:47 PM, Julien Pivotto wrote: > On Fri, Aug 29, 2014 at 06:37:19PM +0200, José Luis Ledesma wrote: > >If both nodes has to export the same resource ( same > >type/same title) they cannot be collected together. > > > >So, if you need to collect both, change th