Re: [Puppet Users] Recommendation for module-level and full integration testing puppet configuration.

2011-11-04 Thread Nikolay Sturm
* Brian Troutwine [2011-10-27]: > While this setup works I hate it. It's tedious, not automated and > error prone. I wonder, what are the puppet configuration testing > experiences of other on this list? What have you gotten cobbled > together, what works and what does not? I'm especially intereste

Re: [Puppet Users] Puppetrun/kick : Possibility to choose environment

2011-11-04 Thread Andrew Hendry
Couldn't figure this one out either. It would be great to run a kick and pass it a git tag, then have the master notice that and setup some kind of temporary environment to serve that tag. For the moment we have a bunch of different environments, eg projectA, projectB, projectC and the clients in

Re: [Puppet Users] useradd question

2011-11-04 Thread Andrew Hendry
Hi Peter, This looks like some kind of issue in the ldap provider when its searching for the user. Is the system using ldap? does git user exist in ldap? You might need to log an issue with the trace below. On Tue, Nov 1, 2011 at 8:57 PM, Peter Horvath wrote: > I have other classes and require b

Re: [Puppet Users] useradd question

2011-11-04 Thread Peter Horvath
No, git user is a local user that i am trying to create an define as requirement for other resource types On 4 November 2011 08:32, Andrew Hendry wrote: > Hi Peter, > > This looks like some kind of issue in the ldap provider when its > searching for the user. > Is the system using ldap? does git

Re: [Puppet Users] Re: Unable to define order of modules

2011-11-04 Thread Baptiste Grenier
Hello, Le 03/11/11 à 15:45, jcbollinger téléscripta : > On Nov 2, 9:57 am, Baptiste Grenier wrote: > > Le 31/10/11 16:09, jcbollinger t l scripta : > > > On Oct 28, 10:07 am, Baptiste Grenier > > > wrote: > > > You have an evaluation order problem, and you have tried to fix it > > > by constrai

Re: [Puppet Users] Re: What's the canonical way to enforce permissions/ownership on a directory subtree?

2011-11-04 Thread Christopher Wood
On Thu, Nov 03, 2011 at 10:39:29PM -0700, Robert Atkins wrote: > On Nov 2, 7:33 pm, Christopher Wood > wrote: > > It's worth mentioning that find -exec this way forks a separate copy of > > find for each file. You'll notice how much slower this is on a really large > > set of files (possibly lar

[Puppet Users] problem with templates

2011-11-04 Thread Matt
I am having an issue with templates that I cant quite figure out why it is having an issue. I am using ruby dsl to read a template from a database and it keeps having problems with anything other than <%= var %> type definitions. I even went as far cutting and pasting from the puppet online docum

[Puppet Users] Re: problem with templates

2011-11-04 Thread Matt
What is interesting to note is if I change the template to <% scope.to_hash.keys.each do |k| %> <%= k %> <%= "\n" %><% end %> The error goes away. I probably should have said this is related to Ruby DSL inline template function, I havent been able to reproduce this with erb files stored locally.

[Puppet Users] Storeconfigs and nagios and foreman

2011-11-04 Thread Joshua Vaughn
All- Poking around in the bug database it looks like storeconfigs is being actively worked on. I am using 2.7.6 on my master as well as all the clients. I have clients boot , start puppet and get a signed cert via auto signing. The nagios module (and currently the only thing puppet does) complain

[Puppet Users] Ruby Code in Puppet Class.....

2011-11-04 Thread Arenstar
Simply put.. I need the reverse of an ipaddress for a in-addr.arpa.. Puppet has a function i can find that will simply execute ruby code, nor bash.. $ipaddress comes from facter $reversenetwork = $ipaddress.split('.')[0,3].reverse.join('.') file { "/opt/lp/dnscache-internal/root/servers/$reverse

[Puppet Users] Default sysctl.conf with augeas.

2011-11-04 Thread Douglas Garstang
I have a tricky problem. I'm going to use Augeas, like here http://projects.puppetlabs.com/projects/1/wiki/Puppet_Augeas#/etc/sysctl.conf to maintain sysctl.conf. However, since iptables is already disabled, when I add more lines to sysctl.conf with augeas and run sysctl -p, the following lines (wh

Re: [Puppet Users] Incorrect "architecture" fact value during catalog run

2011-11-04 Thread Adrien Thebo
Okay, that's seriously weird. The only thing that comes to mind is that running facter on the command line is using one version of facter, and puppet's using another. Could you post the output of facter and puppet with the architecture, operatingsystem, and facterversion facts? On Thu, Nov 3, 2011

Re: [Puppet Users] Incorrect "architecture" fact value during catalog run

2011-11-04 Thread Daniel Pittman
You can see results like this if you have the same fact in multiple places; one thing to check would be what `facter --puppet` returns, since that includes any facts that were sent to the client through pluginsync. Daniel On Fri, Nov 4, 2011 at 12:34, Adrien Thebo wrote: > Okay, that's seriously

[Puppet Users] Re: problem with templates

2011-11-04 Thread Matt
I figured out the problem, which is a different behavior from Puppet DSL. Puppet DSL converts the entries entered into inline_template into an array based on comma but the Ruby DSL does not do this. if I make the inline_template argument like below :content => inline_template([mytemplate]) it wo

[Puppet Users] Re: Ruby Code in Puppet Class.....

2011-11-04 Thread Arenstar
Now i feel stupid $reversenetwork= inline_template("<%= '$ipaddress'.split('.') [0,3].reverse.join('.')  %>") FTW! :D On Nov 4, 7:42 pm, Arenstar wrote: > Simply put.. > > I need the reverse of an ipaddress for a in-addr.arpa.. > Puppet has a function i can find that will simply execute ruby c

Re: [Puppet Users] Ruby Code in Puppet Class.....

2011-11-04 Thread Craig White
On Nov 4, 2011, at 11:42 AM, Arenstar wrote: > Simply put.. > > I need the reverse of an ipaddress for a in-addr.arpa.. > Puppet has a function i can find that will simply execute ruby code, > nor bash.. > $ipaddress comes from facter > > $reversenetwork = $ipaddress.split('.')[0,3].reverse.joi

Re: [Puppet Users] Incorrect "architecture" fact value during catalog run

2011-11-04 Thread Alexander Azarov
Yes, I had an idea I have different versions and simply searched the system for different RubyGems installations.. for no result. I have the only one. Here it is the output you requested: r3:/var/log# facter --puppet | grep '\(archit\|facterv\|operatings\)' architecture => amd64 facterversion =>

[Puppet Users] Yum questions

2011-11-04 Thread Sam Roza
Hello All, I come from the RHN age and don't quite have my head fully wrapped around yum. I know that puppet exclusively uses yum to install RPMs. I have some custom modules to write, but they require custom RPMs be installed. Not being the most well-versed person with yum, I don't want to get too

Re: [Puppet Users] Yum questions

2011-11-04 Thread Dan White
Just make a local yum repository using your custom RPM's, make sure your system can "see" it, and then a plain "yum install" will work. “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 & H

Re: [Puppet Users] Yum questions

2011-11-04 Thread Sam Roza
So I use createrepo to make a local repo somewhere-for instance, the puppet server-and then use that to do the install? Why doesn't puppet support all of yum features? On Fri, Nov 4, 2011 at 2:15 PM, Dan White wrote: > Just make a local yum repository using your custom RPM's, make sure your > s

Re: [Puppet Users] Yum questions

2011-11-04 Thread Christopher Wood
On Fri, Nov 04, 2011 at 02:19:08PM -0700, Sam Roza wrote: >So I use createrepo to make a local repo somewhere-for instance, the >puppet server-and then use that to do the install? >Why doesn't puppet support all of yum features? I'll venture a guess that it's for the same reason that y

Re: [Puppet Users] Yum questions

2011-11-04 Thread Sam Roza
Puppet uses yum as a tool, not the other way around. I suppose if yum started using puppet to install software, I'd expect them to support a complete featureset as well. On Fri, Nov 4, 2011 at 2:23 PM, Christopher Wood wrote: > On Fri, Nov 04, 2011 at 02:19:08PM -0700, Sam Roza wrote: > >So

Re: [Puppet Users] Yum questions

2011-11-04 Thread Steven VanDevender
Sam Roza writes: > So I use createrepo to make a local repo somewhere-for instance, the puppet > server-and then use that to do the install? If you are reluctant to create a local yum repository (maybe you don't have many custom packages) you can just source a package from a web server or the li

Re: [Puppet Users] Yum questions

2011-11-04 Thread Sam Roza
Thank you all. I'll probably use yum, but I am reluctant to get involved in the architecture-just another thing to manage-for a total of 4 packages. On Fri, Nov 4, 2011 at 2:27 PM, Steven VanDevender wrote: > Sam Roza writes: > > So I use createrepo to make a local repo somewhere-for instance,

Re: [Puppet Users] Yum questions

2011-11-04 Thread Dan White
Very nice! Puppet is full of surprises ! I did a local/custom repo with three RPM's in it because I use cobbler to build the machines initially, and I can just put the package name in the cobbler/kickstart package list. I suppose I could have done a cobbler snnippet to load the RPM's, but a cus

Re: [Puppet Users] Re: What's the canonical way to enforce permissions/ownership on a directory subtree?

2011-11-04 Thread Stefan Schulte
On Thu, Nov 03, 2011 at 10:39:29PM -0700, Robert Atkins wrote: > On Nov 2, 7:33 pm, Christopher Wood > wrote: > > It's worth mentioning that find -exec this way forks a separate copy of > > find for each file. You'll notice how much slower this is on a really large > > set of files (possibly lar

[Puppet Users] ANNOUNCE: Puppet-Dashboard 1.2.3rc1 available

2011-11-04 Thread Matthaus Litteken
This is a maintenance release of Puppet Dashboard. This release resolves issues #10198, #10270, and #10543. More details below. This release is available for download at: http://downloads.puppetlabs.com/dashboard/ We have included Debian and RPM packages as well as a tarball. See the Verifying P

[Puppet Users] Mounting Swap

2011-11-04 Thread Douglas Garstang
All, Trying to mount swap. Using: mount { 'swap': device => '/dev/xvdq1', atboot => true, ensure => mounted, fstype => 'swap', options => 'defaults'; } This is giving me: (/Stage[main]/Oracle::Common/Mount[swap]) Could not eval

[Puppet Users] Mounting Swap

2011-11-04 Thread Steven VanDevender
Douglas Garstang writes: > All, > > Trying to mount swap. Using: > > mount { > 'swap': > device => '/dev/xvdq1', > atboot => true, > ensure => mounted, > fstype => 'swap', > options => 'defaults'; > } > > This is g