[Puppet Users] 'requires' dependency in file-fragments pattern was not honored

2011-07-20 Thread Jon Jaroker
Hello, I was wondering if anyone can spot the mistake I am making in the file-fragments pattern below. I am assembling the sudo file using fragments, with a "validate check file" step that confirms if the assembled file is valid. The '/etc/sudoers' file should only be overwritten if the check fi

[Puppet Users] Re: Modules for Solaris

2011-07-20 Thread Al @ Lab42
On Wednesday, July 20, 2011 5:24:05 PM UTC+2, deet wrote: > > > On Jul 20, 12:06 am, "Al @ Lab42" wrote: > > I'm considering the opportunity of adding (basic) Solaris support to my > > Cool. Certainly that will make it easier on Solaris admins new to > puppet. > > Hope so. My intention is a

[Puppet Users] Re: Modules for Solaris

2011-07-20 Thread Al @ Lab42
Thank you for the valuable infos, I agree that differences are enough to require a dedicated solaris subclass, to keep changes isolated and don't fiddle with existing classes linux oriented. The approach: "Custom packages using pkgadd, Solaris OS packages using pkgutil, OpenCSW using pkgutil." s

[Puppet Users] Templates and self-knowledge

2011-07-20 Thread Brian Gallew
So, I'm into templating. I *like* templating. What I *don't* like, of course, is to have to use multiple, similar templates for different output files. So, let's work a concrete example. Suppose I have a template "standard_profile.erb" which looks like this: install_typeinitial_install > >

[Puppet Users] package versioning by environment - best practice?

2011-07-20 Thread Patrick
New puppet user here looking for a yay or nay on whether the current design I've got is a good idea. The main thing I'm trying to accomplish is to have a class that gets applied to a production box and a testing box, where the only difference between the two is the version of packages that get inst

[Puppet Users] Re: mysql exec returning 1 instead of 0

2011-07-20 Thread newguy
Thanks Stefan, I tried executing the command from command line to realize that mysql dump contains bad data, thats why this problem is occurring, still have no clue about the mysqladmin command On Jul 20, 12:57 pm, Stefan Schulte wrote: > On Wed, Jul 20, 2011 at 11:00:51AM -0700, newguy wrote: >

Re: [Puppet Users] Re: mysql exec returning 1 instead of 0

2011-07-20 Thread Stefan Schulte
On Wed, Jul 20, 2011 at 11:00:51AM -0700, newguy wrote: > Here are my Execs, sorry didnt pasted them in the first post: > > exec {"Retrieve dump": > cwd => "/var/www/r", > command => "/usr/bin/wget http://xyz.com/asc.sql";, > timeout => 360, >

Re: [Puppet Users] Re: mysql exec returning 1 instead of 0

2011-07-20 Thread Nan Liu
On Wed, Jul 20, 2011 at 2:00 PM, newguy wrote: > Here are my Execs, sorry didnt pasted them in the first post: > >  exec {"Retrieve dump": >                cwd => "/var/www/r", >                command => "/usr/bin/wget http://xyz.com/asc.sql";, >                timeout => 360, >                re

Re: [Puppet Users] puppet and LDAP

2011-07-20 Thread Rob McBroom
On Jul 19, 2011, at 7:58 PM, Eric Searcy wrote: > You should get a redundant LDAP setup as well as monitor whether your > authentication system is up. Absolutely. You can’t imagine the number of things that will break if LDAP goes away. -- Rob McBroom -- You recei

Re: [Puppet Users] AIX clients

2011-07-20 Thread Rob McBroom
On Jul 20, 2011, at 1:29 AM, Michael Stahnke wrote: > Sorry for being late to the party I had to remember where I had > stashed those items. I’ll take a look. Thanks. -- Rob McBroom -- You received this message because you are subscribed to the Google Groups "Pupp

[Puppet Users] Re: mysql exec returning 1 instead of 0

2011-07-20 Thread newguy
Here are my Execs, sorry didnt pasted them in the first post: exec {"Retrieve dump": cwd => "/var/www/r", command => "/usr/bin/wget http://xyz.com/asc.sql";, timeout => 360, require=>Class[subversion], } exec {"Get d

Re: [Puppet Users] Re: Modules for Solaris

2011-07-20 Thread Aaron Grewell
Interesting. I will definitely take a look at that IPS link, that could make life a lot easier. I'd love to see what you've done, I'm sure it would help me along as I work to smooth out our Solaris processes. On Wed, Jul 20, 2011 at 10:47 AM, deet wrote: > > > so as far as I'm concerned Solari

[Puppet Users] mysql exec returning 1 instead of 0

2011-07-20 Thread newguy
Hi guys I am running in to a strange problem, I have a bunch of puppet modules and one of them has an exec which changes the root password and there is another which runs mysql import command to import dump file in to the database, the problem is both these exec are returning the following error:

[Puppet Users] Re: Modules for Solaris

2011-07-20 Thread deet
> so as far as I'm concerned Solaris 11 and IPS can't happen soon enough. Keep in mind you can do IPS in Solaris 10 now if you want. You'll need to install the software and migrate your packages from SYS V format to IPS which I believe the toolkit provides a script for. http://wikis.sun.com/di

Re: [Puppet Users] Modules for Solaris

2011-07-20 Thread Aaron Grewell
I'm just finishing up adding initial Solaris support to my existing Linux-oriented module set. I do think a set of modules covering the basics would be helpful. As a Linux admin learning Solaris trying to understand both the Puppet differences and the OS differences made startup harder. Solaris

[Puppet Users] Re: Not getting errors/warnings/etc in reports

2011-07-20 Thread Rich Rauenzahn
On Tue, Jul 19, 2011 at 11:03 AM, Rich Rauenzahn wrote: > I assumed this would have been fixed by 2.7.1, but it appears that > when we call the functions err(), warning(), etc., that they don't get > added to the report object, which we are using to generate nagios > alerts. > > I'm guessing I'll

[Puppet Users] parameters in a string for ENC

2011-07-20 Thread Craig White
I am hoping that someone could post a working example of how they use a 'define' has in a parameter string because I have been working on this for days to no avail (and googling & checking documentation on puppet & foreman sites. What I am trying to accomplish is to define things within foreman

[Puppet Users] Re: Modules for Solaris

2011-07-20 Thread deet
On Jul 20, 12:06 am, "Al @ Lab42" wrote: > I'm considering the opportunity of adding (basic) Solaris support to my Cool. Certainly that will make it easier on Solaris admins new to puppet. > > So let's begin with few points: > > - What version? > I'm tempted to begin only with Solaris 10,

Re: [Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-20 Thread vagn scott
On 07/20/2011 04:43 AM, Matthias Saou wrote: node 'myvmhost' { createvm { [ 'vm01', 'vm02', 'vm03', 'vm04', 'vm05' ]: # VNC Port 59XY for vmXY vncport => regsubst($name, 'vm', '59'), } } that looks like an interesting module. are you planning to publish it? Or, could I get

Re: [Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-20 Thread vagn scott
On 07/20/2011 04:43 AM, Matthias Saou wrote: * The definition is in a generic module for which it does not make sense to default the parameter to this calculated value. Instead of passing in the port number you could pass a template for its creation node 'myvmhost' { createvm { [ '

Re: [Puppet Users] Re: ssh_authorized_key runs every time

2011-07-20 Thread Hugo Deprez
Hi Felix, I try the following : key => "*BQfc62cpIMw==", And it works ! Thank you ! Hugo On 20 July 2011 14:37, Felix Frank wrote: > Hi, > > On 07/20/2011 02:29 PM, Hugo Deprez wrote: > >key => '***== user@servername', > > well, the issue is that you're not sp

[Puppet Users] Re: How to use notify to invoke something prior to a change

2011-07-20 Thread John Martin
Nan - that is an interesting approach to call Puppet from Puppet. I'll have to give that a try and experiment. Thanks! -- 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 unsubs

[Puppet Users] Re: Skipping Tags?

2011-07-20 Thread John Martin
Doug, We've been successful with software deployments and Puppet has done a great job. We deploy to Tomcat, JBoss, Coldfusion and Apache web sited. In some cases we've needed to tie in a shell script which were nearly impossible to get right in Puppet. One of the keys to your question was that

Re: [Puppet Users] Re: ssh_authorized_key runs every time

2011-07-20 Thread Felix Frank
Hi, On 07/20/2011 02:29 PM, Hugo Deprez wrote: >key => '***== user@servername', well, the issue is that you're not specifying the key, but the key + keyname, which is not quite right. Try ssh_authorized_key { "user@servername": key => "==", ... } HTH, Felix --

Re: [Puppet Users] Re: ssh_authorized_key runs every time

2011-07-20 Thread Hugo Deprez
Hello, I have the same issue : ssh_authorized_key { "user-rsa-key": ensure => 'present', key => '***== user@servername', type => 'rsa', user => 'user', require => File["/home/user/.ssh"], } On my server i

Re: [Puppet Users] Puppetmaster setup with separate CA server configuration help

2011-07-20 Thread Marc Fournier
Kevin, I'm not sure I perfectly understand your setup but I reckon your problem is that ... Excerpts from linuxbsdfreak's message of Fri Jul 08 14:48:19 +0200 2011: > [...] > Following are the nginx/puppet.conf configs of loadbalancer01 > -

Re: [Puppet Users] Definition parameter defaulting to the definition's own $title?

2011-07-20 Thread Matthias Saou
Matthias Saou wrote : > > try $name, that should do it, came in somewhere mid 2.6.x series > > Yup, that was it! > > Section "$name can now be used to set default values in defined > resource types" in the release notes : > https://projects.puppetlabs.com/projects/puppet/wiki/Release_Notes Mayb

[Puppet Users] Modules for Solaris

2011-07-20 Thread Al @ Lab42
I'm considering the opportunity of adding (basic) Solaris support to my modules ( www.example42.com) but before starting I'd like to gather some info about best practices and standards. I've to admit that I've not a great working Solaris experience, so I actually don't know how people use it, wh