[Puppet Users] Changing the PE3 console's RAILS_RELATIVE_URL_ROOT? How to prepend a URL string?

2013-08-27 Thread Stephen Wallace
Hi All, I'm looking to prepend a string to all (RHEL based) PE3 console URLs. I'm trying to proxy the console thru an Oracle web server (Apache under the hood), and for security we need to make all URLs easily identifiable as having originated from Puppet in the web log files. A PCI requirement I

[Puppet Users] nagios puppet dynamic moniroting setup - unable to populate host_resource files

2013-08-27 Thread Chucks
Hi all - I am setting up dynamic monitoring using puppet/nagios modules. I am following this doc to achieve basic setup http://www.allgoodbits.org/articles/view/32 Here is my configs [root@ip-10-172-161-25 puppet]# cat modules/nagios/manifests/init.pp class nagios::server {

[Puppet Users] Problem of ordering with exported files

2013-08-27 Thread François Lafont
Hi, I use Puppet 3.2 (with hiera) on Debian Wheezy and I have a problem of ordering with exported files. I have 2 puppet clients : 1) server.mydomain.priv with this yaml: --- classes: - test::server 2) and node.mydomain.priv with this yaml: --- classes: - test::node Here is my (very

[Puppet Users] Puppetdb [io.nio] javax.net.ssl.SSLHandshakeException: null cert chain

2013-08-27 Thread Stephen Wallace
Hi, I'm trying to layer out PE3 as follows; 1) Puppet console / Active CA (autosigning) 2) Puppet Master (non-CA) 3) PuppetDB 4) Puppet Client - for testing 5) HAProxy presenting the puppet service address, forwarding 443 to the console, and 8140 to the PM. (Let's not worry about MCollective

[Puppet Users] Re: nagios puppet dynamic moniroting setup - unable to populate host_resource files

2013-08-27 Thread Chucks
debug run for puppet apply: - [root@ip-10-172-161-25 manifests]# puppet apply /etc/puppet/modules/nagios/manifests/init.pp --debug debug: Failed to load library 'rubygems' for feature 'rubygems' debug: Configuring PuppetDB terminuses with config file /etc/puppet/puppetdb.conf

Re: [Puppet Users] Problem using resources and types from puppetlabs/lvm

2013-08-27 Thread Andy Stevens
Chris, Already have the pluginsync directive in the [agent] section of my puppet.conf - thanks for covering that off anyway. I've included the relevant Puppet manifest snippets below as I could be doing something very very silly at a code level that someone could identify: Firstly I have

[Puppet Users] Re: Problem of ordering with exported files

2013-08-27 Thread François Lafont
Le 27/08/2013 08:51, François Lafont a écrit : In the test::server class, I have forced the exported file to be created at the end. But, during the puppet run, this is not the case, and the File[/usr/local/puppet_host/list] resource is realized *after* the exported file. I'm wondering if

[Puppet Users] Re: [OT] Puppet Users group in Alicante (Spain)

2013-08-27 Thread Juan Sierra Pons
Hi, Just in case I have created the Alicante Puppet Users Group [1] in meetup.com. So if you live nearby or pass your holidays here you are invited to join me/us :) to share some beers and knowledge Best regards [1] http://www.meetup.com/Alicante-Puppet-Users-Group/

Re: [Puppet Users] Re: Remove certificate requests

2013-08-27 Thread Bass D'Phar
Hi. A workaround that does the job: puppetmaster# puppet cert sign fb311ff01c6f0130b650005056bc6664 ; puppet cert clean fb311ff01c6f0130b650005056bc6664 -- Jan Møller Den fredag den 21. december 2012 21.59.49 UTC+1 skrev Calvin Walton: On Fri, 2012-12-14 at 21:14 +, Tim Bishop wrote:

[Puppet Users] puppet for deployment of Java apps

2013-08-27 Thread Bhuwan
Hello, Is Puppet a good choice to deploy JAVA applications (Tomcat) where there exists a cross-system dependency (i.e. the database should be deployed before the web app)? If not, any suggestions for alternatives? -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] hiera and defaults

2013-08-27 Thread Felix Frank
Hi, when you put it that way, it makes perfect sense indeed. Thanks for the clarification! On 08/26/2013 08:42 PM, Calvin Walton wrote: The reason is so that you can override class default values by providing a value with hiera. Doing any other order simply doesn't make sense for general

Re: [Puppet Users] puppet for deployment of Java apps

2013-08-27 Thread Nikola Petrov
I can only recommend a push based solution(puppet is a pull based). I like python so I use fabric[1] but I know that other shops(ruby based) use capistrano. If the DB will be the only precondition it might be ok to do this with puppet but for something more distributed a push based solution is

[Puppet Users] Re: QUERY : no resources for remote admin?

2013-08-27 Thread am-aaron
good afternoon Jenner and JC Bollinger: the question is connected to deployment (installation and configuration) of VCS. since VCS is quite popular in the indiustry, this will help many people. thank you Jenner and JCB for your informative responses. i apologize because my initial response to

Re: [Puppet Users] puppet for deployment of Java apps

2013-08-27 Thread Brendan O'Bra
We use Puppet to deploy multi-tiered apps. Our apps are packaged as RPMs using the Maven RPM plugin (generally, we use RPM to express dependencies, such as Tomcat/Apache). For orchestration (setting up the DB before starting the app,for example) we use MCollective (calling the different tiers by

[Puppet Users] passenger installation file passenger-install-apache2-module missing

2013-08-27 Thread Andreas Dvorak
Dear all, I have installed yum install rubygem-passenger Installed: rubygem-passenger.x86_64 0:4.0.5-3.el6 Dependency Installed: rubygem-daemon_controller.noarch 0:1.1.4-3.el6

Re: [Puppet Users] service subscription to a concat managed file

2013-08-27 Thread Gavin Williams
opticpow An alternative may be to use 'notify' rather than 'subscribe'. Would require your service to become 'refreshonly = true'... Cheers Gavin On Tuesday, 27 August 2013 00:19:03 UTC+1, opticpow wrote: Hi Ygor, of course a silly miss by me. Thanks for the heads up on the module, I'll

[Puppet Users] Puppetdb module installation error -

2013-08-27 Thread yannig rousseau
Is the module puppetdb from the forge still correct ? Every time I try to install puppetdb from the puppet module (puppet module install puppetlabs/puppetdb), i got a warning : *Warning: cprice404-inifile is deprecated; please update to puppetlabs-inifile* How may i install the

Re: [Puppet Users] Puppetdb module installation error -

2013-08-27 Thread Ken Barber
We have a patch for this but are assessing the impact before merging. For now I'd just ignore the warning, it shouldn't affect operation. On Tue, Aug 27, 2013 at 9:28 AM, yannig rousseau yannig.rouss...@gmail.com wrote: Is the module puppetdb from the forge still correct ? Every time I try to

Re: [Puppet Users] Problem using resources and types from puppetlabs/lvm

2013-08-27 Thread Chris McDermott
I don't see where you declare this resource: require = Filesystem[ /dev/mapper/root_vg-WebSphere ], In order to require that, you would first need to declare it somewhere, for instance: filesystem { '/dev/mapper/root_vg-WebSphere': ensure = present, fstype = 'ext4', } Of course, that

Re: [Puppet Users] Using hiera lookups with defined types

2013-08-27 Thread Ken Weiss
As promised, for those of you playing along at home, here's what I came up with. The complicating factor in my situation is that I need to write Puppet code that will execute correctly today when run using 'puppet apply...' as a non-priviliged user, but still work correctly at some future date

[Puppet Users] The Foreman: Query facts from ENC PuppetDB?

2013-08-27 Thread Stephen Price
I've been using PuppetDB as an ENC for a while, but I haven't really utilized it for stored configs or anything. I was mostly interested in replacing Dashboard's reporting capabilities, but PuppetDB doesn't yet do anything (that I can see) with reports. So I'm currently looking into setting up

[Puppet Users] puppet dashboard failed tasks every night

2013-08-27 Thread Felipe Salum
Hi guys. I'm trying to find the root cause of my puppet dashboard report failed tasks that happen every night. It works without any error all day long but when I connect in the morning to check it has around 3000 failed tasks from the night before. Any advice what could be impacting puppet

Re: [Puppet Users] The Foreman: Query facts from ENC PuppetDB?

2013-08-27 Thread Stephen Price
Script in question: http://goo.gl/L2TukF It's a pretty simple script. It just reads facts from all .yaml files in /var/lib/puppet/yaml/facts/ and posts them to the Foreman. Would it be of any benefit to instead run a cron job on the Foreman server to do a REST call to the PuppetDB server to query

[Puppet Users] Re: Could not parse for environment production: Cannot assign to variables in other namespaces

2013-08-27 Thread jcbollinger
On Friday, August 23, 2013 11:33:14 AM UTC-5, JeremyCampbell wrote: Eric, thanks. I've spent most of today trying to get this to work but I have to submit again. I've read the linked docs on variables multiple times. As I understand it, with Puppet you cannot assign top-level variables

Re: [Puppet Users] puppet dashboard failed tasks every night

2013-08-27 Thread Peter Bukowinski
Do you have any daily cron jobs that occur overnight? -- Peter On Aug 27, 2013, at 1:08 PM, Felipe Salum fsa...@gmail.com wrote: Hi guys. I'm trying to find the root cause of my puppet dashboard report failed tasks that happen every night. It works without any error all day long but when

Re: [Puppet Users] puppet dashboard failed tasks every night

2013-08-27 Thread Felipe Salum
I checked that, nothing that could impact this. But I'm probably missing something since it is every night no exception. On Tue, Aug 27, 2013 at 10:15 AM, Peter Bukowinski pmb...@gmail.com wrote: Do you have any daily cron jobs that occur overnight? -- Peter On Aug 27, 2013, at 1:08 PM,

[Puppet Users] Re: passenger installation file passenger-install-apache2-module missing

2013-08-27 Thread Ellison Marks
I believe that script comes along when you use gem to install rack and passenger, as per the instructions: http://docs.puppetlabs.com/guides/passenger.html#install-rackpassenger I'm not sure what's contained in the package from the foreman repository. Perhaps it already contains a compiled .so

Re: [Puppet Users] Unable to declare a parameterized class

2013-08-27 Thread jcbollinger
On Friday, August 23, 2013 7:32:57 PM UTC-5, Ygor wrote: Two problems: One: http://docs.puppetlabs.com/guides/parameterized_classes.html Your classes have no parameters. This is not a problem. Classes do not have to have parameters, and when they do not, they can omit the parentheses

[Puppet Users] Re: nagios puppet dynamic moniroting setup - unable to populate host_resource files

2013-08-27 Thread Chucks
-- 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 puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com.

Re: [Puppet Users] service subscription to a concat managed file

2013-08-27 Thread jcbollinger
On Monday, August 26, 2013 4:24:29 PM UTC-5, Ygor wrote: It should be (I think) subscribe = File[$config] Were it me, I would at least attempt to use subscribe = Concat[$config] instead, since that refers to the resource you're actually declaring. IIRC, the existence of a resource

[Puppet Users] Re: nagios puppet dynamic moniroting setup - unable to populate host_resource files

2013-08-27 Thread Chucks
I suspect something to do with this message Skipping device resources because running on a host. Can someone shed some light ? Thanks, -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails

Re: [Puppet Users] Best practices for infrastructure

2013-08-27 Thread jcbollinger
On Sunday, August 25, 2013 7:17:21 AM UTC-5, Martin Langhoff wrote: On Sat, Aug 24, 2013 at 5:18 PM, Jakov Sosic jso...@srce.hr javascript: wrote: Only if you use autosign option. After the certificate is signed, agents report certname and not hostname. Well-behaved clients report

Re: [Puppet Users] Best practices for infrastructure

2013-08-27 Thread Martin Langhoff
On Tue, Aug 27, 2013 at 2:41 PM, jcbollinger john.bollin...@stjude.org wrote: The client can provide a $::hostname fact that is different from the certname it presents, but that is perfectly valid and expected under some circumstances. It is possible that a client doing so is thereby able to

Re: [Puppet Users] puppet dashboard failed tasks every night

2013-08-27 Thread ureal frank
On Tuesday, August 27, 2013, Felipe Salum wrote: I checked that, nothing that could impact this. But I'm probably missing something since it is every night no exception. i've debugged some problems with strace -p 'pidof ruby' and lsof -p 'pidof ruby' when applying the catalog. (timeout.rb

[Puppet Users] Re: Problem of ordering with exported files

2013-08-27 Thread jcbollinger
On Tuesday, August 27, 2013 1:51:50 AM UTC-5, François Lafont wrote: Hi, I use Puppet 3.2 (with hiera) on Debian Wheezy and I have a problem of ordering with exported files. I have 2 puppet clients : 1) server.mydomain.priv with this yaml: --- classes: - test::server 2)

[Puppet Users] Re: puppet for deployment of Java apps

2013-08-27 Thread jcbollinger
On Tuesday, August 27, 2013 6:47:03 AM UTC-5, Bhuwan wrote: Hello, Is Puppet a good choice to deploy JAVA applications (Tomcat) where there exists a cross-system dependency (i.e. the database should be deployed before the web app)? You seem to emphasize Java, but I don't see what that

[Puppet Users] Re: ssl ofloading on amazon ELB for puppetmasters

2013-08-27 Thread Bency Tharakan
Just got an update from Amazon support, ELB only supports adding the X-Forwarded-For and X-Forwarded-Proto. It does not support adding other custom headers and there is no way for ELB to do so. Cheers On Thursday, 22 August 2013 12:14:11 UTC+12, Bency Tharakan wrote: Hi, I'm trying to do

[Puppet Users] Re: QUERY : no resources for remote admin?

2013-08-27 Thread jcbollinger
On Tuesday, August 27, 2013 10:05:09 AM UTC-5, am-aaron wrote: good afternoon Jenner and JC Bollinger: the question is connected to deployment (installation and configuration) of VCS. since VCS is quite popular in the indiustry, this will help many people. thank you Jenner and JCB for

[Puppet Users] Re: Share data between classes/modules, best practices

2013-08-27 Thread jcbollinger
On Friday, August 23, 2013 7:08:21 AM UTC-5, François Lafont wrote: Hi, I use Puppet 3.2 with Hiera. I would like to know the best practices when you want to share one data between 2 classes or modules. I take an example. I have: - One snmp module which installs and configures snmpd

[Puppet Users] Any interest in an Austin puppet users group?

2013-08-27 Thread Byron Miller
We have some great groups here in Austin with regular meetups but nothing really focused on Puppet and the typical DevOps group meetups are all Chef. Anyone want to work with me to get something going or if there is some one already running one, shoot me the info and i'll be glad to join help

Re: [Puppet Users] Re: yum provider executes rpm -e?

2013-08-27 Thread John Florian
On Tuesday, June 30, 2009 6:22:26 PM UTC-4, lutter wrote: The basic issue is that puppet doesn't know about dependencies (not sure it should), but once you throw 'yum -y erase' into the mix, it becomes very easy to write inconsistent manifests, where a package erase removes a package that

[Puppet Users] Cloud Provisioning

2013-08-27 Thread Chris McDermott
I'm looking for ways to manage multiple public cloud resources. Ideally I would like to support the following providers: AWS GCE Rackspace Digital Ocean Linode And I would like to be able to manage everything - instances, volumes, load balancers, IP addresses, database instances, etc. Even VPC's

Re: [Puppet Users] Re: Problem of ordering with exported files

2013-08-27 Thread François Lafont
Hello, Firstly, thank you John for your answer. Le 27/08/2013 21:23, jcbollinger wrote : I don't see anything obviously forgotten or wrong, but there are a few strange things: It's possible. ;-) 1. You collect the same exported File resources twice in the same class. Really?

Re: [Puppet Users] Re: yum provider executes rpm -e?

2013-08-27 Thread John Florian
On Tuesday, June 30, 2009 4:58:33 AM UTC-4, Peter Meier wrote: While looking at the code and http://reductivelabs.com/trac/puppet/wiki/TypeReference#package you'll also see that the yum provider is purgeable and that the yum provider has an own purge method. So if this would fit your

Re: [Puppet Users] Re: Share data between classes/modules, best practices

2013-08-27 Thread François Lafont
Le 27/08/2013 22:49, jcbollinger a écrit : Your modules are not independent in any case. The data dependency is a symptom, not the root issue. Yes, you are right. To answer more generally, since you started by posing a rather general problem, where you have a bona fide configuration

[Puppet Users] Re: Puppetdb [io.nio] javax.net.ssl.SSLHandshakeException: null cert chain

2013-08-27 Thread Stephen Wallace
Han outstanding bug - http://projects.puppetlabs.com/issues/20838 Stephen On Tuesday, 27 August 2013 17:45:28 UTC+10, Stephen Wallace wrote: Hi, I'm trying to layer out PE3 as follows; 1) Puppet console / Active CA (autosigning) 2) Puppet Master (non-CA) 3) PuppetDB 4) Puppet

Re: [Puppet Users] Environments; function error

2013-08-27 Thread Gregory Orange
On 14/08/13 13:29, Gregory Orange wrote: We have two environments: production (containing one module) and experimental (two modules, one the same name as the module in production). All of our other modules are in the main module directory. Agent runs complete fine in the production environment,

[Puppet Users] Info: Duplicate generated resource; skipping

2013-08-27 Thread iamauser
In RHEL6, and puppet-3.2 I am seeing a problem with Tidy. Has anyone else seen this ? Any solution ? @tidy { '/etc/cron.d' matches = somecron, } In another manifests, change the matches parameter and realize it, Tidy[/etc/cron.d]{ matches = [ someothercron, anothercron,], }

Re: [Puppet Users] The Foreman: Query facts from ENC PuppetDB?

2013-08-27 Thread Ken Barber
I've been using PuppetDB as an ENC for a while, So PuppetDB is not an ENC, do you mean Foreman? but I haven't really utilized it for stored configs or anything. I was mostly interested in replacing Dashboard's reporting capabilities, but PuppetDB doesn't yet do anything (that I can see)

Re: [Puppet Users] The Foreman: Query facts from ENC PuppetDB?

2013-08-27 Thread Stephen Price
Sorry, I meant I'm using Hiera as an ENC. I did see that PuppetDB has report storage, but without an easy way to use that data (short of creating my own interface utilizing queries to PuppetDB), it's not very useful yet. I figured Foreman would be a decent drop-in for reports. I got a suggestion