| [2008/05/05 00:06:35] @ Quit: lak: | ||
| [2008/05/05 00:07:08] @ Quit: a-priori: Read error: 110 (Connection timed out) | ||
| [2008/05/05 00:07:25] @ jvanzyl joined channel #puppet | ||
| [2008/05/05 00:08:17] <Gwayne> Odd it installs both i586 and x86_64 | ||
| [2008/05/05 00:10:42] @ Quit: jvanzyl: Client Quit | ||
| [2008/05/05 00:12:13] @ jvanzyl joined channel #puppet | ||
| [2008/05/05 00:15:59] @ andrewcshafer joined channel #puppet | ||
| [2008/05/05 00:16:44] @ Quit: pdt: Read error: 110 (Connection timed out) | ||
| [2008/05/05 00:22:59] @ lak joined channel #puppet | ||
| [2008/05/05 00:27:35] @ Quit: lak: Client Quit | ||
| [2008/05/05 00:31:07] @ Quit: a-priori_: Connection reset by peer | ||
| [2008/05/05 00:32:50] @ pdt joined channel #puppet | ||
| [2008/05/05 00:33:02] @ a-priori joined channel #puppet | ||
| [2008/05/05 00:51:24] @ Quit: a-priori: Connection reset by peer | ||
| [2008/05/05 00:53:04] @ a-priori joined channel #puppet | ||
| [2008/05/05 01:12:24] @ Quit: a-priori: Remote closed the connection | ||
| [2008/05/05 01:13:03] @ a-priori joined channel #puppet | ||
| [2008/05/05 01:40:19] @ shake-n-bake_ joined channel #puppet | ||
| [2008/05/05 01:40:35] @ Quit: shake-n-bake: Read error: 113 (No route to host) | ||
| [2008/05/05 01:40:37] @ Quit: johnf: Read error: 101 (Network is unreachable) | ||
| [2008/05/05 02:04:22] <ashp> it's called ec freeport or something gay so maybe | ||
| [2008/05/05 02:04:28] <ashp> whoops, wrong window :/ | ||
| [2008/05/05 02:10:03] @ Quit: pdt: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 02:10:23] @ pdt joined channel #puppet | ||
| [2008/05/05 02:25:11] @ Quit: mellen: Read error: 110 (Connection timed out) | ||
| [2008/05/05 02:29:33] @ a-priori_ joined channel #puppet | ||
| [2008/05/05 02:43:02] @ a-priori__ joined channel #puppet | ||
| [2008/05/05 02:44:36] @ Quit: a-priori: Read error: 113 (No route to host) | ||
| [2008/05/05 02:46:29] @ mellen joined channel #puppet | ||
| [2008/05/05 02:59:10] @ Quit: a-priori_: Read error: 110 (Connection timed out) | ||
| [2008/05/05 03:13:12] @ a-priori joined channel #puppet | ||
| [2008/05/05 03:29:06] @ Quit: a-priori__: Read error: 110 (Connection timed out) | ||
| [2008/05/05 03:41:09] @ Quit: m1n3s6: "auf wiedersehen" | ||
| [2008/05/05 04:00:08] @ \ask joined channel #puppet | ||
| [2008/05/05 04:11:50] @ markl__ joined channel #puppet | ||
| [2008/05/05 04:18:27] @ shadoi joined channel #puppet | ||
| [2008/05/05 04:40:40] @ dysinger joined channel #puppet | ||
| [2008/05/05 04:41:13] @ ^authentic joined channel #puppet | ||
| [2008/05/05 04:55:05] @ Quit: authentic: Connection timed out | ||
| [2008/05/05 04:55:06] @ ^authentic is now known as authentic | ||
| [2008/05/05 04:56:40] @ Quit: a-priori: | ||
| [2008/05/05 05:00:48] @ shenson_not_here is now known as shenson | ||
| [2008/05/05 05:01:13] @ shenson is now known as shenson_not_here | ||
| [2008/05/05 05:29:53] <martha> anyone here use puppet on freebsd? | ||
| [2008/05/05 05:35:17] @ randybias joined channel #puppet | ||
| [2008/05/05 05:47:19] @ Quit: randybias: | ||
| [2008/05/05 05:51:57] @ Quit: andrewcshafer: | ||
| [2008/05/05 05:52:03] @ Quit: dysinger: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 06:01:44] @ dysinger joined channel #puppet | ||
| [2008/05/05 06:04:32] @ Quit: shake-n-bake_: | ||
| [2008/05/05 06:07:17] @ Quit: shadoi: Read error: 110 (Connection timed out) | ||
| [2008/05/05 06:12:09] @ Quit: markl__: "Lost terminal" | ||
| [2008/05/05 06:42:09] @ lak joined channel #puppet | ||
| [2008/05/05 06:45:46] @ andrewcshafer joined channel #puppet | ||
| [2008/05/05 06:46:37] @ Quit: lak: Client Quit | ||
| [2008/05/05 06:46:39] @ randybias joined channel #puppet | ||
| [2008/05/05 07:17:59] @ Demosthenes joined channel #puppet | ||
| [2008/05/05 07:22:22] @ glut joined channel #puppet | ||
| [2008/05/05 07:22:56] @ Quit: dysinger: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 07:23:24] @ dysinger joined channel #puppet | ||
| [2008/05/05 07:25:33] <jamesturnbull> Gwayne: re directory copy see the FAQ | ||
| [2008/05/05 07:27:01] <jamesturnbull> martha: I use it on freebsd - I have one firewall on fb | ||
| [2008/05/05 07:39:25] @ Quit: londo__: Remote closed the connection | ||
| [2008/05/05 07:40:04] @ londo__ joined channel #puppet | ||
| [2008/05/05 07:55:32] @ rcoup joined channel #puppet | ||
| [2008/05/05 07:58:32] <rcoup> morning folks, just had a bit of stress - a host-specific file got replaced with a default one... looks like puppetd chucked a NoMethodError: http://dpaste.com/48242/ | ||
| [2008/05/05 07:59:04] <rcoup> v0.22.1 which is old, but i can't find anything in Trac about it being reported against any version. | ||
| [2008/05/05 08:04:55] @ Quit: dysinger: | ||
| [2008/05/05 08:05:42] @ dysinger joined channel #puppet | ||
| [2008/05/05 08:06:14] @ Quit: dysinger: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 08:08:44] @ shake-n-bake joined channel #puppet | ||
| [2008/05/05 08:12:25] @ shake-n-bake_ joined channel #puppet | ||
| [2008/05/05 08:12:26] @ Quit: shake-n-bake: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 08:16:23] @ shake-n-bake joined channel #puppet | ||
| [2008/05/05 08:16:24] @ Quit: shake-n-bake_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 08:20:39] @ shake-n-bake_ joined channel #puppet | ||
| [2008/05/05 08:20:41] @ Quit: shake-n-bake: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 08:21:32] @ Quit: shake-n-bake_: Client Quit | ||
| [2008/05/05 08:29:27] @ Quit: andrewcshafer: | ||
| [2008/05/05 08:29:52] @ Quit: Demosthenes: Read error: 110 (Connection timed out) | ||
| [2008/05/05 08:32:24] <gepetto> ::puppet:: Plugins InModules edited by empowering @ http://reductivelabs.com/trac/puppet/wiki/PluginsInModules (by empoweringmedia@gmail.com) | ||
| [2008/05/05 08:36:53] @ Quit: kolla: Read error: 113 (No route to host) | ||
| [2008/05/05 08:37:46] @ kolla joined channel #puppet | ||
| [2008/05/05 08:38:31] @ shake-n-bake joined channel #puppet | ||
| [2008/05/05 08:54:08] @ Quit: pdt: | ||
| [2008/05/05 08:54:44] <gepetto> ::puppet:: Ticket #1210 (enhancement created): tagmail could allow a template for outbound mail formatting @ http://reductivelabs.com/trac/puppet/ticket/1210 (by aj@junglist.gen.nz) | ||
| [2008/05/05 09:02:29] @ shadoi joined channel #puppet | ||
| [2008/05/05 09:06:39] @ Quit: markl_: "Lost terminal" | ||
| [2008/05/05 09:07:50] <gepetto> ::puppet:: Ticket #1211 (defect created): install.rb should force overwrite when gzip decompressing @ http://reductivelabs.com/trac/puppet/ticket/1211 (by aj@junglist.gen.nz) | ||
| [2008/05/05 09:09:51] @ markl_ joined channel #puppet | ||
| [2008/05/05 09:10:39] @ Quit: markl_: Client Quit | ||
| [2008/05/05 09:14:06] * fujin goes crazy | ||
| [2008/05/05 09:14:14] <fujin> I think I'm starting to get the hang of this | ||
| [2008/05/05 09:16:25] <machpo> insanity? | ||
| [2008/05/05 09:21:20] <fujin> haha | ||
| [2008/05/05 09:21:22] <fujin> apparently I'm not | ||
| [2008/05/05 09:21:24] <fujin> jamesturnbull: you around bud? | ||
| [2008/05/05 09:21:40] <fujin> I'm working on tagmail stuff, I'm having an epic brainfart | ||
| [2008/05/05 09:23:05] @ Quit: shadoi: Read error: 110 (Connection timed out) | ||
| [2008/05/05 09:23:12] @ johnf joined channel #puppet | ||
| [2008/05/05 09:24:02] <jamesturnbull> fujin: here | ||
| [2008/05/05 09:24:14] <fujin> can ya take a lookie? http://github.com/fujin/puppet/commits/fix1210 | ||
| [2008/05/05 09:24:19] <fujin> http://github.com/fujin/puppet/commit/dd2548733713132269c97d64bdc1140f87e8c68c | ||
| [2008/05/05 09:24:27] <fujin> not sure what's happening, it's not throwing any errors | ||
| [2008/05/05 09:27:04] <fujin> It's liek the template isn't evaluating for some weird ass reason | ||
| [2008/05/05 09:27:46] <jamesturnbull> fujin: no error? | ||
| [2008/05/05 09:28:24] <fujin> ah | ||
| [2008/05/05 09:28:25] <fujin> nevermind | ||
| [2008/05/05 09:28:29] <fujin> tracked it down, I'm a tard | ||
| [2008/05/05 09:28:34] <fujin> i was expecting the error on the client, it was on the server | ||
| [2008/05/05 09:28:36] * fujin facepalm | ||
| [2008/05/05 09:30:01] <fujin> /usr/local/lib/site_ruby/1.8/puppet/reports/tagmail.rb:196:in `send': Could not send report emails via sendmail: undefined local variable or method `from' for main:Object (Puppet::Error) | ||
| [2008/05/05 09:33:26] <fujin> ah, | ||
| [2008/05/05 09:33:33] <fujin> how will I do that. | ||
| [2008/05/05 09:46:03] @ Quit: Darkarnium_: Remote closed the connection | ||
| [2008/05/05 09:48:33] <fujin> this is freakin' weird man | ||
| [2008/05/05 09:50:40] <jamesturnbull> fujin: #1211 is done | ||
| [2008/05/05 09:50:41] <gepetto> jamesturnbull: fujin: #1211 is http://reductivelabs.com/trac/puppet/ticket/1211 "install.rb should force overwrite when gzip decompressing" | ||
| [2008/05/05 09:53:44] <fujin> cool | ||
| [2008/05/05 09:54:00] <fujin> aha | ||
| [2008/05/05 09:54:05] <fujin> I had already created the commit for it | ||
| [2008/05/05 09:54:15] <fujin> do you have push access to the main repo? | ||
| [2008/05/05 09:54:29] <jamesturnbull> fujin: I combined it with a refresh of the man pages and a couple of doco fixes | ||
| [2008/05/05 09:54:46] <jamesturnbull> fujin: and no | ||
| [2008/05/05 09:57:16] <fujin> ah cool | ||
| [2008/05/05 09:59:38] <jamesturnbull> fujin: got to be fast to catch me. :) | ||
| [2008/05/05 10:02:31] <fujin> hehe | ||
| [2008/05/05 10:02:52] <fujin> you're so fast, help me get this ERB templating for tagmail working | ||
| [2008/05/05 10:03:06] <fujin> I'm setting the variables correctly but it looks liek they aint being passed to the template for some reason | ||
| [2008/05/05 10:03:54] <fujin> http://rafb.net/p/x6OiGc25.html | ||
| [2008/05/05 10:04:47] <jamesturnbull> looks like it can't find the template | ||
| [2008/05/05 10:04:52] <jamesturnbull> what's the default template? | ||
| [2008/05/05 10:05:25] <fujin> http://rafb.net/p/d5cyPh13.html | ||
| [2008/05/05 10:05:36] <jamesturnbull> you also probably don't need branches for every commit | ||
| [2008/05/05 10:05:53] <jamesturnbull> I just commit for complex or multi-commit fixes | ||
| [2008/05/05 10:06:03] <fujin> mm | ||
| [2008/05/05 10:06:21] <fujin> I usually do stuff in branches so I can rebase em onto my local 0.24.x then delete them afterwards | ||
| [2008/05/05 10:06:26] <fujin> so whaddya think? | ||
| [2008/05/05 10:07:23] <jamesturnbull> looking | ||
| [2008/05/05 10:08:45] <fujin> here's how I use it: http://rafb.net/p/sTzs3R95.html | ||
| [2008/05/05 10:08:48] @ Quit: nevyn: Read error: 113 (No route to host) | ||
| [2008/05/05 10:10:41] <fujin> I guess I'm passing data wrong somewhere | ||
| [2008/05/05 10:13:08] <jamesturnbull> fujin: but I can't see where | ||
| [2008/05/05 10:13:49] <jamesturnbull> fujin: reportfrom = "#{Puppet[:reportfrom]}" | ||
| [2008/05/05 10:13:56] <fujin> heh | ||
| [2008/05/05 10:14:05] <fujin> yeah, I was trying to work out what was causing it to error out on that | ||
| [2008/05/05 10:14:07] <jamesturnbull> fujin: wouldn't reportfrom = Puppet[:reportform] work fine? | ||
| [2008/05/05 10:14:15] <fujin> it's just the first substition that the template expects, which it can't find, so it fails | ||
| [2008/05/05 10:15:52] <fujin> oh ruby gods, shine your light upon me | ||
| [2008/05/05 10:17:32] <fujin> perhaps I should write a small test case which does the same | ||
| [2008/05/05 10:17:47] <jamesturnbull> fujin: good idea | ||
| [2008/05/05 10:17:56] <jamesturnbull> fujin: since you're going to need tests anyway... :P | ||
| [2008/05/05 10:19:19] <fujin> well, there aren't any tests for any of the other tagmail stuff :p | ||
| [2008/05/05 10:21:28] <jamesturnbull> fujin: yes - I am sure Luke noticed that too when you took on this work... :P | ||
| [2008/05/05 10:21:50] <jamesturnbull> fujin: I don't see why that template shouldn't work | ||
| [2008/05/05 10:22:36] <fujin> ah well, I'll play around with it | ||
| [2008/05/05 10:23:09] <fujin> heh | ||
| [2008/05/05 10:23:23] <fujin> the example for erb on the ruby-doc.org website doesn't even work. No wonder my shit doesn't. | ||
| [2008/05/05 10:23:26] <fujin> ffs. | ||
| [2008/05/05 10:23:27] <jamesturnbull> fujin: unless it is some kind of ordering tihng? I've not placyed with erb | ||
| [2008/05/05 10:24:28] <fujin> yeah I dunno, it's freakin weird | ||
| [2008/05/05 10:24:39] <fujin> not helpful that the erb template tutorial doesn't work at all. | ||
| [2008/05/05 10:26:45] * fujin dumbs it down | ||
| [2008/05/05 10:27:26] @ Demosthenes joined channel #puppet | ||
| [2008/05/05 10:28:33] @ markl_ joined channel #puppet | ||
| [2008/05/05 10:31:43] <fujin> jamesturnbull: could it be scoping? | ||
| [2008/05/05 10:32:36] <fujin> guess there's an easy way to find out | ||
| [2008/05/05 10:32:40] <fujin> lump it all in the same area! | ||
| [2008/05/05 10:32:40] <fujin> haha | ||
| [2008/05/05 10:38:49] <fujin> http://rafb.net/p/kHOX5425.html | ||
| [2008/05/05 10:39:43] @ rcoup left channel #puppet () | ||
| [2008/05/05 10:57:15] <fujin> jamesturnbull: got it working | ||
| [2008/05/05 10:57:20] <fujin> well nearly | ||
| [2008/05/05 10:57:24] <fujin> just need to iterate through messages now | ||
| [2008/05/05 11:02:36] <fujin> what'd be the correct way to iterate through an array in erb and print each line | ||
| [2008/05/05 11:02:54] <fujin> nm, this seems to be working fine | ||
| [2008/05/05 11:08:59] <fujin> oops, broke me git, accidentally deleted my remote 0.24.x branch | ||
| [2008/05/05 11:12:45] <jamesturnbull> fujin: oopps | ||
| [2008/05/05 11:13:26] @ Quit: johnf: Read error: 113 (No route to host) | ||
| [2008/05/05 11:15:38] @ Quit: shake-n-bake: | ||
| [2008/05/05 11:16:40] <fujin> jamesturnbull: available in my github branch fix1210 | ||
| [2008/05/05 11:17:55] <fujin> jamesturnbull: so, what's involved in writing tests? | ||
| [2008/05/05 11:18:11] <jamesturnbull> fujin: best place to start is the current tests | ||
| [2008/05/05 11:18:24] <jamesturnbull> fujin: they are pretty simple to follow once oyu get your head around the logic | ||
| [2008/05/05 11:19:21] <fujin> that's the stuff in spec/ right? | ||
| [2008/05/05 11:20:24] @ johnf joined channel #puppet | ||
| [2008/05/05 11:23:52] @ a-priori joined channel #puppet | ||
| [2008/05/05 11:26:01] @ Quit: a-priori: Client Quit | ||
| [2008/05/05 11:29:03] @ nward joined channel #puppet | ||
| [2008/05/05 11:29:07] @ nward is now known as daork | ||
| [2008/05/05 11:29:45] <daork> this whole dependency thing still isn't work out for me - it seemed to work when I took stuff out of the arrays when they weren't needed, but it doesn't seem to work any more | ||
| [2008/05/05 11:30:04] @ martha left channel #puppet () | ||
| [2008/05/05 11:30:43] <daork> I've got a function called "configfile" which just has a File type with a bunch of defaults in it | ||
| [2008/05/05 11:30:43] <fujin> daork: paste | ||
| [2008/05/05 11:30:52] <daork> and I've put require => Package['httpd'], in there | ||
| [2008/05/05 11:31:01] <daork> yeah aight | ||
| [2008/05/05 11:31:13] <daork> pastie: hook me up | ||
| [2008/05/05 11:31:57] <pastie> http://pastie.org/191518 by daork. | ||
| [2008/05/05 11:32:34] <daork> it tries to run those configfile bits before ensuring httpd is installed | ||
| [2008/05/05 11:34:34] <fujin> are you passing the require through to the file{} resource in your define? | ||
| [2008/05/05 11:34:45] <daork> no | ||
| [2008/05/05 11:34:47] <fujin> in --debug mode, does it say configfile requires package httpd ensureing installed or whatever? | ||
| [2008/05/05 11:35:06] <daork> I tried to do that, and it comes up with an error - require is a virtual thing, or something | ||
| [2008/05/05 11:35:56] <fujin> show me a --debug run that doesn't do what you want? | ||
| [2008/05/05 11:36:06] @ Quit: Demosthenes: Read error: 110 (Connection timed out) | ||
| [2008/05/05 11:36:30] <daork> ok, let me finish this server build, and I'll run through it on there | ||
| [2008/05/05 11:40:07] @ MrProper_ joined channel #puppet | ||
| [2008/05/05 11:40:26] <MrProper_> is there a way to have a fact that you parse a variable? | ||
| [2008/05/05 11:40:42] <MrProper_> ie i want to write a function that will insert/remove kernel modules | ||
| [2008/05/05 11:41:00] <MrProper_> but as functions are server side i need to check if a module is already present on the client | ||
| [2008/05/05 11:44:30] <fujin> is there a way to have a fact that you parse a variable | ||
| [2008/05/05 11:44:37] <fujin> you mean, supply arbitrary data to a fact ? | ||
| [2008/05/05 11:44:42] <daork> oh, I think I may have found the problem.. Package['httpd'] is not the same as Package[httpd] | ||
| [2008/05/05 11:44:45] <daork> that's annoying. | ||
| [2008/05/05 11:45:15] @ Quit: randybias: | ||
| [2008/05/05 11:45:17] <fujin> uh, yeah it is | ||
| [2008/05/05 11:45:29] <MrProper_> fujin, sorry bad explanation on my part, ie i have a fact called kern_module, and i parse it something like facter kern_module('ip_conntrack') | ||
| [2008/05/05 11:45:50] <MrProper_> fujin, and the fact returns foo based on the var you pass it | ||
| [2008/05/05 11:45:59] <daork> fujin: I have require => Package['httpd'], which does not work, and require => Package[httpd] which does work | ||
| [2008/05/05 11:46:24] <daork> the resource is package{ httpd: blah } | ||
| [2008/05/05 11:46:28] <MrProper_> fujin, for example you could also use this saying facter ipaddress('eth0:10') | ||
| [2008/05/05 11:46:38] <fujin> MrProper_: nah, I don't think you can do that | ||
| [2008/05/05 11:46:52] <fujin> daork: very weird | ||
| [2008/05/05 11:47:02] <fujin> what does --debug say when it doesn't work? | ||
| [2008/05/05 11:47:30] <daork> I also note that I have had service { 'network': } not restarting in the past when notified with Service[network] (ie. resource is defined with quotes, notification does not use quotes) | ||
| [2008/05/05 11:48:10] @ Demosthenes joined channel #puppet | ||
| [2008/05/05 11:49:01] <hacim> daork: if that were true, it would be a bug, IMHO | ||
| [2008/05/05 11:49:07] <hacim> i have not noticed that | ||
| [2008/05/05 11:49:10] <daork> I'm testing it now to be sure | ||
| [2008/05/05 11:51:44] <jamesturnbull> fujin: right on spec | ||
| [2008/05/05 11:51:54] <fujin> I'm looking at it | ||
| [2008/05/05 11:51:59] <fujin> I wonder what the valid tests would be | ||
| [2008/05/05 11:52:08] <fujin> i suppose while I'm at ti I could write tests for the rest of the tagmail provider | ||
| [2008/05/05 11:52:15] <fujin> Is it right to be calling it a provider? | ||
| [2008/05/05 11:52:35] <fujin> Puppet::Reports.register_report(:tagmail) do .. | ||
| [2008/05/05 11:53:18] <jamesturnbull> MrProper_: you can't do what you want with Facter but consider generate() as an alternative | ||
| [2008/05/05 11:54:57] <jamesturnbull> MrProper_: wiki:FunctionReference | ||
| [2008/05/05 11:55:00] <gepetto> jamesturnbull: MrProper_: wiki:FunctionReference is http://reductivelabs.com/trac/puppet/wiki/FunctionReference | ||
| [2008/05/05 11:56:02] <MrProper_> jamesturnbull, and generate is executed on the client side? | ||
| [2008/05/05 11:58:40] <fujin> no, server side aswell | ||
| [2008/05/05 11:58:50] <fujin> but you can come up with interseting ways to use it | ||
| [2008/05/05 11:59:00] <daork> hmm, this still doesn't seem to be working | ||
| [2008/05/05 11:59:01] <fujin> for example, use ssh inside of generate | ||
| [2008/05/05 11:59:07] <daork> meh, I'll figure this out later, don't have time to do it nw | ||
| [2008/05/05 11:59:10] <daork> now* | ||
| [2008/05/05 12:01:21] <MrProper_> fujin, so how can i exec code on the client side with variable data (ie like a fact but parse vars from server side) | ||
| [2008/05/05 12:01:38] <fujin> generate(ssh $fqdn 'facter blahblah') | ||
| [2008/05/05 12:01:43] <MrProper_> uggh | ||
| [2008/05/05 12:01:46] <fujin> ;> | ||
| [2008/05/05 12:01:53] <MrProper_> ssh loops should be banned | ||
| [2008/05/05 12:02:06] <fujin> I don't know. What are you tryign to achieve? | ||
| [2008/05/05 12:02:15] <MrProper_> insert a module | ||
| [2008/05/05 12:02:21] <MrProper_> or remove | ||
| [2008/05/05 12:02:44] <fujin> and you can't manage this with exec/file? | ||
| [2008/05/05 12:02:57] <MrProper_> it would be alot cleaner via other moethod | ||
| [2008/05/05 12:03:00] <MrProper_> methods even | ||
| [2008/05/05 12:03:30] <fujin> I'm sure | ||
| [2008/05/05 12:03:42] <fujin> facts are designed to return values with no input though | ||
| [2008/05/05 12:03:48] <fujin> and that'd be a pretty fundemental design change I'd say | ||
| [2008/05/05 12:04:16] <MrProper_> otherwise i have to have something like file { "/path/to/silly/lock/file": ensure => file }; exec { "/sbin/modprobe blah": subscribe => /path/to/silly/lock/file": refreshonly=> true } | ||
| [2008/05/05 12:04:56] <fujin> eh? | ||
| [2008/05/05 12:05:17] <fujin> exec { "/sbin/modprobe blah": onlyif => "lsmod|grep blah" } | ||
| [2008/05/05 12:05:25] <MrProper_> true | ||
| [2008/05/05 12:05:27] <MrProper_> forgot about that | ||
| [2008/05/05 12:06:44] <fujin> mm | ||
| [2008/05/05 12:06:49] <fujin> probably the easiest way to do it, I'd say | ||
| [2008/05/05 12:07:49] <MrProper_> yeah definitely | ||
| [2008/05/05 12:15:42] @ Quit: jvanzyl: | ||
| [2008/05/05 12:16:29] @ Quit: silk: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/05 12:16:30] @ Quit: wrobel: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/05 12:18:30] @ andrewcshafer joined channel #puppet | ||
| [2008/05/05 12:18:58] @ Demosthenex joined channel #puppet | ||
| [2008/05/05 12:19:39] @ wrobel joined channel #puppet | ||
| [2008/05/05 12:20:02] <jamesturnbull> MrProper_: or you could write a type and provider for kernel modules | ||
| [2008/05/05 12:20:38] <fujin> or that :p | ||
| [2008/05/05 12:20:41] <jamesturnbull> MrProper_: be fairly easy to model it on one of the existing ones | ||
| [2008/05/05 12:25:31] @ jvanzyl joined channel #puppet | ||
| [2008/05/05 12:38:03] @ patobrien joined channel #puppet | ||
| [2008/05/05 12:41:46] @ Quit: Demosthenex: Read error: 110 (Connection timed out) | ||
| [2008/05/05 12:44:06] <fujin> haha | ||
| [2008/05/05 12:44:13] <fujin> mail on my junglist.gen.nz box has been broken for weeks | ||
| [2008/05/05 12:44:15] <fujin> so awesome | ||
| [2008/05/05 12:45:51] @ Demosthenex joined channel #puppet | ||
| [2008/05/05 12:45:54] @ Quit: Demosthenes: Read error: 110 (Connection timed out) | ||
| [2008/05/05 12:53:39] @ shadoi joined channel #puppet | ||
| [2008/05/05 12:54:52] @ Quit: shadoi: Remote closed the connection | ||
| [2008/05/05 12:55:01] @ shadoi joined channel #puppet | ||
| [2008/05/05 12:55:34] @ Quit: shadoi: Client Quit | ||
| [2008/05/05 13:08:36] @ Quit: patobrien: "Leaving" | ||
| [2008/05/05 13:09:34] @ randybias joined channel #puppet | ||
| [2008/05/05 13:21:16] @ Quit: andrewcshafer: | ||
| [2008/05/05 13:26:09] @ Quit: jvanzyl: | ||
| [2008/05/05 13:32:45] @ Demosthenes joined channel #puppet | ||
| [2008/05/05 13:44:39] @ Quit: Demosthenex: Read error: 110 (Connection timed out) | ||
| [2008/05/05 13:54:51] @ a-priori joined channel #puppet | ||
| [2008/05/05 13:56:24] @ lak joined channel #puppet | ||
| [2008/05/05 13:58:53] <fujin> howdy lak | ||
| [2008/05/05 13:58:58] <lak> hi | ||
| [2008/05/05 13:59:37] <lak> i saw your pull requests, should get to it this week | ||
| [2008/05/05 13:59:51] <lak> did you mark the ticket as 'ready for checkin'? | ||
| [2008/05/05 13:59:58] <fujin> indeed | ||
| [2008/05/05 14:00:13] <fujin> assigned to you, aswell | ||
| [2008/05/05 14:00:25] <fujin> lak: does it need tests written? I notice there are no other tests for the tagmail report | ||
| [2008/05/05 14:00:48] <fujin> I believe I've covered everyting off sanely | ||
| [2008/05/05 14:00:52] <lak> really? i expect they're all in the reports class or something | ||
| [2008/05/05 14:01:06] <lak> i *think* i wrote a bunch of them when i refactored the report | ||
| [2008/05/05 14:01:15] <fujin> ah | ||
| [2008/05/05 14:01:21] <fujin> I must have missed them, will poke around | ||
| [2008/05/05 14:01:47] <fujin> ah | ||
| [2008/05/05 14:01:48] <fujin> there it is | ||
| [2008/05/05 14:01:54] <fujin> they're old tests, not spec tests | ||
| [2008/05/05 14:02:23] <lak> right | ||
| [2008/05/05 14:02:48] <fujin> welp, I'll update the ticket, set it to needs tests, assign it back to me | ||
| [2008/05/05 14:02:51] <fujin> sorry :) | ||
| [2008/05/05 14:05:30] <lak> np | ||
| [2008/05/05 14:05:43] <fujin> lak: some kind of tutorial available for writing those kinds of tests? | ||
| [2008/05/05 14:05:46] <lak> i'd rather it take a few tries than you not trie :) | ||
| [2008/05/05 14:05:53] <lak> try, rather | ||
| [2008/05/05 14:05:55] <fujin> I've only looked at rspec, a little bit | ||
| [2008/05/05 14:05:58] <lak> no, i don't think so | ||
| [2008/05/05 14:06:06] <lak> well, there are various things online | ||
| [2008/05/05 14:06:15] <lak> just google for 'ruby test/unit' | ||
| [2008/05/05 14:06:41] @ shake-n-bake joined channel #puppet | ||
| [2008/05/05 14:06:54] @ andrewcshafer joined channel #puppet | ||
| [2008/05/05 14:07:06] <fujin> would it be worth rewriting those unit tests in rspec? | ||
| [2008/05/05 14:07:07] @ Quit: andrewcshafer: Client Quit | ||
| [2008/05/05 14:07:14] <lak> that would be great | ||
| [2008/05/05 14:07:31] <fujin> ust wondering if that's a better idea from a learnign perspective | ||
| [2008/05/05 14:08:53] @ Quit: a-priori: | ||
| [2008/05/05 14:13:02] <fujin> lak: are you very familiar with templating? if you'll notice in http://github.com/fujin/puppet/commit/6953b43eb597db475b242e90fd74053cb8044a2e | ||
| [2008/05/05 14:13:11] <fujin> I had to use blah = ERB.net(..) | ||
| [2008/05/05 14:13:16] <fujin> b = binding | ||
| [2008/05/05 14:13:20] <fujin> then the local variables would work | ||
| [2008/05/05 14:13:34] <fujin> without the b=binding / m.result(b) it wouldn't get the values of those vars | ||
| [2008/05/05 14:13:55] <lak> correct | ||
| [2008/05/05 14:14:01] <lak> you basically always have to pass in the bindings | ||
| [2008/05/05 14:14:33] <fujin> I see. I noticed some cases that you didn't | ||
| [2008/05/05 14:14:39] <fujin> like in my standalone ERB learnings | ||
| [2008/05/05 14:14:44] <fujin> you can do it without a binding and it'll work | ||
| [2008/05/05 14:15:46] <fujin> anyway, that threw me for a while | ||
| [2008/05/05 14:16:04] <fujin> just tryin to familiarise with internals.. still getting the hango f it | ||
| [2008/05/05 14:18:41] <lak> ok | ||
| [2008/05/05 14:34:43] @ Quit: \ask: | ||
| [2008/05/05 14:35:33] @ khalid is now known as eternal | ||
| [2008/05/05 14:45:06] @ jvanzyl joined channel #puppet | ||
| [2008/05/05 14:56:42] <fujin> lak: did you hav ea chance to look at the code? does it look sane, I mean | ||
| [2008/05/05 14:56:55] <fujin> woudln't want to be going down the wrong route or anything | ||
| [2008/05/05 14:57:17] @ silk joined channel #puppet | ||
| [2008/05/05 15:00:38] <lak> i'll look at it again | ||
| [2008/05/05 15:01:25] @ Quit: randybias: | ||
| [2008/05/05 15:01:50] <lak> i don't think your markup will render correctly | ||
| [2008/05/05 15:02:10] <lak> at the least, you'll need to prefix the list items with '* ' | ||
| [2008/05/05 15:02:42] <lak> and you should probably switch the notice to a debug | ||
| [2008/05/05 15:02:53] <lak> for the log that warns about using default template | ||
| [2008/05/05 15:05:24] <fujin> in the @doc section? | ||
| [2008/05/05 15:05:37] <lak> for the lists, yeah | ||
| [2008/05/05 15:05:45] <fujin> err desc | ||
| [2008/05/05 15:05:46] <lak> the log is at line 129 | ||
| [2008/05/05 15:06:04] <lak> otherwise, everything seems right | ||
| [2008/05/05 15:06:07] <fujin> ah yep, that's cool | ||
| [2008/05/05 15:06:20] <fujin> by the lists do you mean the ``from``: the Puppet[:reportfrom] configuration option? | ||
| [2008/05/05 15:06:32] <lak> altho... if i were rewriting it, i'd probably refactor it so there weren't two parts of the code that used the template | ||
| [2008/05/05 15:06:45] <lak> starting at line 38 | ||
| [2008/05/05 15:06:52] <fujin> ah yep | ||
| [2008/05/05 15:06:57] <lak> that's a list, but it's not marked up as an rst list | ||
| [2008/05/05 15:07:03] <fujin> ah, sure | ||
| [2008/05/05 15:07:15] <lak> you need a blank line, and to prefix the list items with an li marker, like '*' and a space | ||
| [2008/05/05 15:08:00] <fujin> ahuh | ||
| [2008/05/05 15:08:08] <fujin> now what do you mean two parts of code that use the template? | ||
| [2008/05/05 15:08:14] <fujin> I just have both types of outgoing mail | ||
| [2008/05/05 15:23:26] @ Quit: jvanzyl: | ||
| [2008/05/05 15:23:58] <lak> jamesturnbull: busy weekend, eh? | ||
| [2008/05/05 15:24:41] <lak> fujin: right, but that should really have been refactored in the beginning, so that the headers are only generated in one part of the code | ||
| [2008/05/05 15:35:00] @ randybias joined channel #puppet | ||
| [2008/05/05 15:39:53] @ Quit: huangmingyou: "Leaving." | ||
| [2008/05/05 15:40:03] @ huangmingyou joined channel #puppet | ||
| [2008/05/05 15:46:13] @ Quit: huangmingyou: "Leaving." | ||
| [2008/05/05 15:46:22] @ huangmingyou joined channel #puppet | ||
| [2008/05/05 15:49:19] @ Quit: londo__: Success | ||
| [2008/05/05 15:49:53] @ londo__ joined channel #puppet | ||
| [2008/05/05 16:03:18] @ Quit: lak: | ||
| [2008/05/05 16:05:54] <gepetto> ::puppet:: Ticket #1211 (defect closed): install.rb should force overwrite when gzip decompressing @ http://reductivelabs.com/trac/puppet/ticket/1211#comment:2 (by luke@madstop.com) | ||
| [2008/05/05 16:32:42] @ Quit: vinci: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 16:41:17] @ Quit: kolla: Remote closed the connection | ||
| [2008/05/05 16:47:40] @ lak joined channel #puppet | ||
| [2008/05/05 16:50:53] <fujin> lak: right, I see what you mean. I'll take a look at that code and see if I can make it so I don't repeat myself | ||
| [2008/05/05 16:50:58] <fujin> that's the idea right, don't repeat yourself? | ||
| [2008/05/05 16:51:10] <fujin> I'm using the ERB stuff twice when I could use it once and just re-use. | ||
| [2008/05/05 16:51:16] * fujin facepalm | ||
| [2008/05/05 16:51:20] <lak> yeah | ||
| [2008/05/05 16:51:25] <fujin> forgive me, my ruby-fu is weak | ||
| [2008/05/05 16:51:27] * fujin bows | ||
| [2008/05/05 16:51:29] <lak> the original duplication is my fault | ||
| [2008/05/05 16:51:34] <lak> you just ran with it | ||
| [2008/05/05 16:51:40] <lak> but if you're refactoring anyway... :) | ||
| [2008/05/05 16:51:58] <fujin> I've still got to tackle rspec later today. | ||
| [2008/05/05 16:53:23] <fujin> lak: do you rebase onto 0.24.x or merge? | ||
| [2008/05/05 16:53:46] <lak> well, i have to merge, else it messes up your branch | ||
| [2008/05/05 16:53:51] <lak> but you should rebase | ||
| [2008/05/05 16:53:58] <fujin> man, isn't git awesome? the github gem is pretty wicked too | ||
| [2008/05/05 16:54:10] <lak> yeah, it's pretty nice | ||
| [2008/05/05 16:54:21] <fujin> on my fork of puppet, I can do 'github pull lak' and it just rips down your master branch | ||
| [2008/05/05 16:57:02] @ Quit: shake-n-bake: Read error: 110 (Connection timed out) | ||
| [2008/05/05 17:01:26] <jamesturnbull> lak: yeah very busy | ||
| [2008/05/05 17:02:10] @ _newbie_ joined channel #puppet | ||
| [2008/05/05 17:02:49] <jamesturnbull> lak: don't think there was a wiki page I didn't touch at some point | ||
| [2008/05/05 17:03:01] <jamesturnbull> lak: usually inappropriately | ||
| [2008/05/05 17:03:05] <lak> heh | ||
| [2008/05/05 17:03:36] <jamesturnbull> lak: but it solidified for me that Trac wiki is probably not going to fly in the long term | ||
| [2008/05/05 17:03:45] <lak> oh? | ||
| [2008/05/05 17:04:07] <jamesturnbull> just hard to work with - you should be able to package up the wiki and bind it and instant doco | ||
| [2008/05/05 17:04:55] <jamesturnbull> something drupal like makes more sense | ||
| [2008/05/05 17:06:24] <jamesturnbull> see http://drupal.org/node/284 and http://www.darcynorman.net/2006/05/24/wiki-vs-drupal-book/ | ||
| [2008/05/05 17:07:16] <jamesturnbull> not saying thats the solution but it just feels like proper doco being laid out that way | ||
| [2008/05/05 17:13:40] <lak> yeah, i looked for book-like doc when i started the whole thing and couldn't find anything | ||
| [2008/05/05 17:15:09] <lak> http://www.madstop.com/tools/git_branch_in_your_bash_prompt.html | ||
| [2008/05/05 17:15:25] @ tim|macbook joined channel #puppet | ||
| [2008/05/05 17:23:58] <jamesturnbull> lak: the google analytics access seems to be mostly theoretical | ||
| [2008/05/05 17:24:06] <lak> hrm | ||
| [2008/05/05 17:24:13] <lak> you didn't get an email from it or something? | ||
| [2008/05/05 17:24:23] <lak> i've no actual idea how it gives you access | ||
| [2008/05/05 17:24:26] @ sparanjape joined channel #puppet | ||
| [2008/05/05 17:25:10] <lak> it's your jamtur01@gmail account | ||
| [2008/05/05 17:25:20] @ roald joined channel #puppet | ||
| [2008/05/05 17:25:30] @ Quit: roald: Remote closed the connection | ||
| [2008/05/05 17:26:16] @ roald joined channel #puppet | ||
| [2008/05/05 17:26:46] <jamesturnbull> ah | ||
| [2008/05/05 17:27:12] <jamesturnbull> got it | ||
| [2008/05/05 17:27:13] <jamesturnbull> thanks | ||
| [2008/05/05 17:27:34] @ tim|mb joined channel #puppet | ||
| [2008/05/05 17:27:45] @ Quit: londo__: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 17:28:09] @ londo__ joined channel #puppet | ||
| [2008/05/05 17:33:57] @ kolla joined channel #puppet | ||
| [2008/05/05 17:38:44] @ Quit: tim|macbook: Read error: 110 (Connection timed out) | ||
| [2008/05/05 17:58:09] @ jvanzyl joined channel #puppet | ||
| [2008/05/05 18:02:28] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/05 18:02:32] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 18:04:28] @ Quit: randybias: | ||
| [2008/05/05 18:08:23] @ Quit: lak: | ||
| [2008/05/05 18:10:59] @ Quit: johnf: Read error: 101 (Network is unreachable) | ||
| [2008/05/05 18:11:31] @ johnf joined channel #puppet | ||
| [2008/05/05 18:12:57] @ Quit: MrProper_: Read error: 113 (No route to host) | ||
| [2008/05/05 18:14:11] @ Quit: jvanzyl_: Remote closed the connection | ||
| [2008/05/05 18:15:36] @ jvanzyl joined channel #puppet | ||
| [2008/05/05 18:19:33] <gepetto> ::puppet:: Ticket #1212 (defect created): Adding only valid values for dump param in mount type @ http://reductivelabs.com/trac/puppet/ticket/1212 (by puppet@immerda.ch) | ||
| [2008/05/05 18:20:25] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/05 18:22:13] @ randybias joined channel #puppet | ||
| [2008/05/05 18:22:30] @ Quit: randybias: Client Quit | ||
| [2008/05/05 18:34:41] @ Quit: jvanzyl: Read error: 113 (No route to host) | ||
| [2008/05/05 19:00:49] <Ned> has anyone ever made a resource type for debconf questions ? | ||
| [2008/05/05 19:10:30] @ Quit: huangmingyou: "Leaving." | ||
| [2008/05/05 19:10:40] @ huangmingyou joined channel #puppet | ||
| [2008/05/05 19:31:53] <johnf> Ned: you can use a responsefile with the debian package provider | ||
| [2008/05/05 19:32:22] <Ned> ? | ||
| [2008/05/05 19:39:19] @ Quit: huangmingyou: "Leaving." | ||
| [2008/05/05 19:39:28] @ huangmingyou joined channel #puppet | ||
| [2008/05/05 19:42:54] <johnf> Ned: one sec I think there is a doc on the wiki | ||
| [2008/05/05 19:43:17] <Ned> johnf: cheers | ||
| [2008/05/05 19:44:13] <johnf> Ned: http://reductivelabs.com/trac/puppet/wiki/Recipes/LDAPClientNSSwitch | ||
| [2008/05/05 19:44:16] <johnf> has an example | ||
| [2008/05/05 19:44:53] <johnf> you use debconf-get-selection somewhere where a package is installed to create the preseed file | ||
| [2008/05/05 19:47:15] <Ned> yeah ... | ||
| [2008/05/05 19:47:39] <Ned> oh, I see, the debian package provider has support for this ? | ||
| [2008/05/05 19:47:40] <Ned> nice ... | ||
| [2008/05/05 19:47:56] <Ned> is there documentation about how it all works somewhere ? | ||
| [2008/05/05 19:48:00] <Ned> rather than just an example ? | ||
| [2008/05/05 19:48:34] <johnf> not that I could find in a quick search | ||
| [2008/05/05 19:48:46] <Ned> okay, I'll keep poking around | ||
| [2008/05/05 19:48:51] <Ned> at least I know what I'm looking for ... thanks dude :-) | ||
| [2008/05/05 20:17:59] <gepetto> ::puppet:: Ticket #1213 (defect created): debconf-set-selections cannot be called before the package is install... @ http://reductivelabs.com/trac/puppet/ticket/1213 (by math.parent@gmail.com) | ||
| [2008/05/05 20:20:51] @ Quit: jvanzyl_: | ||
| [2008/05/05 21:17:19] @ Innocenti joined channel #puppet | ||
| [2008/05/05 21:25:40] @ rraphink is now known as raphink | ||
| [2008/05/05 21:54:43] @ Quit: tim|mb: "Leaving" | ||
| [2008/05/05 21:56:27] @ Quit: kenvandine: "Ex-Chat" | ||
| [2008/05/05 21:59:13] @ tim|macbook joined channel #puppet | ||
| [2008/05/05 22:05:53] @ |Innocenti| joined channel #puppet | ||
| [2008/05/05 22:35:00] @ Zothar_Work joined channel #puppet | ||
| [2008/05/05 22:36:44] @ kenvandine joined channel #puppet | ||
| [2008/05/05 22:42:25] @ vinci joined channel #puppet | ||
| [2008/05/05 22:45:57] @ Quit: londo__: Success | ||
| [2008/05/05 22:46:54] @ londo__ joined channel #puppet | ||
| [2008/05/05 22:55:00] @ Quit: londo__: Read error: 104 (Connection reset by peer) | ||
| [2008/05/05 22:57:09] @ londo__ joined channel #puppet | ||
| [2008/05/05 23:03:41] @ markl__ joined channel #puppet | ||
| [2008/05/05 23:12:38] @ jeckersb joined channel #puppet | ||
| [2008/05/05 23:15:41] @ shenson_not_here is now known as shenson | ||
| [2008/05/05 23:21:52] <ashp> So guys, I was working on something on Friday to do with erb's and a variable in a module, and I still can't get it to work | ||
| [2008/05/05 23:22:14] <ashp> I set a variable in my rhythmyx module, and then in my sudo module I check in the template for that variable and add some lines | ||
| [2008/05/05 23:22:32] <ashp> The idea being if the node includes both classes, it should add the lines and if not it won't | ||
| [2008/05/05 23:22:32] @ shake-n-bake joined channel #puppet | ||
| [2008/05/05 23:22:36] <ashp> anyone got something like that working? | ||
| [2008/05/05 23:26:00] @ Vivek joined channel #puppet | ||
| [2008/05/05 23:27:46] @ Quit: eternal: "ChatZilla 0.9.81 [Firefox 2.0.0.14/2008040413]" | ||
| [2008/05/05 23:42:20] @ Quit: sparanjape: "Leaving" | ||
| [2008/05/05 23:51:12] @ shenson is now known as shenson_not_here | ||
| [2008/05/05 23:51:43] @ shenson_not_here is now known as shenson |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!