Wednesday, 2008-07-02

[2008/07/02 00:04:37] @ Quit: rizwank:
[2008/07/02 00:06:46] @ lak joined channel #puppet
[2008/07/02 00:10:07] @ rcoup joined channel #puppet
[2008/07/02 00:12:28] @ Gwayne joined channel #puppet
[2008/07/02 00:14:18] <rcoup> hey all. i have a templating/variable Q: http://dpaste.com/60280/
[2008/07/02 00:14:31] <rcoup> as it is, it doesn't work (webDomains ends up as [] in the template)
[2008/07/02 00:14:46] <rcoup> which is kinda how i understand it form the puppet scope docs
[2008/07/02 00:15:03] <rcoup> but if i don't define webDomains in dev, then it can't render the template.
[2008/07/02 00:15:10] <rcoup> any bright ideas?
[2008/07/02 00:17:19] <rcoup> (in reality dev is defined a few levels up from aDevServer so i'd rather not repeat the includes if i don't have to.
[2008/07/02 00:18:10] @ randybias joined channel #puppet
[2008/07/02 00:35:07] <fujin> rcoup: inheritance buddy
[2008/07/02 00:35:27] <rcoup> fujin: isn't that what i'm doing? :)
[2008/07/02 00:35:27] <fujin> you're including domain_wrangler before you set $webDomains
[2008/07/02 00:35:34] <rcoup> yep
[2008/07/02 00:35:38] <fujin> That doesn't work.
[2008/07/02 00:35:38] <rcoup> i figured that :)
[2008/07/02 00:35:49] <rcoup> ok, so whats a nice solution for doing what i want :)
[2008/07/02 00:36:01] <fujin> ehm
[2008/07/02 00:36:16] <fujin> scope correctly?
[2008/07/02 00:36:38] <rcoup> well, i'm trying to scope it to the node.
[2008/07/02 00:37:05] <fujin> so include domain_wrangler in the correct scope
[2008/07/02 00:38:05] <rcoup> hmm. then it gets repeated for every node, which i was trying to avoid. Often webDomains doesn't need to be overridden.
[2008/07/02 00:38:17] <rcoup> i guess i can pull in a dev_stuff class
[2008/07/02 00:38:24] <rcoup> or (bits-of-dev-stuff)
[2008/07/02 00:39:05] <fujin> use a define?
[2008/07/02 00:39:26] <fujin> domain_wrangler { [ "a.example.com", "b.example.com" ]: }
[2008/07/02 00:39:53] @ Quit: Pockets: Read error: 110 (Connection timed out)
[2008/07/02 00:39:58] <rcoup> yeah, i was thinking that, but the vars are used in a bunch of places across different includes
[2008/07/02 00:40:12] <rcoup> well, at least i'm clear on why it doesn't work :)
[2008/07/02 00:40:35] <fujin> sorry
[2008/07/02 00:40:37] <fujin> :D
[2008/07/02 00:41:15] <rcoup> nah its fine. i was getting sick of copying and tweaking config files for different hosts, and i'd been putting off templates for a while :)
[2008/07/02 00:59:06] @ Quit: Gwayne: Remote closed the connection
[2008/07/02 00:59:39] <jamesturnbull> lak: hmmmm Redmine seems very slow - might hit the mongrels and apache with a restart...
[2008/07/02 01:00:01] <jamesturnbull> lak: and timeout...
[2008/07/02 01:01:10] <lak> done
[2008/07/02 01:02:08] @ ski98033 joined channel #puppet
[2008/07/02 01:08:01] @ Gwayne joined channel #puppet
[2008/07/02 01:12:43] @ Pockets joined channel #puppet
[2008/07/02 01:12:48] <jamesturnbull> lak: if you get a chance could you also update the Puppet repo on laeg
[2008/07/02 01:12:58] <lak> just did :)
[2008/07/02 01:13:03] <lak> thus, the git commit email
[2008/07/02 01:15:15] @ pleemans joined channel #puppet
[2008/07/02 01:16:08] @ Quit: machpo: Read error: 104 (Connection reset by peer)
[2008/07/02 01:18:15] @ mcp_ joined channel #puppet
[2008/07/02 01:22:43] <jamesturnbull> lak: hmmm
[2008/07/02 01:22:56] <lak> ?
[2008/07/02 01:24:19] <jamesturnbull> lak: not showing up in Redmine
[2008/07/02 01:25:05] <lak> i just haven't merged into master; i'll do so now
[2008/07/02 01:25:25] <jamesturnbull> lak: duh :)
[2008/07/02 01:30:29] <jamesturnbull> lak: hopefully they'll fix the branch browsing for Redmine RSN
[2008/07/02 01:31:41] @ madduck___ is now known as madduck
[2008/07/02 01:32:16] <gepetto> ::puppet:: Recipes/Kernel Modules edited by mrproper @ http://reductivelabs.com/trac/puppet/wiki/Recipes/KernelModules (by brendan@sitesuite.com.au)
[2008/07/02 01:33:16] <lak> done
[2008/07/02 01:33:29] <lak> i could swear i haven't modified the master branch recently, but i still got conflicts
[2008/07/02 01:33:31] <lak> which is weird
[2008/07/02 01:34:01] <jamesturnbull> lak: weird I saw that
[2008/07/02 01:35:51] @ Quit: pkhamre: Read error: 113 (No route to host)
[2008/07/02 01:48:49] <gepetto> ::puppet:: Recipes/Kernel Modules edited by mrproper @ http://reductivelabs.com/trac/puppet/wiki/Recipes/KernelModules (by brendan@sitesuite.com.au)
[2008/07/02 02:00:38] @ Quit: fbe__: Read error: 110 (Connection timed out)
[2008/07/02 02:10:38] @ Quit: lak:
[2008/07/02 02:17:04] @ ski98033 left channel #puppet ()
[2008/07/02 02:19:00] @ Quit: Gwayne: Remote closed the connection
[2008/07/02 02:20:14] @ Gwayne joined channel #puppet
[2008/07/02 02:44:51] @ Quit: sigmonsays: Read error: 110 (Connection timed out)
[2008/07/02 02:45:00] @ sigmonsays joined channel #puppet
[2008/07/02 03:04:50] @ Quit: cote:
[2008/07/02 03:21:40] @ tim|macbook joined channel #puppet
[2008/07/02 03:27:01] @ DerekW joined channel #puppet
[2008/07/02 03:33:29] @ Quit: thijso: Read error: 110 (Connection timed out)
[2008/07/02 03:50:13] @ roald joined channel #puppet
[2008/07/02 03:56:44] @ Ol_ left channel #puppet ()
[2008/07/02 03:58:01] @ Quit: Gwayne: Remote closed the connection
[2008/07/02 04:01:27] @ Gwayne joined channel #puppet
[2008/07/02 04:01:45] @ Quit: Gwayne: Read error: 131 (Connection reset by peer)
[2008/07/02 04:02:19] @ Quit: rcoup:
[2008/07/02 04:04:27] @ Gwayne joined channel #puppet
[2008/07/02 04:06:43] @ meandtheshell joined channel #puppet
[2008/07/02 04:10:51] @ Quit: tim|macbook: "Leaving"
[2008/07/02 04:15:55] @ cabbiepete joined channel #puppet
[2008/07/02 04:16:01] @ tim|macbook joined channel #puppet
[2008/07/02 04:20:43] @ Quit: cabbiepete: Client Quit
[2008/07/02 04:27:20] @ cabbiepete joined channel #puppet
[2008/07/02 04:28:58] @ Quit: randybias:
[2008/07/02 04:32:53] <zipkid> godmorning lively bunch!
[2008/07/02 04:32:59] <zipkid> oopsie
[2008/07/02 04:33:08] <zipkid> s/god/good/ too....
[2008/07/02 04:42:57] @ Quit: Gwayne: Remote closed the connection
[2008/07/02 04:43:32] @ omoon_ joined channel #puppet
[2008/07/02 04:43:42] @ Gwayne joined channel #puppet
[2008/07/02 04:49:15] @ aymerick joined channel #puppet
[2008/07/02 04:55:47] @ glaw joined channel #puppet
[2008/07/02 05:15:51] @ thijso joined channel #puppet
[2008/07/02 05:24:00] @ pkhamre joined channel #puppet
[2008/07/02 05:25:36] @ Quit: Gwayne: Remote closed the connection
[2008/07/02 05:26:38] @ Gwayne joined channel #puppet
[2008/07/02 05:35:28] <msf> hrm
[2008/07/02 05:36:13] <msf> I'm trying to define a top level file that contains variables for an entire environment
[2008/07/02 05:36:25] <msf> and import it conditionally
[2008/07/02 05:36:27] <msf> ie
[2008/07/02 05:36:39] <msf> case $environment {
[2008/07/02 05:36:46] <msf> "foo": {
[2008/07/02 05:37:00] <msf> import "env/foo.pp"
[2008/07/02 05:37:03] <msf> }
[2008/07/02 05:37:06] <msf> }
[2008/07/02 05:37:09] <msf> so forth
[2008/07/02 05:37:31] <msf> but this blows up every time I have the same variable defined in two different files
[2008/07/02 05:41:25] @ rcoup joined channel #puppet
[2008/07/02 05:51:41] <msf> variable scoping is killing me
[2008/07/02 05:52:41] @ Quit: Gwayne: Read error: 148 (No route to host)
[2008/07/02 06:47:07] <Soahc> I just put all my global variables into site.pp
[2008/07/02 06:47:23] <Soahc> if you do it in there you should be ok
[2008/07/02 06:52:25] @ Gwayne joined channel #puppet
[2008/07/02 06:55:09] @ Quit: neh: Read error: 110 (Connection timed out)
[2008/07/02 07:04:25] @ aymerick_ joined channel #puppet
[2008/07/02 07:04:27] @ Quit: aymerick: Read error: 104 (Connection reset by peer)
[2008/07/02 07:06:14] @ Quit: kenvandine: "Ex-Chat"
[2008/07/02 07:07:24] @ rcoup left channel #puppet ()
[2008/07/02 07:12:52] @ martha joined channel #puppet
[2008/07/02 07:13:49] <nico> mmh, I think the answer is gonna be "no" but I ask : is it possible to use several puppetmaster by setting a pool of IP to the puppetmaster DNS entry ?
[2008/07/02 07:14:18] <nico> example : puppetmaster.mycorp.net => 10.0.0.1 & 10.0.0.2
[2008/07/02 07:14:37] <nico> (the certificates may hurt no ?)
[2008/07/02 07:16:17] <Volcane> nico: check out mongrel
[2008/07/02 07:16:44] <Volcane> http://reductivelabs.com/trac/puppet/wiki/PuppetScalability
[2008/07/02 07:16:59] <Volcane> doesnt deal with mongrel though, hmm, theres a wiki somewhere
[2008/07/02 07:17:10] <Volcane> ah http://reductivelabs.com/trac/puppet/wiki/UsingMongrel
[2008/07/02 07:17:59] <Soahc> thats what i'm trying to do at the moment
[2008/07/02 07:18:08] <Soahc> but apache isn't playing nice with the certificates and i can't work out why
[2008/07/02 07:19:49] @ Quit: Gwayne: Remote closed the connection
[2008/07/02 07:26:54] <tarjei> question: what other options than puppet:// is there to distribute files? I.e. what do you guys use?
[2008/07/02 07:28:48] @ Quit: kambiz: "Leaving"
[2008/07/02 07:31:53] <tim|macbook> we use puppet://, but you could also use an nfs share, i believe
[2008/07/02 07:31:55] <tim|macbook> never tried that, though
[2008/07/02 07:37:12] <tarjei> tim|macbook: I'm not very interested in using nfs for this, allthough if I have to I will .
[2008/07/02 07:37:19] <mcbride> I'm mainly distributing files via content => file() or content => template()
[2008/07/02 07:37:33] <tim|macbook> what's wrong with puppet://?
[2008/07/02 07:37:52] <tarjei> I want to distribute fairly large amounts of files
[2008/07/02 07:38:06] <mcbride> large numbers of files, or large files?
[2008/07/02 07:38:31] <mcbride> neither content => or puppet:// are very good for large files in my experience.
[2008/07/02 07:39:09] <mcbride> there are recipes on the wiki for grabbing files with an exec of wget, I've used that as well.
[2008/07/02 07:40:15] @ Quit: meandtheshell: "Leaving."
[2008/07/02 07:40:31] <thom> i tend to create packages for stuff i need to distribute and then just use apt with a custom repo; everything else of that ilk comes straight out of svn (web resources etc)
[2008/07/02 07:40:41] <mcbride> yeah
[2008/07/02 07:40:59] <mcbride> I was going to say, if you have a large number of files, put it in git or something like that.
[2008/07/02 07:41:19] <mcbride> and then you can just exec git pull or svn update or whatever every time you run puppet.
[2008/07/02 07:42:42] <tarjei> ok, I guess I'll look into using svn export
[2008/07/02 07:42:49] <tarjei> thank you for the input
[2008/07/02 07:43:14] <Soahc> i hate ssl certificates
[2008/07/02 07:43:24] <Soahc> apache is being a bitch and not giving me any logs about why
[2008/07/02 07:43:40] <kajtzu> increase log level
[2008/07/02 07:44:19] <kajtzu> server certificates are kind of trivial, there's about three parameters you need to worry about: the cafile, the private key file and the signed public certificate
[2008/07/02 07:44:53] <kajtzu> sure oyu can tune ciphersuites and all that but it's not strictly necessary
[2008/07/02 07:45:13] <fujin> Soahc: should just be able to drop in the apache config on the wiki and have it work
[2008/07/02 07:45:15] <Soahc> i've pretty much copied the example apache conf in the using mongrel wiki
[2008/07/02 07:46:06] @ Gwayne joined channel #puppet
[2008/07/02 07:46:16] @ Quit: Gwayne: Read error: 104 (Connection reset by peer)
[2008/07/02 07:47:53] <fujin> I use the config 'Another Apache configuration'
[2008/07/02 07:47:55] <fujin> on the UsingMongrel page
[2008/07/02 07:48:00] <fujin> well, I put that config up there - works for me
[2008/07/02 07:48:17] <fujin> you can take out the revocationfile line actually, i think that's broken
[2008/07/02 07:48:21] <fujin> lemme login to work and take a gander
[2008/07/02 07:49:11] <fujin> where's the pastie bot!
[2008/07/02 07:49:41] <fujin> Soahc: http://pastie.org/226196 is the config I'm using
[2008/07/02 07:50:10] <Soahc> ta
[2008/07/02 07:50:18] <Soahc> how are you invoking the clients?
[2008/07/02 07:50:22] <Soahc> just normally?
[2008/07/02 07:51:15] <fujin> eh? yeah
[2008/07/02 07:51:21] <fujin> puppetd --t --noop
[2008/07/02 07:51:32] <Soahc> cool just checking
[2008/07/02 07:52:11] <Soahc> basicly what i've done is setup a new apache/puppet-mongrel on a new port and i'm calling puppetd --t --masterport xxxx
[2008/07/02 07:52:39] <Soahc> i'm getting errors about cerficates couldn't be verified
[2008/07/02 07:52:41] <Soahc> err: Could not retrieve catalog: Certificates were not trusted: certificate verify failed
[2008/07/02 07:53:29] <fujin> heh
[2008/07/02 07:53:39] <fujin> does the server the puppetd is trying to connect to match the one the server is listening as/on?
[2008/07/02 07:53:52] <Soahc> yup
[2008/07/02 07:54:10] <Soahc> i even tried forcing it with --server to make sure
[2008/07/02 07:54:39] <fujin> hard to say
[2008/07/02 07:54:56] <Soahc> yeah i'm slowing going thru trying to illimiate things
[2008/07/02 07:55:11] <fujin> and have you got certname= set to the same value as server= on the clients?
[2008/07/02 07:55:22] <Soahc> hrm no
[2008/07/02 07:55:42] <Soahc> but using the same cert files the client talks to my production puppetmaster on the same host
[2008/07/02 07:55:45] <Soahc> jut different port
[2008/07/02 07:56:34] <Soahc> [Wed Jul 02 21:51:18 2008] [debug] ssl_engine_kernel.c(1765): OpenSSL: Read: SSLv3 read client certificate A
[2008/07/02 07:56:37] <Soahc> [Wed Jul 02 21:51:18 2008] [debug] ssl_engine_kernel.c(1784): OpenSSL: Exit: failed in SSLv3 read client certificate A
[2008/07/02 07:56:41] <Soahc> it's like the client isn't sending it's certificate
[2008/07/02 07:57:04] <fujin> I find it's much easier to force certname=, server=
[2008/07/02 07:57:22] <fujin> restart your master in webrick mode (to regenerate the new cert for certname=) or call puppetca --generate <certname>
[2008/07/02 07:57:34] <fujin> hard to say, really
[2008/07/02 08:11:56] <Soahc> hrm ok it's definitly something with the client certificate
[2008/07/02 08:12:16] <Soahc> if i delete the client certificate it can happly go via apache/mongrel to request a new one and get the signed one,
[2008/07/02 08:30:16] @ Gwayne joined channel #puppet
[2008/07/02 08:30:20] @ keithlard joined channel #puppet
[2008/07/02 08:30:25] @ Quit: Gwayne: Read error: 104 (Connection reset by peer)
[2008/07/02 08:31:03] <Soahc> woo
[2008/07/02 08:31:05] <Soahc> fixed it
[2008/07/02 08:31:40] <Soahc> turns out I was pointing apache at the wrong ssl dir
[2008/07/02 08:31:47] <Soahc> it was an old one i wasn't using anymore
[2008/07/02 08:46:13] @ Quit: keithlard:
[2008/07/02 08:47:46] @ keithlard joined channel #puppet
[2008/07/02 08:48:13] <fujin> magic, Soahc :P
[2008/07/02 08:51:22] <Soahc> yeah :)
[2008/07/02 08:54:06] @ Quit: keithlard:
[2008/07/02 08:55:01] @ keithlard joined channel #puppet
[2008/07/02 08:55:31] @ mdray joined channel #puppet
[2008/07/02 08:57:58] @ lak joined channel #puppet
[2008/07/02 08:58:23] @ Timebomb joined channel #puppet
[2008/07/02 08:58:39] <Timebomb> ...
[2008/07/02 08:58:52] * fujin prods Timebomb
[2008/07/02 08:59:12] @ Timebomb left channel #puppet ()
[2008/07/02 09:00:27] <Soahc> is storeconfigs actually used by anyone in production?
[2008/07/02 09:02:46] @ aymerick joined channel #puppet
[2008/07/02 09:03:19] @ Quit: aymerick_: Read error: 104 (Connection reset by peer)
[2008/07/02 09:05:25] <fujin> yes, I use it.
[2008/07/02 09:05:32] <Soahc> do you find it slow?
[2008/07/02 09:05:50] <fujin> no
[2008/07/02 09:05:55] * tim|macbook always wonders why this channel has so many join-quit-10-sec-later... people expecting another type of 'puppet'?
[2008/07/02 09:05:56] <Soahc> if i enable it my config comile times go from 0.2s to 22.3s
[2008/07/02 09:06:11] <tim|macbook> Soahc: just don't use it in combination with sqlite
[2008/07/02 09:06:18] <Soahc> i'm not
[2008/07/02 09:06:20] <Soahc> i'm using mysql
[2008/07/02 09:06:34] <Soahc> (tho i've tested it with sqlite and it's faster than mysql)
[2008/07/02 09:06:39] <Soahc> but still slow
[2008/07/02 09:06:53] <fujin> install the mysql gem
[2008/07/02 09:06:58] <fujin> you'll be using the native ruby one, vs. the C one.
[2008/07/02 09:07:02] <fujin> It's terribly slow..
[2008/07/02 09:07:16] <fsweetser> not to mention buggy
[2008/07/02 09:07:52] @ Quit: fsweetser: Remote closed the connection
[2008/07/02 09:08:20] <fdz_> Hi folks, working on #1384, I'm striving to find a way to test if ressources generated by generate() in a type are correctly created in the catalog
[2008/07/02 09:08:21] <gepetto> fdz_: #1384 is http://reductivelabs.com/redmine/issues/show/1384
[2008/07/02 09:10:32] <fujin> test as in spec?
[2008/07/02 09:10:41] @ fsweetser joined channel #puppet
[2008/07/02 09:10:48] @ ski98033 joined channel #puppet
[2008/07/02 09:11:04] <fdz_> fujin: yep, the actual code is there http://github.com/ctrlaltdel/puppet/commit/af35b87218bdf69ad820cfbf6daca87d186157fa
[2008/07/02 09:12:38] <fujin> hrmm, there aren't any other integration tests where he's used generate()
[2008/07/02 09:12:40] <fujin> me pokes around
[2008/07/02 09:13:45] <fujin> ah yep
[2008/07/02 09:14:03] <fujin> take a look at spec/unit/provider/interface/redhat.rb
[2008/07/02 09:14:13] <fujin> there's a description for 'when generating'
[2008/07/02 09:14:54] <fujin> your generate() method is just returning an array of Puppet::Type.type(:file)'s, right?
[2008/07/02 09:15:03] <fdz_> fujin: mmmh, that's not the same generate, this one comes from the provider and not from the type
[2008/07/02 09:15:12] <ashp> I'm still terrified of interface/redhat.rb
[2008/07/02 09:15:16] <fdz_> yep
[2008/07/02 09:15:55] <fujin> so what exactly are you trying to spec?
[2008/07/02 09:16:06] <fujin> generate should return an array
[2008/07/02 09:16:12] <fujin> generate should return an array containing
[2008/07/02 09:16:26] <fujin> the Type.type(:file)s contained in the array returned should be valid
[2008/07/02 09:17:15] <fujin> well, they should be Type.type(:file)'s :D
[2008/07/02 09:17:27] <fdz_> yes, but the generate function requires a catalog
[2008/07/02 09:17:35] <fujin> mock one
[2008/07/02 09:18:19] <fujin> er, stub
[2008/07/02 09:18:26] <fdz_> because it's using catalog.resource()
[2008/07/02 09:19:53] * fujin groans
[2008/07/02 09:19:56] <fujin> sec
[2008/07/02 09:20:10] <fdz_> stubbing the catalog seems a bit overkill, no ?
[2008/07/02 09:21:15] <lazzurs> I don't suppose anyone here knows anything about puppetshow?
[2008/07/02 09:21:19] <fujin> not really, depends on what units of code you want to test
[2008/07/02 09:21:27] <fujin> unless catalog.resource(:file, dir)
[2008/07/02 09:22:32] <fujin> ugh, I'm going to sleep
[2008/07/02 09:22:34] <fujin> gl fdz_
[2008/07/02 09:22:43] <fdz_> ok, thanks
[2008/07/02 09:31:06] @ Quit: lak:
[2008/07/02 09:31:50] @ brscott joined channel #puppet
[2008/07/02 09:33:56] @ brscott left channel #puppet ()
[2008/07/02 09:45:34] @ cote joined channel #puppet
[2008/07/02 09:46:07] @ kambiz joined channel #puppet
[2008/07/02 09:46:24] <duritong> fsweetser: where can the mysql warning be found?
[2008/07/02 09:46:47] @ brothers joined channel #puppet
[2008/07/02 09:58:23] <fsweetser> on my system (fedora) rails.log is in /var/log/puppet
[2008/07/02 09:58:44] @ markl_ joined channel #puppet
[2008/07/02 10:00:18] <duritong> ok I don't have such an entry
[2008/07/02 10:00:24] <duritong> so it looks like i'm fine
[2008/07/02 10:00:26] <duritong> :)
[2008/07/02 10:01:59] <jamesturnbull> lazzurs: what do you want to know?
[2008/07/02 10:02:56] @ shenson_not_here is now known as shenson
[2008/07/02 10:07:07] @ Quit: brothers: "Leaving."
[2008/07/02 10:09:57] <zipkid> hi, is there a type to generate nrp commands?
[2008/07/02 10:10:09] <zipkid> nrpe that is...
[2008/07/02 10:10:58] <nico> according to the doc, if I want to manage my node list through an 'external_node' I will have to call the external_node command for each host (passing it as a parameter) right ?
[2008/07/02 10:11:18] <duritong> nico: imho yes, but /me not using external_node
[2008/07/02 10:11:46] <lazzurs> jamesturnbull: well it is a silly problem that hobo does not want to install with gem install hobo to start with
[2008/07/02 10:12:14] <Disconnect> nico: afair it gets called 3 times - first with hostname, then fqdn, then 'default'
[2008/07/02 10:12:52] <lazzurs> jamesturnbull: on fedora 9 with usual ruby and ruby gem packages installed
[2008/07/02 10:13:08] <jamesturnbull> lazzurs: errors/logs?
[2008/07/02 10:14:08] @ jvanzyl joined channel #puppet
[2008/07/02 10:15:09] <nico> Disconnect: it is called for each entry given by 'puppetca --list --all' ?
[2008/07/02 10:15:28] <lazzurs> jamesturnbull: http://pastebin.com/d3bc487e
[2008/07/02 10:15:54] <Disconnect> its called when a node connects to get a config. so if a node stops connecting, it'll stop getting called..
[2008/07/02 10:16:14] <nico> ho neat
[2008/07/02 10:17:47] <nico> Disconnect: I had not seen anywhere that it was called when a node connected to get its config
[2008/07/02 10:18:12] <jamesturnbull> lazzurs: that's weird
[2008/07/02 10:18:13] <Disconnect> otherwise it can't stay up to date
[2008/07/02 10:19:01] <nico> Disconnect: it was bugging me, but I knew I was missing something
[2008/07/02 10:20:32] @ m1n3s6 joined channel #puppet
[2008/07/02 10:21:35] <jamesturnbull> lazzurs: I don't know what's wrong there but shadoi (who isn't on the channel right now) is a bit of hobo whiz
[2008/07/02 10:23:38] @ martha left channel #puppet ()
[2008/07/02 10:24:49] @ winrefund joined channel #puppet
[2008/07/02 10:25:02] <winrefund> can anyone get to www.apress.com?
[2008/07/02 10:25:52] <nico> * Connection to 65.19.150.101 Failed
[2008/07/02 10:26:28] @ DavidS joined channel #puppet
[2008/07/02 10:26:32] <DavidS> hi all
[2008/07/02 10:27:22] <m1n3s6> winrefund: Connection to host lost.
[2008/07/02 10:27:27] <winrefund> yea
[2008/07/02 10:27:31] <winrefund> strange
[2008/07/02 10:27:59] <winrefund> the one time I don't have my hardcover version of "Pulling strings..." and need to recover my pdf's password
[2008/07/02 10:28:10] <winrefund> maybe pdfcrack will do the job
[2008/07/02 10:28:16] <winrefund> goddamn DRM
[2008/07/02 10:28:23] <DavidS> oops
[2008/07/02 10:28:27] @ Quit: DavidS: Client Quit
[2008/07/02 10:29:14] @ DavidS joined channel #puppet
[2008/07/02 10:29:19] <DavidS> better
[2008/07/02 10:29:26] <duritong> DavidS: hei
[2008/07/02 10:29:30] <winrefund> yea, root no good :)
[2008/07/02 10:29:41] <DavidS> :)
[2008/07/02 10:31:31] <winrefund> would anyone be interested in helping me improve my NFS exports recipe?
[2008/07/02 10:31:47] <winrefund> it works but I'm not too crazy about some of the assumptions it makes
[2008/07/02 10:32:01] <winrefund> http://reductivelabs.com/trac/puppet/wiki/Recipes/NFS
[2008/07/02 10:33:15] @ Quit: pleemans: "Ex-Chat"
[2008/07/02 10:34:18] @ DavidS is now known as DavidS_
[2008/07/02 10:34:21] @ DavidS_ is now known as DavidS
[2008/07/02 10:35:41] <Disconnect> winrefund: according to yesterday, you never use package { .. always include something that does it instead (so you can have multiple modules/classes that need the package without errors. or someday randomly convert all your boxes to solaris or something. :) ..)
[2008/07/02 10:36:44] @ Quit: DavidS: "leaving"
[2008/07/02 10:36:46] <winrefund> that's interesting
[2008/07/02 10:37:16] <lazzurs> jamesturnbull: figured from github, with luck he will appear, I assume he does join this channel?
[2008/07/02 10:38:22] <winrefund> Disconnect, that sounds like it would get really granular though. Should I have a class for every package?
[2008/07/02 10:38:22] <jamesturnbull> lazzurs: he is often here
[2008/07/02 10:38:31] <winrefund> hi James
[2008/07/02 10:39:17] <winrefund> James, what does someone do when they forget their DRM credential that is required to open the pdf version of "pulling strings..."?
[2008/07/02 10:39:32] <winrefund> James: Not that I really believe that's your issue to respond to :)
[2008/07/02 10:40:05] <kjetilho> winrefund: just curious, but what program are you using to read the PDF?
[2008/07/02 10:40:20] * kjetilho didn't think any Linux readers had DRM support.
[2008/07/02 10:40:27] <winrefund> just mentioning that I really do not agree with the decision to add Digital Restrictions Management to the pdfs
[2008/07/02 10:40:32] <winrefund> evince
[2008/07/02 10:41:22] <kjetilho> interesting. well, they all use poppler so I guess trying something else won't help
[2008/07/02 10:41:46] <winrefund> I'm running pdfcrack against it now but I think it'll take a few days
[2008/07/02 10:42:22] @ DavidS joined channel #puppet
[2008/07/02 10:42:29] <Disconnect> winrefund: i'd tag holoway about it, my thought was its kinda nuts but we went around on it yesterday. the 'real world' answer seems to be "install a ton of packages everywhere, from the base class, whether its needed or not" .. but thats not really particularly good either
[2008/07/02 10:42:31] <DavidS> brr .. irssi needs some getting used to
[2008/07/02 10:42:48] <kjetilho> found this on Google: gconf-editor *cough* Enable /apps/evince/override_restrictions
[2008/07/02 10:43:09] <winrefund> Disconnect, sounds like an interesting conversation
[2008/07/02 10:43:20] <Disconnect> winrefund: it was repetitive at least
[2008/07/02 10:43:25] <winrefund> Disconnect, actually... sounds like a 'best practice' kinda thing
[2008/07/02 10:43:45] <kjetilho> Disconnect: that was *not* the advice you were given
[2008/07/02 10:43:50] <winrefund> kjetilho, thanks
[2008/07/02 10:44:42] <Disconnect> kjetilho: that was -exactly- the advice i was given. ("break it into a class and use that class instead" .. and iirc it was Volcane who said 'but what i do to avoid that mess is just install most of the packages everywhere")
[2008/07/02 10:45:16] <DavidS> seen blakeb
[2008/07/02 10:45:23] <DavidS> !seen blakeb
[2008/07/02 10:45:25] <gepetto> DavidS: nope!
[2008/07/02 10:45:39] <DavidS> i hate being away from my main machine :-(
[2008/07/02 10:46:10] <kjetilho> Disconnect: you said «the 'real world'answer seems to be "install a ton of packages everywhere, from the base class, whether its needed or not"»
[2008/07/02 10:46:35] <winrefund> wow, I never even heard of gconf-editor
[2008/07/02 10:46:36] <winrefund> heh
[2008/07/02 10:46:53] <kjetilho> DavidS: use screen, I connect to this session from home, my mobile, and from work.
[2008/07/02 10:47:25] <Disconnect> ...from volcane, 13:34 (Eastern time) " [13:34] i pop the lot into a common class that i dont mind being everywhere and just include it, with Package[...] requires, and if i need that level of abstraction i refactor that package out at that point"
[2008/07/02 10:47:36] <winrefund> kjetilho, ah I guess that override setting does not actually override the password prompt. Thanks for the try though
[2008/07/02 10:48:45] <kjetilho> Disconnect: that's not what holoway recommended ...
[2008/07/02 10:48:51] <Disconnect> kjetilho: and i didn't say it was
[2008/07/02 10:52:59] <DavidS> kjetilho: the problem is not "not enough irssi usage" but "too much irssi usage" ;)
[2008/07/02 10:53:42] <Disconnect> istr the data in the drm pdf is actually encrypted, so the viewer can override some things (permission to print, annotate, etc) but not the drm
[2008/07/02 10:56:45] <jamesturnbull> gepetto: seen shdoi
[2008/07/02 10:56:47] <gepetto> jamesturnbull: nope!
[2008/07/02 10:56:54] <jamesturnbull> gepetto: seen shadoi
[2008/07/02 10:56:55] <gepetto> jamesturnbull: shadoi was last seen 3 days, 12 hours, 5 minutes and 39 seconds ago, quitting IRC ("leaving")
[2008/07/02 10:57:47] * zirpu queues the 'come back to Jamaica...' song.
[2008/07/02 10:57:56] <jamesturnbull> winrefund: sorry missed your message
[2008/07/02 10:58:08] <jamesturnbull> winrefund: I have zero input into DRM or packaging
[2008/07/02 10:58:10] * zipkid feels ignored ... :-(
[2008/07/02 10:58:30] <jamesturnbull> winrefund: if you have an issue talk to Apress - they must have some mechanism for giving you new creds
[2008/07/02 10:58:55] <jamesturnbull> zipkid: what's your question?
[2008/07/02 10:59:03] <zipkid> hi, is there a type to generate nrpe commands?
[2008/07/02 10:59:06] <winrefund> James, will do
[2008/07/02 10:59:29] <jamesturnbull> zipkid: if it isn't in the type reference then no
[2008/07/02 10:59:52] <zipkid> it is'nt , nobody else implemented it? i cannot find ...
[2008/07/02 11:00:04] <zirpu> there's a recipe for one.
[2008/07/02 11:00:05] <jamesturnbull> zipkid: I don't know of one
[2008/07/02 11:00:06] <zipkid> isn't that is...
[2008/07/02 11:00:13] <zirpu> zipkid: google puppet nrpe type
[2008/07/02 11:00:15] <zipkid> zirpu: ?
[2008/07/02 11:00:25] <zipkid> ok...
[2008/07/02 11:00:42] <jamesturnbull> zipkid: http://reductivelabs.com/trac/puppet/wiki/Recipes/Nagios
[2008/07/02 11:00:54] <zirpu> oh wait, it's generate just the nrpe.cfg though. not nagios checks.
[2008/07/02 11:01:20] <jamesturnbull> zipkid: well the checks are in the nrpe.cfg file
[2008/07/02 11:01:31] <jamesturnbull> zirpu: rather ^
[2008/07/02 11:02:04] <jamesturnbull> alright night all
[2008/07/02 11:02:10] <zipkid> jamesturnbull: zirpu: this does not generate the individual commands....
[2008/07/02 11:02:32] <jamesturnbull> zipkid: which indvidual commands?
[2008/07/02 11:02:36] @ muerr joined channel #puppet
[2008/07/02 11:02:54] <jamesturnbull> zipkid: you mean a check that uses check_nrpe?
[2008/07/02 11:03:01] <zipkid> ommand[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
[2008/07/02 11:03:06] <zipkid> this stuff
[2008/07/02 11:03:16] <jamesturnbull> zipkid: but in the recipe you can see a template
[2008/07/02 11:03:18] <jamesturnbull> modify the template
[2008/07/02 11:03:19] <zipkid> in /etc/nagios/nrpe.cfg
[2008/07/02 11:03:29] <zipkid> jamesturnbull: i know
[2008/07/02 11:03:40] <zipkid> but i have many hosts.....
[2008/07/02 11:03:52] <zipkid> jamesturnbull: i will figure out....
[2008/07/02 11:04:24] <jamesturnbull> zipkid: not sure how many hosts makes a difference
[2008/07/02 11:04:38] <jamesturnbull> zipkid: many commands yes - but again do'able with a template
[2008/07/02 11:04:46] @ Quit: kambiz: "Leaving"
[2008/07/02 11:05:07] <zipkid> different type of checks (beside the basic set) on different servers....
[2008/07/02 11:05:08] <jamesturnbull> zipkid: good luck with it anyways
[2008/07/02 11:05:21] <zipkid> thx ... :-)
[2008/07/02 11:05:36] <jamesturnbull> zipkid: then multiple templates or include all checks
[2008/07/02 11:07:34] <jamesturnbull> zipkid: doesn't matter if you've got different checks on different hosts - just include them all - you onyl ever call the ones you want via check_nrpe - so it doesn't matter if the others are there too
[2008/07/02 11:08:17] <mdray> anyone tried installing nagios and nsca on clients to send passive checks to a collector?
[2008/07/02 11:08:28] <jamesturnbull> mdray: yep
[2008/07/02 11:09:33] <mdray> anything to note?
[2008/07/02 11:09:57] <jamesturnbull> mdray: it's pretty simple - being me - I'll mention Pro Nagios 2.0 that I wrote
[2008/07/02 11:10:19] <jamesturnbull> mdray: has some examples of that and the doco on the Nagos website is good too
[2008/07/02 11:11:21] <mdray> right-oh
[2008/07/02 11:11:24] <mdray> thanks!
[2008/07/02 11:11:45] <mdray> right, so we run a biggish web farm
[2008/07/02 11:11:52] <mdray> ~100 or so webservers
[2008/07/02 11:12:07] <mdray> and sometimes we need to deploy a new something to all of them at the same time
[2008/07/02 11:12:15] <mdray> what's the best way of doing that with puppet?
[2008/07/02 11:12:30] <mdray> puppetrunning with tags and groups of hosts?
[2008/07/02 11:12:39] <zipkid> jamesturnbull: you are correct ! :-)
[2008/07/02 11:12:56] <mdray> we wouldn't want to do them all at the exact same time (don't want 100 apache restarts together) but over a couple of minutes
[2008/07/02 11:13:16] <jamesturnbull> zipkid: good to hear I haven't lost my Nagios-fu :)
[2008/07/02 11:13:18] <jamesturnbull> alright seriously night all now - way past bedtime. :)
[2008/07/02 11:13:43] <jamesturnbull> mdray: you can also splay puppet
[2008/07/02 11:13:55] <jamesturnbull> mdray: check the wiki:COnfigurationReference
[2008/07/02 11:13:56] <muerr> mornin
[2008/07/02 11:14:10] <jamesturnbull> mdray: check the wiki:ConfigurationReference
[2008/07/02 11:14:23] <gepetto> jamesturnbull: mdray: wiki:ConfigurationReference is http://reductivelabs.com/trac/puppet/wiki/ConfigurationReference
[2008/07/02 11:14:23] @ brothers joined channel #puppet
[2008/07/02 11:14:44] @ kambiz joined channel #puppet
[2008/07/02 11:15:52] <duritong> can I use other facts in a fact?
[2008/07/02 11:16:39] @ Quit: Demosthenes: "Lost terminal"
[2008/07/02 11:16:50] @ lak joined channel #puppet
[2008/07/02 11:17:20] @ Quit: jvanzyl:
[2008/07/02 11:25:49] @ Quit: lak:
[2008/07/02 11:31:24] @ jvanzyl joined channel #puppet
[2008/07/02 11:33:43] @ Quit: tim|macbook: "This computer has gone to sleep"
[2008/07/02 11:41:02] @ cabbiepete_ joined channel #puppet
[2008/07/02 11:41:08] @ Quit: Wicky656:
[2008/07/02 11:42:58] @ Quit: cabbiepete_: Client Quit
[2008/07/02 11:43:21] @ cabbiepete_ joined channel #puppet
[2008/07/02 11:44:07] <benp-> goodmorning
[2008/07/02 11:45:33] <DavidS> goodevening, benp- ;)
[2008/07/02 11:54:10] @ jvanzyl_ joined channel #puppet
[2008/07/02 11:54:13] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer)
[2008/07/02 11:57:34] @ Quit: cabbiepete: No route to host
[2008/07/02 11:59:00] @ m1n3s6 left channel #puppet ()
[2008/07/02 12:01:17] @ Quit: aymerick:
[2008/07/02 12:02:04] @ Quit: ski98033: "Leaving."
[2008/07/02 12:02:17] @ Quit: DavidS: "leaving"
[2008/07/02 12:15:43] @ Quit: omoon_: "Computer goes to sleep!"
[2008/07/02 12:30:41] <aaronc> how can I make it so that when a 'mailalias' resource changes the alias file, that postalias is rerun?
[2008/07/02 12:31:29] <aaronc> can I do something like subscribe => Mailalias[ "*" ] so that if I have multiple mailalias that they are all subscribed to?
[2008/07/02 12:37:17] @ Quit: mdray: "Leaving"
[2008/07/02 12:43:38] @ Quit: DerekW: "Leaving"
[2008/07/02 12:44:34] <Volcane> Mailalias{ notify => Exec[....] }
[2008/07/02 12:44:39] <Volcane> before you start using it
[2008/07/02 12:44:43] <benp-> you can't do that, but you can have your exec's notify.. ahh, volcane beat me to it
[2008/07/02 12:44:55] <Volcane> what it does is set a default for all further mailalias{} resources
[2008/07/02 12:46:29] @ pleemans joined channel #puppet
[2008/07/02 12:53:04] @ Quit: cote:
[2008/07/02 12:55:21] @ magnachef__ joined channel #puppet
[2008/07/02 12:55:23] @ lak joined channel #puppet
[2008/07/02 13:05:20] @ Quit: cabbiepete_:
[2008/07/02 13:07:27] @ patrick joined channel #puppet
[2008/07/02 13:09:05] <patrick> i'm trying out puppet (never used it before), and have met a fairly fundamental stumbling block
[2008/07/02 13:09:23] <patrick> i run puppetd --test --waitforcert 60 --server whatever
[2008/07/02 13:09:29] <patrick> (on the client)
[2008/07/02 13:09:45] <patrick> but on the server, "puppetca -l" always returns "No certificates to sign"
[2008/07/02 13:10:20] <patrick> anyone got any pointers? the logs aren't showing much
[2008/07/02 13:10:46] <lak> patrick: you running puppetca as root?
[2008/07/02 13:10:52] <patrick> yes
[2008/07/02 13:11:27] <lak> you getting logs on the server that indicate it's receiving the cert?
[2008/07/02 13:11:29] @ Quit: glaw: "COMPUTER SAYS NO"
[2008/07/02 13:11:37] <lak> if you do a find in the ssl dir, do you see it?
[2008/07/02 13:11:49] <lak> mostly, the syslogs on the server should lead you to the right place
[2008/07/02 13:11:52] <lak> bbl
[2008/07/02 13:11:56] @ Quit: lak:
[2008/07/02 13:18:06] @ Quit: magnachef__: Read error: 110 (Connection timed out)
[2008/07/02 13:20:32] @ plathrop joined channel #puppet
[2008/07/02 13:25:18] @ Quit: Disconnect: Read error: 104 (Connection reset by peer)
[2008/07/02 13:27:12] @ Disconnect joined channel #puppet
[2008/07/02 13:28:39] @ Disconnect left channel #puppet ()
[2008/07/02 13:41:40] @ Disconnect joined channel #puppet
[2008/07/02 13:42:39] <patrick> no luck with any of the above
[2008/07/02 13:42:40] <patrick> anyone else?
[2008/07/02 13:48:39] @ randybias joined channel #puppet
[2008/07/02 13:49:21] @ Quit: randybias: Client Quit
[2008/07/02 13:56:01] @ Quit: jleggett_: Remote closed the connection
[2008/07/02 13:58:11] @ Quit: plathrop: Remote closed the connection
[2008/07/02 13:58:24] @ plathrop joined channel #puppet
[2008/07/02 13:58:28] <patrick> i'm running "puppetmasterd --debug --no-daemonize"
[2008/07/02 13:58:43] <patrick> how do i make it run, non-daemonized, in debug mode, if that doesn't work?
[2008/07/02 13:59:09] <Disconnect> "doesn't work"?
[2008/07/02 13:59:19] <patrick> well
[2008/07/02 13:59:20] <patrick> that runs
[2008/07/02 13:59:23] <patrick> daemonised
[2008/07/02 13:59:26] <patrick> in non-debug mode
[2008/07/02 13:59:32] <Disconnect> --verbose
[2008/07/02 13:59:37] <Disconnect> or --test
[2008/07/02 13:59:55] <patrick> /usr/sbin/puppetmasterd: unrecognized option `--test'
[2008/07/02 14:02:35] <Disconnect> test may be puppetd only.. but verbose should work.
[2008/07/02 14:02:42] <patrick> yeah...
[2008/07/02 14:03:27] <patrick> well
[2008/07/02 14:03:31] <patrick> it ain't :(
[2008/07/02 14:05:31] @ randybias joined channel #puppet
[2008/07/02 14:06:32] <patrick> hm
[2008/07/02 14:06:35] <patrick> same issue with puppetca
[2008/07/02 14:08:42] @ Quit: plathrop: Remote closed the connection
[2008/07/02 14:11:38] @ yure joined channel #puppet
[2008/07/02 14:11:58] <Disconnect> ..it daemonizes?
[2008/07/02 14:12:02] <Disconnect> thats not natural
[2008/07/02 14:13:10] <patrick> hmmm
[2008/07/02 14:13:24] <patrick> i think i've solved the issue i was originally trying to debug, anyway.
[2008/07/02 14:13:42] <patrick> and it doesn't look like it's happy with both puppet and puppetmaster on the same box
[2008/07/02 14:19:57] @ lak joined channel #puppet
[2008/07/02 14:23:06] @ kyrh joined channel #puppet
[2008/07/02 14:23:31] @ Quit: keithlard:
[2008/07/02 14:26:31] @ Quit: randybias: Read error: 110 (Connection timed out)
[2008/07/02 14:26:43] <refuseresisted> anyone got an idea wh this doesn't work? --> http://pastebin.com/d3f8f68b8
[2008/07/02 14:28:35] <tim|imac> refuseresisted: Duplicate definition: File[/etc/dnsroots.global] is already defined in file /etc/puppet/manifests/classes/tinydns.pp
[2008/07/02 14:28:39] <tim|imac> kinda says it all :)
[2008/07/02 14:29:06] <tim|imac> you try to define the "/etc/dnsroots.global" file twice
[2008/07/02 14:29:14] <refuseresisted> that part of the manifest IS line 273
[2008/07/02 14:29:17] <refuseresisted> 263*
[2008/07/02 14:29:21] <refuseresisted> check thsi out:
[2008/07/02 14:29:25] <refuseresisted> [root@dist classes]# grep dnsroots.global tinydns.pp
[2008/07/02 14:29:25] <refuseresisted> file { "/etc/dnsroots.global":
[2008/07/02 14:29:25] <refuseresisted> source => "puppet://$servername/dist/apps/tinydns/dnsroots.global",
[2008/07/02 14:29:48] <refuseresisted> those are the only two lines the string exists in my manifests
[2008/07/02 14:31:02] @ randybias joined channel #puppet
[2008/07/02 14:31:04] <tim|imac> can't say, then, maybe somewhere in a definition?
[2008/07/02 14:31:17] <tim|imac> can you paste the complete tinydns.pp somewhere for perusal?
[2008/07/02 14:31:28] <tim|imac> do you inherit another class?
[2008/07/02 14:31:38] <refuseresisted> one sec
[2008/07/02 14:31:42] <kyrh> hi guys. Could somebody, please, describe me, how to work with "interface" type (http://www.reductivelabs.com/trac/puppet/wiki/TypeReference#interface)? I suppose, "ensure => present" inought for configure and start interface. But interface doesn't starting (I seeng provider source). What a clean way for starting interface?
[2008/07/02 14:32:03] <refuseresisted> kyrh, i think you want up
[2008/07/02 14:32:35] <Disconnect> patrick: fyi i have puppetd and puppetmaster on the same box, no problems
[2008/07/02 14:32:47] <kyrh> refuseresisted: "ensure => up" you mean?
[2008/07/02 14:32:55] <refuseresisted> kyrh, yeah
[2008/07/02 14:33:15] <refuseresisted> tim|imac, no i don't inherit
[2008/07/02 14:33:51] <tim|imac> kyrh: do you get any errors?
[2008/07/02 14:34:19] <kyrh> refuseresisted: we are talking about puppet 0.24.4? I doesn't see this value in documentation and can't see it in source.
[2008/07/02 14:34:40] <refuseresisted> kyrh, lemme check what i've got then (but i may do my interfaces differently; can't remember)
[2008/07/02 14:34:45] <kyrh> tim|imac: we are trying to write same provider for freebsd. And looking examples
[2008/07/02 14:34:50] <tim|imac> refuseresisted: do you use definition that are defined somewhere else? you might want to try a "grep -r dnsroots.global /etc/puppet" (assuming you have all your recipes in /etc/puppet, replace with wherever they are)
[2008/07/02 14:35:17] @ Quit: randybias: Client Quit
[2008/07/02 14:35:22] <refuseresisted> tim|imac, did that and the two lines above are the only occurance :(
[2008/07/02 14:35:56] <refuseresisted> kyrh, sorry i have manual defines in a "network" class to manage my interfaces and aliases :(
[2008/07/02 14:36:07] <tim|imac> refuseresisted: then i don't know without seeing more of the class
[2008/07/02 14:36:17] <refuseresisted> tim|imac, i'm posting it to pstebin now
[2008/07/02 14:36:18] <tim|imac> kyrh: i don't know, i'm afraid, i don't use those myself
[2008/07/02 14:36:24] <tim|imac> refuseresisted: ok :)
[2008/07/02 14:37:26] @ Quit: lak:
[2008/07/02 14:38:29] <kyrh> refuseresisted: is the private class for start-stop network correct way? I hope to add freebsd interface provider to puppet mainstream.
[2008/07/02 14:39:13] <refuseresisted> kyrh, i do it my way because at the time (0.24.1) the interface provider didn't seem to be fully implemented
[2008/07/02 14:39:36] <refuseresisted> i think i needed support for static routes or something
[2008/07/02 14:42:25] <kyrh> thnx
[2008/07/02 14:42:29] @ Quit: kyrh: "leaving"
[2008/07/02 14:43:00] <benp-> does freebsd still just use /etc/rc.conf for nic configuration?
[2008/07/02 14:43:05] <refuseresisted> tim|imac, http://pastebin.com/d50ee7be1
[2008/07/02 14:43:20] <refuseresisted> benp-, yea
[2008/07/02 14:43:42] <tim|imac> refuseresisted: got it
[2008/07/02 14:44:02] <tim|imac> you use the cache definition multiple times
[2008/07/02 14:44:14] <tim|imac> but it doesn't set a unique name for your file object
[2008/07/02 14:44:15] <refuseresisted> ohhhh
[2008/07/02 14:44:36] <refuseresisted> i thought i fixed that too, damn
[2008/07/02 14:44:54] <tim|imac> you can easily add a $name in the name and then set a target => (i think that's correct, but check the docs, most types have a way to have the name different from the actual object)
[2008/07/02 14:45:26] <refuseresisted> yea, i did that for everything else but that one! haha
[2008/07/02 14:46:01] <tim|imac> with such large classes, i tend to overlook such details too ;-)
[2008/07/02 14:46:32] <refuseresisted> hehe.. it is a bit ugly due to using daemontools :(
[2008/07/02 14:46:50] <refuseresisted> thanks for the keen eye
[2008/07/02 14:48:00] <tim|imac> np
[2008/07/02 14:48:44] @ ranguard joined channel #puppet
[2008/07/02 14:50:02] <benp-> oh cool, nice djbdns manifest
[2008/07/02 14:50:10] <refuseresisted> benp-, thanks :)
[2008/07/02 14:50:30] @ Quit: jvanzyl_:
[2008/07/02 14:50:58] <tim|imac> hm... i thought there was a separate puppet-doc mailinglist?
[2008/07/02 14:52:14] <benp-> it would be nice and easy to write a provider for, if freebsd used hostname.if style nic config files.
[2008/07/02 14:52:57] <benp-> it would almost be worth it to implement those.. you could probably rip off /etc/netstart from openbsd or something
[2008/07/02 14:53:06] <refuseresisted> benp-, i *think* you can use rc.conf.d and split them up
[2008/07/02 14:53:27] <benp-> forgot about that.
[2008/07/02 14:53:48] <refuseresisted> it might be a tricky gotcha for anyone unfamiliar with the environment, though
[2008/07/02 14:54:01] @ Quit: ranguard: "leaving"
[2008/07/02 14:54:08] <benp-> yeah its not set up by default and not well documented
[2008/07/02 14:54:14] @ ranguard joined channel #puppet
[2008/07/02 14:59:14] <ranguard> Is it possible to run puppet without the puppetmaster? (basically sync the puppet configs to all machines and get them to run locally?
[2008/07/02 15:00:53] <benp-> in my experience, freebsd and puppet don't play all that well together
[2008/07/02 15:01:13] * ranguard is thinking EC2 with config on S3 so when a new machine starts up it can mount S3 and then run puppet command (I've tried running just 'puppet manifest/site.pp', but then there's no filestore)
[2008/07/02 15:02:54] <tim|imac> never really looked at the standalone puppet :S
[2008/07/02 15:03:18] <benp-> ranguard: it works but certain features are disabled.. and there's no concept of nodes
[2008/07/02 15:03:53] <ranguard> benp-: darn :)
[2008/07/02 15:06:35] <ranguard> I guess local puppetmaster on each box then with config over S3
[2008/07/02 15:07:48] @ jvanzyl joined channel #puppet
[2008/07/02 15:12:38] <benp-> by filestore do you mean file server?
[2008/07/02 15:13:23] <ranguard> benp-: yea, but actually I think the issue is the Node you mentioned
[2008/07/02 15:14:32] <benp-> well, just don't use nodes.. and you can use file:// instead of puppet:// to point to local files
[2008/07/02 15:15:17] <benp-> not sure how you would do templates
[2008/07/02 15:15:53] <ranguard> is there somewhere that documents what standalone doesn't support?
[2008/07/02 15:16:20] <ranguard> wonder if it'll end up being more hastle than it's worth
[2008/07/02 15:19:21] <ranguard> benp-: thanks - I'll go play some more
[2008/07/02 15:19:34] @ ski98033 joined channel #puppet
[2008/07/02 15:24:11] @ Quit: pleemans: "Ex-Chat"
[2008/07/02 15:26:48] @ plathrop joined channel #puppet
[2008/07/02 15:27:59] @ Quit: shadowvice: Read error: 104 (Connection reset by peer)
[2008/07/02 15:33:22] @ shake-n-bake joined channel #puppet
[2008/07/02 15:35:39] <winrefund> so I can't seem to have puppet ensure that a service is not running
[2008/07/02 15:35:55] <winrefund> I've tried ensure => stopped, and ensure => false
[2008/07/02 15:35:59] <winrefund> neither works
[2008/07/02 15:38:39] <Volcane> is the service name the same as the process name?
[2008/07/02 15:38:43] <winrefund> ensure => running works
[2008/07/02 15:38:48] <winrefund> service is iptables
[2008/07/02 15:39:06] <Volcane> so the way it checks if its running by default is to just do ps -auxw|grep iptables or somesuch
[2008/07/02 15:39:14] <Volcane> check out the hasrestart, hasstatus etc options
[2008/07/02 15:39:36] <winrefund> ok
[2008/07/02 15:41:38] <winrefund> ah, I can use stop
[2008/07/02 15:45:34] @ lak joined channel #puppet
[2008/07/02 15:46:29] @ asa_ joined channel #puppet
[2008/07/02 16:00:17] @ Demosthenes joined channel #puppet
[2008/07/02 16:02:53] @ rizwank joined channel #puppet
[2008/07/02 16:11:21] @ e^ipi joined channel #puppet
[2008/07/02 16:11:29] <e^ipi> hey puppeteers
[2008/07/02 16:12:14] <e^ipi> so, i added this to my mysql class: @@mysql_host { alias => hostname }
[2008/07/02 16:13:05] <e^ipi> can i now put something like <<| mysql_host |>> in my mongrel class
[2008/07/02 16:13:32] <Volcane> i think people had problems with exports of self defined types or something
[2008/07/02 16:14:21] <aaronc> hey Volcane, I'm using your suggestion from earlier about using the Mailalias{ notify => Exec[...] }
[2008/07/02 16:14:33] <Volcane> aaronc: kewl does it work well?
[2008/07/02 16:14:35] <aaronc> sounds like it should work, but its not and I don't see any error messages at all
[2008/07/02 16:14:40] <Volcane> ah :)
[2008/07/02 16:14:58] <aaronc> the mailalias edits the /etc/aliases file
[2008/07/02 16:15:03] <aaronc> just no alias rebuild
[2008/07/02 16:15:14] <Volcane> does your individual mailalias references have their own notify perhaps?
[2008/07/02 16:15:23] <aaronc> negative
[2008/07/02 16:15:23] <e^ipi> and then build the mysqlproxy config file like <%= mysql_host %> blahblah?
[2008/07/02 16:15:36] <Volcane> aaronc: make a pastie with your code lets see
[2008/07/02 16:15:47] <aaronc> does order matter? I have all resources necessary in the same class, but maybe the order is messed
[2008/07/02 16:15:58] <Volcane> yes
[2008/07/02 16:16:06] <Volcane> that thing has to be first
[2008/07/02 16:16:23] <e^ipi> is that how exports work?
[2008/07/02 16:16:35] <e^ipi> or rather, are supposed to work
[2008/07/02 16:17:06] <Volcane> e^ipi: I've find them more trouble than use :P
[2008/07/02 16:17:54] <aaronc> http://pastie.org/226618
[2008/07/02 16:18:21] <aaronc> I'm guessing my Exec[name] isn't right at the moment
[2008/07/02 16:18:27] <Volcane> aaronc: http://pastie.org/226619
[2008/07/02 16:18:30] <aaronc> but I had them matched up previously
[2008/07/02 16:18:33] <e^ipi> Volcane: okay, but is that syntax correct?
[2008/07/02 16:18:39] <Volcane> aaronc: in that example, all files are owned by root:bacula and mode 440
[2008/07/02 16:18:48] <Volcane> e^ipi: not sure :)
[2008/07/02 16:19:32] <aaronc> right... I understand about the defaults... so that makes sense that it has to be first
[2008/07/02 16:19:35] <Volcane> aaronc: yes, Exec isnt right
[2008/07/02 16:20:18] <Volcane> exec{"postalias": command => "/usr/sbin/postalias /etc/aliases", path => "/usr/sbin"; }
[2008/07/02 16:21:00] <Volcane> so what you notify has to be the same as the resource name - "postalias" in my example
[2008/07/02 16:22:15] <aaronc> ok... yeah... that's cleaner... still not getting the exec to kick off
[2008/07/02 16:22:22] <aaronc> do I have to restart puppetmasterd?
[2008/07/02 16:23:30] <Volcane> no
[2008/07/02 16:23:37] @ Quit: plathrop: Remote closed the connection
[2008/07/02 16:23:44] <Volcane> paste your fixed one let me have another look
[2008/07/02 16:23:49] @ plathrop joined channel #puppet
[2008/07/02 16:24:52] @ aymerick joined channel #puppet
[2008/07/02 16:26:15] <duritong> hmm github offline?
[2008/07/02 16:26:35] <plathrop> duritong: looks that way :-(
[2008/07/02 16:26:44] <aaronc> wait... wait... maybe I'm having an selinux issue
[2008/07/02 16:27:11] <aaronc> nope, not selinux
[2008/07/02 16:30:49] <Volcane> aaronc: http://pastie.org/226636
[2008/07/02 16:30:55] <Volcane> aaronc: there it is on a small scale
[2008/07/02 16:32:25] <Volcane> actually
[2008/07/02 16:32:34] <Volcane> you might need to put "refreshonly => true" in your exec
[2008/07/02 16:32:35] <Volcane> me too
[2008/07/02 16:32:56] <Volcane> else it will always run
[2008/07/02 16:33:08] <Volcane> instead of run after all notifies were received
[2008/07/02 16:35:35] <Volcane> http://pastie.org/226642
[2008/07/02 16:35:36] <Volcane> like that
[2008/07/02 16:36:02] <Volcane> so that only runs the exec if new aliases are arriving on the machine
[2008/07/02 16:36:05] <Volcane> else it leaves it alone
[2008/07/02 16:37:05] @ catdude joined channel #puppet
[2008/07/02 16:38:56] @ Quit: rizwank: Remote closed the connection
[2008/07/02 16:39:08] <aaronc> Volcane: ahhh... I got it... seems to be the refreshonly was needed
[2008/07/02 16:39:20] @ rizwank joined channel #puppet
[2008/07/02 16:39:31] <aaronc> thank you
[2008/07/02 16:39:36] <Volcane> yip, refreshonly makes it only run that when it gets told to via the notify
[2008/07/02 16:39:41] <Volcane> else, it runs it whenever it feels like
[2008/07/02 16:39:46] <Volcane> even before its made the new alias
[2008/07/02 16:40:09] <aaronc> although that description of refreshonly ... doesn't seem to read right... the exec never ran in my tests
[2008/07/02 16:40:23] <Volcane> should have, ah well
[2008/07/02 16:40:23] <aaronc> and thank you for --debug
[2008/07/02 16:40:29] <Volcane> invaluable :)
[2008/07/02 16:40:30] <aaronc> priceless
[2008/07/02 16:40:44] <Volcane> running little snippets of stuff just iwth puppet and not puppetd, also great
[2008/07/02 16:40:59] <aaronc> maybe you can answer this, when I do puppetd --help, I don't get any help info... isn't it supposed to show me the flags?
[2008/07/02 16:41:01] <Volcane> makes you focus on the single small concept that you're struggling with wiout being affected by external problems in your manifests
[2008/07/02 16:41:12] <Volcane> aaronc: you need to install ruby-rdoc
[2008/07/02 16:41:25] <aaronc> ok, so gem install ruby-rdoc?
[2008/07/02 16:41:33] <Volcane> hmm, not sure what the gem is
[2008/07/02 16:41:38] <Volcane> prolly just rdoc but yah
[2008/07/02 16:41:46] * Volcane got it from rpms
[2008/07/02 16:41:49] <aaronc> ok
[2008/07/02 16:42:13] <aaronc> I'm liking the gems... since I have a custom ruby that doesn't like to jive with the rpms built against the RH standard ruby
[2008/07/02 16:42:31] @ Quit: andrewcshafer:
[2008/07/02 16:42:33] @ Quit: aymerick:
[2008/07/02 16:42:45] <Volcane> i hate mulitple package systems on one machine
[2008/07/02 16:43:19] @ rizwank_ joined channel #puppet
[2008/07/02 16:43:39] <aaronc> I would normally agree... but I'm kinda stuck... need a newer version of ruby than what RH5 is using at the moment
[2008/07/02 16:43:53] <aaronc> well... "need" is loose... but I try to work with the devs as much as I can
[2008/07/02 16:43:56] <Volcane> yeah kind of in the same problem
[2008/07/02 16:43:59] <e^ipi> your compiler is broken?
[2008/07/02 16:44:07] <Volcane> i wrote some multi threaded code and its not having joy on rh4's ruby
[2008/07/02 16:44:34] <aaronc> ick.. yeah, from what I know, late in the 1.8 branch was a lot of threading changes
[2008/07/02 16:44:55] <Volcane> lots of issues with 1.8.1
[2008/07/02 16:45:14] <Volcane> though I've managed to get it stable
[2008/07/02 16:45:32] <Volcane> 5 days uptime, 101k requests served, no memory or thread leakage
[2008/07/02 16:45:43] <Volcane> which is a lot better than before :)
[2008/07/02 16:45:49] <aaronc> very nice... I hope we do as well when we go live
[2008/07/02 16:46:10] <Volcane> what you doing?
[2008/07/02 16:46:48] <aaronc> can't say much... but serving some content to some big sites and we should see some pretty immediate high volume
[2008/07/02 16:46:53] @ hMz joined channel #puppet
[2008/07/02 16:47:26] <hMz> err: Could not retrieve catalog: Certificates were not trusted: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
[2008/07/02 16:47:29] <Volcane> kewl, this little thing is just serving xml to adobe flash once per session a tiny request, very irritating
[2008/07/02 16:47:37] <hMz> any idea why i would be getting that with a 'fresh' install?
[2008/07/02 16:47:49] <Volcane> hMz: no bells, see the topic there might be somehting in that url
[2008/07/02 16:49:44] <hMz> oh snaps
[2008/07/02 16:49:56] <rizwank_> We've got a network of a bunch of linux machines that we're going to puppetize.
[2008/07/02 16:50:10] <Volcane> you'd hope they're on a network :P
[2008/07/02 16:50:10] <rizwank_> rather than having to add nodes for each, is there a way of using stored configs or something to allow them all to have different identiies
[2008/07/02 16:50:30] <Volcane> rizwank_: look at the external node tool stuff
[2008/07/02 16:50:32] <rizwank_> so that if we bring up a new machine, if our software assigns it a hostname, I'd like us to be able to dynamically assign classes to it.
[2008/07/02 16:50:44] <Volcane> rizwank_: you can script something to programatically output yaml instead of manual node files
[2008/07/02 16:50:50] <rizwank_> yaml?
[2008/07/02 16:50:57] <Volcane> think xml but readable
[2008/07/02 16:51:00] <Volcane> check the wiki
[2008/07/02 16:51:28] <Volcane> http://reductivelabs.com/trac/puppet/wiki/ExternalNodeClassification
[2008/07/02 16:51:47] <Volcane> oh no i lie i dont think thats it
[2008/07/02 16:52:01] <Volcane> http://reductivelabs.com/trac/puppet/wiki/ExternalNodes thats it
[2008/07/02 16:56:01] @ Quit: markl_: "Lost terminal"
[2008/07/02 16:56:33] @ Quit: shake-n-bake: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:36] @ Quit: sigmonsays: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:40] @ Quit: \ask: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:43] @ Quit: freiheit: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:48] @ Quit: mikearr: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:50] @ Quit: spike: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:51] @ Quit: mellen: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:54] @ Quit: duritong: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:56] @ Quit: trombik_: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:56:58] @ Quit: auxesis: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:57:00] @ Quit: xorl: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:57:02] @ Quit: thom: kubrick.freenode.net irc.freenode.net
[2008/07/02 16:57:06] @ shake-n-bake joined channel #puppet
[2008/07/02 16:57:07] @ sigmonsays joined channel #puppet
[2008/07/02 16:57:09] @ \ask joined channel #puppet
[2008/07/02 16:57:10] @ freiheit joined channel #puppet
[2008/07/02 16:57:11] @ mikearr joined channel #puppet
[2008/07/02 16:57:12] @ spike joined channel #puppet
[2008/07/02 16:57:15] @ mellen joined channel #puppet
[2008/07/02 16:57:16] @ trombik_ joined channel #puppet
[2008/07/02 16:57:18] @ xorl joined channel #puppet
[2008/07/02 16:57:19] @ auxesis joined channel #puppet
[2008/07/02 16:57:21] @ thom joined channel #puppet
[2008/07/02 16:57:23] @ duritong joined channel #puppet
[2008/07/02 16:57:24] @ Guest13482 joined channel #puppet
[2008/07/02 16:57:26] @ Quit: plathrop: Remote closed the connection
[2008/07/02 16:57:41] <hMz> ahh
[2008/07/02 16:57:42] <hMz> i fugred it out
[2008/07/02 16:57:48] <hMz> ha
[2008/07/02 16:57:51] <hMz> fuggered it too :P
[2008/07/02 16:58:01] @ Quit: rizwank_: Read error: 104 (Connection reset by peer)
[2008/07/02 16:58:21] @ Quit: rizwank: Read error: 110 (Connection timed out)
[2008/07/02 17:06:20] @ rizwank joined channel #puppet
[2008/07/02 17:09:09] @ Quit: muerr: "Leaving"
[2008/07/02 17:11:51] @ ezekiel-v3 joined channel #puppet
[2008/07/02 17:13:29] @ rizwank_ joined channel #puppet
[2008/07/02 17:18:53] <hMz> huh
[2008/07/02 17:22:15] @ Quit: kambiz: "Leaving"
[2008/07/02 17:23:35] <e^ipi> storedconfigs...
[2008/07/02 17:23:44] <e^ipi> err: Could not retrieve catalog: Uncaught exception could not open database: unable to open database file in method puppetmaster.getconfig
[2008/07/02 17:23:52] <Volcane> using sqlite?
[2008/07/02 17:23:56] <e^ipi> yeah
[2008/07/02 17:24:26] <Volcane> http://reductivelabs.com/trac/puppet/wiki/UsingStoredConfiguration#configuring-basic-storeconfigs
[2008/07/02 17:24:30] <Volcane> see dblocation
[2008/07/02 17:24:39] <e^ipi> merci bocoup
[2008/07/02 17:24:52] <Volcane> but you really dont want to use sqlite
[2008/07/02 17:25:08] <Volcane> 18:10:15 svcs2 > puppetmasterd[17565]: Could not store configs: SQLite3::BusyException: database is locked: DELETE FROM fact_values WHERE "id" = 117417
[2008/07/02 17:25:14] <Volcane> you'll be seeing lots of those
[2008/07/02 17:25:17] <e^ipi> i s'pose i could use postgres
[2008/07/02 17:25:33] <Volcane> you'd be glad you did :)
[2008/07/02 17:25:47] <fujin> fdz_: sorry I had to run last night - was falling asleep.
[2008/07/02 17:26:05] <fujin> fdz_: good to see you got your specs
[2008/07/02 17:30:08] @ Quit: rizwank: Read error: 110 (Connection timed out)
[2008/07/02 17:36:08] @ Quit: Guest13482:
[2008/07/02 17:36:11] @ shenson is now known as shenson_not_here
[2008/07/02 17:41:51] <gepetto> ::puppet:: Frequently Asked Questions edited by RijilV @ http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions (by rijilv@gmail.com)
[2008/07/02 17:45:51] @ neh joined channel #puppet
[2008/07/02 17:47:39] @ rizwank joined channel #puppet
[2008/07/02 17:48:23] <e^ipi> :-/
[2008/07/02 17:48:35] <e^ipi> err: Could not retrieve catalog: Could not find resource type mysql_host at /etc/puppet/manifests/classes/mysql.pp:8 on node < etc... >
[2008/07/02 17:51:04] @ verwilst joined channel #puppet
[2008/07/02 17:55:45] <aaronc> hey Volcane, earlier you said all I needed to do was install 'rdoc' for --help to work
[2008/07/02 17:55:51] <aaronc> did that, but all I see is:
[2008/07/02 17:56:00] <aaronc> [root@op0 classes]# puppet --help
[2008/07/02 17:56:00] <aaronc> This file was generated by RubyGems.
[2008/07/02 17:56:00] <aaronc> The application 'puppet' is installed as part of a gem, and this file is
[2008/07/02 17:56:00] <aaronc> here to facilitate running it.
[2008/07/02 17:56:11] <aaronc> don't know if you had any ideas about that one
[2008/07/02 17:57:06] <holoway> aaronc: that's a side-effect of rubygems
[2008/07/02 17:57:21] <holoway> to my knowledge, there isn't a work around
[2008/07/02 17:57:36] <aaronc> ah... ok
[2008/07/02 17:57:49] <aaronc> thank you
[2008/07/02 17:58:03] <Volcane> ah, sorry dude, never installed it iwht a gem myself
[2008/07/02 17:58:20] <aaronc> np
[2008/07/02 18:01:22] <Volcane> http://nephilim.ml.org/~rip/puppet.8.html
[2008/07/02 18:01:26] <Volcane> its not that exciting anyway :P
[2008/07/02 18:01:54] <Volcane> http://nephilim.ml.org/~rip/puppetd.8.html
[2008/07/02 18:03:38] <fujin> sup holoway :D
[2008/07/02 18:04:54] <Volcane> man, these squids are rocking compared to my old lighttpds
[2008/07/02 18:05:04] @ Quit: rizwank_: Read error: 110 (Connection timed out)
[2008/07/02 18:05:10] <Volcane> used to +- 120 req/sec, now doing 290
[2008/07/02 18:05:50] <holoway> fujin: how's NZ rolling today?
[2008/07/02 18:07:55] <fujin> not too bad
[2008/07/02 18:08:00] <fujin> had my first espresso
[2008/07/02 18:08:03] <fujin> feeling a little better
[2008/07/02 18:08:09] <fujin> how's seattle flowin'?
[2008/07/02 18:09:24] <fastjay> man the ruby ncurses bindings make me cry
[2008/07/02 18:09:49] <fujin> lol
[2008/07/02 18:10:03] <fujin> that bad?
[2008/07/02 18:10:05] <fastjay> they are just nasty.. alot has to do with ncurses being nasty on its own :)
[2008/07/02 18:10:09] <fastjay> http://www.koders.com/ruby/fidCBEBBED65EF7DD12F864323C705BA43543945BD6.aspx
[2008/07/02 18:10:12] <fastjay> check that example out :)
[2008/07/02 18:10:39] <fastjay> i am 1/2 way tempted to just use python for this.. all i am doing is parsing some JSON and printing it out with some color on the screen
[2008/07/02 18:10:53] <holoway> fujin: seattle is awesome -sunny and warm, which makes it basically paradise
[2008/07/02 18:10:53] <Volcane> fastjay: yeah i was about to say, cant expect ruby to fix ncurses :)
[2008/07/02 18:11:09] <fastjay> Volcane: i could hope someone would wrap the nasty away :)
[2008/07/02 18:11:33] <Volcane> heh
[2008/07/02 18:11:52] * Volcane doesnt like sunny or warm :P
[2008/07/02 18:12:44] <holoway> Volcane: then you can rock Seattle 3 seasons out of 4
[2008/07/02 18:12:58] <Volcane> hehe or london 360 days out of 365 :P
[2008/07/02 18:13:09] <holoway> I like London
[2008/07/02 18:13:20] <Volcane> yip, weathers perfect
[2008/07/02 18:13:32] <Volcane> just wish they'd stick to summer clocks
[2008/07/02 18:14:06] <fujin> fastjay: god that doesn't even look like ruby
[2008/07/02 18:14:16] <holoway> I dug how history was everywhere - I was in a random bar that had a plaque on the wall that said "Thomas PAine wrote the Rights of Man here in 1792"
[2008/07/02 18:14:35] <fastjay> fujin: yeah its C pretty much :) who ever ported the example even left the ;'s in there :)
[2008/07/02 18:15:09] @ Quit: sigmonsays: Read error: 110 (Connection timed out)
[2008/07/02 18:15:14] <fujin> o_0
[2008/07/02 18:15:30] <fastjay> its sad 'cause their were some decent ncurses libs for perl
[2008/07/02 18:15:39] <Volcane> holoway: yeah its like the oldest building in my country is practically brand new compared to even shops etc here
[2008/07/02 18:15:49] @ sigmonsays joined channel #puppet
[2008/07/02 18:17:16] <pftqg> the age of things in britain takes on a whole new scale if you're used to a much younger country.
[2008/07/02 18:18:42] <fastjay> fujin: maybe this is a sign i should not use ncurses :)
[2008/07/02 18:19:00] <holoway> fastjay: if what you need isn't crazy, highline is good
[2008/07/02 18:19:02] <Volcane> fastjay: curses apps crash my terminal :P
[2008/07/02 18:19:13] <fastjay> highline you say?
[2008/07/02 18:19:22] <holoway> http://highline.rubyforge.org/
[2008/07/02 18:19:57] <fastjay> all i am doing is an app that has a table that refreshes every 60 seconds
[2008/07/02 18:20:51] <jamesturnbull> duritong: yes you can use other facts in a fact
[2008/07/02 18:20:57] <holoway> I'm pretty sure highline and termios will get you there
[2008/07/02 18:21:27] <fastjay> i'll have to check that out
[2008/07/02 18:21:46] <holoway> if this was perl, I could point you to CPAN modules to do this for you easily
[2008/07/02 18:21:51] <fastjay> know of a quick and dirty example i can check out
[2008/07/02 18:21:54] <holoway> ruby, you'll need to put some elbow grease
[2008/07/02 18:22:02] <fastjay> yeah i know.. perl has some sick ass wrappers for ncurses stuff
[2008/07/02 18:22:07] <fastjay> or console stuff in general
[2008/07/02 18:22:20] <Volcane> hihgline looks damn nice
[2008/07/02 18:22:40] <holoway> it is, for things like asking questions, printing colors, e5tc
[2008/07/02 18:24:47] <sigmonsays> I have a list of 20 or so directories I need created.
[2008/07/02 18:24:55] <sigmonsays> is there a way to do this w/o mapping nasty dependancies
[2008/07/02 18:26:47] <fastjay> okay termios looks painful :)
[2008/07/02 18:26:58] <duritong> jamesturnbull: just straight forward?
[2008/07/02 18:27:00] <fastjay> i mean granted so does ncurses but i've done ncurses under C before so i atleast have that going ;)
[2008/07/02 18:27:25] @ sigmonsays_ joined channel #puppet
[2008/07/02 18:27:31] <sigmonsays_> Hello
[2008/07/02 18:27:55] <Volcane> sigmonsays_: let me know when u get a good plan for that
[2008/07/02 18:28:04] <sigmonsays_> I have a list of directories. about 4 levels deep whodo not exist. I don't want to map out "dependencies"
[2008/07/02 18:28:04] <Volcane> sigmonsays_: i have 120 vhosts, each needing 100 dirs made :(
[2008/07/02 18:28:11] <sigmonsays_> gah. That's what this is for too
[2008/07/02 18:28:42] <sigmonsays_> I didn't nkow if I was sending to channel. Network is wonky
[2008/07/02 18:28:45] <Volcane> currently i just create the top directory then have an exec to make them (they're 00..99) and the exec has creates => on the first one
[2008/07/02 18:28:46] <sigmonsays_> I think the internet is broke
[2008/07/02 18:28:54] <Volcane> shitty, doesnt cater with say number 55 going misssing
[2008/07/02 18:29:00] <holoway> fastjay: falsch
[2008/07/02 18:29:01] <refuseresisted> mkdir -p
[2008/07/02 18:29:02] <sigmonsays_> i'm half temped to tie a shell script into exec()
[2008/07/02 18:29:04] <refuseresisted> is your friend
[2008/07/02 18:29:11] <sigmonsays_> ahh. yes
[2008/07/02 18:29:20] <Volcane> but hey, imagine puppetmaster with 1200 resources for those dirs and dependencies
[2008/07/02 18:29:23] <Volcane> wont cope
[2008/07/02 18:29:55] <sigmonsays_> right
[2008/07/02 18:30:02] <sigmonsays_> I could be kickin myself later
[2008/07/02 18:30:11] <refuseresisted> do it by vhostid
[2008/07/02 18:30:30] <sigmonsays_> a single vhost is quite complex. I have like 13 diff dirs w/ 3 levels deep
[2008/07/02 18:30:42] <holoway> fastjay: check out the source to Raggle
[2008/07/02 18:30:42] <fastjay> holoway: say what?
[2008/07/02 18:30:47] <fastjay> oh?
[2008/07/02 18:30:59] <holoway> it's got a pretty complex terminal ui
[2008/07/02 18:31:03] <Volcane> sigmonsays_: :( we deploy via svn the meat of the vhosts, i just put some structure in place where svn checkouts go
[2008/07/02 18:31:21] <fastjay> yeah it looks it
[2008/07/02 18:33:32] <fastjay> holoway: looks to use ncurses under the hood :)
[2008/07/02 18:33:37] <holoway> fastjay: fuckers! :)
[2008/07/02 18:33:48] <holoway> at least you can maybe steal it, as long as the license is compatible
[2008/07/02 18:35:48] <sigmonsays_> can I make puppet download a shell script and run it?
[2008/07/02 18:35:53] <sigmonsays_> (in an exec)
[2008/07/02 18:36:03] <fastjay> holoway: good example of it either way so :)
[2008/07/02 18:36:07] <fastjay> and its similar to what i want to do..
[2008/07/02 18:36:25] <Volcane> sigmonsays_: use file{} to notify an exec that has refreshonly set
[2008/07/02 18:36:34] <fastjay> other than finding a way to 1/2 ass tables
[2008/07/02 18:41:24] * fujin karate chops everyone
[2008/07/02 18:41:46] @ Quit: sigmonsays: Read error: 110 (Connection timed out)
[2008/07/02 18:47:46] <fujin> wasn't plathrop working on upwards file{} recursion?
[2008/07/02 18:47:56] <fujin> createparent=> or something.
[2008/07/02 18:50:23] <holoway> when picking applications to use in your environment, do you pay attention to whether they have unit and functional tests?
[2008/07/02 18:51:26] <fujin> generally - integration tests help to sway me
[2008/07/02 18:51:42] @ yure_ joined channel #puppet
[2008/07/02 18:51:50] <fujin> how about you holoway ?
[2008/07/02 18:52:14] @ Quit: yure_: Read error: 104 (Connection reset by peer)
[2008/07/02 18:52:39] <holoway> well, the project I'm looking at is graphite (http://graphite.wikidot.com/)
[2008/07/02 18:52:51] @ Quit: verwilst: "Ex-Chat"
[2008/07/02 18:52:56] <holoway> which has some really cool functionality for easily getting lots of metrics and graphing them in real time
[2008/07/02 18:53:04] <holoway> with an easy query API for graph embedding
[2008/07/02 18:53:10] <holoway> but not a single test
[2008/07/02 18:53:17] <holoway> and it does kind of scare me
[2008/07/02 18:53:58] @ rizwank_ joined channel #puppet
[2008/07/02 18:55:12] <sigmonsays_> damn it. this is definitely frustrating
[2008/07/02 18:55:19] @ Quit: rizwank: Read error: 104 (Connection reset by peer)
[2008/07/02 18:55:35] <sigmonsays_> DO WHAT I WANT, NOT WHAT I SAY!
[2008/07/02 18:56:48] <fujin> holoway: years ago I would have considered a well written application without tests, and not even batted an eye
[2008/07/02 18:56:53] <fujin> but the age of tdd/bdd is upon us
[2008/07/02 18:59:51] @ Quit: rizwank_:
[2008/07/02 18:59:57] <sigmonsays_> this is just nuts
[2008/07/02 19:05:16] <sigmonsays_> I can't figure out how to create nested dirs w/o bombing
[2008/07/02 19:05:24] <sigmonsays_> (and doing it lazily)
[2008/07/02 19:05:42] @ Quit: manabou: Remote closed the connection
[2008/07/02 19:06:00] @ rizwank joined channel #puppet
[2008/07/02 19:06:35] <duritong> could somebody give me a hint, what i need to do before I can do: Puppet::Rails.init unless ActiveRecord::Base.connected? and then use Puppets rails bindings to do things in my little script
[2008/07/02 19:06:48] @ Quit: yure: Read error: 110 (Connection timed out)
[2008/07/02 19:10:30] <fujin> uh, sec
[2008/07/02 19:11:27] <duritong> fujin: what I did yeat is require puppet and parse the config
[2008/07/02 19:11:48] <duritong> but it always fails with wanting to use sqlite for rails
[2008/07/02 19:11:57] <duritong> but i configured mysql in the config
[2008/07/02 19:11:59] <fujin> duritong: take a gandy at http://pastie.org/226757
[2008/07/02 19:13:12] <duritong> *lol* this is nearly what I wanted to do
[2008/07/02 19:13:31] <duritong> I then thought to propose to put it into the ext
[2008/07/02 19:14:13] <fujin> lol
[2008/07/02 19:14:16] <fujin> blake (shadoi) wrote that one, I think
[2008/07/02 19:14:22] <duritong> ok
[2008/07/02 19:14:22] <fujin> it's on the storeconfigs page on the wiki iirc
[2008/07/02 19:14:32] <duritong> ah really?
[2008/07/02 19:14:33] <duritong> hmm
[2008/07/02 19:15:16] @ rizwank_ joined channel #puppet
[2008/07/02 19:15:19] <duritong> ah yeah
[2008/07/02 19:15:19] <duritong> http://reductivelabs.com/trac/puppet/attachment/wiki/UsingStoredConfiguration/kill_node_in_storedconfigs_db.rb
[2008/07/02 19:15:27] <duritong> hmm this should go to ext imho
[2008/07/02 19:16:09] <duritong> well i'll test it, maybe improve it a bit and then make a proposal to put it into ext
[2008/07/02 19:19:29] <MrProper_> mornin all
[2008/07/02 19:22:03] <sigmonsays_> shouldn't $vhost = "myvhost.com" suffice in file { "/var/vhosts/$vhost" : ... }
[2008/07/02 19:22:49] <refuseresisted> sigmonsays_, sure
[2008/07/02 19:23:29] <sigmonsays_> ahh I see now
[2008/07/02 19:23:31] <sigmonsays_> was my typo
[2008/07/02 19:23:36] @ Quit: rizwank: Read error: 110 (Connection timed out)
[2008/07/02 19:23:45] <sigmonsays_> sorry to bother
[2008/07/02 19:24:01] <fujin> sigmonsays_: best to use them like ${vhost} if you're sticking other chars etc next to em.
[2008/07/02 19:24:48] <sigmonsays_> i'm ultra lucky it's next to a slash
[2008/07/02 19:25:55] <sigmonsays_> creating directory structures in puppet is the complete opposite of DRY
[2008/07/02 19:25:55] <jamesturnbull> duritong: well what do you want to do?
[2008/07/02 19:26:51] @ Quit: shake-n-bake: Read error: 110 (Connection timed out)
[2008/07/02 19:27:09] <fujin> upwards recursion I bet
[2008/07/02 19:27:37] <fujin> sigmonsays_: gotta remember that this is a declarative language - you need to specify everyting
[2008/07/02 19:27:40] <fujin> DRY doesn't really apply
[2008/07/02 19:28:14] <sigmonsays_> that's probably true.
[2008/07/02 19:28:22] <sigmonsays_> I dont' know what DRY means beyond the acronym
[2008/07/02 19:28:25] <sigmonsays_> but I am definitely repeating
[2008/07/02 19:33:04] <gepetto> ::puppet:: Developer Repositories edited by jamtur01 @ http://reductivelabs.com/trac/puppet/wiki/DeveloperRepositories (by james@lovedthanlost.net)
[2008/07/02 19:35:07] <duritong> jamesturnbull: i was thinking about to provide some facts for mysql which provide values for my.cnf
[2008/07/02 19:35:18] <duritong> something like memorysize*80%
[2008/07/02 19:35:41] @ Quit: ski98033: "Leaving."
[2008/07/02 19:36:11] <jamesturnbull> duritong: easy enough to parse the my.cnf file in a custom fact
[2008/07/02 19:37:48] @ randybias joined channel #puppet
[2008/07/02 19:38:04] <duritong> well the facts should use the reported memorysize this value by 20%, which is then the value, which goes into the my.cnf using a template
[2008/07/02 19:38:34] <duritong> s/memorysize/memorysize, decrease/
[2008/07/02 19:38:44] <duritong> so rather the other way round
[2008/07/02 19:40:29] <sigmonsays_> so.. I have a issue with puppet not installing a package
[2008/07/02 19:40:37] <sigmonsays_> I need it to uninstall first, then install from a diff repo
[2008/07/02 19:41:41] <jamesturnbull> lak: why does the number of tickets targeted at 0.24.5 not seem to go down... :P
[2008/07/02 19:41:51] <lak> because reality hates us
[2008/07/02 19:42:06] <jamesturnbull> fair enough
[2008/07/02 19:42:07] <lak> i don't think #1095 is getting fixed this release
[2008/07/02 19:42:12] <gepetto> lak: #1095 is http://reductivelabs.com/redmine/issues/show/1095
[2008/07/02 19:42:12] <lak> we have no idea wtf the problem is
[2008/07/02 19:42:15] <jamesturnbull> me either
[2008/07/02 19:42:29] <lak> andrew claims he'll be fixing most/all of his tickets tonight
[2008/07/02 19:42:56] <lak> i'm actually fixing the cert case bug in master right now
[2008/07/02 19:43:02] <lak> yay code being in two places :/
[2008/07/02 19:43:52] <lak> and tomorrow, hell or high water, i'm fixing the rest of the bugs assigned to me
[2008/07/02 19:43:52] @ keithlard joined channel #puppet
[2008/07/02 19:43:56] <lak> for this release
[2008/07/02 19:44:10] <lak> jamesturnbull: how's your work on the interface ticket coming?
[2008/07/02 19:44:22] @ Quit: keithlard: Client Quit
[2008/07/02 19:44:48] <jamesturnbull> lak: haven't had a chance to go back - I fixed that respond_to? thing - but it's still failing
[2008/07/02 19:45:16] <lak> hrm
[2008/07/02 19:45:17] <lak> yay
[2008/07/02 19:45:27] <lak> maybe publish your code and i'll have a chance to look at it tonight
[2008/07/02 19:45:31] <lak> seems like you're 99% of the way there
[2008/07/02 19:45:43] <lak> is there a machine you can give me access to to test on or something?
[2008/07/02 19:45:47] <lak> i'm redhat-less ATM
[2008/07/02 19:46:37] <lak> i can always kick up an ec2 image, tho
[2008/07/02 19:46:51] <jamesturnbull> lak: hmmm my RH are only VMs and they are behind the other firewall - hmmmm hang on let me see if there is one in the DMZ I can turn on
[2008/07/02 19:47:03] <lak> eh, not worth it
[2008/07/02 19:47:05] <lak> i'll just use ec2
[2008/07/02 19:47:07] <lak> it's not so hard
[2008/07/02 19:47:20] <jamesturnbull> okay - I'll pastie my code?
[2008/07/02 19:48:46] <jamesturnbull> hmmm no pastie
[2008/07/02 19:49:14] <jamesturnbull> lak: http://pastie.org/226782
[2008/07/02 19:49:37] @ andrewcshafer joined channel #puppet
[2008/07/02 19:51:10] <lak> ok, i'll check it out after i'm done with this (and probably after dinner)
[2008/07/02 19:52:02] <jamesturnbull> no worries
[2008/07/02 19:52:18] <holoway> duritong: I've got an iclassify recipe that does that, should be easy to turn into a fact if you wnat
[2008/07/02 19:52:38] <jamesturnbull> I love that the error doesn't reference the actual provider once. :P
[2008/07/02 19:53:04] <holoway> http://pastie.org/226784
[2008/07/02 19:58:05] <duritong> holoway: cool thanks
[2008/07/02 19:58:40] @ shake-n-bake_ joined channel #puppet
[2008/07/02 20:13:27] <fujin> !ping
[2008/07/02 20:13:29] <gepetto> fujin: pong
[2008/07/02 20:13:37] <fujin> hrm, must just be undernet
[2008/07/02 20:15:52] @ Quit: shake-n-bake_:
[2008/07/02 20:16:15] @ rizwank joined channel #puppet
[2008/07/02 20:16:26] <jamesturnbull> lak: re 1095 - to be honest I am not sure if everyone is expericing the same issue - I think a couple of things have been conflated into that ticket
[2008/07/02 20:17:16] <fujin> #1095
[2008/07/02 20:17:19] <gepetto> fujin: #1095 is http://reductivelabs.com/redmine/issues/show/1095
[2008/07/02 20:20:23] <lak> i concur
[2008/07/02 20:21:25] @ Quit: jvanzyl: