[Puppet Users] Re: facter or ifconfig to find hosts with ip on certain subnet

2010-03-26 Thread donavan
> host has one).  I've not ventured down the custom fact road before so > this should be an little adventure. Your version certainly will work. I think this is how I might take a stab at it though: require 'facter' require 'ipaddr' require 'yaml' Facter.add("nsd_gateway") do setcode do

Re: [Puppet Users] Re: Calling a function from a template

2010-03-26 Thread Michael DeHaan
On Fri, Mar 26, 2010 at 11:08 AM, Mike wrote: > > > On Mar 26, 10:59 am, Michael DeHaan wrote: > > Does scope.function_echo(["temp"]) work instead? > > That did it! Thanks a lot! > Great, I'll add some info to our docs about this. If anyone else has suggestions on similar tricks/things that

[Puppet Users] Re: facter or ifconfig to find hosts with ip on certain subnet

2010-03-26 Thread deet
> From this example you're trying to detect it any interface is on the > 10.55.12.0 network, That's correct. I have 4 specific subnet's I'm looking for in this example. A host may have zero interfaces on one of the specific subnets or just 1. I was wanting to return the ipaddress that the

Re: [Puppet Users] Best practises for managing secret keys with puppet?

2010-03-26 Thread Thomas Bellman
Michael DeHaan wrote: One way to handle this would be by keeping confidential information in a seperate version control repository (not public), rather than in your main one. Puppet has a system of module paths so you could keep your confidential info seperate from the content you would want

Re: [Puppet Users] Best practises for managing secret keys with puppet?

2010-03-26 Thread Alan Barrett
On Fri, 26 Mar 2010, Daniel Pittman wrote: > The prospect of putting the secret key into our revision control > system has ... well, little appeal is probably being fair: we could > certainly do it, but it suddenly means that a whole bunch of extra > data has to be treated as high security rather t

Re: [Puppet Users] Best practises for managing secret keys with puppet?

2010-03-26 Thread Nigel Kersten
On Fri, Mar 26, 2010 at 12:22 AM, Daniel Pittman wrote: > G'day. > > One of the current problems we face with our puppet network, and about which > I would like to solicit opinions, is the distribution of secret keys for > (mostly) SSL secured services. > > The most pressing example of this is tha

[Puppet Users] Re: Calling a function from a template

2010-03-26 Thread Mike
On Mar 26, 10:59 am, Michael DeHaan wrote: > Does scope.function_echo(["temp"]) work instead? That did it! Thanks a lot! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To

Re: [Puppet Users] Calling a function from a template

2010-03-26 Thread Michael DeHaan
On Fri, Mar 26, 2010 at 9:54 AM, Mike wrote: > Hi, > > I'm attempting to call a custom function directly from a template. > I've gotten as far as being able to call the function, but it isn't > returning the correct value. I've created a simple function that just > returns the value passed to it

Re: [Puppet Users] Best practises for managing secret keys with puppet?

2010-03-26 Thread Michael DeHaan
On Fri, Mar 26, 2010 at 3:22 AM, Daniel Pittman wrote: > G'day. > > One of the current problems we face with our puppet network, and about > which > I would like to solicit opinions, is the distribution of secret keys for > (mostly) SSL secured services. > > The most pressing example of this is t

[Puppet Users] Calling a function from a template

2010-03-26 Thread Mike
Hi, I'm attempting to call a custom function directly from a template. I've gotten as far as being able to call the function, but it isn't returning the correct value. I've created a simple function that just returns the value passed to it: echo.rb: module Puppet::Parser::Functions newfunction

[Puppet Users] Best practises for managing secret keys with puppet?

2010-03-26 Thread Daniel Pittman
G'day. One of the current problems we face with our puppet network, and about which I would like to solicit opinions, is the distribution of secret keys for (mostly) SSL secured services. The most pressing example of this is that for reasons of availability want to process SSL on multiple machine

Re: [Puppet Users] Re: Puppet host alias problem

2010-03-26 Thread Dan Bode
On Fri, Mar 26, 2010 at 5:31 AM, DieterVDW wrote: > This seems to be incorrect in the documentation: > http://docs.reductivelabs.com/guides/types/host.html > > Might cause confusion! > > thanks! > On Mar 26, 1:04 pm, Dan Bode wrote: > > On Fri, Mar 26, 2010 at 5:02 AM, DieterVDW wrote: > > >

[Puppet Users] Re: Puppet host alias problem

2010-03-26 Thread DieterVDW
This seems to be incorrect in the documentation: http://docs.reductivelabs.com/guides/types/host.html Might cause confusion! On Mar 26, 1:04 pm, Dan Bode wrote: > On Fri, Mar 26, 2010 at 5:02 AM, DieterVDW wrote: > > Hi, > > > I've got the following resource: > > > host { "host.domain.com": > >

Re: [Puppet Users] Puppet host alias problem

2010-03-26 Thread Dan Bode
On Fri, Mar 26, 2010 at 5:02 AM, DieterVDW wrote: > Hi, > > I've got the following resource: > > host { "host.domain.com": >alias => [ "host", "alias" ], >ip => "1.2.3.4", >ensure => present, > } > > it was changed from alias to host_aliases in ... I think .25.3. Alias is already a me

[Puppet Users] Puppet host alias problem

2010-03-26 Thread DieterVDW
Hi, I've got the following resource: host { "host.domain.com": alias => [ "host", "alias" ], ip => "1.2.3.4", ensure => present, } The resulting line in my /etc/hosts file is: 1.2.3.4 host.domain.com Any alias definitions seem to be ignored? What am I doing wrong? Best regards, Di

Re: [Puppet Users] Re: Exported resources doesn't seem to work

2010-03-26 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Well, nice monologue I'm having here :D > > But the problem seems to be solvedI changed the password for > puppet to just "puppet", updated puppet.conf and restarted the master, > now everything works fine. > Before this the pw containd capital

[Puppet Users] Re: Exported resources doesn't seem to work

2010-03-26 Thread christian
Well, nice monologue I'm having here :D But the problem seems to be solvedI changed the password for puppet to just "puppet", updated puppet.conf and restarted the master, now everything works fine. Before this the pw containd capital letters and numbers. Is it possible that puppet can't handl

[Puppet Users] Re: Exported resources doesn't seem to work

2010-03-26 Thread christian
After giving this some rest, today i started the puppetqd daemon in debug mode and it with every puppetrun i get this messages: info: Connecting to mysql database: puppet err: Could not save queued catalog for keto- puppetweb.backyard.wlwonline.de: Access denied for user 'puppet'@'localhost' (usin

[Puppet Users] Re: facter or ifconfig to find hosts with ip on certain subnet

2010-03-26 Thread donavan
>    And I want to say something like (pseudo code) >   if network_* = 10.55.12.0 >   then >   static route magic here >From this example you're trying to detect it any interface is on the 10.55.12.0 network, correct? Are you also trying to match a set of networks (10.55.12.0, 10.55.13.0, etc) wit