[Puppet Users] client facter values 0.23.2

2009-07-07 Thread robert.gstoehl
Hi, I need to do some reporting on the client (installed packages, patchlevel, ... you get the idea) I'd like to use some custome facts for this. According the documentation, the clients facter values should be stored on the puppetmaster as yaml files: http://reductivelabs.com/trac/puppet/wiki/A

[Puppet Users] Re: client facter values 0.23.2

2009-07-07 Thread robert.gstoehl
tory, maybe a simple find under > puppetdir for all yaml files? > > On Tue, Jul 7, 2009 at 8:11 PM, robert.gstoehl > wrote: > > > > > Hi, > > > I need to do some reporting on the client (installed packages, > > patchlevel, ... you get the idea) I'

[Puppet Users] Re: client facter values 0.23.2

2009-07-07 Thread robert.gstoehl
ple find under > puppetdir for all yaml files? > > On Tue, Jul 7, 2009 at 8:11 PM, robert.gstoehl > wrote: > > > > > Hi, > > > I need to do some reporting on the client (installed packages, > > patchlevel, ... you get the idea) I'd like to use some custo

[Puppet Users] Re: client facter values 0.23.2

2009-07-08 Thread robert.gstoehl
I'll take another shot at it as soon we have upgraded to a more recent version. Thanks Ohad Levy. On Jul 7, 3:28 pm, "robert.gstoehl" wrote: > Two yaml files outside the var/puppet/reports/* dir: > /var/puppet/state/localconfig.yaml > /var/puppet/state/state.yaml > &

[Puppet Users] custom definitions require and +>

2009-07-13 Thread robert.gstoehl
I'm trying to get the dependencies right: define wget($source, $options = "", $unless = "") { include pkg::virtual_packages realize (Package["wget"]) exec {"wget $options -O $title $source": path=> "/usr/bin:/opt/csw/bin", unless => "$unless", timeout => 1

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread robert.gstoehl
merge arrays? On Jul 13, 7:12 pm, David Schmitt wrote: > robert.gstoehl wrote: > > I'm trying to get the dependencies right: > > > define wget($source, $options = "", $unless = "") { > >     include pkg::virtual_packages > >     real

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread robert.gstoehl
Hm, with --debug it seems like all the dependencies, even an array of them, get passed to the nested exec. Voodoo :) Thanks for your help. On Jul 15, 9:55 am, "robert.gstoehl" wrote: > Seems to work so far, thanks. What happens when a $require is passed > to the definition w

[Puppet Users] Re: custom definitions require and +>

2009-07-15 Thread robert.gstoehl
I'm still on 0.23.2 for some time. Planning the upgrade at the moment. On Jul 15, 10:09 am, David Schmitt wrote: > robert.gstoehl wrote: > > Seems to work so far, thanks. What happens when a $require is passed > > to the definition which contains an array? > > &g

[Puppet Users] Re: Where are the puppet logs on Solaris 10?

2009-11-09 Thread robert.gstoehl
A stock Solaris 10 syslog logs to /var/adm/messages. Cheers Robert On Nov 8, 3:01 pm, Erlend Leganger wrote: > I set up puppet for the first time yesterday, on two Solaris 10 > machines, each running puppet v0.24.7. I made a modified version of > the initial manifest described > inhttp://reduc

[Puppet Users] Behaviour overloading through inheritance

2010-02-15 Thread robert.gstoehl
Hey there, I'd like to migrate some of our solaris hardening mechanisms from sst (jass) to puppet. One part of the work involves disabling services in a secure base class while letting the administrator override specific services through sepcialized classes (kind of a secure - by default - mechani

[Puppet Users] Traversal of class inheritance - chain

2010-02-17 Thread robert.gstoehl
Can one include muliple parts of a (class) - inheritance chain? And if yes, how does this chain get traversed? Are there any limitations / sideffects / documentation? The idea behind is: I'd like to provide a base set of disabled services. Each of this service can be enabled through inheriting fr

[Puppet Users] Re: Traversal of class inheritance - chain

2010-02-17 Thread robert.gstoehl
Hey John, Thanks for the clarification. Makes kind of sense ;) Cheers Robert On Feb 17, 3:50 pm, jcbollinger wrote: > On Feb 17, 2:56 am, "robert.gstoehl" wrote: > > > Can one include muliple parts of a (class) - inheritance chain? And if > > yes, how does this ch

[Puppet Users] $title as default value for argument in defintion

2010-03-08 Thread robert.gstoehl
Hey there, I'd like to provide a definition with an argument which is optional and defaults to the title: net::route_default{"first": gateway => "192.168.0.1"} or the shortcut: net::route_default{"192.168.0.1"} class net { define route_default($gateway=$title) { exec {"echo $gateway >> /e

[Puppet Users] Re: $title as default value for argument in defintion

2010-03-08 Thread robert.gstoehl
makes sense, thanks Robert On Mar 8, 4:19 pm, Thomas Bellman wrote: > robert.gstoehl wrote: > > I'd like to provide a definition with an argument which is optional > > and defaults to the title: > > > net::route_default{"first": gateway => &

[Puppet Users] Embedding Puppet / using it as a library / api

2012-09-14 Thread robert.gstoehl
Hey there, I'm thinking about reusing custom types from existing puppet infrastructure in standalone (ruby) applications. Example -> Custom Type for a "storage pool" consisting of volume groups, logical volumes, drbd resources, filesystems, nfs export... you get the idea. Suppose that we have

Re: [Puppet Users] Embedding Puppet / using it as a library / api

2012-09-14 Thread robert.gstoehl
> > > > I don't know how you can use defined types from pure ruby there might be > a way but for native ones you can use them: > > pkg = Puppet::Type.type(:package).new(:name => "bash").provider > pkg.update > > updates bash. > Fiddled with something like that - it even worked with a cus