[Puppet Users] Re: Parsing Puppet YAML log in Python

2012-03-19 Thread EmmEff
Thanks! I had just figured this out myself about a week ago :) I didn't think to post to the group. On Thursday, March 15, 2012 10:07:44 PM UTC-4, Sharuzzaman Ahmat Raslan wrote: > > Hi all, > > Yesterday I emailed Kirill Simonov, the creator of PyYAML, to get help to > parse Puppet YAML file

[Puppet Users] Re: Avoiding duplicate definitions

2012-03-19 Thread Mike Frisch
On Tuesday, March 6, 2012 12:53:57 PM UTC-5, jcbollinger wrote: > > employ. I think it's better, though, to just let the compilation > failures happen -- use them to detect where you need to patch up > conflicts between modules. > > I agree with this, however I have a scenario where the end-u

[Puppet Users] How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread EmmEff
How to handle this scenario? Assume that all three apps are defined in three separate modules. All three modules are mutually exclusive with the exception that they require the same packageA to be installed. Pseudocode: class module1::app1 { package { 'packageA': ; } } class mo

[Puppet Users] Use netgroups as classes

2012-03-19 Thread Nikhil Mulley
Hi, In my puppet configuration, to deploy certain files to group of nodes, everytime either a new class of node is being used or the node class has to typically extended to many other machines and is likely more typing. The more typing can generally result in anomalies/errors in hosts. For exa

Re: [Puppet Users] Use netgroups as classes

2012-03-19 Thread Russell Van Tassell
It's a bit of a change, but you're probably best just looking at ENCs (External Node Classifiers)... http://docs.puppetlabs.com/guides/external_nodes.html As with anything else, there's a half dozen (if not more) ways to do it. Some of the "gotchas" include making the ENC a single point of failur

AW: [Puppet Users] How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread Bernd Adamowicz
You need virtual resources: 1. Define package A in a virtual way: @package { "A" : ensure => 'present', } 2. Then realize it wherever needed: class module2::app2 { realize(Package["A"]) # your stuff here... } Cheers, B

[Puppet Users] Re: Puppet Dashboard - Directory Index Forbidden

2012-03-19 Thread theirpuppet
Thanks, however this still doesn't work. >From error log: [Mon Mar 19 12:29:00 2012] [error] [client X.X.X.X] Directory index forbidden by Options directive: /usr/share/puppet-dashboard/public/ And the current apache configuration: root:~# cat /etc/apache2/sites-enabled/010-dashboard.conf # UP

[Puppet Users] Re: Need advice how to architect solution for /etc/resolv.conf

2012-03-19 Thread jcbollinger
On Mar 16, 1:32 pm, Florian Koch wrote: > this sounds this is a job for > hiera:http://puppetlabs.com/blog/the-problem-with-separating-data-from-pupp...http://puppetlabs.com/blog/first-look-installing-and-using-hiera/ My thought exactly. Furthermore, On Mar 16, 11:52 am, "chris_sny...@sra.co

[Puppet Users] Re: Mind boggling yum provider issue...

2012-03-19 Thread jcbollinger
On Mar 16, 9:25 am, Peter Berghold wrote: > Figured this one out finally. I'm glad you got it working. > Some background first:  The system in question is running the ISPManager > control panel is and is my shared hosting platform. I mention that because > apparently during the installation

[Puppet Users] Re: How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread jcbollinger
On Mar 19, 4:29 am, Bernd Adamowicz wrote: > You need virtual resources: Or else factor out the package to a separate class that all the others include: class module0::package_a { package { 'packageA': ; } } class module1::app1 { include 'module0::package_a' # ... } class m

Re: [Puppet Users] Re: How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread Markus Falb
On 19.3.2012 14:11, jcbollinger wrote: > > > On Mar 19, 4:29 am, Bernd Adamowicz > wrote: >> You need virtual resources: > > Or else factor out the package to a separate class that all the others > include: But which is better? Is it just a matter of personal preference? What advantages one ga

[Puppet Users] Re: Use netgroups as classes

2012-03-19 Thread jcbollinger
On Mar 19, 3:05 am, Nikhil Mulley wrote: > Hi, > > In my puppet configuration, to deploy certain files to group of nodes, > everytime either a new class of node is being used or the node class has to > typically extended to many other machines and is likely more typing. The > more typing can gen

Re: [Puppet Users] Re: How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread Luke Bigum
The use of a class to control Apache is more flexible - it allows you to encapsulate any common Apache logic into it's own module that your other classes don't need to worry about. If you use virtual resources for example and you introduce Debian/Ubuntu operating systems, you have to go to all

[Puppet Users] Re: Avoiding duplicate definitions

2012-03-19 Thread jcbollinger
On Mar 18, 8:29 pm, Mike Frisch wrote: > On Tuesday, March 6, 2012 12:53:57 PM UTC-5, jcbollinger wrote: > > > employ.  I think it's better, though, to just let the compilation > > failures happen -- use them to detect where you need to patch up > > conflicts between modules. > > I agree with th

[Puppet Users] Re: Problem with stored configs / Invalid unicode escaping

2012-03-19 Thread jcbollinger
On Mar 18, 9:53 am, Dennis Hoppe wrote: > i did some debugging and found out that with PostgreSQL 8.4 everything > works as expected. > > If i use PostgreSQL 9.1, the following lines are responsible for the > error message. > >     PS1='${debian_chroot:+($debian_chroot)}\[<%= t_color > -%>\]\u@

Re: [Puppet Users] Re: target definition bug?

2012-03-19 Thread Antidot SAS
Hi, My puppet agent was running as root, anyway to bypass this issue I just have to create a File ressource for .ssh/authorized with the user's uid and user's gid. And now no problem. Thx. On Thu, Mar 15, 2012 at 2:01 PM, jcbollinger wrote: > > > On Mar 14, 10:13 am, Antidot SAS wrote: > >

Re: [Puppet Users] Re: Puppet Dashboard - Directory Index Forbidden

2012-03-19 Thread Antidot SAS
HI, I had exactly the same issue last week when I wanted to create a vhost for the puppet dashboard, I finally wasn't able to resolve the issue. And if you change the directive in '+Indexes', the ruby code is not correctly executed. Any help is alos appareached. Regards, JM On Mon, Mar 19, 201

[Puppet Users] Re: node inheritance

2012-03-19 Thread Alessandro Franceschi
Just a quick note, not strictly related to your question Be careful when including classes with nodes' inheritance: if you set a variable, for example, in the node "web" that is used by classes included in the baseline class, that variable' value will be ignored. It's a typical "variables scoping

[Puppet Users] [Arrray] grep -v

2012-03-19 Thread Antidot SAS
Hi everyone, I am trying to simulate the 'grep -v' behavior in an array: Ex: vgrep(['aaa','bbb','ccc','aaaddd'], 'aaa') Would return: ['bbb', 'ccc'] So I tried to use ruby to do it: normally the '-' operation should be enough (http://www.ruby-doc.org/core-1.9.3/Array.html#method-i-2D)

Re: [Puppet Users] Disable polling interval

2012-03-19 Thread Adam Heinz
Have you looked into using the 'schedule' type to prevent the restarts from happening during business hours? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from

[Puppet Users] Re: template/files - ignoring lines

2012-03-19 Thread Gamon
Thanks for all your answers and suggestions. So, what happens is that I want to push a file from the master to a client. But the problem is that after starting the service that reads that file, it appends one line to it, which is an authorization token. Like this: #1 file is pushed from the maste

Re: [Puppet Users] Re: Puppet Dashboard - Directory Index Forbidden

2012-03-19 Thread Felipe Salum
I had the same issue too, so I had to make a few changes on my virtualhost to work. Try changing your Options to None and confirm that your PassengerRoot and module path are correct. I'm attaching my working virtualhost for you to compare: LoadModule passenger_module /usr/lib/apache2/modules/mod

[Puppet Users] Re: template/files - ignoring lines

2012-03-19 Thread jcbollinger
On Mar 19, 10:11 am, Gamon wrote: > Thanks for all your answers and suggestions. > > So, what happens is that I want to push a file from the master to a > client. But the problem is that after starting the service that reads > that file, it appends one line to it, which is an authorization token

Re: [Puppet Users] Re: Puppet Dashboard - Directory Index Forbidden

2012-03-19 Thread theirpuppet
And like magic, I made three changes, and it works. Thanks a lot! First, because mod_passenger was being loaded already by the standard Apache config, I just let Apache use it. - LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so + #LoadModule pass

[Puppet Users] Re: [Arrray] grep -v

2012-03-19 Thread Krzysztof Wilczynski
Hi, So it doesn't work this way any thoughts? > [...] Would that work for you: https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppet/parser/functions/reject.rb ? KW -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view

[Puppet Users] Unknown number of multiple templates -> File?

2012-03-19 Thread Bjørge Solli
Hi! Currently working on a proposal for implementation and are wondering if anyone could help me solve this one specific situation: I have a dir that I need to put on my hosts, it changes over time and has some template files. Without the templates I would do something like this: file { "/path/

[Puppet Users] mcollective bits

2012-03-19 Thread Douglas Garstang
I've always found the mcollective docs at http://docs.puppetlabs.com/mcollective/reference/basic/gettingstarted.html very confusing. What _exactly_ goes on the client (i.e. the remote system)? The docs talk about editing both the server.cfg and the client.cfg files. The server.cfg file is part of

Re: [Puppet Users] Re: [Arrray] grep -v

2012-03-19 Thread Antidot SAS
thx a lot... it helps On Mon, Mar 19, 2012 at 6:31 PM, Krzysztof Wilczynski < krzysztof.wilczyn...@linux.com> wrote: > Hi, > > > So it doesn't work this way any thoughts? >> > [...] > > Would that work for you: > https://github.com/kwilczynski/puppet-functions/blob/master/lib/puppet/parser/functi

Re: [Puppet Users] Re: [Arrray] grep -v

2012-03-19 Thread Krzysztof Wilczynski
Hi, thx a lot... it helps > [...] I do hope that it fulfils your use case :) KW -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/cDL3aXljws0J. To post to

[Puppet Users] Puppet equivalent for mysql['tunable'] in chef

2012-03-19 Thread Christophe L
Hello, Could you please tell us what is the way to do easily "tuning" of the my.cnf conf file in puppet, as it is possible in chef ? Is it already implemented in mysql modules /classes for puppet ? cf. https://github.com/fnichol/chef-mysql mysql['tunable']['key_buffer'] = "250M" mysql['t

[Puppet Users] multi-line key/value pairs in Puppet Dashboard?

2012-03-19 Thread Scott Merrill
We'd like to control, among other files, /etc/sysctl.conf with Puppet. We have a baseline for this file on all our servers, but frequently some of our applications require additional tweaks. These tweaks are generally more than a single line. I know that we could create a class in our module repos

Re: [Puppet Users] Puppet equivalent for mysql['tunable'] in chef

2012-03-19 Thread Adam Heinz
puppet 2.6+, derived from https://github.com/camptocamp/puppet-mysql $mycnf = $::operatingsystem ? { /RedHat|Fedora|CentOS/ => "/etc/my.cnf", default => "/etc/mysql/my.cnf", } augeas { $mycnf: context => "/files$mycnf", changes => [ "set mysqld/key_buffer 250M",

[Puppet Users] dashboard as enc not working

2012-03-19 Thread Mark Leary
I'm trying to setup dashboard as a node classifier w/puppet 2.6.14. Not sure why this is not working... In puppet.conf on the master I have: node_terminus = exec external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http:// localhost /usr/share/puppet-dashboard/bin/external_node The agent's

Re: [Puppet Users] Use netgroups as classes

2012-03-19 Thread flex
you can use external nodes to do that, see http://docs.puppetlabs.com/guides/external_nodes.html just using a script to generate the nodes' info. On Mon, Mar 19, 2012 at 4:05 PM, Nikhil Mulley wrote: > Hi, > > In my puppet configuration, to deploy certain files to group of nodes, > everytime eit

Re: [Puppet Users] How to handle multiple definitions of the same package in multiple included modules?

2012-03-19 Thread flex
you can put the package resource in a single class, and include this class in app[1-3], alternatively, try virtual resources, see: http://docs.puppetlabs.com/guides/virtual_resources.html On Mon, Mar 19, 2012 at 9:15 AM, EmmEff wrote: > How to handle this scenario? > > Assume that all three app

[Puppet Users] spaceship operator with a regex!?

2012-03-19 Thread Guy Matz
Hi! Anyone knoe if it's possible to realize resources with the spaceship operator checking for regex equality? Something like: User<| group =~ /(qa|prod)/ |> If not, anyone know of another way to do this sort of thing? Thanks a lot! Guy -- You received this message because you are subscribed

[Puppet Users] Puppet master on Centos 5.4 box

2012-03-19 Thread thinkwell
Hello everyone, I'm trying to setup a Puppetmaster on a Centos 5.4 box, following James Turnbull's "Pro Puppet" book. Everything's working fine, until I get to the part about running Passenger, which I'll need to do. However, to install rake, I had to upgrade ruby from the default 1.8.5. I tried

Re: [Puppet Users] spaceship operator with a regex!?

2012-03-19 Thread Nan Liu
On Mon, Mar 19, 2012 at 2:58 PM, Guy Matz wrote: > Hi!  Anyone knoe if it's possible to realize resources with the spaceship > operator checking for regex equality? > > Something like: > > User<| group =~ /(qa|prod)/ |> > > If not, anyone know of another way to do this sort of thing? No regex sup

Re: [Puppet Users] Puppet master on Centos 5.4 box

2012-03-19 Thread Craig White
On Mar 19, 2012, at 1:36 PM, thinkwell wrote: > Hello everyone, > > I'm trying to setup a Puppetmaster on a Centos 5.4 box, following > James Turnbull's "Pro Puppet" book. Everything's working fine, until I > get to the part about running Passenger, which I'll need to do. > > However, to instal

Re: [Puppet Users] Re: [Arrray] grep -v

2012-03-19 Thread Krzysztof Wilczynski
Hi, Just wanted to let you know, that I have added "select.rb" to the "reject.rb", which is the opposite (to some extent). I hope you find them useful :) KW -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web v

[Puppet Users] extlookup can't match key.

2012-03-19 Thread Douglas Garstang
I have a 2.7.6 server and a 2.6.4 client. I'm trying to use ext_lookup. site.pp: $extlookup_datadir = "/etc/puppet/manifests/extdata" $extlookup_precedence = ["%{fqdn}", "domain_%{domain}", "common"] /etc/puppet/manifests/extdata/common.csv: key1,var1: manifest has: $var1 = extlookup(“key1”, "Un

[Puppet Users] Re: "SSLv3 read server certificate B: certificate verify failed." -- Not time related

2012-03-19 Thread glm
Hi, I am having a similar problem but I am trying to run puppetd -t on the server as a client of itself. This works on our other puppet master. Like the poster above, I have cleared /var/lib/puppet/ssl a dozen times and time cannot be an issue because client and server are the same machine.

Re: [Puppet Users] extlookup can't match key.

2012-03-19 Thread Gary Larizza
On Tue, Mar 20, 2012 at 11:35 AM, Douglas Garstang wrote: > I have a 2.7.6 server and a 2.6.4 client. I'm trying to use ext_lookup. > > site.pp: > $extlookup_datadir = "/etc/puppet/manifests/extdata" > $extlookup_precedence = ["%{fqdn}", "domain_%{domain}", "common"] > Try using Puppet variables:

[Puppet Users] Re: 32bit and 64bit version of a package

2012-03-19 Thread Alan Laird
On Feb 27, 3:57 pm, jcbollinger wrote: > > > On Thu, Feb 23, 2012 at 5:57 PM, AlanLaird wrote: > > > > I'm trying to write a recipe to install the latest libstdc++ in both > > > > 32bit and 64bit flavors and running into issues.  Yum only wants to > > > > install the 64bit version if I do: > > > >

Re: [Puppet Users] multi-line key/value pairs in Puppet Dashboard?

2012-03-19 Thread Jeff McCune
On Mon, Mar 19, 2012 at 3:12 PM, Scott Merrill wrote: > We'd like to control, among other files, /etc/sysctl.conf with Puppet. > We have a baseline for this file on all our servers, but frequently > some of our applications require additional tweaks. These tweaks are > generally more than a singl

[Puppet Users] Cloud provisioning

2012-03-19 Thread Denmat
Hi list, Quick general question, what's the current best way to deploy to an Amazon VPC (without VPN to central puppet master)? Deliberately vague to get wide results :) Has anyone got good posts on this? TIA Den -- You received this message because you are subscribed to the Google Groups "

Re: [Puppet Users] Cloud provisioning

2012-03-19 Thread Brian Gupta
Well you can always assign Elastic IPs to your VPC instances, if they are on a single public subnet. (Depending on how you have things configured.) Also, for a private subnet, you can setup an internet gateway instance that can handle outgoing NAT for you. Other than that, some fancier options ar

Re: [Puppet Users] Cloud provisioning

2012-03-19 Thread Denmat
Thanks Brian, We will be running a public subnet and at least one private subnet - traditional web/database set up essentially. Web servers will be behind a aws load balancer and there will be at least one admin host in the public subnet for access. Private hosts will access the outside world

Re: [Puppet Users] Cloud provisioning

2012-03-19 Thread Brian Gupta
On Tue, Mar 20, 2012 at 1:31 AM, Denmat wrote: > Thanks Brian, > NP. First let me say there are about 10 ways to skin a cat here, so many folks might have different advice. > We will be running a public subnet and at least one private subnet - > traditional web/database set up essentially. Web