Re: [Puppet Users] Puppet module restart puppet client or not?

2012-12-13 Thread Eric Sorenson
On Thursday, December 13, 2012 4:03:20 PM UTC-8, Ugo Bellavance wrote: > > > That rises two questions in my mind: > > >1. In my understanding, puppetmaster catches any changes in the >manifests without needing a restart, why can't the puppet client reload > its >puppet.conf paramet

Re: [Puppet Users] Re: puppet dashboard inventory

2012-12-13 Thread vioilly
Hi, I believe I have done that. So on my puppet master (puppet-server1) I have modified the puppet.conf file and added the following: [master] storeconfigs = true storeconfigs_backend = puppetdb Also puppetdb.conf [master] storeconfigs = true storeconfigs_backend = puppetdb

[Puppet Users] New Puppet User: Issues with pre-commit script

2012-12-13 Thread Jagga Soorma
Hi Guys, I am new to puppet so please let me know if this is not the correct place for asking this question. I am setting up a new puppet environment running the latest 3.x version. I have the puppet master and client setup correctly and tested with deploying a simple file to the client. Now

[Puppet Users] mcollective and aptitude safe-upgrade

2012-12-13 Thread Brent Clark
Guys Compliments of the festive season to everyone. Ive looked at mcollective plugins from http://projects.puppetlabs.com/projects/mcollective-plugins/wiki And I tried / installed some of them. What im looking for is a method or really a mcollective plugin to 'aptitude safe-upgrade' on my te

[Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2012-12-13 Thread Zane Williamson
Actually, applying sort doesn't work. It doesn't sort the file properly and the spacing and line creation is incorrect. I looked at other similar posts and it appears to be an issues with Ruby with no direct solution besides stopping puppet from managing this file. On Thursday, December 13, 20

[Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2012-12-13 Thread Zane Williamson
Well I think I came up with a decent hack. content => inline_template("<%= scope.to_hash.reject { |k,v| k.to_s =~ /(uptime_seconds|uptime_hours|timestamp|free)/ }.to_yaml.sort { |a,b| b <=> a} %>") the sort and then inverse (to make sure the "---/n" is on top for the fact file format) seems t

[Puppet Users] Re: Puppet and Mcollective yaml file changing when it shouldn't

2012-12-13 Thread Zane Williamson
Running Ruby 1.8.7... I believe this issue started when I upgraded from 1.8.5, but I am not 100% positive. On Thursday, December 13, 2012 5:06:54 PM UTC-8, Zane Williamson wrote: > > Has anyone else ran into this? > > debug: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content: > Executing

[Puppet Users] Puppet and Mcollective yaml file changing when it shouldn't

2012-12-13 Thread Zane Williamson
Has anyone else ran into this? debug: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content: Executing 'diff -u /var/tmp/facts.yaml /tmp/puppet-file20121214-13448-933j3r-0' notice: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content: --- /var/tmp/facts.yaml 2012-12-14 00:53:20.0

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-12-13 Thread Jakov Sosic
On 11/28/2012 05:58 PM, Jeff McCune wrote: Jakov, I'm really sorry to step in on this one but our ruby should fully support gems installed using the gem command. I understand it's not ideal and that RPM's are definitely preferable. I encourage people to use RPMs whenever possible in this situati

Re: [Puppet Users] Puppet module restart puppet client or not?

2012-12-13 Thread Ugo Bellavance
On Thursday, December 13, 2012 5:43:14 AM UTC-5, Matthew Burgess wrote: > > On Thu, Dec 13, 2012 at 12:41 AM, Ugo Bellavance > > > wrote: > > > I guess maybe I should ask to the Foreman group, > > but I was mostly wondering whether it was a good idea or not to restart > > puppet when changing

Re: [Puppet Users] Is it able to obtain performance metrics from puppet master?

2012-12-13 Thread Erik Dalén
most of these are available in the reports, have a look in he reportdir (puppet master --configprint reportdir). You can also write a report processor to feed them directly into your monitoring system. On 13 December 2012 18:09, Oleg Korchagin wrote: > Hello > > Is it able to obtain performanc

[Puppet Users] Re: Solaris Packages for Puppet 3.0.0-rc7, Facter 1.6.0 and Hiera 1.0.0

2012-12-13 Thread Jax01
Do you have packages for Solaris 10 as well? Thanks! On Friday, September 21, 2012 8:11:39 PM UTC-4, Moses Mendoza wrote: > > -- Forwarded message -- > From: Rahul Gopinath > > Date: Fri, Sep 21, 2012 at 4:43 PM > Subject: [Puppet-dev] Solaris Packages for Puppet 3.0.0, Facter

[Puppet Users] puppet dashboard 1.2.15-rc1 report search problem

2012-12-13 Thread Luca Gioppo
On a fresh Dashboard installation I get these: Puppet Dashboard encountered an error. Something went wrong, and Puppet Dashboard was unable to render the requested page. Please contact your site’s help desk or systems administrator; if that happens to be you, please check Dashboard’s logs for

Re: [Puppet Users] Re: puppet dashboard inventory

2012-12-13 Thread vioilly
Correction to the above post Also puppetdb.conf [master] storeconfigs = true storeconfigs_backend = puppetdb should be [main] server = puppet-server3.test.net port = 8081 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this

Re: [Puppet Users] Re: puppet dashboard inventory

2012-12-13 Thread Peter Bukowinski
On Dec 13, 2012, at 4:09 PM, vioilly wrote: > Just trying to get help here. > > My puppetdb server is called puppet-server3. My dashboard server is > puppet-server2. I can run inventory commands against my puppetdb and get > results. > > For example - i have a puppet-client2.test.net machine r

Re: [Puppet Users] Unit-Testing/test: recommended method?

2012-12-13 Thread Matthias Viehweger
Hi! On Thu, Dec 13, 2012 at 11:42:19AM -0800, Nan Liu wrote: > On Thu, Dec 13, 2012 at 11:01 AM, Andreas Haerter > wrote: > > 1) I know there are different, well-known methods: > > - Test::Unit > > - rspec-puppet > > - cucumber-puppet > > > > Is there anything missing worth a look? Which are dep

[Puppet Users] Re: puppet dashboard inventory

2012-12-13 Thread vioilly
Just trying to get help here. My puppetdb server is called puppet-server3. My dashboard server is puppet-server2. I can run inventory commands against my puppetdb and get results. For example - i have a puppet-client2.test.net machine running the puppet agent [root@puppet-server3 ~]# curl -H

Re: [Puppet Users] in-module data with hiera

2012-12-13 Thread R.I.Pienaar
- Original Message - > From: "R.I.Pienaar" > To: puppet-users@googlegroups.com > Sent: Thursday, December 13, 2012 5:58:42 PM > Subject: Re: [Puppet Users] in-module data with hiera > > > > - Original Message - > > From: "Stefan Goethals" > > To: puppet-users@googlegroups.com

Re: [Puppet Users] PE VMware VM deployment (localization problem)

2012-12-13 Thread Ohad Levy
On Thu, Dec 13, 2012 at 11:36 AM, Benoit BARTHELEMY < benoit.barthel...@gmail.com> wrote: > Hi Guys ! > > I'm currently evaluating Puppet's cloud provisioner on vmWARE. I think I > just ran into a silly localisation problem : > > [root@puppet ~]# puppet node_vmware list >> notice: Connecting ... >

Re: [Puppet Users] Unit-Testing/test: recommended method?

2012-12-13 Thread Nan Liu
On Thu, Dec 13, 2012 at 11:01 AM, Andreas Haerter < list+puppet-us...@mail-node.com> wrote: > Hi, > > is there any "officially" recommended default/standard method to realize > Puppet module unit test beyond linting (puppet-lint)? Compatibility to > version < 3.x is nice but NOT needed. > > > My m

[Puppet Users] Unit-Testing/test: recommended method?

2012-12-13 Thread Andreas Haerter
Hi, is there any "officially" recommended default/standard method to realize Puppet module unit test beyond linting (puppet-lint)? Compatibility to version < 3.x is nice but NOT needed. My main questions are: 1) I know there are different, well-known methods: - Test::Unit - rspec-puppet - cucum

Re: [Puppet Users] in-module data with hiera

2012-12-13 Thread R.I.Pienaar
- Original Message - > From: "Stefan Goethals" > To: puppet-users@googlegroups.com > Sent: Thursday, December 13, 2012 5:37:30 PM > Subject: Re: [Puppet Users] in-module data with hiera > > > The good news: > > Without /etc/puppet/hiera.yaml & Without /data/hiera.yaml = > OK! > Withou

Re: [Puppet Users] in-module data with hiera

2012-12-13 Thread Stefan Goethals
The good news: Without /etc/puppet/hiera.yaml & Without /data/hiera.yaml = OK! Without /etc/puppet/hiera.yaml but with empty /data/hiera.yaml = OK! Without /etc/puppet/hiera.yaml but with /data/hiera.yaml with a hierarchy = OK! With empty /etc/puppet/hiera.yaml & Without /data/hiera.yaml = OK!

Re: [Puppet Users] help with scoping variable into a template

2012-12-13 Thread Jakov Sosic
On 10/29/2012 09:11 PM, mparrad wrote: > Hi guys, > > I'm working on puppet for windows, and now I have to work on a template > that use the value from a variable set it on a class, the problem that i > got is always I got undef value on the result file. > I checked this URL without no results > h

Re: [Puppet Users] Converting puppet client to servr

2012-12-13 Thread Bret Wortman
Which files will I need to transfer to the new puppet master? /var/lib/puppet/ssl/ca/ca_crt.pem /var/lib/puppet/ssl/certs/ca.pem /var/lib/puppet/ssl/certs/woof.hostname.com.pem We had been planning for a central "master master" anyway and it already has a dns alias for "puppet". Once I solve the

[Puppet Users] Is it able to obtain performance metrics from puppet master?

2012-12-13 Thread Oleg Korchagin
Hello Is it able to obtain performance metrics from puppet master ( or puppet dashboard ) ? I intend to use this metrics in external monitoring system. Of particular interest are the following metrics: * list of agents * time since the certain agent last apply manifest ( to find stuck agents )

[Puppet Users] Re: Strange signing problem in AWS - stumped

2012-12-13 Thread jblaine
I have even gone so far on the master as to completely uninstall the puppetmaster package, sudo rm -rf /var/lib/puppet/ssl, and reinstall the puppetmaster package on the master. Then provision a brand new EC2 instance with "puppet node_aws bootstrap..." Same result: The certificate retrieved fro

Re: [Puppet Users] err: Signing certificate error

2012-12-13 Thread jblaine
Your problem is that you are not propogating the RUBYLIB environment variable (for the cloud provisioner) when you run sudo as you are. Use: sudo RUBYLIB=$RUBYLIB puppet node_aws ... On Monday, October 1, 2012 2:00:48 AM UTC-4, Ignasi López wrote: > > 2.7.19 > It's weird but, i can use puppet w

[Puppet Users] Re: bootstrap aws instance - set server address in instance puppet.conf?

2012-12-13 Thread jblaine
Having the same problem as quoted below. I'm even using autosign for the time-being while trying to solve this. Leej, did you solve this? notice: Waiting for SSH response ... Done > notice: Installing Puppet ... > notice: Puppet is now installed on: > blahblah.eu-west-1.compute.amazonaws.com > n

Re: [Puppet Users] check if if file exists on client an master

2012-12-13 Thread Romain Gales
Hi, I malformed my question. This is a hint in the right direction. Romain On Thursday, 13 December 2012 11:26:20 UTC+1, Luke Bigum wrote: > > Romain, I am confused. > > In your first post you said you need to check if a package exists on the > "Agent", the Puppet client. > > Now below you sa

[Puppet Users] Re: variables created with generate() function have a newline when used in a template

2012-12-13 Thread Sven vd
This works when using the variable inside a template. But I want to use the variable in an Exec command. How to remove the newline here? .chomp does not seem to work here. THanks On Sunday, December 26, 2010 1:43:26 PM UTC+1, bowlby wrote: > > Thanks, both of you! That solved it. > > Merry Chr

[Puppet Users] Re: PE VMware VM deployment (localization problem)

2012-12-13 Thread jcbollinger
On Thursday, December 13, 2012 3:36:52 AM UTC-6, Benoit BARTHELEMY wrote: > > Hi Guys ! > > I'm currently evaluating Puppet's cloud provisioner on vmWARE. I think I > just ran into a silly localisation problem : > > [root@puppet ~]# puppet node_vmware list >> notice: Connecting ... >> notice: Co

[Puppet Users] Re: Puppet with dedicated ruby install

2012-12-13 Thread jcbollinger
On Wednesday, December 12, 2012 2:54:56 PM UTC-6, Alexander Philipp wrote: > > Are there any good guides out there to using Puppet agents with a > dedicated, separate ruby install? Our apps are all Ruby based and require > different versions than Puppet. Installing the agent from a package wi

Re: [Puppet Users] "could not find user" when running as daemon

2012-12-13 Thread jcbollinger
On Wednesday, December 12, 2012 4:44:54 PM UTC-6, Jeff Goldschrafe wrote: > > Sorry to be a thread-necromancer, but we're seeing the same problem on a > tiny subset of our hosts. We saw the problem on a CentOS 5 x86_64 host, > then it mysteriously went away, and now we're consistently seeing it

Re: [Puppet Users] issues with puppet 3.0.1 using ruby 1.9.3 and passenger (3.0.18)

2012-12-13 Thread vioilly
Hi Josh, I installed puppet-server using yum by installing the rpm from puppetlabs that enables the puppet repo. I then installed rubygems which enabled me to gem install rack and passenger. I did compile ruby1.9.3 using this method: This installs libyaml 0.1.4 cd /opt wget http://pyyaml.or

[Puppet Users] Re: Puppet with dedicated ruby install

2012-12-13 Thread Keiran Sweet
Hi There, We take this approach as well with our platform to ensure that puppet upgrades don't affect any applications that may be using the OS version of Ruby. Disclaimer: I don't actually love our approach to packaging Ruby and am aware of its flaws, however it has proved to be OK for the tim

Re: [Puppet Users] Puppet module restart puppet client or not?

2012-12-13 Thread Matthew Burgess
On Thu, Dec 13, 2012 at 12:41 AM, Ugo Bellavance wrote: > I guess maybe I should ask to the Foreman group, > but I was mostly wondering whether it was a good idea or not to restart > puppet when changing puppet.conf. I think it would be a bad idea not to. Otherwise you've got a process running

Re: [Puppet Users] check if if file exists on client an master

2012-12-13 Thread Luke Bigum
Romain, I am confused. In your first post you said you need to check if a package exists on the "Agent", the Puppet client. Now below you say you need the check executed on the Master. Facts are executed on the Agents and only ever on Agents. If you want to check for something on a client/agen

Re: [Puppet Users] Converting puppet client to servr

2012-12-13 Thread Luke Bigum
On Wednesday, December 12, 2012 10:35:21 PM UTC, Bret Wortman wrote: > Yeah, I was starting to think that was the solution. > > That's not strictly necessary, you can install a Puppet Master with Puppet just fine, the problem you're running into is how to manage the Puppet CA across multiple

[Puppet Users] PE VMware VM deployment (localization problem)

2012-12-13 Thread Benoit BARTHELEMY
Hi Guys ! I'm currently evaluating Puppet's cloud provisioner on vmWARE. I think I just ran into a silly localisation problem : [root@puppet ~]# puppet node_vmware list > notice: Connecting ... > notice: Connected to myVcenter as Puppet (API version 4.1) > notice: Finding all Virtual Machines ..