Re: [Puppet Users] Basics of Cloud Computing

2012-06-12 Thread Felix Frank
On 06/11/2012 07:34 PM, R. Tyler Croy wrote: > Not that my message is all that constructive either :) But it is: > - R. Tyler Croy > -- > Code: http://github.com/rtyler > Chatter: http://twitter.com/agentdero > rty...@jabber.org See, it broadcas

Re: [Puppet Users] file_line type issue, possible bug

2012-06-12 Thread Paul Tötterman
> > Depending on your sudo version you could also put snippets in > /etc/sudoers.d. This has the advantage of allowing each class to manage its > own sudoers file without any Puppet conflicts. > Make sure to implement some kind of ordering for the snippets. From the man-page: "Where there are m

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread Sans
Hi Jeff, Here is my *config.ru* (after adding the debug option): *## cat /etc/puppet/rack/config.ru* # a config.ru, for use with every rack-compatible webserver. > # SSL needs to be handled outside this, though. > > # if puppet is not in your RUBYLIB: > # $:.unshift('/opt/puppet/lib') > > $0 =

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread Sans
Hi Jo, Does it really matter? For me it's working with either of these ports - 8140 or 8086. Not really sure about it but just noticed that. Cheers!! On Monday, June 11, 2012 10:12:34 PM UTC+1, Jo wrote: > > > Are the puppet clients configured to talk to the puppet master on port > 8086? > > Y

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread denmat
Hi San, Do you still have your httpd puppet master vhost listening on the non standard port? That is fine, as long as you configure your clients like has been mentioned before. Puppet clients will try to reach port 8140 unless you specify otherwise. In your config.ru you can see how passenger cal

[Puppet Users] Dashboard with RackbaseURI / and RailsAutoDetect off

2012-06-12 Thread Chris Lee
Hi all I am testing an installation on SLC 6.2 I am trying to configure my Vhost so that RailsAutoDetect is set to off, and RackBaseURI / However I keep in getting an error as follows: *Error message:* No such file or directory - config.ru *Exception class:* Errno::ENOENT *Application r

Re: [Puppet Users] Contributing pieces of a global value from multiple places

2012-06-12 Thread Felix Frank
Hi, On 06/11/2012 09:49 PM, Michael Smith wrote: > Hi, > > I'm using Puppet to configure SuSEfirewall2. I have a class that lets me > set a list of ports to open in a variable in > /etc/sysconfig/SuSEfirewall2. It's just a wrapper around an Augeas > resource. > > How can I make it so multiple cl

[Puppet Users] Determining the syslog provider

2012-06-12 Thread Julien C.
Hi, I'm trying to make all my servers send their logs to a central server. Which seems quite simple, at first. My problem is that my servers are on different versions of different operating systems. And each of them has a different syslog default provider (syslog, rsyslog, syslog-ng...). Which

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread Felix Frank
Hi, On 06/12/2012 02:12 PM, Julien C. wrote: > Hi, > > I'm trying to make all my servers send their logs to a central server. > Which seems quite simple, at first. > > My problem is that my servers are on different versions of different > operating systems. > And each of them has a different sys

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread maillists0
On Tue, Jun 12, 2012 at 8:12 AM, Julien C. wrote: > Hi, > > I'm trying to make all my servers send their logs to a central server. Which > seems quite simple, at first. > > My problem is that my servers are on different versions of different > operating systems. > And each of them has a different

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread Julien C.
Thanks to both of you for your answers. I am aware of the operatingsystem and release variables, but I can't rely on them because servers don't always use the default syslog provider, as stated in my original post. I can't enforce the same provider on every node because it would destroy any cus

[Puppet Users] Re: Contributing pieces of a global value from multiple places

2012-06-12 Thread jcbollinger
On Jun 11, 2:49 pm, Michael Smith wrote: > Hi, > > I'm using Puppet to configure SuSEfirewall2. I have a class that lets me > set a list of ports to open in a variable in > /etc/sysconfig/SuSEfirewall2. It's just a wrapper around an Augeas resource. > > How can I make it so multiple classes can

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread Sans
Hi Den, Hi San, > > Do you still have your httpd puppet master vhost listening on the non > standard port? That is fine, as long as you configure your clients like has > been mentioned before. Puppet clients will try to reach port 8140 unless > you specify otherwise. > Although I've configur

[Puppet Users] Re: How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread jcbollinger
On Jun 12, 3:40 am, Sans wrote: > Does it really matter? For me it's working with either of these ports - > 8140 or 8086. Not really sure about it but just noticed that. Cheers!! [...] > On Monday, June 11, 2012 10:12:34 PM UTC+1, Jo wrote: > > > Are the puppet clients configured to talk to the

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread Darin Perusich
On SuSE systems the init script determines which syslog daemon by the value of SYSLOG_DAEMON in /etc/sysconfig/syslog, the values can be "syslogd", "syslog-ng", "rsyslogd" or "" for autodetect. You should be able to leverage those to determine which logger to use. -- Later, Darin On Tue, Jun 12,

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread Felix Frank
On 06/12/2012 02:45 PM, Julien C. wrote: > > I need to know which is the running logger and add my configuration in > its config files. > The first step to do this is to identify it, hence this post's title. Huh, well the most canon apprach is custom facts: http://docs.puppetlabs.com/guides/custo

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread Alex
On 06/12/2012 02:45 PM, Julien C. wrote: Thanks to both of you for your answers. I am aware of the operatingsystem and release variables, but I can't rely on them because servers don't always use the default syslog provider, as stated in my original post. I can't enforce the same provider on ev

[Puppet Users] puppetdb setup issue

2012-06-12 Thread Antidot SAS
Hi everyone, I am trying to setup the new puppetdb on my environment (currently it worked great with mysql databases). All the setup was made by package for debian squeeze and puppet is used with passenger. Here are the configuration files: -- cat /etc/puppetdb/conf.d/jetty.ini [jetty] # Hostnam

[Puppet Users] Adding files to file server on Puppet Master from a client

2012-06-12 Thread Mark Baxter
HI. Firstly, I'm bound to be doing something utterly basically wrong here, so if I am I apologise. Right now I have a fairly simple setup where the JAR files for a Weblogic-based application server are stored in the file server on my Puppet Master. I run scripts on the client that downloads th

Re: [Puppet Users] system users class hogging whole cpu

2012-06-12 Thread Azfar Hashmi
Hi, Sorry I forgot to add the code, below is my class. class std_debian_users { #We create users users::useraccount { "user1": ensure => present, fullname => "user", password => '$6$UCKmcpzC$.bgwFSgNNaauzWk7WUyO9dohTRRy5Li.Xd0KddJxICEECMESAbt1XThDc770V1hYiyGBdc5vekq5N4n

Re: [Puppet Users] puppet on Xen Server

2012-06-12 Thread John Guthrie
Martin, Thank you for providing that information. We were wondering which repository you were using to get those RPMs. We used yum to search for those RPMs on XenServer 5.6 (the earliest that we have) and we weren't able to find any of those RPMs. We weren't able to find them on our distri

[Puppet Users] Remove file after using

2012-06-12 Thread Despite
Hello, I'm pretty new to using puppet, I have an idea for what I think I want, but I'm pretty sure it's not possible. So, if not, I'm looking for other approaches. I'm writing a module for tripwire. Tripwire takes a plaintext policy file, encrypts it and adds it to a database on the system.

[Puppet Users] how to refresh ssh/authorized_keys file content ?

2012-06-12 Thread eduardo
Hi all, How to refresh ssh/authorized_keys file content ? I'm trying massive loading keys. I need refresh authorized_keys file content. I try delete file before call ssh_authorized_key : exec { "del_${user_local}_authorized_keys": command => "rm /home/$user_local/.ssh/

[Puppet Users] "Best" way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-12 Thread Wolf Noble
So… I'm coming across a situation where I foresee myself having a collection of related k/v pairs in hiera. I want to create a thing… lets say a yumrepo for example's sake, but this same idea translates to a vhost, a web app configuration , a virtual domain, etc. lets assume a hierarchy of:

[Puppet Users] Trying to get tagmail to work

2012-06-12 Thread Jason Knudsen
Hey guys, Relatively new to Puppet and I'm trying to setup tagmail to send all emails to me: at one point I'll filter that down to errors and whatnot (based on tags) but for now I just want to get it working. Master Puppet server is setup with Passengers, all works well: /etc/puppet/puppet.con

[Puppet Users] "Could not prepare for execution: The certificate retrieved from the master does not match the agent's private key."

2012-06-12 Thread Scott Merrill
I'm trying to set up a multi-tier Puppet Master configuration. A top-level Puppet Master serves subordinate Puppet Masters, which in turn serve the nodes. The top-level Master is also the Certificate Authority for the entire infrastructure. I'm using RHEL 6.1, Puppet 2.7.14, and mod_passenger. I

Re: [Puppet Users] Trying to get tagmail to work

2012-06-12 Thread Darin Perusich
Add tagmail to reports in puppet.conf on the server. -- Later, Darin On Tue, Jun 12, 2012 at 2:49 PM, Jason Knudsen wrote: > Hey guys, > > Relatively new to Puppet and I'm trying to setup tagmail to send all emails > to me: at one point I'll filter that down to errors and whatnot (based on > ta

Re: [Puppet Users] Trying to get tagmail to work

2012-06-12 Thread Jason Knudsen
Hey Darin, Appreicate the quick response. It's there, in /etc/puppet/puppet.conf on the master: [master] reports = tagmail ssl_client_header = SSL_CLIENT_S_DN ssl_client_verify_header = SSL_CLIENT_VERIFY On Tuesday, June 12, 2012 2:58:50 PM UTC-4, Darin Perusich wrote: > > Add tagma

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread Jo Rhett
Well you are telling me that if you don't run the puppetmaster service (which runs on 8140) then your clients can't connect. That's because the clients are trying to connect on 8140 but your passenger instance is running on 8086. On Jun 12, 2012, at 1:40 AM, Sans wrote: > Does it really matter?

Re: [Puppet Users] Trying to get tagmail to work

2012-06-12 Thread Jo Rhett
Quick test: can you send mail from this system at all? I've seen this kind of problem on CentOS when postfix was installed but not set up to be 'mta' in alternatives for instance. This meant that /usr/sbin/sendmail went nowhere... On Jun 12, 2012, at 11:49 AM, Jason Knudsen wrote: > Relatively

Re: [Puppet Users] Adding files to file server on Puppet Master from a client

2012-06-12 Thread Brian Gallew
So, yeah, you're doing it wrong. Really, you probably want to be running something like archiva and have the clients install from there, but I'm going to guess that's not really possible for you. I presume that "done by a script being run (puppetd -onetime) but it should be run on the client" rea

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread Sans
Sorry Jo! I kninda misunderstood a couple of things and you are right - that's exactly what was happening. Den, Jeff and others, It seems like I've made a bit progress in this regard - now, if I run puppet agent -t on the agent, it prints a lot of things in html format. Any idea, what I've got

Re: [Puppet Users] Trying to get tagmail to work

2012-06-12 Thread Jason Knudsen
Yeah -- checked that already, sorry forgot to mention that. Setup with postfix and a relay. Running /usr/sbin/sendmail m...@email.com gets delivered properly On Tuesday, June 12, 2012 3:43:48 PM UTC-4, Jo wrote: > > Quick test: can you send mail from this system at all? I've seen this > kind o

[Puppet Users] puppet-dashboard missing CSS/JS references in Apache

2012-06-12 Thread Michael Altfield
Hi, I finally got puppet-dashboard installed and working under Apache (v2.2.15) on my CentOS 6 Puppet Master. It looks fine when running under WEBrick, but when I run it under apache, it looks terrible (read: the HTML source is different for some reason, leaving out some javascript & css refere

Re: [Puppet Users] puppet-dashboard missing CSS/JS references in Apache

2012-06-12 Thread Scott Merrill
On Tue, Jun 12, 2012 at 4:02 PM, Michael Altfield wrote: > I finally got puppet-dashboard installed and working under Apache > (v2.2.15) on my CentOS 6 Puppet Master. It looks fine when running under > WEBrick, but when I run it under apache, it looks terrible (read: the HTML > source is different

[Puppet Users] Re: puppetdb setup issue

2012-06-12 Thread Nick Lewis
On Tuesday, June 12, 2012 7:39:22 AM UTC-7, A_SAAS wrote: > > Hi everyone, > > I am trying to setup the new puppetdb on my environment (currently it > worked great with mysql databases). All the setup was made by package for > debian squeeze and puppet is used with passenger. > > > Here are the c

Re: [Puppet Users] puppet-dashboard missing CSS/JS references in Apache

2012-06-12 Thread Michael Altfield
Ah, the files were owned by puppet-dashboard:puppet-dashboard 760. I changed them to apache:apache 600, and everything works. Thanks! On Tuesday, June 12, 2012 4:14:11 PM UTC-4, Scott Merrill wrote: > > On Tue, Jun 12, 2012 at 4:02 PM, Michael Altfield > <.@gmail.com> wrote: > > I finally got p

Re: [Puppet Users] puppet-dashboard missing CSS/JS references in Apache

2012-06-12 Thread Michael Altfield
Also did a: # add user apache to the puppet-dashboard group to resolve https://projects.puppetlabs.com/issues/9676 gpasswd -a apache puppet-dashboard just in case On Tuesday, June 12, 2012 5:02:56 PM UTC-4, Michael Altfield wrote: > > Ah, the files were owned by puppet-dashboard:puppet-dashboa

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread Julien Cornuwel
I think you are right (all three of you). I need to find out how to find it in other OS families (debian & redhat should be enough) and write a custom fact to get the data in my manifests. Thanks for the pointers. 2012/6/12 Alex : > Would a custom fact work in this case?  I am not a ruby coder, bu

Re: [Puppet Users] Determining the syslog provider

2012-06-12 Thread Ramin K
On 6/12/2012 2:39 PM, Julien Cornuwel wrote: I think you are right (all three of you). I need to find out how to find it in other OS families (debian & redhat should be enough) and write a custom fact to get the data in my manifests. Thanks for the pointers. The downside to a custom fact is th

[Puppet Users] members of collected resources

2012-06-12 Thread Adam Heinz
Is it possible to get the value of a member variable on a collected resource? Something like Host <<| name == 'nagios' |>> $nagiosip = Host["nagios"]::ip Gepetto has red lined all of my guesses so far. -- You received this message because you are subscribed to the Google Groups "Puppe

[Puppet Users] Re: "Best" way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-12 Thread jcbollinger
On Tuesday, June 12, 2012 1:48:09 PM UTC-5, Wolf Noble wrote: > > So… I'm coming across a situation where I foresee myself having a > collection of related k/v pairs in hiera. I want to create a thing… lets > say a yumrepo for example's sake, but this same idea translates to a > vhost, a web

Re: [Puppet Users] Re: "Best" way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-12 Thread Wolf Noble
Hi John, Thanks a bunch. This seems incredibly sensible. If I'm understanding your suggestion properly, I interpret the best thing to do as something like: mymodule::repos { $region_repos = hiera('region_repos' , '' ) $dc_repos = hiera('dc_repos' , '' ) if $region_repos { create_resourc

[Puppet Users] Nagios hostgroup collation

2012-06-12 Thread Jared Ballou
Hi everyone, I am reconsidering how I am using the Puppet nagios functionality, at the moment I am creating one service for each check on each host. A lot of them are identical, and would be better tied to hostgroups to simplify my config. Namely, I have about 5,000 checks in there now which will

Re: [Puppet Users] puppetdb indicated only facts were replaced, no sign of catalog

2012-06-12 Thread Deepak Giridharagopal
On Tue, Jun 12, 2012 at 5:38 PM, Steven Truong wrote: > Dear all, > > I have this setup on Ubuntu 12.04 and using puppetmaster/puppet 2.7.14 and > puppetdb/puppetdb-terminus 0.9.0 from puppetlabs. > > My puppetmaster also run puppetdb. I also use hiera in this setup. > > hadoop4 is puppetmaster

Re: [Puppet Users] Nagios hostgroup collation

2012-06-12 Thread Brian Gallew
As one who has previously used Puppet to drive Nagios configurations (and attempted to contribute patches to Puppetlabs), allow me offer a somewhat fabulous alternative: check_mk. check_mk is a package that can be used to generate your Nagios configuration in a programmatic fashion. Here's how it

[Puppet Users] Re: MySQL settings for puppet dashboard

2012-06-12 Thread Kai
Nobody an idea? My actual solution is to send "COMMIT;" to the MySQL Server and then run "puppet agent --test" what leads to "Background Tasks - All systems go". But that can't be The Solution. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group