[Puppet Users] puppet adding class in console

2013-11-26 Thread Raj kumar V
I have written a module and for testing, I have unzipped the tar in /etc/puppetlabs/puppet/modules directory. Now how can I have my class autodetected in the UI? It is not coming if I refresh the add class link. -- You received this message because you are subscribed to the Google Groups

[Puppet Users] Puppet Agent does not connect to master after installing Dashboard

2013-11-26 Thread shlo . afgin
Hi, I had Puppet + Passenger installed and working. Then I installed Dashboard on the puppet master. I had to change the apache configuration file and replace the virtual host I had when I install Passenger with contain: VirtualHost *:80 ServerName puppetsrv.domain.com DocumentRoot

[Puppet Users] Puppet agent messages with rsyslog

2013-11-26 Thread Andreas Dvorak
Dear all, I have Puppet 3.3.1 and rsyslog and RedHat 6. My problem is that I want to see the message Finished catalog only in the file /var/log/puppet/agent.log, but rsyslog sends it to the syslog server and than to netcool. It is also shown in /var/log/messages. I only want to see error

Re: [Puppet Users] Puppet agent messages with rsyslog

2013-11-26 Thread Dan White
Here's a brute-force method that came to mind: if $programname == 'puppet-agent' and $syslogseverity == '0' then /var/log/puppet/agent-0.log if $programname == 'puppet-agent' and $syslogseverity == '1' then /var/log/puppet/agent-1.log if $programname == 'puppet-agent' and $syslogseverity ==

[Puppet Users] can I pass a class or type to be executed into another class?

2013-11-26 Thread Joshua Chaitin-Pollak
Hello, I have a module mywebapp which calls the tomcat::war module with specific parameters, to upgrade the war file and restart tomcat. This works great. What I would like to do is modify the code so that if, and only if tomcat needs to be restarted, BEFORE it is restarted, I want to perform a

[Puppet Users] how to deal with xml files within Puppet ?

2013-11-26 Thread cozypaul
hi there, I have to create a new server.xml which should be build from at least 3 or 4 another xml files. How could to copy and paste with puppet methods ? On a command line under Unix I would do cat 1.xml my_file.xml ; cat 2.xml my_file.xml; cat 3.xml my_file.xml. I have to say, I'm pretty

[Puppet Users] Open source puppet with Vmware

2013-11-26 Thread Dhanarajan Ponnurangam
Hi, I am very new to Puppet and Vmware world. I have a centos in which my puppet master is running (open source puppet). I have another server hardware with ESX 5.1 installed in it. I have a vsphere installed in my PC through which I created a VM in this server hardware. Now I need to use

Re: [Puppet Users] how to deal with xml files within Puppet ?

2013-11-26 Thread Dan White
Based on your description, a simple concatenating module should solve the problem. Here are a few: http://forge.puppetlabs.com/modules?q=concat “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill

Re: [Puppet Users] how to deal with xml files within Puppet ?

2013-11-26 Thread Felix Frank
OT - but that's a little excessive. You should condense that to cat 1.xml 2.xml 3.xml my_file.xml or even cat {1,2,3}.xml my_file.xml Cheers, Felix On 11/26/2013 11:28 AM, cozyp...@web.de wrote: On a command line under Unix I would do cat 1.xml my_file.xml ; cat 2.xml my_file.xml; cat

Re: [Puppet Users] Permission denied - /usr/share/puppet-dashboard/public/javascripts/all.js

2013-11-26 Thread Felix Frank
Hi, I can't give you much on this, because I've never touched dashboard and my knowledge of passenger is passing at best. (Also I don't do RHEL/CentOS :-) I believe that the important part is that your rack application (dashboard) as a home (/etc/puppet/rack) and that is correctly configured

[Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Stephen Berg (Contractor)
Ok, I'm very new to puppet, I have a pretty good idea of what it can do for me. I've got a basic install done and added a couple of test hosts. Here's where I can't seem to find documentation to get moving forward. One of my hosts is ok the other is getting errors. I don't recall doing

Re: [Puppet Users] Re: nodes.pp on puppetmaster vs. puppet agent on puppet client

2013-11-26 Thread jcbollinger
On Monday, November 25, 2013 11:16:25 PM UTC-6, Peter Bukowinski wrote: No. An agent need not be aware of what classes are assigned to it before it contacts the puppetmaster. As long as your agent is configured to run on a regular interval, it will automatically get the latest

Re: [Puppet Users] Puppet agent messages with rsyslog

2013-11-26 Thread Andreas Dvorak
Hi, that info was nice to find out what syslogseverity the message Finished catalog. It is 5. But I still do not understand why this message is send to the syslog server. According to the line if $programname == 'puppet-agent' and $syslogseverity = '6' then /var/log/puppet/agent.log it should

Re: [Puppet Users] Re: set password to never expire for a user

2013-11-26 Thread jcbollinger
On Monday, November 25, 2013 5:11:13 PM UTC-6, Stuart Cracraft wrote: I have direction to use puppet rather than the OS and exec... Possibly you are looking for the 'expiry' User property: http://docs.puppetlabs.com/references/3.stable/type.html#user-attribute-expiry user { 'alice': #

Re: [Puppet Users] how to deal with xml files within Puppet ?

2013-11-26 Thread cozypaul
Hi Felix, thank you very much for answer, but command line was simply not an issue of my posting.Unfortunately, I'm forced to that with puppet ;=) take care Am Dienstag, 26. November 2013 14:43:55 UTC+1 schrieb Felix.Frank: OT - but that's a little excessive. You should condense that to

Re: [Puppet Users] Re: ensuring a directory is empty

2013-11-26 Thread Felix Frank
Hi, your request is problematic insofar that it does not match the puppet philosophy very well. Puppet expects you to define a state you desire. The details of how this state can be reached should be up to puppet. That's idealized of course, and in the real world, there are plenty examples of

Re: [Puppet Users] how to deal with xml files within Puppet ?

2013-11-26 Thread cozypaul
Hi Ygor, based on some examples I created as follows : class my_log { $my_log = /tmp/server.xml concat {$my_log: owner = tomcat, group = tomcat, mode = '0644', } concat::fragment{first_file.xml: target = $my_log: order = 01, } concat::fragment{second_file.xml:

[Puppet Users] puppet won't change user's password

2013-11-26 Thread Sergey Arlashin
Hi! I'm trying to set password for a user. I do the following: user { username: password = '*', } And when I run puppet agent nothing happens. The password remains the same. But if I create a new user which doesn't exist yet, the password is set without any problems. Is this a normal

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Dan White
http://bit.ly/1dyrpm4 “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin Hobbes) - Original Message - From: Stephen Berg (Contractor) stephen.berg@nrlssc.navy.mil To:

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Felix Frank
That was a dick move, Dan. Dick. Move. ;-p Not only are you hiding your vileness in an obfuscation (steering all innocent list readers into your trap), but to add insult to injury, your (arguably) annoying signature is larger in volume than the affront itself. No cookie. On 11/26/2013 04:54 PM,

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Ken Barber
That was a dick move, Dan. Dick. Move. ;-p Not only are you hiding your vileness in an obfuscation (steering all innocent list readers into your trap), but to add insult to injury, your (arguably) annoying signature is larger in volume than the affront itself. No cookie. +1 thank you Felix

[Puppet Users] Unable to install Puppet Modules

2013-11-26 Thread John Peck
Hi Puppet Users - Currently attempting to install puppet modules on a Security Onion virtual machine. Security Onion is based on Ubuntu 12.04. Puppet was installed using the puppetlabs-release-precise.deb file found on apt.puppetlabs.com. Attempting to install a module results in the

[Puppet Users] Puppet dashboard data internally inconsistent

2013-11-26 Thread Sam Tresler
https://www.dropbox.com/s/0vao04js5v7edga/Screenshot%20-%2011262013%20-%2011%3A31%3A35%20AM.png In the attached screenshot you can see that the last report was 10:07. The graph definitely shows an 11:36 run, and the dashboard activity shows that the nod was updated at 11:05. Puppet dashboard

[Puppet Users] Re: Puppet dashboard data internally inconsistent

2013-11-26 Thread Sam Tresler
I should add, nothing in logs of puppet master or dashboard. On Tuesday, November 26, 2013 11:39:34 AM UTC-5, Sam Tresler wrote:

Re: [Puppet Users] Unable to install Puppet Modules

2013-11-26 Thread Dan White
First thing I'd suggest is doing the commands from a root shell. sudo su - puppet module install puppet/stdlib --debug --verbose I have found that doing commands on the sudo-line do not always behave themselves. “Sometimes I think the surest sign that intelligent life exists elsewhere in

Re: [Puppet Users] Unable to install Puppet Modules

2013-11-26 Thread Ken Barber
Currently attempting to install puppet modules on a Security Onion virtual machine. Security Onion is based on Ubuntu 12.04. A forked distro based on a forked distro, gotta love the turtles :-). Puppet was installed using the puppetlabs-release-precise.deb file found on apt.puppetlabs.com.

[Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread David Portabella
puppet agent --verbose shows a verbose output of the changes done by puppet, such as: notice: /Stage[main]/Logstash::Config/Logstash::Configdir[agent]/File[/etc/logstash/agent/config]/owner: owner changed 'root' to 'logstash' notice: /Stage[main]/Varnish/Service[varnish]/ensure: ensure

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread R.I.Pienaar
- Original Message - From: David Portabella david.portabe...@gmail.com To: puppet-users@googlegroups.com Sent: Tuesday, November 26, 2013 4:54:03 PM Subject: [Puppet Users] get a *structured* version of the puppet agent output puppet agent --verbose shows a verbose output of

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Dan White
I am not sure if this will answer your question, but have you looked at the yaml files to be found under /var/lib/puppet/reports/ on the Puppet Master ? Changes can be found by searching for changed: true , out_of_sync: true, and/or change_count: ? where the ? is NOT zero. “Sometimes I

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread R.I.Pienaar
- Original Message - From: Felix Frank felix.fr...@alumni.tu-berlin.de To: puppet-users@googlegroups.com Sent: Tuesday, November 26, 2013 4:02:10 PM Subject: Re: [Puppet Users] Can't find good tutorial/how-to That was a dick move, Dan. Dick. Move. ;-p While I agree posting lmgtfy

[Puppet Users] Re: Can't find good tutorial/how-to

2013-11-26 Thread Stuart Cracraft
I recommend picking up copies of the new Puppet and Puppet Cookbook books at www.amazon.com and stay current with each version. As well, they say there are about 6000 pages of Puppet documentation at the company website... On Tuesday, November 26, 2013 5:39:27 AM UTC-8, Stephen Berg

[Puppet Users] Re: get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
We have this exact same requirement. Enforce a non-changing policy on the cloud, avoid automatic drift-prevention, await errors and reports, track down cause, fix root cause, apply puppet manifests to right things back, etc. Using Puppet to bandaid things without root-cause

Re: [Puppet Users] Re: set password to never expire for a user

2013-11-26 Thread Stuart Cracraft
password_max_age is less destructive. I chose it. On Tuesday, November 26, 2013 6:23:19 AM UTC-8, jcbollinger wrote: On Monday, November 25, 2013 5:11:13 PM UTC-6, Stuart Cracraft wrote: I have direction to use puppet rather than the OS and exec... Possibly you are looking for the

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
What we want is not more complexity, but more simplicity! I could go into puppet config print reportdir and then to its /var/lib/puppet/reports then to the host directories of interest and grep out message. But that seems a very sorry state of affairs. Puppetmasters speak UP! On

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread R.I.Pienaar
- Original Message - From: Stuart Cracraft smcracr...@gmail.com To: puppet-users@googlegroups.com Sent: Tuesday, November 26, 2013 7:02:42 PM Subject: Re: [Puppet Users] get a *structured* version of the puppet agent output What we want is not more complexity, but more

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
Who will share a report generator for the yaml reports generated by puppet so that we do not have to reinvent wheel after wheel after wheel!! On Nov 26, 2013, at 11:08 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - From: Stuart Cracraft smcracr...@gmail.com To:

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread R.I.Pienaar
- Original Message - From: Stuart Cracraft smcracr...@me.com To: puppet-users@googlegroups.com Sent: Tuesday, November 26, 2013 7:10:53 PM Subject: Re: [Puppet Users] get a *structured* version of the puppet agent output Who will share a report generator for the yaml reports

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
Puppet Labs: What report generators do you have and provide at your website so that we can report intelligently? Stuart On Nov 26, 2013, at 11:15 AM, R.I.Pienaar r...@devco.net wrote: - Original Message - From: Stuart Cracraft smcracr...@me.com To:

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Dan White
My apologies to all for the inappropriate response. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin Hobbes) - Original Message - From: R.I.Pienaar r...@devco.net To:

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Dan White
Reference: http://docs.puppetlabs.com/puppet/3/reference/format_report.html Start with this: #!/usr/bin/ruby require 'puppet' if defined?(ARGV) filename = ARGV.first if defined?(filename)

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Stuart Cracraft
Why is this not moderated? On Nov 26, 2013, at 11:21 AM, Dan White y...@comcast.net wrote: My apologies to all for the inappropriate response. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill

Re: [Puppet Users] get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
I'll try it after exiting this meeting. On Nov 26, 2013, at 11:27 AM, Dan White y...@comcast.net wrote: Reference: http://docs.puppetlabs.com/puppet/3/reference/format_report.html Start with this:

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Ken Barber
We don't moderate every message. Dan and I have discussed this offline, it was a joke done with bad form and as you can see he has made a formal apology, and I'm happy where this is right now. It doesn't have to become a bigger issue IMHO. ken. On Tue, Nov 26, 2013 at 7:28 PM, Stuart Cracraft

Re: [Puppet Users] Re: get a *structured* version of the puppet agent output

2013-11-26 Thread Christopher Wood
(inline) On Tue, Nov 26, 2013 at 10:43:31AM -0800, Stuart Cracraft wrote: We have this exact same requirement. Enforce a non-changing policy on the cloud, avoid automatic drift-prevention, await errors and reports, track down cause, fix root cause, apply puppet manifests to right

Re: [Puppet Users] Re: get a *structured* version of the puppet agent output

2013-11-26 Thread Stuart Cracraft
Understood. But, we have some real good troubleshooters here. And we want to get at core fixes. Not just log-examination, esoteric thought and bandaids. On Nov 26, 2013, at 12:49 PM, Christopher Wood christopher_w...@pobox.com wrote: (inline) On Tue, Nov 26, 2013 at 10:43:31AM

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Felix Frank
Me too. My off-list response to Dan was spam-filtered apparently. Anyhow, while I stand by the expressed sentiment, I should have delivered it with more tact. Apologies for the language and demeanor. On 11/26/2013 08:21 PM, Dan White wrote: My apologies to all for the inappropriate response.

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Rich Burroughs
I took the Puppet Fundamentals class a few months ago in Portland at Puppet Labs and it was great. I definitely recommend it. I already was using Puppet some in my day job but it gave me a lot more context. The instructor was very well qualified and was fielding some pretty advanced questions, he

[Puppet Users] noop = true and what for test?

2013-11-26 Thread Stuart Cracraft
Hi, When I put noop = true in /etc/puppet/puppet.conf on the node in question, I observe no changes. Great. Good But also, I see because of report = true absolutely zero information in the yaml regarding what would have been changed. Is there an equivalent to the above for test = true

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Stuart Cracraft
I took Puppet Fundamentals in LA last week and there were THREE instructors for a teacher/student ratio I haven't seen since private school. Way to go Luke and Nigel and reports On Nov 26, 2013, at 3:52 PM, Rich Burroughs r...@richburroughs.com wrote: I took the Puppet Fundamentals

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Nathan Valentine
Hey, Stephen. I point people here: https://puppetlabs.com/learn/library. Free self-directed videos about core Puppet concepts with similar content to the instructor-led courses. Great resource if a little hard to find on the website. -- --- Nathan Valentine - nat...@puppetlabs.com Puppet Labs

[Puppet Users] Warning: Unable to fetch my node definition, but the agent run will continue:

2013-11-26 Thread Shawn Parker
I am getting the following error when executing puppet agent --test from the node to force it to get its node definition [root@localhost puppet]# puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: Error 400 on SERVER: Failed to find

[Puppet Users] VMware and open source puppet

2013-11-26 Thread Dhanarajan Ponnurangam
Hi All, I am very new to puppet an vmware. I have a hardware server with ESX5.1 installed in it. I have a Linux server (Centos) running open source puppet. I need to create a VM on this hypervisor by using this puppet master. Can anyone please help me in understand the list of required