Re: [Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?

2013-01-07 Thread lalit jangra
Thanks a lot Garrett, When i am installing alfresco using ./alfresco-installaer.bin, i am being asked about a number of options on command line such as below: 1. Do you want to install java?[y/n] 2.Do you want to install postgres?[y/n] 3... so on. I want to provide all these kinds of inputs usin

Re: [Puppet Users] Re: Pass Array as param to custom provider...

2013-01-07 Thread Gavin Williams
Firstly, sorry for bringing this thread back - However I thought it probably best as it's got all the history of what I was working towards etc... Anyways, onto the problem at hand. I've created a new property against my netapp_volume provider called * :snapschedule*. This property is taking

[Puppet Users] custom fact with variables

2013-01-07 Thread SDM
Hi, do you know if it's possible to pass value to custom fact. I have a custom fact that check the presence of lv. The idea is to replace the lv name by a variable and check different lv. in my .rb file : Facter.add(:lv_dd_adm) do confine :kernel => "Linux" setcode do Facter::Util::Re

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

2013-01-07 Thread alcc
Am Freitag, 4. Januar 2013 13:17:46 UTC+1 schrieb al...@gmx.de: > Disabling puppet dashboard helped - 12 hours without any "frozen" 100% > child process. Now investigating if it's dashboard's external node command. Commenting out ENC-related lines in puppet.conf fixed this. Calling the externa

[Puppet Users] Re: Failed when searching for node : Failed to find via exec: Execution of '/usr/share/puppet-dashboard/bin/external_node

2013-01-07 Thread alcc
> > On Thursday, January 3, 2013 6:30:33 AM UTC-6, al...@gmx.de wrote: >> >> Seeing this a lot lately, restarting puppet master service usually >> resolves it: >> >> Jan 3 13:17:01 puppet-master[24120]: (//> agent>/Puppet) Could not retrieve catalog from remote server: Error 400 on >> SERVER:

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

2013-01-07 Thread magic . rh
Thanks Hans, great answer. I'll definitely get into customized packaging, demystify their magics. Regards, Magic. On Friday, January 4, 2013 3:35:20 PM UTC+2, Hans van der Made wrote: > > > > On Friday, January 4, 2013 10:39:53 AM UTC+1, magi...@gmail.com wrote: >> >> I understand exactly what so

[Puppet Users] WebRick role

2013-01-07 Thread bernard.gran...@morpho.com
Hy, I am just starting with Puppet, and install a test bed with community version, one master and 8 clients. I wonder if WebRick is used only of master-agents communication or does WebRick provides a web application usable by human with a web browser ? Thank's for any helps Bernard -- You rec

[Puppet Users] Re: razor hang

2013-01-07 Thread hrajangarg220789
Hi, I tried to install razor in Centos 5 which is a puppet master server. I have configured proxy setting on my machine but still not able to ping any ip outside my domain. Please help me with two things: 1. What are the steps to configure internet on centos 5( I am sorry , I know it is a razor

Re: [Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?

2013-01-07 Thread jcbollinger
On Monday, January 7, 2013 2:31:22 AM UTC-6, lalit jangra wrote: > > Thanks a lot Garrett, > > When i am installing alfresco using ./alfresco-installaer.bin, i am being > asked about a number of options on command line such as below: > 1. Do you want to install java?[y/n] > 2.Do you want to inst

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

2013-01-07 Thread jcbollinger
On Sunday, January 6, 2013 9:23:17 PM UTC-6, Pete wrote: > > > I put my monitoring (and firewall rules incidentally) into each class on a > node and import into my monitoring server (nagios currently but intend on > switching to icinga soon) them based on tags. > I was using global vars but are

[Puppet Users] Re: custom fact with variables

2013-01-07 Thread jcbollinger
On Monday, January 7, 2013 4:02:49 AM UTC-6, SDM wrote: > > Hi, > > do you know if it's possible to pass value to custom fact. > > I have a custom fact that check the presence of lv. The idea is to replace > the lv name by a variable and check different lv. > > in my .rb file : > > Facter.add(:

[Puppet Users] Re: Sometimes getting 'undef' in template

2013-01-07 Thread jcbollinger
On Sunday, January 6, 2013 7:54:23 AM UTC-6, blalor wrote: > > Morning, all. I've got a problem with a custom class and template that > has me stumped. I've created the following class: > > class graphite::carbon( > $cache_port = 2003, > $cache_enable_udp = false, >

Re: [Puppet Users] How can i pass runtime parameters while installing .bin file in puppet?

2013-01-07 Thread Keiran Sweet
Hi, Another vote from me for packaging this software, Puppet likes packages and deals with them well. John mentioned FPM, If you haven't checked it out, I can't recommend it enough. I manage quite a few packages internally in my role, and FPM has shaved huge amounts of time off generating them.

Re: [Puppet Users] WebRick role

2013-01-07 Thread Sam Kottler
Hi and welcome! The puppet master itself is a simple rack application so webrick is the default rack server. You can use any application server that is Rack-compatible; Apache w/ Passenger is also a very common configuration. There is not a web interface by default, but there are a number of tool

RE: [Puppet Users] WebRick role

2013-01-07 Thread GRANIER Bernard (MORPHO)
Hi, Thanks for your answer, in the same time, I installed puppet dashboard. Now I will try my first deployment test and I will see :) Cordialement, Bernard Granier CE Plateforme Système bernard.gran...@morpho.com 01 58 11 32 51 From: puppet-users@googlegroups

Re: [Puppet Users] Windows Puppet Agent Hangs on Run

2013-01-07 Thread phundisk
I removed these from my path and restarted. When running puppet it still seems to hang. I tried to comment out the section in root_home.rb that facter seems to be hanging on but the file was overwritten when attempting to run puppet again. Is there an update to this file or facter itself? C

[Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-07 Thread Kirk Steffensen
Hi, I have a fresh CentOS 5.8 Vagrant VM that I'm using to emulate a customer's server. During the first Puppet run, it takes 13 minutes and 48 seconds to sync the Puppet Labs stdlib module. On a similar Ubuntu 12.04.1 Vagrant VM, Puppet starts up, and almost instantly goes from plugin sync t

[Puppet Users] Nginx and puppet

2013-01-07 Thread Nabil Servais
Hello, I use puppetmaster behind nginx and I have a strange issue. The master can sign the agent but after this, I have an SSL error. If I don't use nginx, everything work great, no problem with ssl. The nginx configuration and the ssl error are here : http://pastebin.com/nEt5uvN2 Thanks f

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-07 Thread Ken Barber
My immediate gut feeling on this would be network not Puppet being the issue actually, especially if another client is having success at doing the sync. Its a virt so it could be hypervisor drivers or some other issue, its an old version of the kernel as well - its more likely to happen - although

[Puppet Users] passenger-3.0.18 command(s) setting env variables to run commands anywhere.

2013-01-07 Thread DJames
obviously passenger-status and etc... commands works when you are in the path /usr/lib/ruby/gems/1.8/gems/passenger-3.0.18/bin but what env file I need to use to set the right variable to run these commands from any path? cat /etc/redhat-release CentOS release 6.2 (Final) --->> is my OS. --

Re: [Puppet Users] WebRick role

2013-01-07 Thread Garrett Honeycutt
On 1/7/13 10:48 AM, GRANIER Bernard (MORPHO) wrote: > Hi, > > Thanks for your answer, in the same time, I installed puppet dashboard. > > > Now I will try my first deployment test and I will see J > > > Cordialement, > > Bernard Granier > Webrick is useful for doing a demo and learning ab

Re: [Puppet Users] Windows Puppet Agent Hangs on Run

2013-01-07 Thread Josh Cooper
Hi Alex, On Mon, Jan 7, 2013 at 7:56 AM, phundisk wrote: > I removed these from my path and restarted. When running puppet it still > seems to hang. I tried to comment out the section in root_home.rb that > facter seems to be hanging on but the file was overwritten when attempting > to run pupp

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-07 Thread Kirk Steffensen
Ken, Thanks. I agree with your gut feeling, but after running the first round of tests you suggested, I don't think that's it. Bandwidth is good and there are no netstat errors. (Test results at the end of this email.) Actually, I just realized that the Puppet client on the Ubuntu box is ru

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-07 Thread Ken Barber
There are two primary bottlenecks for pluginsync: * the md5 sum it needs to do on both ends to compare and see if a resync is needed * the transfer itself If you run puppet a second time, with pluginsync enabled (but this time nothing should be transferred) - how much time does it take compared t

Re: [Puppet Users] Nginx and puppet

2013-01-07 Thread Nabil servais
Le 07/01/2013 18:00, Nabil Servais a écrit : Hello, I use puppetmaster behind nginx and I have a strange issue. The master can sign the agent but after this, I have an SSL error. If I don't use nginx, everything work great, no problem with ssl. The nginx configuration and the ssl error are h

[Puppet Users] Error: Could not retrieve catalog from remote server: execution expired

2013-01-07 Thread Rob Smith
Hi everyone, I recently ran into an issue where my puppetmaster can't run puppet on itself. It errors out with the following: Error: Could not retrieve catalog from remote server: execution expired Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run I'm run

Re: [Puppet Users] stdlib take almost 14 minutes to sync on CentOS Vagrant VM

2013-01-07 Thread Kirk Steffensen
The second time it runs (with pluginsync enabled), it only pauses at the "Info: Retrieving plugin" notice for a few seconds. So, it sounds like the md5sum is not the bottleneck. The specific setup that I'm using is a pretty beefy Xeon workstation with 24 GB of RAM acting as the puppetmaster fo

[Puppet Users] How manage xml elements as resources?

2013-01-07 Thread Schofield
I would like to use puppet classes to inject and/or replace xml elements into an existing xml configuration file. This seems to me to be a common problem already solved. Can anyone suggest the easiest way to do this? An example use case would look like something like this. Given xml file:

Re: [Puppet Users] Re: razor hang

2013-01-07 Thread Denmat
Hi, It's a bit hard to answer your problem because your issues appear more complex than you have described. For the record I've used the PuppetLab module on github to install Razor previously and it works. It does require access to the Internet however. That leads me to the question, what is

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

2013-01-07 Thread Peter Brown
On 8 January 2013 00:19, jcbollinger wrote: > > > On Sunday, January 6, 2013 9:23:17 PM UTC-6, Pete wrote: >> >> >> I put my monitoring (and firewall rules incidentally) into each class on >> a node and import into my monitoring server (nagios currently but intend on >> switching to icinga soon)

Re: [Puppet Users] passenger-3.0.18 command(s) setting env variables to run commands anywhere.

2013-01-07 Thread Denmat
Hi, Options are as follows: set your $PATH. PATH=$PATH:/bin Add a path to a file in your /etc/profile.d/ Symlink binaries to /usr/local/bin If you use the RPM provided by stealthmonkeys (not the cannabis site ;) ) it will do this for you. Cheers Den On 08/01/2013, at 4:35, DJames wrote: >

Re: [Puppet Users] How manage xml elements as resources?

2013-01-07 Thread Roman Shaposhnik
On Mon, Jan 7, 2013 at 1:24 PM, Schofield wrote: > I would like to use puppet classes to inject and/or replace xml elements > into an existing xml configuration file. This seems to me to be a common > problem already solved. Can anyone suggest the easiest way to do this? Well, the tool du jour

Re: [Puppet Users] How to clone alfresco on puppet agents?

2013-01-07 Thread Ryan Coleman
On Sat, Jan 5, 2013 at 5:44 AM, lalit jangra wrote: > Thanks, > > Indeed alfresco can not be told as a package as it contains a number of > installations in a tar ball or .bin file. > > Also i could not find any package named alfresco using puppet resource > package | grep alfresco command. > > So

[Puppet Users] Using puppet to upgrade a package (e.g. php 5.4)

2013-01-07 Thread google
On Centos 6.3, I have attempted to upgrade to php 5.4 using the following: yumrepo { "epel-repo": baseurl => "http://download.fedoraproject.org/pub/epel/6/\$basearch";, descr => "Epel Repo", enabled => 1, gpgcheck => 0, } yumrepo { "remi-repo":

[Puppet Users] Re: razor hang

2013-01-07 Thread hrajangarg220789
hi, I am allowed to access internet only through my office proxy. M puppet master got the IP from my office dhcp only so i can not configure any other dhcp in the network. I used Centos5 as my OS for puppet master. I changed the proxy settings and then when i executed the command "# puppetpupp

Re: [Puppet Users] Using puppet to upgrade a package (e.g. php 5.4)

2013-01-07 Thread Denmat
Hi, You can use a yum makecache exec and require it in your php package section (or whatever relies on that repo). I've previously put all my repo calls in a 'stage' that ran before 'main' stage (see puppet docs for details). That worked well for local repo mirrors - was a slow down for other