Re: [Puppet Users] augeas / sudoers

2010-11-19 Thread Andrew Heagle
On Friday, November 19, 2010 07:50 EST, walexey wrote: > Hello everybody! > How can i create with puppet following sudoers file: > > User_Alias CENTREON=apache,nagios > CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart > CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload > CENTR

[Puppet Users] The Professional Services team at Puppet Labs

2010-11-19 Thread James Turnbull
Hi all It's been a while since we introduced our professional services team to the community. They lurk on the list quite a bit and help answer questions and queries (their elite skills are also available for hire!). They are (in alphabetical order): Dan Bode (d...@puppetlabs.com) Hunter Haugen

Re: [Puppet Users] Service[](provider=smf): Could not get status on service

2010-11-19 Thread Daniel Pittman
Stefan Schulte writes: > On Fri, Nov 19, 2010 at 10:25:30AM -0800, Rudy Gevaert wrote: >> >> I'm trying to get around the following issue. I want to make sure if >> a service is stopped. I'm trying to do this is solaris but I don't >> think this is OS specific. >> >> If the software that provide

Re: [Puppet Users] Puppet Enterprise Coming Soon

2010-11-19 Thread Nathan Rich
I'm excited about this. Congratulations to puppet labs for this milestone! PS, when are you selling stock ? =] On Fri, Nov 19, 2010 at 3:58 PM, Nigel Kersten wrote: > This isn't an official press release, and you shouldn’t read it that > way.[1] > > This is Puppet Labs letting the rest of our c

[Puppet Users] Puppet Enterprise Coming Soon

2010-11-19 Thread Nigel Kersten
This isn't an official press release, and you shouldn’t read it that way.[1] This is Puppet Labs letting the rest of our community (particularly those of you who didn’t hear us talk about this at Puppet Camp this year) know exactly what we’re doing in the near future so that any upcoming press rel

[Puppet Users] Dependencies between custom facts

2010-11-19 Thread Steve Atwell
I need to write a custom fact that depends on the value of another custom fact in a different file. For example: # foo.rb Facter.add("foo") do setcode do [...] end end # bar.rb Facter.add("bar") do setcode do if (Facter.value("foo") == "option1") then [...

Re: [Puppet Users] Service[](provider=smf): Could not get status on service

2010-11-19 Thread Stefan Schulte
On Fri, Nov 19, 2010 at 10:25:30AM -0800, Rudy Gevaert wrote: > Hi puppet users > > I'm trying to get around the following issue. I want to make sure if > a service is stopped. I'm trying to do this is solaris but I don't > think this is OS specific. > > If the software that provides the servic

Re: [Puppet Users] centos add user failed

2010-11-19 Thread Felix Frank
On 11/17/2010 07:01 PM, Nan Liu wrote: > On Wed, Nov 17, 2010 at 4:00 AM, Leonko wrote: >> Hello, I have problem with creating user under centos: >> >> part of my class: >> >> user {jboss: >> ensure => present, >> home=> "$jboss_home", >> shell => "/bin/bash

[Puppet Users] Service[](provider=smf): Could not get status on service

2010-11-19 Thread Rudy Gevaert
Hi puppet users I'm trying to get around the following issue. I want to make sure if a service is stopped. I'm trying to do this is solaris but I don't think this is OS specific. If the software that provides the service (sendmail in my cause) is installed the smf provider can make sure that th

Re: [Puppet Users] refreshonly not triggering exec

2010-11-19 Thread Felix Frank
On 11/17/2010 02:00 AM, elliott wrote: > Hi all, new to puppet so excuse my noobiness :) > > I've got a puppet type to manage iptables rules (https://github.com/ > camptocamp/puppet-iptables) running in my development environment. > The module works great for the most part; rules are calculated a

Re: [Puppet Users] Facter: My vision -- crazy?

2010-11-19 Thread James Turnbull
Nathan wrote: > My point is not to complain about all these things but to try to > discuss the direction of facter. I got the impression that the main > reason behind not adding a bit of intelligence to the facts in these > cases was because of code base size, which again I may be mistaken > about.

Re: [Puppet Users] Can't do a nested define. What are my options?

2010-11-19 Thread Felix Frank
Hi, define sysdir($dirs) { define subdir($base) { file { "$base/$name": ensure => directory } } file { "/mnt/$name": ensure => directory } suddir { $dirs: base => "/mnt/$name" } } sysdir { $sys_name: dirs => $mounts } Haven't tested it, but something like this should work. Littl

Re: [Puppet Users] Re: preferred directory structure for multiple environments

2010-11-19 Thread Felix Frank
On 11/19/2010 03:47 PM, jcbollinger wrote: > > On Nov 18, 6:32 pm, James Louis wrote: >> Don't know what to tell you. Commenting out the line in that file fixed the >> problem. And it's been working great since. > > I'm glad your problem is fixed. > > Folks around here have previously informed

Re: [Puppet Users] Re: preferred directory structure for multiple environments

2010-11-19 Thread James Louis
That's good to know. I originally installed on OpenSuse and it set up the sysconfig file automagically. Now I'm working on CentOS and what I'm hearing is I don't need to set up a sysconfig file (which I already have). On Fri, Nov 19, 2010 at 8:47 AM, jcbollinger wrote: > > On Nov 18, 6:32 pm, Jam

[Puppet Users] Facter: My vision -- crazy?

2010-11-19 Thread Nathan
Hi, You guys may remember me as the dude at puppet camp who suggested in the facter meeting about having facts return unknown for example, or have a default set of facts. This, oddly to me, seemed to not go over well. Let me explain where I'm coming from and why I think the current state of facter

[Puppet Users] Puppet Trainings Coming Up in London & Santa Clara

2010-11-19 Thread Scott Campbell
Join us for Puppet Master Training: Puppet Training in London: Nov 30, Dec 1 & 2 http://www.puppetlabs.com/events/london-nov-2010/ Puppet Training in Santa Clara: Dec 7, 8, & 9 http://www.puppetlabs.com/events/bay-area-training-10/ If you have any questions, please contact a...@puppetl

Re: [Puppet Users] augeas / sudoers

2010-11-19 Thread Dan Bode
Hi, On Fri, Nov 19, 2010 at 4:50 AM, walexey wrote: > Hello everybody! > How can i create with puppet following sudoers file: > > User_Alias CENTREON=apache,nagios > CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart > CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload > CENTREON A

[Puppet Users] Re: augeas / sudoers

2010-11-19 Thread luke.bigum
The sudoers tree is pretty complex, you've got four possible 'key nodes' of information to match on: user, host, command and tag. This is an augeas match line for all four key nodes (command changed to something without asterisks for readability): match /files/etc/sudoers/spec[user="CENTREON"]/hos

[Puppet Users] Re: preferred directory structure for multiple environments

2010-11-19 Thread jcbollinger
On Nov 18, 6:32 pm, James Louis wrote: > Don't know what to tell you. Commenting out the line in that file fixed the > problem. And it's been working great since. I'm glad your problem is fixed. Folks around here have previously informed me that the whole /etc/ sysconfig interface dates from a

[Puppet Users] Re: what are the constraints on the contents of 'imported ' files

2010-11-19 Thread jcbollinger
On Nov 18, 7:09 pm, "russell.fulton" wrote: > I am trying to import a hash definition from a separate file but this > fails whereas including the text verbatim in the original manifest > works fine: > > class monitor ($master, $interface)  { > > #  import "masters.pp" > >    $sensor_rule_categori

[Puppet Users] Re: Managing a "complex" directory structure

2010-11-19 Thread jcbollinger
On Nov 18, 5:28 pm, Lars Francke wrote: [...] > But I guess that doesn't work because a resource may be managed multiple > times. > > Any ideas how to solve this? There are two basic approaches you can use, separately or together, depending on how granularly you want to manage these resources.

Re: [Puppet Users] Re: augeas / sudoers

2010-11-19 Thread Rob McBroom
That looks like the define I wrote. Whenever/wherever I posted it, I probably also mentioned that it isn't complete because it only identifies entries by user, when in practice, there can be multiple entries with the same user (as you've seen). The problem with incorporating other attributes to

[Puppet Users] Re: augeas / sudoers

2010-11-19 Thread walexey
define sudoentry ($user, $host = "ALL", $command = "ALL", $tag = "NOPASSWD", $runas = "ALL") { $sudo_changes = $tag ? { false => [ "set spec[user = '$user']/user $user", "set spec[user =

[Puppet Users] Re: augeas / sudoers

2010-11-19 Thread luke.bigum
Hi Walexey, Can you post the augeas resource that you've got so far? On Nov 19, 12:50 pm, walexey wrote: > Hello everybody! > How can i create with puppet following sudoers file: > > User_Alias      CENTREON=apache,nagios > CENTREON   ALL = NOPASSWD: /etc/init.d/nagios* restart > CENTREON   ALL

[Puppet Users] augeas / sudoers

2010-11-19 Thread walexey
Hello everybody! How can i create with puppet following sudoers file: User_Alias CENTREON=apache,nagios CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload CENTREON ALL = NOPASSWD: /usr/bin/nagios* -v * The problem that augeas create

Re: [Puppet Users] Re: Managing private key files; content=>file vs. binary content.

2010-11-19 Thread Chris May
On Fri, Nov 19, 2010 at 11:01 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > On 11/19/2010 10:56 AM, Chris May wrote: > > > > Thinking back to the original PSON bug, the workaround back then was > > to use YAML serialization. I did notice that that could make clients > > c

Re: [Puppet Users] Re: Managing private key files; content=>file vs. binary content.

2010-11-19 Thread Felix Frank
On 11/19/2010 10:56 AM, Chris May wrote: > > Thinking back to the original PSON bug, the workaround back then was > to use YAML serialization. I did notice that that could make clients > crash though, I think the 0.25.5 were the afflicted ones. > > You may want to give it shot tho

Re: [Puppet Users] ERROR OpenSSL::SSL::SSLError: tlsv1 alert unknown ca

2010-11-19 Thread Martin Willemsma
Hi Marek, I do have this same issue on one of my test clients. Nov 19 11:43:52 * puppet-agent[15088]: Could not retrieve catalog from remote server: Could not intern from pson: source did not contain any PSON! Can you point out where you found your 'bad character' and what it was. I recent

[Puppet Users] Re: pkgutil package provider (solaris)

2010-11-19 Thread Peter Bonivart
On Nov 16, 11:17 am, Rudy Gevaert wrote: > Pachine parseable output would be very nice, but in my opinion not > that 'urgent'.  We can parse it like it is. I will add this as an option but not change the current output then. Later, when you've had a chance to update the provider to use the machin

Re: [Puppet Users] Re: Managing private key files; content=>file vs. binary content.

2010-11-19 Thread Chris May
> > > Thinking back to the original PSON bug, the workaround back then was to use > YAML serialization. I did notice that that could make clients crash though, > I think the 0.25.5 were the afflicted ones. > > You may want to give it shot though, anyway. The YAML encoder seems to be > less picky wh

Re: [Puppet Users] Re: client won't use remote file bucket

2010-11-19 Thread Felix Frank
On 11/19/2010 10:15 AM, luke.bigum wrote: > Felix, > > That fixes the problem, my remote file bucket now works. I'll raise a > bug for this. > > Thanks! > > -Luke Huh, interesting. This commit is what tipped me off about the likely fix: 266aafa6efa9dff5fb0b49ffdafc9372edcafdfe I'm not sure if

[Puppet Users] Re: client won't use remote file bucket

2010-11-19 Thread luke.bigum
Felix, That fixes the problem, my remote file bucket now works. I'll raise a bug for this. Thanks! -Luke On Nov 18, 11:23 pm, Felix Frank wrote: > On 09.11.2010 10:33, luke.bigum wrote: > > > > > Roman, > > > Not that I know of. I'm still aware it doesn't work in my site, but > > I'm content w