[Puppet Users] Re: reduced verbose output

2011-02-16 Thread donavan
On Feb 15, 1:27 pm, David Bishop tean...@gmail.com wrote: In a perfect world, we could have three possible verbosity levels: 1) Only show errors (failures to compile the catalog, fails, etc) 2) #1 + all changes (Anything notice, in a normal --test run), but without the diffs that you would

Re: [Puppet Users] can not use $caller_module_name

2011-02-16 Thread Felix Frank
Hi, have you tried adding 'notify { Caller module=$caller_module_name: }' to various classes/defines in the redarrow module? Also (although this is somewhat dumb), have you tried puppet:///modules/${caller_module_name}/redarrow.conf instead? Curly braces shouldn't be necessary there, but

Re: [Puppet Users] Making dependencies work with variable resource names

2011-02-16 Thread Felix Frank
Hi, here's what I'd do: include devices class service { file { /opt: ensure = directory, owner = root, group = wheel, mode = 755; /opt/home: ensure = directory, owner = root, group

[Puppet Users] error using If/Else conditionals inside templates

2011-02-16 Thread David Kramer
I am running Puppet 2.6.4, and have run into a situation where I would like to use conditional statements inside a template ERB file. I am trying to deploy apache virtual host configuration files, and have found that certain environments use SSL certificate files from one vendor and other

Re: [Puppet Users] troubles with require parametre

2011-02-16 Thread Nicolas Szalay
Hello, This case interests me :) On Tue, Feb 15, 2011 at 5:53 PM, Nigel Kersten ni...@puppetlabs.com wrote: It looks to me like you don't have a User 'bind' on the target system, and you haven't defined one in the above manifest. Does the bind package create a bind user for you? This

[Puppet Users] Assign a single ssh pubkey to multiple users on the same system

2011-02-16 Thread Jan
Hi *, I would like to create a pool of ssh pubkeys. The major goal is to be able to assign a single key to multiple users on a given node/system. Okay, lets say we have the users: foo and bar. In my manifest I've created the following test definition for resource jim:

Re: [Puppet Users] Inter-Module Dependency

2011-02-16 Thread Derek J. Balling
For what it is worth, for an extremely well known interface like /etc/resolv.conf I would subscribe to the file resource, but for most cases I prefer to depend on the class. So, I think both answers are right, and I didn't explain why I chose the apparently tighter binding this time around.

Re: [Puppet Users] Trigger an event after a puppet run

2011-02-16 Thread Rus Hughes
Thanks for the help guys, I've now finished it and got a working solution. For anyone replicating this you need to configure a passive service check on each host called puppet-report which then will get updated. http://pastie.org/private/812ijdrd7gwmwgxfmc9rdq require 'puppet' require 'socket'

[Puppet Users] Sensible, Manageable, CentOS puppetmaster?

2011-02-16 Thread Howard Jones
I've been going round in circles a little bit in the last few days trying to figure out how to get a 64-bit CentOS-based puppetmaster that can be managed/provisioned via puppet also - so I'd like ruby, passenger, rails etc coming from RPMs and yum. As far as I can see, the three choices are: 1)

Re: [Puppet Users] Trigger an event after a puppet run

2011-02-16 Thread Derek J. Balling
size = self.logs.size if size == 0 then system /usr/lib/nagios/eventhandlers/submit_puppet_result + ip + puppet-report 0 \There has been no change\ else system /usr/lib/nagios/eventhandlers/submit_puppet_result + ip + puppet-report 2 \There

Re: [Puppet Users] Sensible, Manageable, CentOS puppetmaster?

2011-02-16 Thread Jan
Hi Howie, On 02/16/2011 12:16 PM, Howard Jones wrote: [...] 3) My own local repo (although I couldn't find working src.rpm/spec files for ruby, and I'm by no means a ruby expert) [...] What does everyone else do? It seems weird that the tool intended to manage everything else is so hard

Re: [Puppet Users] Trigger an event after a puppet run

2011-02-16 Thread Rus Hughes
On Wed, Feb 16, 2011 at 11:38 AM, Derek J. Balling dr...@megacity.org wrote:        size = self.logs.size        if size == 0 then            system /usr/lib/nagios/eventhandlers/submit_puppet_result + ip + puppet-report 0 \There has been no change\        else            system

[Puppet Users] Re: puppetmaster fails to start using dist puppet.conf file

2011-02-16 Thread randomcontrol
I removed the facts directory and puppet now starts without problems, but it doesn't create a facts-file or -directory automatically. -- 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] Re: Making dependencies work with variable resource names

2011-02-16 Thread jcbollinger
On Feb 16, 2:44 am, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: here's what I'd do: include devices class service {     file {         /opt:             ensure = directory,             owner = root,             group = wheel,             mode = 755;         /opt/home:

RE: [Puppet Users] Make puppet clients look at a domain name rather than an IP?

2011-02-16 Thread Kinzel, David
In the docs it says one must add a line to the /etc/hosts file with the name puppet and the IP of the puppet master. This isn't a possibility for us as the IP is subject to change. Is it possible to configure the puppet clients to look for a specific domain to find the master? eg.

Re: [Puppet Users] Make puppet clients look at a domain name rather than an IP?

2011-02-16 Thread Nigel Kersten
On Wed, Feb 16, 2011 at 6:37 AM, Phillip B Oldham phillip.old...@gmail.com wrote: In the docs it says one must add a line to the /etc/hosts file with the name puppet and the IP of the puppet master. This isn't a possibility for us as the IP is subject to change. Is it possible to configure the

Re: [Puppet Users] puppetrun :: HTTP-Error: 500 Internal Server Error (w/ Passenger)

2011-02-16 Thread CraftyTech
Shameless bump... :-) -- 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 this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options,

Re: [Puppet Users] Sensible, Manageable, CentOS puppetmaster?

2011-02-16 Thread James Louis
set enabled=0 in /etc/yum.repos.d/epel.repo and use --enablerepo=epel when using yum to install puppet On Wed, Feb 16, 2011 at 7:27 AM, Romain Pelisse bela...@gmail.com wrote: Personnally, I just used the EPEL repository to install both puppet and puppetmaster. I still need to figure out a way

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Felix Frank
Adding an appropriate requires = to Devices::device_node instantiations, as suggested, should do the trick. Alternatively, the requires = could be put on one of the resources inside the defined type (in this case, the only candidate is the Exec). Personally, I prefer the latter whenever it

Re: [Puppet Users] Sensible, Manageable, CentOS puppetmaster?

2011-02-16 Thread Mark Stanislav
Rather you can use in your epel.repo: includepkgs=puppet puppetmaster foo bar etc. and it will only utilize those packages from the greater assortment. We (MNX Solutions) also run a repository for a lot of common packages you may be looking for if you'd like a back-up

[Puppet Users] Fresh node fails puppet run - init script not found before installing package

2011-02-16 Thread Daniel Piddock
Hey all, I was installing puppet on a freshly installed node and the catalog fails to apply. It immediately bails out with: err: Could not run Puppet configuration client: Could not find init script for 'ssh' This is annoying and odd. ssh service is run by a module in main stage, there is a

[Puppet Users] execute resources only when told to

2011-02-16 Thread loki77
Hi, I'm looking for a way to have puppet kick off an upgrade of my companies software, but only when it's somehow 'told' to. In cfengine you can provide classes from the command line (such as upgrade_code) and then have parts of the policy only work if those classes are defined. Is there anyway

Re: [Puppet Users] Making dependencies work with variable resource names

2011-02-16 Thread Matthew Pounsett
On 2011/02/16, at 03:44, Felix Frank wrote: Hi, here's what I'd do: Devices::Device_node { dir = $homedir/${service_num}/dev/, require = File[$homedir/${service_num}/dev/], } I tried that as well (noted in the original post). That's

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Matthew Pounsett
On 2011/02/16, at 09:20, jcbollinger wrote: In general, if Puppet attempts to apply resources in a sequence that doesn't work, then it means that there are resource relationships that are not implicit and have not been declared. That's exactly the case in the OP's manifest: there is nothing

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Matthew Pounsett
On 2011/02/16, at 10:56, Felix Frank wrote: Adding an appropriate requires = to Devices::device_node instantiations, as suggested, should do the trick. Alternatively, the requires = could be put on one of the resources inside the defined type (in this case, the only candidate is the Exec).

Re: [Puppet Users] Re: Making dependencies work with variable resource names

2011-02-16 Thread Matthew Pounsett
On 2011/02/16, at 12:53, Matthew Pounsett wrote: Actually, yes they are documented to do that. From the documentation for 'require'[1]: Hrm.. I meant to include the URL there: http://docs.puppetlabs.com/references/stable/metaparameter.html I'll also note that I'm not too surprised you

[Puppet Users] Re: Trigger an event after a puppet run

2011-02-16 Thread donavan
On Feb 16, 3:38 am, Derek J. Balling dr...@megacity.org wrote:        size = self.logs.size        if size == 0 then            system /usr/lib/nagios/eventhandlers/submit_puppet_result + ip + puppet-report 0 \There has been no change\        else            system

Re: [Puppet Users] execute resources only when told to

2011-02-16 Thread Mohamed Lrhazi
How about this: Create a module called upgrade_my_software, then only include it when you want to, then remove the include when you're done... On Wed, Feb 16, 2011 at 11:18 AM, loki77 lok...@gmail.com wrote: Hi, I'm looking for a way to have puppet kick off an upgrade of my companies

Re: [Puppet Users] Make puppet clients look at a domain name rather than an IP?

2011-02-16 Thread Patrick
On Feb 16, 2011, at 6:37 AM, Phillip B Oldham wrote: In the docs it says one must add a line to the /etc/hosts file with the name puppet and the IP of the puppet master. This isn't a possibility for us as the IP is subject to change. Is it possible to configure the puppet clients to look for

Re: [Puppet Users] Re: Trigger an event after a puppet run

2011-02-16 Thread Derek J. Balling
On Feb 16, 2011, at 2:49 PM, donavan wrote: Off hand you may be interested in the metrics portion of the report. Something like metrics[changes][:failed] would give you access to any resources that failed to apply. I don't recall how/if actual catalog failures are show in reports. A syntax

[Puppet Users] Re: execute resources only when told to

2011-02-16 Thread loki77
The issue with that is that I have to change the policies on the puppetmaster each time I want to upgrade, and then make sure to remove the include after it runs on each host so that it doesn't attempt the upgrade twice (which wouldn't cause issues, but it leaves the window open for user error -

Re: [Puppet Users] puppetrun :: HTTP-Error: 500 Internal Server Error (w/ Passenger)

2011-02-16 Thread CraftyTech
Actually it's working now. Sorry to report it's bitter-sweet solution, as I don't seem to be able to identify the exact root of the problem. I had a template that was updating the namespace.conf file, and it wasn't including the server where I was running puppetrun from. I know sounds a bit

[Puppet Users] Virtual Resources realization problems

2011-02-16 Thread Forrie
I'm somewhat new to Puppet. I'm trying to establish some Virtual Resources so I can realize them based on a TAG. The error I continue to get is: Feb 16 18:02:38 test-fms puppet-agent[8590]: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '201001'; expected

Re: [Puppet Users] execute resources only when told to

2011-02-16 Thread Ben Hughes
On Wed, Feb 16, 2011 at 08:18:42AM -0800, loki77 wrote: Hi, I'm looking for a way to have puppet kick off an upgrade of my companies software, but only when it's somehow 'told' to. There's this from the docs about Debian's system upgrade path. Something like that?

Re: [Puppet Users] error using If/Else conditionals inside templates

2011-02-16 Thread Ben Hughes
On Wed, Feb 16, 2011 at 12:52:49AM -0800, David Kramer wrote: % if tagged(development) % In ERB the syntax is different I believe. The tagged() is in manifest syntax. In ERB land, you have access to tags via: % tags.each do |tag| -% So perhaps something like % if tags.include?( development )

Re: [Puppet Users] execute resources only when told to

2011-02-16 Thread Michael Barrett
Cool - that would work. Thanks! On Feb 16, 2011, at 1:55 PM, Nan Liu wrote: On Wed, Feb 16, 2011 at 8:18 AM, loki77 lok...@gmail.com wrote: Hi, I'm looking for a way to have puppet kick off an upgrade of my companies software, but only when it's somehow 'told' to. In cfengine you can

Re: [Puppet Users] execute resources only when told to

2011-02-16 Thread Michael Barrett
Ahh, and this is perfect too. I could even include the current version in that file, which could then be read by whatever is installing the latest version. Thanks! On Feb 16, 2011, at 3:16 PM, Ben Hughes wrote: On Wed, Feb 16, 2011 at 08:18:42AM -0800, loki77 wrote: Hi, I'm looking for a

[Puppet Users] Nested defined resources

2011-02-16 Thread Dustin J. Mitchell
I'm working on a module to handle creating and populating Python virtualenvs. Without going into too much detail, basically these are nicely-encapsulated environments into which python packages can be installed and run. It's not uncommon to have several virtualenvs on a system, potentially with