Tuesday, 2009-04-14

[2009/04/14 00:02:52] @ Log started by gepetto
[2009/04/14 00:02:52] @ Quit: Flam5: Read error: 110 (Connection timed out)
[2009/04/14 00:04:20] @ Quit: andrewcshafer: Read error: 104 (Connection reset by peer)
[2009/04/14 00:04:41] @ andrewcshafer joined channel #puppet
[2009/04/14 00:09:02] <eythian> I just ran puppet twice: the first time it took about 30 seconds, and missed some things I knew it should have. The second time it took 110 seconds and ran everything it was supposed to. Why would it do this kind of thing?
[2009/04/14 00:09:10] @ Quit: ethan_rowe: "Lack of interest wins out."
[2009/04/14 00:11:19] @ Quit: randybias: Client Quit
[2009/04/14 00:12:26] <ohadlevy> eythian: try using --evaltrace to see where the time is spent
[2009/04/14 00:18:00] @ Quit: ezmob: "Bye!"
[2009/04/14 00:18:37] <eythian> ohadlevy: oh, the time is normal. it is doing many things. It's the fact that it sometimes misses over half of the tasks that concerns me.
[2009/04/14 00:18:58] <ohadlevy> well, thats something in your manifest ;)
[2009/04/14 00:19:04] <ohadlevy> maybe ordering?
[2009/04/14 00:21:00] <eythian> ohadlevy: it shouldn't be. With these two runs, nothing should have changed to cause it.
[2009/04/14 00:21:17] <ohadlevy> than debug is your friend :)
[2009/04/14 00:24:21] <eythian> I guess, yeah.
[2009/04/14 00:25:47] <eythian> ahh. I just figured it out. Some of the facts come from an http request to amazon's web service thing. Apparently that fails somewhat regularly.
[2009/04/14 00:30:35] <ohadlevy> I cache this kind of stuff
[2009/04/14 00:32:25] <eythian> ohadlevy: yeah. i think I'll do that too. Also put a more robust loader in.
[2009/04/14 00:44:13] @ bgupta joined channel #puppet
[2009/04/14 01:01:01] @ Quit: lak:
[2009/04/14 01:12:18] @ ArvinJA joined channel #puppet
[2009/04/14 01:16:13] @ monzie joined channel #puppet
[2009/04/14 01:27:45] @ Quit: ArvinJA:
[2009/04/14 01:33:06] @ d3vilb0x joined channel #puppet
[2009/04/14 01:36:06] @ axisys_ left channel #puppet ()
[2009/04/14 01:39:16] @ axisys joined channel #puppet
[2009/04/14 01:46:04] @ Quit: elementai: "Reconnecting"
[2009/04/14 01:46:07] @ elementai joined channel #puppet
[2009/04/14 01:46:41] @ authentic joined channel #puppet
[2009/04/14 01:48:23] @ pleemans joined channel #puppet
[2009/04/14 01:51:44] @ ^authentic joined channel #puppet
[2009/04/14 01:55:07] @ stijnbe joined channel #puppet
[2009/04/14 01:56:00] <FiXion> how can I get puppet to log what module an error occured in?
[2009/04/14 01:56:16] <FiXion> or if it could just log when it "runs" a certain module
[2009/04/14 01:56:35] <FiXion> Could not create : Parameter path failed: File paths must be fully qualified
[2009/04/14 01:56:39] <FiXion> isn't very helpful :)
[2009/04/14 01:56:46] <FiXion> and I'd hate to have to run the client in verbose mode
[2009/04/14 01:59:14] <FiXion> the default log entries IMHO ought to be a bit more helpful :)
[2009/04/14 02:03:58] <ohadlevy> FiXion: usually you get a line number and a filename, which version of puppet are u using?
[2009/04/14 02:06:42] @ Quit: authentic: Connection timed out
[2009/04/14 02:06:50] @ ^authentic is now known as authentic
[2009/04/14 02:09:36] @ Quit: kingitchy: Read error: 110 (Connection timed out)
[2009/04/14 02:11:02] <FiXion> 0.24.4 - ubuntu 8.04.2
[2009/04/14 02:11:12] <FiXion> we're moving to 9.04 soon though..
[2009/04/14 02:11:44] <FiXion> which has 0.24.5.. perhaps I should roll my own package :)
[2009/04/14 02:11:59] <FiXion> ohadlevy: do you know which version this was fixed in?
[2009/04/14 02:13:34] @ Quit: Djelibeybi: "Leaving"
[2009/04/14 02:17:29] @ Quit: stijnbe: "Leaving..."
[2009/04/14 02:19:23] @ Quit: andrewcshafer:
[2009/04/14 02:19:42] @ Quit: alban2: Read error: 60 (Operation timed out)
[2009/04/14 02:22:43] @ madrescher joined channel #puppet
[2009/04/14 02:27:46] @ Quit: fbe_: Read error: 110 (Connection timed out)
[2009/04/14 02:31:38] @ kolla joined channel #puppet
[2009/04/14 02:33:16] @ Quit: bgupta: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:16] @ Quit: claymation: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:17] @ Quit: jtimberman: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:17] @ Quit: hacim: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:17] @ Quit: ghenry: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:17] @ Quit: dsd_: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:18] @ Quit: Superfly_: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:18] @ Quit: pugnacity: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:18] @ Quit: Shamgar: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:19] @ Quit: wakko666: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:19] @ Quit: justdave: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:33:19] @ Quit: catay: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:06] @ bgupta joined channel #puppet
[2009/04/14 02:34:06] @ claymation joined channel #puppet
[2009/04/14 02:34:06] @ hacim joined channel #puppet
[2009/04/14 02:34:06] @ dsd_ joined channel #puppet
[2009/04/14 02:34:06] @ jtimberman joined channel #puppet
[2009/04/14 02:34:06] @ ghenry joined channel #puppet
[2009/04/14 02:34:06] @ Shamgar joined channel #puppet
[2009/04/14 02:34:06] @ wakko666 joined channel #puppet
[2009/04/14 02:34:06] @ justdave joined channel #puppet
[2009/04/14 02:34:06] @ pugnacity joined channel #puppet
[2009/04/14 02:34:06] @ Superfly_ joined channel #puppet
[2009/04/14 02:34:06] @ catay joined channel #puppet
[2009/04/14 02:34:27] @ Quit: eythian: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:28] @ Quit: markl: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:28] @ Quit: mcbride: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:28] @ Quit: punkcut: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:29] @ Quit: jrojas: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:29] @ Quit: wassy121: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:30] @ Quit: stevenjenkins: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:58] @ Quit: pleemans: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:59] @ Quit: ribo: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:34:59] @ Quit: sfeehan: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:35:00] @ Quit: Risar: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:35:44] @ punkcut joined channel #puppet
[2009/04/14 02:36:49] @ markl joined channel #puppet
[2009/04/14 02:36:57] @ mcbride joined channel #puppet
[2009/04/14 02:37:42] @ justdave_ joined channel #puppet
[2009/04/14 02:38:00] @ Quit: claymation: Connection timed out
[2009/04/14 02:38:17] @ Quit: dsd_: Remote closed the connection
[2009/04/14 02:38:22] @ Quit: catay: Remote closed the connection
[2009/04/14 02:38:25] @ Quit: hacim: Broken pipe
[2009/04/14 02:38:29] @ hacim joined channel #puppet
[2009/04/14 02:38:29] @ catay joined channel #puppet
[2009/04/14 02:38:51] @ eythian joined channel #puppet
[2009/04/14 02:39:02] @ Quit: justdave_: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:03] @ Quit: pugnacity: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:03] @ Quit: jtimberman: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:03] @ Quit: Shamgar: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:04] @ Quit: justdave: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:04] @ Quit: wakko666: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:04] @ Quit: Superfly_: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:05] @ Quit: bgupta: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:05] @ Quit: ghenry: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:39:35] @ justdave_ joined channel #puppet
[2009/04/14 02:39:35] @ bgupta joined channel #puppet
[2009/04/14 02:39:35] @ jtimberman joined channel #puppet
[2009/04/14 02:39:36] @ ghenry joined channel #puppet
[2009/04/14 02:39:36] @ Shamgar joined channel #puppet
[2009/04/14 02:39:36] @ wakko666 joined channel #puppet
[2009/04/14 02:39:36] @ pugnacity joined channel #puppet
[2009/04/14 02:39:36] @ Superfly_ joined channel #puppet
[2009/04/14 02:40:22] @ sfeehan joined channel #puppet
[2009/04/14 02:40:26] @ Quit: ghenry: SendQ exceeded
[2009/04/14 02:40:47] @ Quit: justdave_: Remote closed the connection
[2009/04/14 02:43:21] @ Risar joined channel #puppet
[2009/04/14 02:43:36] @ stijnbe joined channel #puppet
[2009/04/14 02:44:09] @ Quit: pugnacity: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:44:09] @ Quit: jtimberman: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:44:10] @ Quit: Shamgar: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:44:10] @ Quit: wakko666: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:44:10] @ Quit: Superfly_: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:44:10] @ Quit: bgupta: kornbluth.freenode.net irc.freenode.net
[2009/04/14 02:44:13] @ dsd_ joined channel #puppet
[2009/04/14 02:45:08] @ ghenry joined channel #puppet
[2009/04/14 02:45:59] @ Quit: alfism: "Connection reset by beer"
[2009/04/14 02:47:44] @ Shamgar joined channel #puppet
[2009/04/14 02:48:00] @ pleemans joined channel #puppet
[2009/04/14 02:48:00] @ ribo joined channel #puppet
[2009/04/14 02:48:28] @ wassy121 joined channel #puppet
[2009/04/14 02:49:31] @ jrojas joined channel #puppet
[2009/04/14 02:51:17] @ ribo_ joined channel #puppet
[2009/04/14 02:51:42] @ nasrat joined channel #puppet
[2009/04/14 02:51:49] @ mellen joined channel #puppet
[2009/04/14 02:51:54] @ Quit: cedric_b: "Ex-Chat"
[2009/04/14 02:52:12] @ Quit: ribo: Connection timed out
[2009/04/14 02:52:56] @ cirquitz joined channel #puppet
[2009/04/14 03:00:43] <eythian> a Ruby question: I'm working on a tempate (as an ERB) and have the variable 'domain' which contains, say, 'test.example.com', and I want to search-and-replace it to be 'test\.example\.com' ... how do I do that/
[2009/04/14 03:02:20] @ Superfly_ joined channel #puppet
[2009/04/14 03:06:29] <eythian> nm, just found out about .gsub
[2009/04/14 03:10:40] @ Innocenti joined channel #puppet
[2009/04/14 03:12:51] @ nakano_ is now known as nakano
[2009/04/14 03:14:30] @ Quit: nasrat:
[2009/04/14 03:17:29] @ DerekW joined channel #puppet
[2009/04/14 03:31:44] @ aymerick joined channel #puppet
[2009/04/14 03:36:13] @ Quit: d3vilb0x:
[2009/04/14 03:36:30] @ Quit: ivan: "Coyote finally caught me"
[2009/04/14 03:36:45] @ ivan joined channel #puppet
[2009/04/14 03:38:29] @ Quit: edwardam: Remote closed the connection
[2009/04/14 03:40:09] @ Quit: madrescher: "Leaving."
[2009/04/14 03:44:57] @ Quit: pdt:
[2009/04/14 03:55:37] @ fbe_ joined channel #puppet
[2009/04/14 04:02:31] @ bajan joined channel #puppet
[2009/04/14 04:06:10] @ MarlondB joined channel #puppet
[2009/04/14 04:08:46] @ mikepea joined channel #puppet
[2009/04/14 04:11:09] @ tuf joined channel #puppet
[2009/04/14 04:16:04] <SyTonnerre> Hm
[2009/04/14 04:16:12] <SyTonnerre> Still nobody pulled my patches ;)
[2009/04/14 04:18:12] @ MattyM joined channel #puppet
[2009/04/14 04:21:53] @ d3vilb0x joined channel #puppet
[2009/04/14 04:22:22] @ fbe_ is now known as fbe
[2009/04/14 04:24:03] <duritong> SyTonnerre: ticket number?
[2009/04/14 04:24:21] <SyTonnerre> duritong, I was instructed to use the github pull request mechanism
[2009/04/14 04:24:59] <duritong> oh
[2009/04/14 04:25:16] <SyTonnerre> I re-requested now though
[2009/04/14 04:26:37] @ Quit: mikepea:
[2009/04/14 04:28:30] <duritong> SyTonnerre: usually patches send to -dev with a ticket get merged after positive review on the list
[2009/04/14 04:30:37] <duritong> process according to wiki:DevelopmentLifecycle
[2009/04/14 04:30:38] <gepetto> duritong: wiki:DevelopmentLifecycle is http://reductivelabs.com/trac/puppet/wiki/DevelopmentLifecycle
[2009/04/14 04:34:19] @ mikepea joined channel #puppet
[2009/04/14 04:45:17] @ yure joined channel #puppet
[2009/04/14 04:54:10] @ justdave joined channel #puppet
[2009/04/14 04:54:10] @ bgupta joined channel #puppet
[2009/04/14 04:54:10] @ jtimberman joined channel #puppet
[2009/04/14 04:54:10] @ wakko666 joined channel #puppet
[2009/04/14 04:54:10] @ pugnacity joined channel #puppet
[2009/04/14 04:54:40] @ glaw joined channel #puppet
[2009/04/14 04:54:40] @ verwilst joined channel #puppet
[2009/04/14 04:54:40] @ stevenjenkins joined channel #puppet
[2009/04/14 05:07:25] @ madrescher joined channel #puppet
[2009/04/14 05:12:36] @ fujin joined channel #puppet
[2009/04/14 05:14:39] @ z00dax_ is now known as z00dax
[2009/04/14 05:25:17] @ Quit: mikepea:
[2009/04/14 05:27:09] @ ohadlevy left channel #puppet ()
[2009/04/14 05:38:12] @ Quit: zoeloelip: Read error: 113 (No route to host)
[2009/04/14 05:44:54] @ randybias joined channel #puppet
[2009/04/14 05:49:07] @ Quit: justdave: "Reconnecting"
[2009/04/14 05:49:11] @ justdave joined channel #puppet
[2009/04/14 05:50:48] @ Quit: randybias: Read error: 60 (Operation timed out)
[2009/04/14 05:55:05] <barn> bah, I am getting lots of "Could not retrieve catalog: uninitialized constant Facter::Util::IP" and puppet not running properly
[2009/04/14 05:55:38] @ zoeloelip joined channel #puppet
[2009/04/14 05:56:09] @ ethan_rowe joined channel #puppet
[2009/04/14 06:09:24] @ Shazburg joined channel #puppet
[2009/04/14 06:17:52] @ mikepea joined channel #puppet
[2009/04/14 06:31:54] @ keithlard joined channel #puppet
[2009/04/14 07:04:29] @ yarihm joined channel #puppet
[2009/04/14 07:10:43] @ Shazburg is now known as Shazburg|away
[2009/04/14 07:16:22] @ Quit: ssm: "byebye"
[2009/04/14 07:28:56] @ Quit: cirquitz: Read error: 113 (No route to host)
[2009/04/14 07:36:16] @ alban2 joined channel #puppet
[2009/04/14 07:40:39] @ cirquitz joined channel #puppet
[2009/04/14 07:40:49] @ nakano is now known as nakano_
[2009/04/14 07:43:37] <Volcane> barn: recently upgraded facter?
[2009/04/14 07:45:15] @ giles joined channel #puppet
[2009/04/14 07:45:19] <giles> lo puppetiers
[2009/04/14 07:45:57] <giles> when trigger a notify for a init based service does puppet try and run a reload?
[2009/04/14 07:46:06] <giles> or a restart?
[2009/04/14 07:46:25] <giles> I can see a hasrestart in the docs but not a hasreload
[2009/04/14 07:46:29] <SyTonnerre> If a reload command is defined, it is usually run
[2009/04/14 07:47:03] <giles> in the initscript?
[2009/04/14 07:47:11] <giles> or something in puppet
[2009/04/14 07:47:55] @ Quit: cirquitz: "Leaving"
[2009/04/14 07:48:24] @ cirquitz joined channel #puppet
[2009/04/14 07:50:06] @ Welsh_Dwarf joined channel #puppet
[2009/04/14 07:51:44] @ mvn071 joined channel #puppet
[2009/04/14 07:56:47] @ Quit: glaw: Remote closed the connection
[2009/04/14 08:01:10] @ glaw joined channel #puppet
[2009/04/14 08:01:38] @ Quit: maxagaz: "Leaving"
[2009/04/14 08:04:48] @ chillitom joined channel #puppet
[2009/04/14 08:10:28] @ Quit: Maliuta: Read error: 60 (Operation timed out)
[2009/04/14 08:22:39] @ Quit: fujin: "Leaving..."
[2009/04/14 08:22:53] @ Maliuta joined channel #puppet
[2009/04/14 08:26:50] <verwilst> you guys have a preference for a puppet gui?
[2009/04/14 08:26:53] <verwilst> webbased?
[2009/04/14 08:32:11] <keithlard> i heard there was such a thing, but i never used it
[2009/04/14 08:33:03] <verwilst> puppetshow
[2009/04/14 08:33:10] <verwilst> but it needs storedconfig
[2009/04/14 08:33:33] <verwilst> what exactly does storedconfig do?
[2009/04/14 08:33:40] <verwilst> does it replace the manifests files?
[2009/04/14 08:35:00] <verwilst> or does it compile the manifests stuffs, and puts it in a database for faster access?
[2009/04/14 08:43:28] @ kambiz_away is now known as kambiz
[2009/04/14 08:47:42] <Volcane> kiri: long uptime = bad
[2009/04/14 08:47:44] <Volcane> oops
[2009/04/14 08:47:54] <Volcane> wrong # obviously
[2009/04/14 08:48:13] <Volcane> verwilst: it stores a list of what resources are on what machine
[2009/04/14 08:48:18] <Volcane> verwilst: not the actual configs
[2009/04/14 08:48:49] <verwilst> Volcane: that's what i thought ;)
[2009/04/14 08:48:56] <verwilst> what advantages does it have?
[2009/04/14 08:49:14] <verwilst> except being able to view them with puppetshow for example?
[2009/04/14 08:49:19] <Volcane> it enables this feature: http://reductivelabs.com/trac/puppet/wiki/ExportedResources
[2009/04/14 08:50:29] @ nakano_ is now known as nakano
[2009/04/14 08:55:25] @ mccune joined channel #puppet
[2009/04/14 08:58:14] @ Quit: cirquitz: No route to host
[2009/04/14 08:59:09] <verwilst> Volcane: hm, confusing feature :)
[2009/04/14 09:05:23] <barn> Volcane: yeah, updated facter
[2009/04/14 09:05:36] <Volcane> how?
[2009/04/14 09:05:39] <barn> to 1.5.4-1
[2009/04/14 09:06:00] <Volcane> anyway, i think there might be some leftovers from previous versions
[2009/04/14 09:06:11] <Volcane> uninstall, clear the direcotry in the ruby libdir and reinstall
[2009/04/14 09:07:33] <barn> wonderful, I shall try that, thank you!
[2009/04/14 09:12:33] @ erm_ joined channel #puppet
[2009/04/14 09:13:02] @ fujin joined channel #puppet
[2009/04/14 09:16:07] @ Quit: Demosthenes: Read error: 113 (No route to host)
[2009/04/14 09:16:25] @ maxagaz joined channel #puppet
[2009/04/14 09:17:16] @ lak joined channel #puppet
[2009/04/14 09:18:58] @ nigelk joined channel #puppet
[2009/04/14 09:26:22] @ unxfrek joined channel #puppet
[2009/04/14 09:26:26] @ Flam5 joined channel #puppet
[2009/04/14 09:26:39] @ andrewcshafer joined channel #puppet
[2009/04/14 09:30:29] @ Quit: monzie:
[2009/04/14 09:32:49] @ cirquitz joined channel #puppet
[2009/04/14 09:33:54] @ Quit: nigelk:
[2009/04/14 09:43:07] @ Quit: maxagaz: "Leaving"
[2009/04/14 09:56:25] <Telmo> Volcane: Are you awake?
[2009/04/14 10:00:40] <Volcane> yeah
[2009/04/14 10:01:08] <dsd_> does puppetd place a time limit on file transfers? i am having trouble transferring a 65mb file over a LAN using puppet:/// :(
[2009/04/14 10:01:13] <dsd_> puppetd[26396]: Connection timeout calling fileserver.retrieve: execution expired
[2009/04/14 10:01:22] <dsd_> (//File[/library/xs-activity-server/incoming/gcompris.activity.xo]/ensure) change from absent to file failed: Could not retrieve /activities/gcompris.activity.xo: Connection Timeout
[2009/04/14 10:01:29] @ cwebber joined channel #puppet
[2009/04/14 10:02:10] <Volcane> dsd: yeah its not a great idea xfering large files with puppet now, better in 0.25 when it comes
[2009/04/14 10:02:31] <Telmo> Volcane: have you seen this before? http://www.pastie.org/private/hjhmkwfxkkokwbkszvnia
[2009/04/14 10:02:53] <Telmo> I got it working in Ubuntu, same versions of both pupept and rails.. however RedHat is being... difficult
[2009/04/14 10:03:05] @ Quit: omry: Remote closed the connection
[2009/04/14 10:03:15] <dsd_> Volcane: cool, can you summarise what has changed w.r.t file transfers?
[2009/04/14 10:03:22] <Volcane> telmo: seems like it might be installed somewhere where the puppets lib path isnt finding it
[2009/04/14 10:03:53] <Volcane> dsd: currently file xfers are done with like nasty encoded transfers as part of RPC calls, in future they'll be more 'normal' http get like
[2009/04/14 10:03:57] <Telmo> [root@storm ~]# which rails
[2009/04/14 10:03:58] <Telmo> [root@storm ~]#
[2009/04/14 10:04:05] <Telmo> huh?
[2009/04/14 10:04:12] <dsd_> great
[2009/04/14 10:04:14] <Telmo> oh right
[2009/04/14 10:04:19] <Telmo> its in /usr/bin/rails
[2009/04/14 10:04:21] <dsd_> do you know the current time limit?
[2009/04/14 10:04:33] <dsd_> these servers will be moved to remote locations.. i guess we might face this problem even on small files :(
[2009/04/14 10:04:33] <Volcane> Telmo: its probably more about the ruby libs than the exe
[2009/04/14 10:05:00] <Volcane> dsd_: not sure, but i have my master in germany happily serving files to east coast us without troubles generally
[2009/04/14 10:05:02] <Telmo> man, I hate RedHat, what a awful distro
[2009/04/14 10:05:34] <dsd_> Volcane: well, i am working in paraguay, and would dream to achieve local speeds comparable to a transatlantic link :(
[2009/04/14 10:06:05] <Volcane> dsd: i think it'll be fine on smallish files, I wouldnt try xfer 64mb with puppet protocol
[2009/04/14 10:06:33] <dsd_> ok, thanks for your input
[2009/04/14 10:07:33] <Volcane> telmo: try in a little file
[2009/04/14 10:07:36] <Volcane> require 'rubygems'
[2009/04/14 10:07:40] <Volcane> require 'rails'
[2009/04/14 10:07:45] <Volcane> or even just in irb or whatever
[2009/04/14 10:08:12] <Volcane> other wise also just try: require 'active_record'
[2009/04/14 10:08:21] <Volcane> thats basically all puppet does to try and figure out if it can find rails
[2009/04/14 10:08:30] <Volcane> see lib/puppet/feature/rails.rb
[2009/04/14 10:08:55] <Telmo> irb(main):004:0> require 'active_record'
[2009/04/14 10:08:56] <Telmo> => true
[2009/04/14 10:08:56] <Telmo> irb(main):005:0>
[2009/04/14 10:09:31] <Volcane> puts defined? ActiveRecord
[2009/04/14 10:09:37] <Telmo> it is really frustrating, because it works flawlessly in Ubuntu, following the same steps, as in installing rails from gems
[2009/04/14 10:10:03] <Volcane> also try
[2009/04/14 10:10:04] <Volcane> if defined? ActiveRecord::Associations::BelongsToPolymorphicAssociation
[2009/04/14 10:10:15] <Volcane> puts defined? ActiveRecord::Associations::BelongsToPolymorphicAssociation
[2009/04/14 10:10:15] <Volcane> even
[2009/04/14 10:10:16] <Telmo> irb(main):006:0> puts defined? ActiveRecord
[2009/04/14 10:10:16] <Telmo> constant
[2009/04/14 10:10:16] <Telmo> => nil
[2009/04/14 10:10:17] <Telmo> irb(main):007:0>
[2009/04/14 10:10:23] <Volcane> hmm
[2009/04/14 10:10:44] <Volcane> do you have rubygem-activerecord ?
[2009/04/14 10:10:46] <Telmo> irb(main):007:0> puts defined? ActiveRecord::Associations::BelongsToPolymorphicAssociation
[2009/04/14 10:10:46] <Telmo> nil
[2009/04/14 10:10:46] <Telmo> => nil
[2009/04/14 10:10:47] <Telmo> irb(main):008:0>
[2009/04/14 10:10:55] <Telmo> I do..
[2009/04/14 10:11:01] <Telmo> rails gem wont install without
[2009/04/14 10:11:30] <Volcane> odd
[2009/04/14 10:11:43] <Volcane> well i only have a ancient box that used to ahve stored confs, so hard to test
[2009/04/14 10:12:18] <Telmo> its ok, I'll figure it out, I was just wondering if you found a similar issue or not
[2009/04/14 10:13:41] <Volcane> but if you get this http://pastie.org/446049 then it really should work
[2009/04/14 10:15:18] @ jief- joined channel #puppet
[2009/04/14 10:16:21] <jief-> hello. im trying to setup puppetshow. I found sources at git://reductivelabs.com/puppetshow
[2009/04/14 10:16:27] <jief-> and also on github.com
[2009/04/14 10:16:31] <jief-> which is the proper one?
[2009/04/14 10:17:43] <Telmo> irb(main):003:0> require 'active_record'
[2009/04/14 10:17:43] <Telmo> => true
[2009/04/14 10:17:43] <Telmo> irb(main):004:0> defined? ActiveRecord::Associations::BelongsToPolymorphicAssociation
[2009/04/14 10:17:43] <Telmo> => nil
[2009/04/14 10:17:44] <Telmo> irb(main):005:0>
[2009/04/14 10:17:48] <Telmo> hummm...
[2009/04/14 10:17:49] @ Quit: yarihm: "This computer has gone to sleep"
[2009/04/14 10:17:57] <Telmo> I wonder if it has something to do with rails 2.3
[2009/04/14 10:17:58] <Volcane> Telmo: old activerecord maybe
[2009/04/14 10:18:05] <Volcane> or too new :P
[2009/04/14 10:18:15] <Telmo> heh
[2009/04/14 10:18:39] <Telmo> jief, I don't think either have been updated in quite a while
[2009/04/14 10:19:49] @ jc3` joined channel #puppet
[2009/04/14 10:21:32] <jc3`> is there a recommended workaround for "Feature #86" (Directory creation fails if parent directory does not exist)?
[2009/04/14 10:21:33] <gepetto> jc3`: #86 is http://projects.reductivelabs.com/issues/show/86 "Puppet - Feature #86: Directory creation fails if parent directory does not exist - ReductiveLabs.com"
[2009/04/14 10:21:50] <Volcane> jc3`: yeah, make the parent dir :P
[2009/04/14 10:22:48] <jc3`> so if i require 3 "children", i need 3 file resources? (seems a bit verbose)
[2009/04/14 10:23:46] <Volcane> file{["/path", "/path/to", "/path/to/long", "/path/to/long/dir"]: ensure => directory }
[2009/04/14 10:23:51] <Volcane> thats the shortest solution
[2009/04/14 10:24:24] @ edwardam joined channel #puppet
[2009/04/14 10:24:28] <jief-> Telmo: so i shouldn't use it then?
[2009/04/14 10:24:44] <jc3`> Volcane: that's not so bad! :-) thx
[2009/04/14 10:25:35] <Telmo> jief-: You may have some issues running it, it uses an old version of rails among other things. not a fun of PHP, but I hear PuppetView is pretty good :)
[2009/04/14 10:25:47] <Telmo> ^fun^fan
[2009/04/14 10:25:52] @ nigelk joined channel #puppet
[2009/04/14 10:26:07] <jief-> Telmo: ya ive been fighting with it for 2 hours
[2009/04/14 10:26:18] <jief-> building .deb packages for lots of ruby stuff
[2009/04/14 10:26:23] <jief-> ill look into puppetview
[2009/04/14 10:27:26] <Telmo> as an alternative you can write your own rails app to connect to puppet's StoredConfig and feed from there.
[2009/04/14 10:27:50] <Telmo> or you can wait a couple of weeks until I finish with the one I am writing heh
[2009/04/14 10:28:16] <jief-> Telmo: i need something in order to deliver the solution
[2009/04/14 10:28:50] <jief-> and then i have to tackle the really interesting part: deploying the client on over 2000 servers
[2009/04/14 10:29:26] <Telmo> what base os
[2009/04/14 10:29:39] <jief-> mainly ubuntu
[2009/04/14 10:29:42] <Telmo> you are talking about .deb so I assume Debian/Ubuntu
[2009/04/14 10:29:44] <jief-> some redhat/centos/solaris
[2009/04/14 10:30:07] <Telmo> for solaris you only need 3 packages
[2009/04/14 10:30:31] <jief-> i dont think we'll manage our solaris boxens with it for now
[2009/04/14 10:30:43] <jief-> since what we use solaris for is very missing-critical\
[2009/04/14 10:30:55] <Telmo> I am doing mainly solaris and puppet works like a charm
[2009/04/14 10:31:36] <Telmo> but I understand the concern
[2009/04/14 10:32:35] <jief-> its just that its gonna be new for all of us
[2009/04/14 10:32:43] <jief-> what runs on linux is mainly a bunch of Apache's
[2009/04/14 10:32:47] <jief-> and we have lots of them
[2009/04/14 10:32:55] <jief-> but the solaris ones are where the money is generated
[2009/04/14 10:33:06] <jief-> and just to patch them, we need to plan a month in advance kinda thing
[2009/04/14 10:33:17] <jief-> i guess i'll script something
[2009/04/14 10:34:11] <jief-> is your product going to support enterprise stuff like RBAC and LDAP/KRB auth?
[2009/04/14 10:35:08] <joe-mac> can wildcards be anywhere in a domain name in the namespace ACLs?
[2009/04/14 10:35:20] <joe-mac> for instance puppet.*.yoursite.com, would that work?
[2009/04/14 10:35:26] <Telmo> it is not a product, it is something I am writing to use "in house" and I will release a open source version of it.
[2009/04/14 10:35:42] <jief-> Telmo: ok
[2009/04/14 10:36:00] <jief-> the issue with most webgui that are open source, is usually with authentication and roles
[2009/04/14 10:37:11] <Telmo> adding LDAP auth to the authentication plugging is fairly easy
[2009/04/14 10:37:48] <Telmo> I haven't found any robusts KRB5 ruby libraries though
[2009/04/14 10:38:27] @ brothers joined channel #puppet
[2009/04/14 10:38:32] <jief-> I can live with LDAP as long as SSL/TLS support is there
[2009/04/14 10:38:41] <jief-> krb5 is something we'll roll out next year maybe
[2009/04/14 10:42:26] @ Quit: edwardam: Remote closed the connection
[2009/04/14 10:43:13] @ pdt joined channel #puppet
[2009/04/14 10:44:05] @ markl_ joined channel #puppet
[2009/04/14 10:44:14] <joe-mac> so the other day i rm'd /etc/apache2 (don't ask) and when i re applied the puppet manifest, a bunch of stuff failed so i looked and /etc/apache2/sites-available was completely empty. Manually re installing apache2.2-common didn't replace those files, and i heard that there is a switch to do this with dpkg or apt... any way i can tell puppet to tell apt to do that?
[2009/04/14 10:44:29] <joe-mac> i mean mods-available**
[2009/04/14 10:44:54] <cwebber> does any1 know of a way to ensure that a particular class before all other classes?
[2009/04/14 10:45:23] <joe-mac> cwebber: have you tried require => Class["bar"] in Class["foo"]'s body?
[2009/04/14 10:45:24] <joe-mac> o
[2009/04/14 10:45:35] <joe-mac> all classes, nm :-(
[2009/04/14 10:46:11] <cwebber> joe-mac: that would work if you could do a require in the body of the class
[2009/04/14 10:46:51] <jc3`> regarding variable scope and inheritance, is this true? nodes CAN override variables via inheritance but classes CANNOT.
[2009/04/14 10:47:06] <cwebber> i think there is a require function in 0.25.x
[2009/04/14 10:47:56] <Telmo> Volcane: yes, StoredConfig does not work with Rails 2.3.2
[2009/04/14 10:48:14] <Telmo> actually, I assume it wont work with any of the 2.3.*
[2009/04/14 10:48:29] <jief-> joe-mac: dpkg-reconfigure or apt-get install --reinstall
[2009/04/14 10:49:24] <jc3`> cwebber: can you make all your classes inherit from that particular class?
[2009/04/14 10:49:41] <cwebber> jc3: that wont work
[2009/04/14 10:50:11] <joe-mac> nice, thanks jief- i forget abvout dpkg-reconfigure all the time for some reason
[2009/04/14 10:50:47] <cwebber> jc3: it is one of those chicken and egg problems... i dont want to require the class if the dependent class is running on a "legacy" system but bootstraping is a problem on newly provisioned systems
[2009/04/14 10:51:37] @ FreakyPenguin joined channel #puppet
[2009/04/14 10:53:33] <jief-> joe-mac: np
[2009/04/14 10:53:44] <jief-> i dislike debian's dpkg/apt-get mess though
[2009/04/14 10:53:50] <jief-> i much prefer rpm and yum
[2009/04/14 10:53:57] <jief-> its such a cleaner system
[2009/04/14 10:57:40] <joe-mac> i tend to agree but that may be the diff of years i spent on RH-based vs deb based
[2009/04/14 10:59:40] <brothers> as soon as rpm dependency resolution worked, i switched from debian to fedora
[2009/04/14 11:00:09] @ pdt_ joined channel #puppet
[2009/04/14 11:01:24] <jief-> and yum is written in Python
[2009/04/14 11:01:30] <jief-> which makes it cooler just because of that ;)
[2009/04/14 11:03:34] @ Quit: lak:
[2009/04/14 11:05:15] @ jmeeuwen_ joined channel #puppet
[2009/04/14 11:07:01] @ Quit: unxfrek: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:01] @ Quit: jrojas: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:02] @ Quit: hacim: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:02] @ Quit: authentic: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:02] @ Quit: joe: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:04] @ Quit: msf: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:04] @ Quit: vinci: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:04] @ Quit: jmeeuwen: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:04] @ Quit: Disconnect: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:05] @ Quit: mikearr: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:05] @ Quit: Agrajag^: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:05] @ Quit: skullY_: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:07:15] @ jmeeuwen_ is now known as jmeeuwen
[2009/04/14 11:08:24] @ msf joined channel #puppet
[2009/04/14 11:08:40] @ authentic joined channel #puppet
[2009/04/14 11:08:50] @ jrojas joined channel #puppet
[2009/04/14 11:09:24] @ hacim joined channel #puppet
[2009/04/14 11:11:18] @ unxfrek joined channel #puppet
[2009/04/14 11:11:18] @ joe joined channel #puppet
[2009/04/14 11:11:18] @ vinci joined channel #puppet
[2009/04/14 11:11:18] @ Disconnect joined channel #puppet
[2009/04/14 11:11:18] @ mikearr joined channel #puppet
[2009/04/14 11:11:18] @ Agrajag^ joined channel #puppet
[2009/04/14 11:11:18] @ skullY_ joined channel #puppet
[2009/04/14 11:11:28] @ Quit: mikearr: SendQ exceeded
[2009/04/14 11:11:28] @ Quit: joe: SendQ exceeded
[2009/04/14 11:13:16] @ lak joined channel #puppet
[2009/04/14 11:15:22] @ joe joined channel #puppet
[2009/04/14 11:15:37] @ Quit: skullY_: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:15:37] @ Quit: Agrajag^: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:15:38] @ Quit: vinci: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:15:38] @ Quit: unxfrek: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:15:38] @ Quit: Disconnect: kornbluth.freenode.net irc.freenode.net
[2009/04/14 11:15:43] @ unxfrek joined channel #puppet
[2009/04/14 11:15:44] @ vinci joined channel #puppet
[2009/04/14 11:15:44] @ Disconnect joined channel #puppet
[2009/04/14 11:15:44] @ Agrajag^ joined channel #puppet
[2009/04/14 11:15:44] @ skullY_ joined channel #puppet
[2009/04/14 11:17:10] @ mikearr joined channel #puppet
[2009/04/14 11:17:14] @ Quit: pdt: Read error: 113 (No route to host)
[2009/04/14 11:19:14] @ mfoster joined channel #puppet
[2009/04/14 11:20:35] @ Quit: cirquitz: "Leaving"
[2009/04/14 11:21:12] @ Quit: jief-: "Lost terminal"
[2009/04/14 11:22:50] @ Quit: verwilst: "Ex-Chat"
[2009/04/14 11:22:55] @ Quit: unxfrek: Remote closed the connection
[2009/04/14 11:24:31] @ nakano is now known as nakano_
[2009/04/14 11:24:40] @ jlamsens joined channel #puppet
[2009/04/14 11:25:10] @ Quit: madrescher: Read error: 110 (Connection timed out)
[2009/04/14 11:25:53] <jlamsens> Hi, anyone can help me with this: http://pastebin.com/m4f134e66
[2009/04/14 11:25:56] <jlamsens> thanks in advance
[2009/04/14 11:28:39] @ Quit: MarlondB:
[2009/04/14 11:28:52] <jlamsens> small typo: this is correct now: http://pastebin.com/m28ec467d
[2009/04/14 11:29:16] @ ruedu joined channel #puppet
[2009/04/14 11:29:17] @ kingitchy joined channel #puppet
[2009/04/14 11:29:53] <ruedu> looking for a bit of help on transferring large files and how to get clients to know when that file is been updated
[2009/04/14 11:31:00] <dsd_> ruedu: i learned today that puppet:// and large files dont work together. cant even transfer 65mb over a lan :/ maybe use rsync or nfs instead
[2009/04/14 11:31:03] <joe-mac> ruedu: transferring large files through puppet?
[2009/04/14 11:31:09] @ edwardam joined channel #puppet
[2009/04/14 11:31:13] <joe-mac> yea, dsd_ is correct
[2009/04/14 11:31:23] <joe-mac> even a lot of small files is excruciatingly slow
[2009/04/14 11:31:29] @ Quit: markl_: "Lost terminal"
[2009/04/14 11:31:35] <ruedu> rsync and nfs are fine, but how do I get the client to realize when the remote file has been modified?
[2009/04/14 11:31:52] <joe-mac> diff the md5's through ssh?
[2009/04/14 11:32:08] <ruedu> so it is then a manual process?
[2009/04/14 11:32:26] <ruedu> the exec { "blah blah": refreshonly => true} won't work?
[2009/04/14 11:32:29] <joe-mac> you can script that easily, i do it here as part of the QA push
[2009/04/14 11:32:31] @ Quit: d3vilb0x: Read error: 110 (Connection timed out)
[2009/04/14 11:33:28] <joe-mac> well, IMO it'd be easier to use an onlyif the md5s differ, or unless the md5s are the same
[2009/04/14 11:33:56] <joe-mac> so you'd have exec { "rsync something over": onlyif => "md5saredifferent" }
[2009/04/14 11:34:33] <ruedu> how do I define md5saredifferent, or is that built in?
[2009/04/14 11:34:41] @ alfism joined channel #puppet
[2009/04/14 11:35:18] <ruedu> sorry, I'm pretty green so...
[2009/04/14 11:35:42] <ruedu> and who ends up running the md5? the client or the server?
[2009/04/14 11:35:55] <joe-mac> NP i am too only a couple months in, onlyif accepts a shell command
[2009/04/14 11:36:16] <ruedu> and it is run on the server side or client side? that script?
[2009/04/14 11:36:27] <joe-mac> it runs it on the node
[2009/04/14 11:36:41] <ruedu> so then NFS is probably the best way to go
[2009/04/14 11:36:52] <joe-mac> yea tehn you don't have to use SSH keys
[2009/04/14 11:37:12] <ruedu> so I need to come up with a recipe to first ensure the client has the required NFS share mounted
[2009/04/14 11:37:54] <ruedu> md5 the source files
[2009/04/14 11:37:59] <ruedu> copy them onlyif they've changed
[2009/04/14 11:38:21] <joe-mac> correct
[2009/04/14 11:39:03] <ruedu> when was puppet "born" ?
[2009/04/14 11:39:53] <joe-mac> gotta be a few years, best to ask lak
[2009/04/14 11:39:55] <joe-mac> it is his baby
[2009/04/14 11:40:04] <joe-mac> on his blog there is a history of puppet thing
[2009/04/14 11:40:10] <joe-mac> luke.madstop.com i think it is
[2009/04/14 11:40:11] <jlamsens> Really no one for http://pastebin.com/m28ec467d ?
[2009/04/14 11:40:16] <lak> ruedu: first prototype was 2004, officially launched as a full-time project in march of 2005
[2009/04/14 11:40:32] <joe-mac> jlamsens: HOLY S**&) whats up with your tabstops
[2009/04/14 11:41:09] <ruedu> lak: thanks,
[2009/04/14 11:41:10] <jlamsens> I want to show you the hierarchy
[2009/04/14 11:41:25] <jlamsens> Does it look bad/unreadable maybe ?
[2009/04/14 11:42:03] <joe-mac> jlamsens: it's kinda bad, i wouldn't say unreadable though, do you have a problem or?
[2009/04/14 11:42:57] <jlamsens> joe-mac; thanks for listening. I have a problem indeed; I want to override some variable that I specified, namely the mysql root password, but it does not seem to work, and maybe I made a mistake
[2009/04/14 11:44:34] @ Quit: pdt_:
[2009/04/14 11:44:35] <joe-mac> you can't override variables afaik, someone earlier speculated you could in node defs but not classes, all i know is i was told day one you can't re-define variables
[2009/04/14 11:46:07] @ unxfrek joined channel #puppet
[2009/04/14 11:46:09] <jlamsens> joe-mac; maybe this is better readable: http://acoustica.be/puppet.txt
[2009/04/14 11:46:53] <jlamsens> are u sure ?
[2009/04/14 11:46:55] <joe-mac> yea you can't do that jlamsens you could do something like with a selector or case statement
[2009/04/14 11:47:29] <jlamsens> joe-mac; could you push me in the right direction with some kind of example in my case ?
[2009/04/14 11:47:48] <joe-mac> yea, give me a few i am doing some major re factoring of my puppet stuff atm
[2009/04/14 11:48:27] @ Quit: pleemans: Read error: 113 (No route to host)
[2009/04/14 11:49:30] <jlamsens> joe-mac; ok, I'll wait a bit
[2009/04/14 11:50:48] @ kibaho1 joined channel #puppet
[2009/04/14 11:50:54] @ kibaho1 left channel #puppet ()
[2009/04/14 11:50:54] <joe-mac> jlamsens: does this make sense to you? not sure uif it will work in your case but i do it in my defines for when i need to modify variables sometimes http://www.pastie.org/446161
[2009/04/14 11:53:02] <jlamsens> joe-mac; hmm, I don't think that make sense for me.
[2009/04/14 11:53:40] @ nigelk left channel #puppet ()
[2009/04/14 11:53:46] <joe-mac> yea it may not, might make more sense to write a bash script and serve it out via puppet then require it in an exec
[2009/04/14 11:54:17] <jlamsens> joe-mac; thanks anyway
[2009/04/14 11:54:36] <joe-mac> np
[2009/04/14 11:57:10] @ d3vilb0x joined channel #puppet
[2009/04/14 12:03:43] @ Quit: Innocenti: Client Quit
[2009/04/14 12:07:32] @ Quit: d3vilb0x: Read error: 104 (Connection reset by peer)
[2009/04/14 12:12:20] @ ribo_ is now known as ribo
[2009/04/14 12:13:53] <barn> is the "if $foo { }" notation in puppet yet, or am I missing it? (searching for 'if' is impossible)
[2009/04/14 12:14:12] @ d3vilb0x joined channel #puppet
[2009/04/14 12:14:22] <Volcane> barn: wiki:LanguageTutorial
[2009/04/14 12:14:26] <gepetto> Volcane: barn: wiki:LanguageTutorial is http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial
[2009/04/14 12:14:29] @ bajan left channel #puppet ()
[2009/04/14 12:14:35] <barn> Volcane: thank you!
[2009/04/14 12:14:42] <barn> you hero! (again)
[2009/04/14 12:14:48] <Volcane> :)
[2009/04/14 12:16:45] <hacim> in 0.24.8 this went away: VersionComparer.versioncmp(Puppet.version,'0.24.6') -- what can I change that to?
[2009/04/14 12:17:06] <Volcane> versioncmp in 0.24.8 is broken
[2009/04/14 12:17:06] <barn> Volcane: ah, that's why, I'm running some ancient debian version... ):
[2009/04/14 12:17:19] @ Quit: stijnbe: Remote closed the connection
[2009/04/14 12:17:24] @ Quit: kingitchy:
[2009/04/14 12:17:40] @ stijnbe joined channel #puppet
[2009/04/14 12:17:44] @ Quit: stijnbe: Client Quit
[2009/04/14 12:21:55] @ MarlondB joined channel #puppet
[2009/04/14 12:23:02] <Volcane> its easily fixed if you fancy patching the package :P
[2009/04/14 12:23:04] <Volcane> just one line
[2009/04/14 12:23:37] <Volcane> http://projects.reductivelabs.com/issues/2110
[2009/04/14 12:23:52] @ Quit: Welsh_Dwarf: Read error: 104 (Connection reset by peer)
[2009/04/14 12:24:22] @ Quit: jlamsens: "Leaving"
[2009/04/14 12:25:48] @ claymation joined channel #puppet
[2009/04/14 12:26:46] <hacim> Volcane: thanks
[2009/04/14 12:27:50] <hacim> that wasn't a problem in -rc1 :)
[2009/04/14 12:28:06] <Volcane> thats odd
[2009/04/14 12:28:25] <hacim> looks like I can do Simply adding ':type => :rvalue' to the newfunction() call fixes it.
[2009/04/14 12:28:32] <hacim> until the fix is available
[2009/04/14 12:28:34] <Volcane> yup, as in the ticket i pasted :)
[2009/04/14 12:28:52] <hacim> I assume thats literal, and rvalue doesn't mean something
[2009/04/14 12:29:13] <Volcane> yeah it tells it its a function that returns a value
[2009/04/14 12:29:54] @ kingitchy joined channel #puppet
[2009/04/14 12:30:24] @ Quit: DerekW: "Leaving"
[2009/04/14 12:30:52] @ Quit: mfoster: "Leaving."
[2009/04/14 12:32:17] @ kibaho1 joined channel #puppet
[2009/04/14 12:32:24] @ kibaho1 left channel #puppet ()
[2009/04/14 12:33:29] <joe-mac> pre-commit hooks ftw
[2009/04/14 12:34:27] @ Quit: alban2: Read error: 110 (Connection timed out)
[2009/04/14 12:35:20] @ markl_ joined channel #puppet
[2009/04/14 12:37:09] @ ezmob joined channel #puppet
[2009/04/14 12:38:26] <barn> why is storeconfigs so flakey/painful ):
[2009/04/14 12:38:49] <joe-mac> because anything complex is flakey/painful
[2009/04/14 12:39:13] <barn> I'm just going to blame rails
[2009/04/14 12:39:19] <lak> i'm cool with that
[2009/04/14 12:39:28] <lak> barn: what's flakey about it?
[2009/04/14 12:39:34] <lak> i know it's slow, but i didn't knw it was flakey
[2009/04/14 12:40:06] <barn> to be fair, it's the activerecord side that I have pain with
[2009/04/14 12:41:06] <barn> and now I've just upgraded puppetmasterd and I've broken it again.. (:
[2009/04/14 12:42:35] <Telmo> storedconfigs wont work with activerecord 2.3.2
[2009/04/14 12:43:03] <barn> Telmo: I found that out, after a painful couple of days ):
[2009/04/14 12:43:15] @ pheezy joined channel #puppet
[2009/04/14 12:43:21] <Telmo> not that is really matters if puppet is moving away from rails.
[2009/04/14 12:43:33] @ Quit: ezmob: Read error: 104 (Connection reset by peer)
[2009/04/14 12:43:50] @ ezmob_ joined channel #puppet
[2009/04/14 12:44:06] <barn> it is? oh that makes me happy
[2009/04/14 12:45:34] <Telmo> I just hope it moves to something DB backed.. so I can write a rails app to read it lol
[2009/04/14 12:47:52] <ruedu> what kinds of systems are people using to run the master on?
[2009/04/14 12:48:17] <ruedu> we're testing using a VM that has 256MB of ram
[2009/04/14 12:48:22] <Volcane> heh
[2009/04/14 12:48:30] <Volcane> you'd need much more for anything real
[2009/04/14 12:48:56] <ruedu> why?
[2009/04/14 12:49:03] <ruedu> is it all in the md5'ing?
[2009/04/14 12:49:25] <barn> realist: 4gig, dual proc 2.6 xeon (it does other stuff, like dns/ntp/nagios too though)
[2009/04/14 12:49:27] <Volcane> masters need lots of ram, i cant really say why with certainty but you need loads
[2009/04/14 12:49:48] <barn> it needs less ram with activerecord 2.2.2 (:
[2009/04/14 12:49:59] <Volcane> http://pastie.org/446229
[2009/04/14 12:50:13] <Volcane> thats without stored confs
[2009/04/14 12:50:21] <Volcane> cos stored confs just make it chew through ram and cpu like mad
[2009/04/14 12:51:10] <ruedu> seems ridiculous, but I don't understand what is all going on
[2009/04/14 12:51:15] <Volcane> theres a bigger one http://pastie.org/446231
[2009/04/14 12:51:24] <ruedu> I didn't think I'd need to best my db servers to manage some config files
[2009/04/14 12:52:15] <teratoma> can you tell me why this doesn't do anything?: http://pastebin.com/m69c96d50
[2009/04/14 12:53:06] <Volcane> teratoma: do you 'include installed-packages' anywhere?
[2009/04/14 12:54:17] @ mfoster joined channel #puppet
[2009/04/14 12:54:26] @ mfoster left channel #puppet ()
[2009/04/14 12:55:27] @ Quit: unxfrek: Read error: 110 (Connection timed out)
[2009/04/14 12:55:36] <teratoma> ok nevermind. restarting puppetmaster fixed it. i wrote the class file hours ago though, dunno why it didnt pick it up
[2009/04/14 12:56:47] @ unxfrek joined channel #puppet
[2009/04/14 12:58:43] <FreakyPenguin> If I want to use puppet to manage the installed packages, how can i manage updates? When will newer Versions get installed when I use ensure latest version?
[2009/04/14 12:58:56] <Volcane> ensure => "1.2"
[2009/04/14 12:58:58] <Volcane> or
[2009/04/14 12:59:01] <Volcane> ensure => "latest"
[2009/04/14 12:59:20] <Volcane> if ensure latest, and you use something like yum/deb it'll update as soon as the repos have it and puppet runs
[2009/04/14 13:00:08] <FreakyPenguin> Ah okay, thx.
[2009/04/14 13:00:12] <teratoma> in a class file, how can i require a define from another class ?
[2009/04/14 13:00:17] <Telmo> when in your file definition you do puppet:// is it taking as the root for that puppet:// what is define as path in the [files] section in fileserver.conf ?
[2009/04/14 13:00:22] @ Quit: fujin: "Leaving..."
[2009/04/14 13:00:39] <Volcane> telmo: puppet://servername/fileservermount/filename
[2009/04/14 13:01:20] <Telmo> humm... puppet://puppet/opt/files/my_file ?
[2009/04/14 13:01:24] <Telmo> that seems.. odd
[2009/04/14 13:01:34] <FreakyPenguin> So i wont need anything except puppet to manage a whole bunch of workstations including updates and config files?
[2009/04/14 13:01:38] <teratoma> have you tried puppet:///
[2009/04/14 13:01:40] <Volcane> no, if you have [files] in fileserver.conf
[2009/04/14 13:01:46] <teratoma> then the file would be in /etc/puppet/files/...........
[2009/04/14 13:01:49] <Volcane> then you have puppet://server/files/foo
[2009/04/14 13:01:58] <Volcane> which would point to file foo under the path= specified in fileserver.conf
[2009/04/14 13:02:00] <Telmo> yah, that;s what I meant
[2009/04/14 13:02:47] <Volcane> yeah so thats right then
[2009/04/14 13:02:48] @ Quit: glaw: Remote closed the connection
[2009/04/14 13:02:52] <Telmo> I am just trying to troubleshoot a "err: Fileserver module 'puppet' not mounted"
[2009/04/14 13:02:56] @ Quit: keithlard:
[2009/04/14 13:03:06] <Volcane> telmo: show your source => line
[2009/04/14 13:04:11] <Telmo> source => "puppet://puppet.bgal.nj.ula.comcast.net/puppet/managed_files/system/krb5.conf"
[2009/04/14 13:04:30] <Volcane> ok, so given what i said: " puppet://servername/fileservermount/filename"
[2009/04/14 13:04:41] <Volcane> you're asking for the fileserver.conf section names 'puppet'
[2009/04/14 13:05:17] <Volcane> servname = foo.comcast.net, mount=puppet, file=managed_files/system/krb5.conf
[2009/04/14 13:06:02] <Telmo> ok I see the problem
[2009/04/14 13:06:17] <Telmo> I am missing the [puppet] section
[2009/04/14 13:07:07] @ Quit: mikepea: Read error: 110 (Connection timed out)
[2009/04/14 13:07:22] <Volcane> yeah
[2009/04/14 13:07:43] <Volcane> though you should look at modules instead of loose classes serving up files from a single file mount, they're much easier to maintain
[2009/04/14 13:07:57] <Volcane> http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation
[2009/04/14 13:13:08] * bevans5446 resumes mission to get ruby/puppet/facter running on Redhat 8
[2009/04/14 13:13:26] <ruedu> RH8?
[2009/04/14 13:13:36] <bevans5446> yup
[2009/04/14 13:13:56] <ruedu> time to update :P
[2009/04/14 13:14:05] <bevans5446> haha, no shit
[2009/04/14 13:14:29] @ yarihm joined channel #puppet
[2009/04/14 13:14:35] <ruedu> I shouldn't talk, I think I have one box running RH6.2...
[2009/04/14 13:14:56] <bevans5446> I have about 8 servers that aren't in my puppet setup that *must* bet assimilated
[2009/04/14 13:15:17] <bevans5446> wow, 6.2. I don't feel so bad now
[2009/04/14 13:15:30] * Volcane has a 6.0
[2009/04/14 13:15:37] <Volcane> but not in puppet :P
[2009/04/14 13:16:11] <bevans5446> I'm not sure how much success I'm goingto have here
[2009/04/14 13:16:31] <bevans5446> rh8 actually comes with ruby 1.6.7
[2009/04/14 13:16:32] <ruedu> bevans5446: what type of things are you managing using puppet?
[2009/04/14 13:17:13] <bevans5446> system level stuff. Setting up user authentication, ssh, sudoers, etc
[2009/04/14 13:17:18] @ Quit: alfism: "Connection reset by beer"
[2009/04/14 13:18:39] <Volcane> I'm surprised puppet works on 1.8.1
[2009/04/14 13:18:59] <bevans5446> puppet will not be doing as much on the rh8 boxes as it does on the new ones
[2009/04/14 13:19:22] <bevans5446> yeah, thats my next task, getting the FC11 ruby rpm's compiled for CE4 & 5
[2009/04/14 13:21:05] @ d3vilb0x_ joined channel #puppet
[2009/04/14 13:22:15] @ Quit: fbe: Read error: 110 (Connection timed out)
[2009/04/14 13:31:51] @ Quit: d3vilb0x: Read error: 110 (Connection timed out)
[2009/04/14 13:31:59] @ Quit: MattyM: "ta ta"
[2009/04/14 13:37:08] @ randybias joined channel #puppet
[2009/04/14 13:38:29] @ Shazburg|away is now known as Shazburg
[2009/04/14 13:40:10] @ Quit: sunoano: Read error: 104 (Connection reset by peer)
[2009/04/14 13:40:20] <edwardam> any reason why something like unless => "grep ${somevariable} /var/log/messages" results in only "grep /var/log/messages" being run ?
[2009/04/14 13:40:42] <ruedu> variable is empty?
[2009/04/14 13:44:07] @ sunoano joined channel #puppet
[2009/04/14 13:48:12] @ Quit: joe-mac: Remote closed the connection
[2009/04/14 13:50:33] @ alfism joined channel #puppet
[2009/04/14 13:53:14] <edwardam> ruedu: nope, or at least it shouldn't be. It's set right above it.
[2009/04/14 13:53:27] <edwardam> right above the exec anyway.
[2009/04/14 13:53:44] <edwardam> and in other cases (for testing) it's set in the enclosing node
[2009/04/14 13:54:04] <teratoma> how would i subscribe a service to any file that happens to be in a certain directory ?
[2009/04/14 13:56:36] <hMz> when did reports show up in puppet?
[2009/04/14 13:56:49] <Volcane> yonks ago
[2009/04/14 13:56:58] <hMz> pre 0.24.4?
[2009/04/14 13:57:02] <Volcane> yes
[2009/04/14 13:57:10] <hMz> well, i cant make it work then!
[2009/04/14 13:57:44] <Volcane> yeah quite a common theme here :P
[2009/04/14 13:57:52] <hMz> haha
[2009/04/14 13:57:59] <hMz> thats all i'm good for
[2009/04/14 13:58:18] <hMz> i did everything on the wikipages, am i missing some magic?
[2009/04/14 13:58:44] <ruedu> edwardam: I'm not much help beyond that right now
[2009/04/14 13:58:48] <Volcane> report = true in all puppet configs
[2009/04/14 13:58:59] <Volcane> in [puppetd] section
[2009/04/14 13:59:08] @ joe-mac joined channel #puppet
[2009/04/14 13:59:24] <Volcane> and thats it really, i dont think I did anything special past that
[2009/04/14 13:59:58] <hMz> thats what i did
[2009/04/14 14:00:02] <hMz> restarted clients and servers
[2009/04/14 14:00:06] <Volcane> then you get /var/lib/puppet/reports/<all nodes>
[2009/04/14 14:00:07] <hMz> and $vardir/reports is empty
[2009/04/14 14:00:25] <Volcane> hmm, and speaking of which i've 10k files in mine
[2009/04/14 14:00:30] <Volcane> 20k even
[2009/04/14 14:00:34] * hMz is jealous
[2009/04/14 14:00:44] <hMz> so should i run the server in debug or something?
[2009/04/14 14:02:13] <Volcane> when you run puppetd --test at the end do you see: info: Sent transaction report in 0.05 seconds
[2009/04/14 14:02:48] <nDuff> lak, tried using --graph per your suggestion; the edges responsible for causing the sporadic cycle weren't present in its output, despite running with the same manifest.
[2009/04/14 14:03:13] <lak> nDuff: which .dot file are you looking at? i recommend the expanded_relationships file
[2009/04/14 14:03:25] <nDuff> lak, yar, I went for the one with the most content.
[2009/04/14 14:04:17] <lak> nDuff: you have a sporadic cycle?
[2009/04/14 14:04:17] <lak> erm
[2009/04/14 14:04:28] <lak> did you look at the .dot graph from a failing run?
[2009/04/14 14:05:28] <nDuff> lak, I don't have a failing run built with --graph at present; I used "cycle2dot", a script Deepak wrote, to build a .dot file from the error message reporting the cycle, and compared it against one built with --graph during a failed run.
[2009/04/14 14:05:42] <lak> ah
[2009/04/14 14:05:47] @ Quit: pheezy: "Leaving..."
[2009/04/14 14:06:03] <lak> you work with deepak, right?
[2009/04/14 14:06:05] <nDuff> yup
[2009/04/14 14:06:12] <lak> sorry, i didn't hash your nick correctly
[2009/04/14 14:06:20] <lak> didn't realize you were a customer :)
[2009/04/14 14:06:55] <nDuff> lak, np
[2009/04/14 14:07:07] <lak> i wish my irc client would do the hashing for me :/
[2009/04/14 14:08:38] @ quit (okay bye)
[2009/04/14 14:09:24] @ Joined channel #puppet
[2009/04/14 14:09:24] @ Topic is "Puppet 0.24.8 released! http://tinyurl.com/cv2tq2 | Tickets, bugs and features at http://tinyurl.com/46ryk7"
[2009/04/14 14:09:24] @ Topic set by jamesturnbull on Mon Mar 23 07:50:35 -0400 2009
[2009/04/14 14:09:33] @ Mode +tnc by kornbluth.freenode.net
[2009/04/14 14:09:46] <hMz> no, sir
[2009/04/14 14:09:49] <hMz> it actually doesnt show any of my proper values
[2009/04/14 14:09:49] <Volcane> I'd say you have left over /etc/puppet/puppetd.conf from a previous version perhaps?
[2009/04/14 14:10:09] <Volcane> should only have /etc/puppet/puppet.conf
[2009/04/14 14:10:22] <hMz> use 0.24.4
[2009/04/14 14:10:34] <hMz> isnt that still puppetd.conf?
[2009/04/14 14:10:41] <hMz> oh wait,nm
[2009/04/14 14:10:42] <Volcane> no, should be puppet.conf
[2009/04/14 14:10:45] <hMz> it is puppet.conf
[2009/04/14 14:10:50] <Volcane> puppetd.conf should be deleted if its there
[2009/04/14 14:10:52] <hMz> and the /etc/puppet dir comes right out of svn
[2009/04/14 14:10:54] <Telmo> Volcane I need a sanity check :)
[2009/04/14 14:11:02] <hMz> and is current according to svn
[2009/04/14 14:11:22] <Volcane> hmz: ok, so puppetd --genconfig does what exactly? tons of nice commented stuff that looks like a config file, or omething else?
[2009/04/14 14:12:14] @ nakano_ is now known as nakano
[2009/04/14 14:13:35] <hMz> oh
[2009/04/14 14:13:36] <hMz> you meant from the client
[2009/04/14 14:13:39] <hMz> i was running it on the server
[2009/04/14 14:13:42] <Volcane> yeah client
[2009/04/14 14:13:43] <hMz> which explains that :P
[2009/04/14 14:13:45] <Volcane> client sends report to server :)
[2009/04/14 14:14:51] <hMz> hmm
[2009/04/14 14:15:00] <hMz> so i run it on the client and it shows some but not all settings
[2009/04/14 14:15:09] <hMz> oh nm, i'm lame
[2009/04/14 14:15:10] @ Quit: unxfrek: Remote closed the connection
[2009/04/14 14:15:11] <hMz> its report = true
[2009/04/14 14:15:28] <hMz> cat /etc/puppet/puppet.conf | grep 'report = '
[2009/04/14 14:15:28] <hMz> report = true
[2009/04/14 14:15:50] <hMz> genconfig says false
[2009/04/14 14:17:14] <Volcane> in what section of the file do you have report = true in puppet.conf?
[2009/04/14 14:17:50] <hMz> [puppet]
[2009/04/14 14:17:56] <hMz> initialy i had it set in both
[2009/04/14 14:17:58] <Volcane> make it [puppetd]
[2009/04/14 14:18:00] <hMz> which is what i thought might be the problem
[2009/04/14 14:18:01] <Volcane> or even [main]
[2009/04/14 14:19:02] <hMz> oh wait is it suppose to be [puppetd] and not [puppet]?
[2009/04/14 14:19:10] <Volcane> yes, since you're running puppetd
[2009/04/14 14:19:23] <Volcane> the sections in the file correspond to program/daemon name :)
[2009/04/14 14:19:30] <Volcane> put it in [main] and it applies to them all
[2009/04/14 14:19:30] <hMz> ahhh
[2009/04/14 14:19:33] <hMz> so that explains a lot!
[2009/04/14 14:20:12] <hMz> now that i changed it
[2009/04/14 14:20:14] <hMz> genconfig is working
[2009/04/14 14:20:24] <lak> hMz: my recommendation is always put everything in main unless you need different values for different executables
[2009/04/14 14:20:32] <Volcane> k so see if you get the line i pasted above from puppetd --test
[2009/04/14 14:20:44] <Volcane> yeah
[2009/04/14 14:21:04] <hMz> even for puppetmasterd?
[2009/04/14 14:21:27] <lak> yes
[2009/04/14 14:22:01] @ Tuf8 joined channel #puppet
[2009/04/14 14:22:23] <hMz> huh, ok
[2009/04/14 14:22:51] @ randybias is now known as randybias|away
[2009/04/14 14:22:59] <hMz> boom. thanks Volcane
[2009/04/14 14:23:11] <Volcane> no probs
[2009/04/14 14:23:12] <hMz> some day i need to paypal you a zebra
[2009/04/14 14:23:18] <Volcane> heh
[2009/04/14 14:23:22] <hMz> dont let me forget!
[2009/04/14 14:25:19] * Volcane 's happy to share his amazon wishlist with anyone who wants it :P
[2009/04/14 14:26:26] <jrojas> what would be the best way for puppet to gather a list of files in a directory on a client and then use that list in a template?
[2009/04/14 14:27:10] <hMz> hrm
[2009/04/14 14:27:17] <hMz> so any clues on how i point this at a specific box behind a lb?
[2009/04/14 14:27:32] <hMz> its complaining about cert mismatch because of the common cert not matching the specific hostname of the server
[2009/04/14 14:27:33] <Volcane> jrojas: only way is via facts, that might not be a good idea though depending on the maount of files you're talking about
[2009/04/14 14:28:03] <Maliuta> hMz: I see your zebra and raise you a white tailed spider
[2009/04/14 14:28:03] <Maliuta> I have one in the back yard right now
[2009/04/14 14:28:04] <jrojas> Volcane: it should be no more than 3 at any given time, its just the file names may vary...maybe i should make the file names not vary..
[2009/04/14 14:28:09] <Volcane> hMz: the best way is to just add a cname in dns for 'puppet' and leave them all on default then certnames will match
[2009/04/14 14:28:45] <Volcane> jrojas: then i guess a fact is ok, just make it say | delimited list of files and split it in the template into an array
[2009/04/14 14:29:00] <hMz> Volcane: so i have something similar, only its not puppet its my own arbitrary name but they all have a common cert for that common name and its not matching the specific host cert for just reporting
[2009/04/14 14:29:04] <hMz> i'd like to only report in one place (obviously)
[2009/04/14 14:29:13] <jrojas> Volcane: thats what I was thinking, i just wanted to make sure I didnt forget anything.
[2009/04/14 14:29:20] <Volcane> ah you want to send reports to just one host in your lb?
[2009/04/14 14:29:34] <hMz> i guess i'll have to play with the traffic somehow
[2009/04/14 14:29:42] <hMz> or specify a special port for just reporting
[2009/04/14 14:29:45] <hMz> i assume its hostname:port
[2009/04/14 14:29:53] <Volcane> nods, not sure what the viable options are for that
[2009/04/14 14:30:06] <Volcane> past report=true i've not done much with it - other than show reports on a web ui
[2009/04/14 14:30:47] <hMz> i think i can make it work
[2009/04/14 14:35:00] @ mikepea joined channel #puppet
[2009/04/14 14:37:56] <jrojas> is this in the current relase? http://projects.reductivelabs.com/issues/311
[2009/04/14 14:38:18] <jrojas> or did people decide it was easier to make the cron time random with sleep?
[2009/04/14 14:39:07] @ Quit: mikepea: Client Quit
[2009/04/14 14:39:37] <jrojas> hmm looks like it is
[2009/04/14 14:42:19] @ Quit: giles: Read error: 110 (Connection timed out)
[2009/04/14 14:43:08] <joe-mac> runinterval is in seconds in puppet.conf right?
[2009/04/14 14:45:20] <stevenjenkins> if anyone is trying to test out the new storeconfigs going to queues, let me know. the final interface is still in a bit of flux, so there may be some nits we need to iron out.
[2009/04/14 14:51:58] @ Quit: lak:
[2009/04/14 14:54:32] @ Quit: aymerick:
[2009/04/14 14:54:41] @ nakano is now known as nakano_
[2009/04/14 14:58:45] <hacim> Volcane: hrm, i applied the patch and yet I am still getting: private method `versioncmp' called for Puppet::Parser::TemplateWrapper::VersionComparer:Class
[2009/04/14 15:01:02] <hacim> hrm, maybe the clients need to be updated
[2009/04/14 15:02:34] <gwar9999> Where is puppetshow located? The Doc index link is http://reductivelabs.com/trac/puppetshow which appears broken.
[2009/04/14 15:04:22] <hacim> hrm, no that doesn't seem to fix it
[2009/04/14 15:06:53] @ ezmob_ is now known as ezmob|away
[2009/04/14 15:10:49] @ barnoid_ is now known as barnoid
[2009/04/14 15:21:27] @ Quit: yarihm: "This computer has gone to sleep"
[2009/04/14 15:24:24] @ nasrat joined channel #puppet
[2009/04/14 15:24:56] @ nakano_ is now known as nakano
[2009/04/14 15:25:24] <nasrat> evening
[2009/04/14 15:28:29] @ Quit: tobias-: Remote closed the connection
[2009/04/14 15:32:05] @ ezmob|away is now known as ezmob
[2009/04/14 15:38:47] <jrojas> hm
[2009/04/14 15:38:55] @ joe-mac left channel #puppet ()
[2009/04/14 15:40:47] @ unxfrek joined channel #puppet
[2009/04/14 15:41:36] @ randybias|away is now known as randybias
[2009/04/14 15:44:27] @ lak joined channel #puppet
[2009/04/14 15:54:44] <andrewcshafer> nasrat: Long time no see
[2009/04/14 15:55:57] <nasrat> work travel and holidays
[2009/04/14 15:56:24] <andrewcshafer> happens :)
[2009/04/14 16:00:11] <jrojas> is there a wiki page with a list of the namespaces?
[2009/04/14 16:06:35] @ Quit: d3vilb0x_: Read error: 110 (Connection timed out)
[2009/04/14 16:19:07] @ d3vilb0x joined channel #puppet
[2009/04/14 16:19:10] @ Quit: ruedu:
[2009/04/14 16:29:36] @ randybias is now known as randybias|away
[2009/04/14 16:29:39] <jbooth> Puppet's debugging when it can't find a resource type is less useful than it could be...
[2009/04/14 16:29:53] <jbooth> (when you're developing custom resources)
[2009/04/14 16:33:28] <nasrat> jbooth: can you expand (or paste examples to gist/pastie)
[2009/04/14 16:33:50] <nasrat> and also maybe say what would make it easier
[2009/04/14 16:35:30] @ fbe joined channel #puppet
[2009/04/14 16:35:35] <jbooth> nasrat: Could not retrieve catalog: Could not find resource type firewall ...
[2009/04/14 16:36:10] <jbooth> nasrat: fails to say what the load error is with type/firewall.rb or provider/firewall/iptables.rb. I'm sure there's a problem parsing one of the two.
[2009/04/14 16:36:24] @ randybias|away is now known as randybias
[2009/04/14 16:36:28] @ Quit: randybias: "Leaving..."
[2009/04/14 16:36:32] <nasrat> ok, and out of curiosity what is your dev, test cycle?
[2009/04/14 16:37:56] <jbooth> nasrat: I'm trying to define a custom type in a module, so I updated it on puppetmaster, restart puppetmaster, then run puppet
[2009/04/14 16:38:25] <nasrat> ok - I'm just kinda thinking how to make the feedback better
[2009/04/14 16:40:57] <nasrat> have you run with --trace --debug
[2009/04/14 16:41:21] <jbooth> nasrat: I never run puppet by hand without --test and --debug, but I'm not sure about trace. I don't include it explicitly
[2009/04/14 16:41:34] <nasrat> ok
[2009/04/14 16:41:46] @ stijnbe joined channel #puppet
[2009/04/14 16:41:49] <jbooth> nasrat: okay, trace helps a bunch
[2009/04/14 16:42:01] <jbooth> nasrat: it'd still be nice if the error without it could be a bit more detailed
[2009/04/14 16:42:39] @ mikepea joined channel #puppet
[2009/04/14 16:43:58] @ Quit: mikepea: Client Quit
[2009/04/14 16:44:43] <hMz> anyone know if reportserver accepts hostname:port?
[2009/04/14 16:45:24] <nasrat> sure - we could do with figuring out improving how to get appropriate feedback and also good puppet dev practices for the puppet language
[2009/04/14 16:46:57] <jrojas> nasrat: isnt there a style guide already?
[2009/04/14 16:47:08] <hMz> yup
[2009/04/14 16:47:32] <hMz> http://reductivelabs.com/trac/puppet/wiki/PuppetBestPractice
[2009/04/14 16:47:45] <hMz> http://reductivelabs.com/trac/puppet/wiki/StyleGuide
[2009/04/14 16:47:52] <nasrat> jrojas: sure but actually good practices can be helped with tools - cf xUnit or BDD (rspec, jbehave)
[2009/04/14 16:48:30] <nasrat> and getting the feedback at the right place, isn't something that style really fixes
[2009/04/14 16:50:12] <gwar9999> is it okay to have a class named puppet? Just checking since I'm seeing a can't compile error and not sure what the prob is yet.
[2009/04/14 16:51:47] <hMz> yes
[2009/04/14 16:52:03] <hMz> i've got one
[2009/04/14 16:52:13] <gwar9999> thanks, safe for a module name too?
[2009/04/14 16:54:45] @ randybias joined channel #puppet
[2009/04/14 16:55:28] <hMz> yup
[2009/04/14 16:55:29] <hMz> i have one of those too
[2009/04/14 16:55:36] @ nakano is now known as nakano_
[2009/04/14 16:55:37] <hMz> and i'm using 0.24.4
[2009/04/14 16:55:43] <gwar9999> hMz: thanks... now I know my problem lies elsewhere.
[2009/04/14 16:55:53] <gepetto> ::trac:: Using Passenger edited by zeha @ http://reductivelabs.com/trac/puppet/wiki/UsingPassenger (by hofstaedtler@inqnet.at)
[2009/04/14 16:56:15] <hMz> i know how that goes
[2009/04/14 16:58:54] @ Quit: randybias: Client Quit
[2009/04/14 17:01:07] @ Quit: stijnbe: "Leaving..."
[2009/04/14 17:01:54] <gwar9999> yeah, I sure wish the "cannot compile" error provided some additional details!
[2009/04/14 17:04:17] @ Quit: kolla: Remote closed the connection
[2009/04/14 17:07:50] <nasrat> gwar9999, jbooth if I were to try and collect some skeletal puppet code that typifies getting things like cannot compile error
[2009/04/14 17:08:15] @ randybias joined channel #puppet
[2009/04/14 17:08:16] <nasrat> would you be able to take a bit of time to pare down examples you hit?
[2009/04/14 17:08:41] @ Quit: alfism: "Connection reset by beer"
[2009/04/14 17:08:44] <gwar9999> nasrat: sure... if I can figure out the cause, that is. Working on it now.
[2009/04/14 17:08:57] <nasrat> sure
[2009/04/14 17:09:25] <mconigliaro> can anyone tell me why this doesnt work? it seems to work for me with classes, but not nodes: http://pastie.org/446581
[2009/04/14 17:09:27] <jbooth> nasrat: I can try.
[2009/04/14 17:09:36] <mconigliaro> in "someclass" $var is not defined
[2009/04/14 17:09:49] <nasrat> I'm interested in pitfalls, issues debugging, stuff like that
[2009/04/14 17:09:59] <mconigliaro> but it should be set to "whatever"
[2009/04/14 17:10:10] <nasrat> so I can take it away and change it into solid improvements
[2009/04/14 17:10:15] <nasrat> either in docs or in code
[2009/04/14 17:10:48] <nasrat> wiki:TypeReference
[2009/04/14 17:11:02] <gepetto> nasrat: wiki: wiki:TypeReference is http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2009/04/14 17:12:04] @ taylorj joined channel #puppet
[2009/04/14 17:15:14] @ fujin joined channel #puppet
[2009/04/14 17:16:38] @ gh joined channel #puppet
[2009/04/14 17:16:38] <gwar9999> nasrat: nevermind... this time my compile error was my fault. I code mostly in python and I accidentally named the file init.pp as init.py. D'oh. so naturally, puppet couldn't find that file. Of course, if the file doesn't exist that could be a useful error message.
[2009/04/14 17:17:04] @ gh is now known as Guest68080
[2009/04/14 17:17:48] <nasrat> gwar9999: still a useful example for improving messages, ENOENT should be propogated
[2009/04/14 17:19:10] <gwar9999> True, the more specific an error message is the easier it is to fix.
[2009/04/14 17:19:10] @ Quit: taylorj:
[2009/04/14 17:19:21] @ taylorj joined channel #puppet
[2009/04/14 17:19:56] @ radix joined channel #puppet
[2009/04/14 17:20:04] @ niemeyer joined channel #puppet
[2009/04/14 17:20:30] @ Quit: jc3`: "rcirc on GNU Emacs 22.1.1"
[2009/04/14 17:23:28] @ Quit: markl_: "Lost terminal"
[2009/04/14 17:26:43] <jbooth> Is there any documentation on what is actually passed to a provider's self.prefetch() method? I know it is the "resources" but that's vague and #{resources.inspect} is spammy and far too much to parse through to get an understanding of it.
[2009/04/14 17:27:08] @ Quit: mvn071: "Leaving"
[2009/04/14 17:27:18] @ Quit: Maliuta: Remote closed the connection
[2009/04/14 17:27:28] @ fujin_ joined channel #puppet
[2009/04/14 17:27:41] <radix> does puppet have a dry-run mode?
[2009/04/14 17:28:00] <nDuff> radix, yes, --noop
[2009/04/14 17:28:07] <radix> oh, awesome
[2009/04/14 17:28:49] <taylorj> likely a simple question: I"m setting up for ubuntu. Is there a default package provider setup? Such as ubuntu => apt-get
[2009/04/14 17:29:51] <nDuff> taylorj, yes, it should Do The Right Thing out-of-the-box
[2009/04/14 17:30:01] <radix> nDuff: thanks very much
[2009/04/14 17:30:28] <taylorj> thanks as well nDuff.
[2009/04/14 17:32:47] @ Guest68080 is now known as ghoneycutt
[2009/04/14 17:35:55] @ alban2 joined channel #puppet
[2009/04/14 17:36:31] @ Quit: fujin: Nick collision from services.
[2009/04/14 17:36:32] @ fujin_ is now known as fujin
[2009/04/14 17:37:20] <Volcane> lak: will the queue config thing also support user/password options? ruby stomp doesnt parse the full stomp urls with user/pass embedded afaik so needs to be set by the code, defo need to store those in the puppet.conf too
[2009/04/14 17:37:43] @ flakrat joined channel #puppet
[2009/04/14 17:40:09] <lak> Volcane: you know, i hadn't even thought of that
[2009/04/14 17:40:16] <Volcane> its nb++
[2009/04/14 17:40:21] <lak> nb?
[2009/04/14 17:40:25] <Volcane> very important :P
[2009/04/14 17:40:49] <Volcane> all my machines can talk to my amq servers, even customer ones, so i use loads of acl/users/etc
[2009/04/14 17:42:08] <gwar9999> is there a way to force a particular class to process before everything else? For instance, I have a puppet class which may restart puppet, so I'd like that to occur first. I know I could probably put requires => Service['puppet'] in every other module but that seems tedious and potentially error prone.
[2009/04/14 17:42:40] <Volcane> on my amq sits code to manipulate firewalls in real time, things to manage all my exim mail queues etc, so security is very important
[2009/04/14 17:42:59] <Volcane> gwar9999: pretty sure you asked this yesterday or last week too? :)
[2009/04/14 17:43:23] @ radix left channel #puppet ("Ex-Chat")
[2009/04/14 17:44:25] <gwar9999> probably, but that was probably before I actually began to implement this sort of thing on a widely used class. I think last time it was just between 2 classes (do one before the other) whereas this is do this class then everything else.
[2009/04/14 17:44:42] <Volcane> short answer is no, long answer is theres a ton of nasty hacks to do it
[2009/04/14 17:45:06] <gwar9999> Would be a nice feature, no?
[2009/04/14 17:45:22] <Volcane> we might ask lak how feasable it would be to hook in noop resources into the parser tree, something like Meta["start"] and Meta["end"] that by default sits at the start/end of the resource tree
[2009/04/14 17:45:24] <nasrat> but with a tsort partial ordering is possible
[2009/04/14 17:45:36] <Volcane> that you could then simply say require => Meta["end"] or something lame like that
[2009/04/14 17:45:47] <lak> nasrat: yeah, i've been thinking about partial ordering
[2009/04/14 17:45:49] <Volcane> so the things that require it, would just go to the end
[2009/04/14 17:45:57] <lak> but i don't quite know enough about how to do it
[2009/04/14 17:45:59] <nasrat> the problem is applying special meaning to the sort is really brittle
[2009/04/14 17:46:01] <lak> if you've got some ideas...
[2009/04/14 17:46:03] <Volcane> *no* idea how feasable that is to code, but to use, that would be sweet :)
[2009/04/14 17:46:12] <lak> nasrat: btw, you know i'm going to be in london in ten days, right?
[2009/04/14 17:46:17] <nasrat> lak: what are you trying to achieve
[2009/04/14 17:46:19] <nasrat> lak: yes
[2009/04/14 17:46:57] <lak> heh, i don't really know what i'm trying to achive; making it easy to have things pinned to the beginning or end without losing the whole graph concept, i guess
[2009/04/14 17:47:23] <gwar9999> I don't know enough about the puppet internals to know if it's feasible, but looks like iak and nasrat do :)
[2009/04/14 17:47:53] <lak> it's more of a graph modeling question than a puppet internals question
[2009/04/14 17:48:24] <gwar9999> I don't know much about that either.
[2009/04/14 17:52:43] @ Quit: erm_: Read error: 110 (Connection timed out)
[2009/04/14 17:52:43] <ghoneycutt> anyone heading to linuxfest northwest?
[2009/04/14 17:56:22] <lak> Volcane: you're sure that Stomp clients don't support usernames and passwords in the URI, huh?
[2009/04/14 17:56:30] @ Quit: randybias: "Leaving..."
[2009/04/14 17:56:35] <Volcane> unless its a new feature since my version...
[2009/04/14 17:57:14] <Volcane> the rdoc for mine has it in a TODO Stomp URL: section
[2009/04/14 17:57:39] <Volcane> and last time i visited the stomp site - like last week - it was totally screwed up :P
[2009/04/14 17:58:33] @ kambiz is now known as kambiz_away
[2009/04/14 18:00:06] @ randybias joined channel #puppet
[2009/04/14 18:00:18] @ Quit: randybias: Remote closed the connection
[2009/04/14 18:00:29] <Volcane> ah, 1.1 does support it
[2009/04/14 18:00:46] <Volcane> so i guess people just need to know to use 1.1 if they want user/pass in the url
[2009/04/14 18:00:56] @ madrescher joined channel #puppet
[2009/04/14 18:05:08] @ Quit: mellen: Read error: 60 (Operation timed out)
[2009/04/14 18:07:27] @ mellen joined channel #puppet
[2009/04/14 18:09:21] @ markl_ joined channel #puppet
[2009/04/14 18:10:02] @ Quit: mccune: Remote closed the connection
[2009/04/14 18:10:40] <Volcane> ah yeah and the comments in lib/puppet/util/queue/stomp.rb does say passwords would work :P
[2009/04/14 18:11:32] <nasrat> Volcane: can we enforce that via the requires?
[2009/04/14 18:11:51] <nasrat> or is it the bus that needs to support it?
[2009/04/14 18:12:17] <Volcane> not all stomp server support it i think, have defo seen some while deciding on which to use that simply didnt support user/pass auth
[2009/04/14 18:14:35] <nasrat> suck
[2009/04/14 18:14:44] <lak> the base stompserver doesn't seem to be working easily, anyway
[2009/04/14 18:14:47] <Volcane> everyone should just use amq :P
[2009/04/14 18:14:57] <nasrat> surely amqp
[2009/04/14 18:15:06] <Volcane> active mq
[2009/04/14 18:15:06] <nasrat> you have a space and a colon wrong
[2009/04/14 18:15:09] <nasrat> no
[2009/04/14 18:15:17] <nasrat> active mq is very, very broken
[2009/04/14 18:15:21] <Volcane> why?
[2009/04/14 18:16:31] <lak> nasrat: who has a space and a colon wrong?
[2009/04/14 18:16:43] @ mfoster joined channel #puppet
[2009/04/14 18:16:59] <mfoster> so naginator only works with nagios 3.x now?
[2009/04/14 18:17:06] <nasrat> I can't go into details but my previous company had multiple clients with different issues with paid support, with serious issues involving message loss
[2009/04/14 18:17:23] <nasrat> sorry - , with paid support
[2009/04/14 18:17:35] <Volcane> nasrat: ah, nasty
[2009/04/14 18:18:18] <nasrat> and the general feeling from that was if the devs can't fix it then it may not be prod ready
[2009/04/14 18:18:38] <nasrat> so I'm happy to look at amqp
[2009/04/14 18:18:53] <Volcane> heh
[2009/04/14 18:19:01] <nasrat> lak: sorry poor formatting joke with Volcane
[2009/04/14 18:19:09] <lak> mfoster: does it? i didn't think we'd made it 3.x only
[2009/04/14 18:19:12] <lak> nasrat: ah
[2009/04/14 18:19:24] <lak> i was testing it right then, wondering if you knew something i didn't...
[2009/04/14 18:20:56] @ yarihm joined channel #puppet
[2009/04/14 18:20:57] <mfoster> lak: I'm referring to custom object variables and the _naginator_name
[2009/04/14 18:21:19] <lak> ah, because those are 3.x only?
[2009/04/14 18:21:23] <mfoster> it seems to break nagios 2.12
[2009/04/14 18:22:03] <lak> ah
[2009/04/14 18:22:14] <lak> that wasn't really made clear when i accepted those patches
[2009/04/14 18:22:28] @ Quit: fujin:
[2009/04/14 18:22:34] @ Maliuta joined channel #puppet
[2009/04/14 18:22:42] <Volcane> nasrat: well i dont use it for high volume anyway, probably in the region of 100k messages a day and not noticed any problem, though I also wouldnt notice if 1/2 of those messages went missing
[2009/04/14 18:22:45] @ fujin joined channel #puppet
[2009/04/14 18:24:13] @ madrescher1 joined channel #puppet
[2009/04/14 18:24:13] <mfoster> I wonder what the deploy base of nagios3 is to nagios2 :(
[2009/04/14 18:24:24] @ Quit: madrescher: Read error: 104 (Connection reset by peer)
[2009/04/14 18:25:34] <lak> Volcane: ok, i've successfully gotten stomp authenticating using in-uri user/pass
[2009/04/14 18:25:45] <lak> so i'll just leave it at that, but add the info to the queueing readme
[2009/04/14 18:25:47] <lak> that work?
[2009/04/14 18:25:54] <Volcane> lak: kewl, that sounds great
[2009/04/14 18:28:30] @ Quit: nasrat: "time for bed..."
[2009/04/14 18:29:34] @ Quit: authentic: Read error: 60 (Operation timed out)
[2009/04/14 18:32:06] <mfoster> lak: should I file a bug?
[2009/04/14 18:32:14] <lak> i guess so?
[2009/04/14 18:32:21] <lak> i don't really know how to fix it, though :/
[2009/04/14 18:34:38] @ Quit: Maliuta: Remote closed the connection
[2009/04/14 18:35:20] @ Maliuta joined channel #puppet
[2009/04/14 18:36:05] @ Quit: Maliuta: Remote closed the connection
[2009/04/14 18:36:30] <taylorj> Hi all I asked earlier about using apt-get as a package provider. I've added it for ubuntu but receive the error: "Parameter provider failed: Invalid package provider 'apt-get'. Suggestions?
[2009/04/14 18:37:20] <barn> w 8
[2009/04/14 18:37:24] <barn> gah!
[2009/04/14 18:37:29] <barn> thanks irssi ):
[2009/04/14 18:37:39] @ Quit: yarihm: Read error: 110 (Connection timed out)
[2009/04/14 18:38:12] <sub> try just 'apt' or maybe it's 'dpkg'
[2009/04/14 18:38:48] <taylorj> thank you sub; using 'apt' worked
[2009/04/14 18:38:57] <sub> np
[2009/04/14 18:40:11] <sub> it also supports aptitude
[2009/04/14 18:42:10] <sub> http://reductivelabs.com/trac/puppet/wiki/TypeReference#package
[2009/04/14 18:42:13] @ Quit: unxfrek: Remote closed the connection
[2009/04/14 18:42:34] * bevans5446 just got puppet working on Redhat 8 :)
[2009/04/14 18:42:38] <taylorj> wow, well that would have been handy. couldn't find it in the orginal docs. thanks
[2009/04/14 18:42:58] <sub> feels tough to navigate around the site sometimes
[2009/04/14 18:46:19] @ nakano_ is now known as nakano
[2009/04/14 18:47:06] <bevans5446> sub: yeah it does. I ended up bookmarking the links I visit the most
[2009/04/14 18:47:10] <ghoneycutt> sub: yea, when you click on some documentation the bar on the right disappears and the documentation link at the top doesnt do anything..
[2009/04/14 18:47:46] @ Quit: claymation:
[2009/04/14 18:53:57] <sub> yep...
[2009/04/14 18:55:06] @ Quit: taylorj:
[2009/04/14 19:01:11] @ Cuchulain joined channel #puppet
[2009/04/14 19:03:42] @ Djelibeybi joined channel #puppet
[2009/04/14 19:04:38] @ Quit: lak:
[2009/04/14 19:06:11] @ Quit: raphink: Read error: 110 (Connection timed out)
[2009/04/14 19:09:33] @ Quit: offCenter: Read error: 110 (Connection timed out)
[2009/04/14 19:10:27] @ offCenter joined channel #puppet
[2009/04/14 19:14:06] @ mikepea joined channel #puppet
[2009/04/14 19:16:48] @ mfoster left channel #puppet ()
[2009/04/14 19:24:26] @ raphink joined channel #puppet
[2009/04/14 19:35:49] @ lak joined channel #puppet
[2009/04/14 19:36:41] @ Quit: mikepea:
[2009/04/14 19:37:26] @ alfism joined channel #puppet
[2009/04/14 19:37:45] @ Quit: lak: Client Quit
[2009/04/14 19:40:01] @ Quit: flakrat: "Leaving"
[2009/04/14 19:40:27] @ mikepea joined channel #puppet
[2009/04/14 19:41:58] @ brothers left channel #puppet ()
[2009/04/14 19:46:57] @ Quit: Flam5: "Leaving"
[2009/04/14 19:49:39] @ Quit: cwebber:
[2009/04/14 19:57:49] @ Quit: mikepea:
[2009/04/14 20:04:00] @ lak joined channel #puppet
[2009/04/14 20:05:08] @ Quit: lak: Client Quit
[2009/04/14 20:11:37] @ Quit: kingitchy:
[2009/04/14 20:14:32] @ ghoneycutt left channel #puppet ()
[2009/04/14 20:17:58] @ walrus joined channel #puppet
[2009/04/14 20:21:37] @ Quit: madrescher1: "Leaving."
[2009/04/14 20:36:15] @ Quit: edwardam: Remote closed the connection
[2009/04/14 20:36:35] @ Quit: alfism: "Connection reset by beer"
[2009/04/14 20:45:10] <lurbs> puppet doesn't seem to like a service definition like:
[2009/04/14 20:45:13] <lurbs> service { "postgresql-8.3": ensure => running }
[2009/04/14 20:45:41] <lurbs> If I change it to just "postgresql" and stick a symlink in /etc/init.d it works. Is there a nicer work around?
[2009/04/14 20:46:02] @ cshields joined channel #puppet
[2009/04/14 20:46:10] <wakko666> lurbs: service definition check ps -ef | grep $name output to ensure the service is running. you may need to define pattern => "postmaster" to have it looking for the right string
[2009/04/14 20:46:40] <wakko666> see http://reductivelabs.com/trac/puppet/wiki/TypeReference#service for details
[2009/04/14 20:46:49] <lurbs> I was under the impression it only did that if you set hasstatus to false.
[2009/04/14 20:47:18] <wakko666> lurbs: sure, but that wasn't part of your original question, and depends on the provider. :-P
[2009/04/14 20:47:44] <lurbs> Gah, hasstatus -> true seems to fix it.
[2009/04/14 20:48:03] <lurbs> => rather
[2009/04/14 20:48:54] <lurbs> "If you do not specify anything, then the service name will be looked for in the process table."
[2009/04/14 20:48:58] <lurbs> Right, ta.
[2009/04/14 20:49:06] <lurbs> I'll be explicit.
[2009/04/14 20:49:15] @ Quit: walrus: "Leaving"
[2009/04/14 20:55:56] @ Quit: markl_: "Lost terminal"
[2009/04/14 20:56:41] <cshields> is there a source of documentation for available package providers? like a module directory
[2009/04/14 20:57:11] @ Quit: ezmob: "Bye!"
[2009/04/14 21:04:40] @ authentic joined channel #puppet
[2009/04/14 21:05:17] @ edwardam joined channel #puppet
[2009/04/14 21:19:10] @ ohadlevy joined channel #puppet
[2009/04/14 21:22:47] @ Quit: d3vilb0x:
[2009/04/14 21:43:15] @ nakano is now known as nakano_
[2009/04/14 21:50:00] @ nakano_ is now known as nakano
[2009/04/14 21:50:54] @ maxagaz joined channel #puppet
[2009/04/14 21:59:54] @ kingitchy joined channel #puppet
[2009/04/14 22:01:52] <jrojas> hmm
[2009/04/14 22:02:21] <jrojas> cshields: http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2009/04/14 22:02:33] @ peiriannydd joined channel #puppet
[2009/04/14 22:02:41] <jrojas> http://reductivelabs.com/trac/puppet/wiki/TypeReference#package
[2009/04/14 22:18:20] <cshields> awesome! I ended up looking at the source tree, but this is more along the lines of what I want to bookmark
[2009/04/14 22:18:23] <cshields> thanks
[2009/04/14 22:18:49] @ randybias joined channel #puppet
[2009/04/14 22:19:21] @ Quit: edwardam: Remote closed the connection
[2009/04/14 22:21:37] @ edwardam joined channel #puppet
[2009/04/14 22:22:46] @ ^authentic joined channel #puppet
[2009/04/14 22:25:06] @ lak joined channel #puppet
[2009/04/14 22:26:47] <peiriannydd> lak: So, I've now spent three times as much time trying to figure out how rspec fits in with the transaction code than it took me to mod it in the first place
[2009/04/14 22:26:59] <lak> heh
[2009/04/14 22:27:07] <lak> well, it *is* your first test
[2009/04/14 22:27:08] <peiriannydd> rspec makes no sense
[2009/04/14 22:27:12] <lak> really?
[2009/04/14 22:27:15] <peiriannydd> Yep
[2009/04/14 22:27:28] <peiriannydd> The examples online all make sense
[2009/04/14 22:27:28] <lak> it seemed a bit intuitive to me, but then, that doesn't mean much
[2009/04/14 22:27:36] <lak> just our usage doesn't? :)
[2009/04/14 22:27:37] <peiriannydd> But are far too simplistic
[2009/04/14 22:27:42] <lak> eah
[2009/04/14 22:27:53] <lak> rather, yeha
[2009/04/14 22:27:53] <peiriannydd> Well, I'm trying to do something that I feel should be simple, and it's not
[2009/04/14 22:28:01] <lak> ok, clearly retarded
[2009/04/14 22:28:04] <lak> what's your patch again?
[2009/04/14 22:28:07] <lak> ah, right
[2009/04/14 22:28:08] <lak> expire
[2009/04/14 22:28:12] <peiriannydd> Yeah
[2009/04/14 22:28:56] @ Quit: niemeyer: Connection timed out
[2009/04/14 22:29:18] <peiriannydd> I really feel that I should be able to delve into the Puppet error message to be sure that I'm seeing 'my' error message and not some other one
[2009/04/14 22:29:41] <lak> brb
[2009/04/14 22:29:53] <peiriannydd> But...I can't figure out how to. And, I also can't figure out how to catch the actual timeout properly
[2009/04/14 22:29:57] <peiriannydd> no problem
[2009/04/14 22:30:10] <lak> burping munchkins
[2009/04/14 22:30:20] <peiriannydd> That's what I figured :-)
[2009/04/14 22:30:22] <peiriannydd> Fun times
[2009/04/14 22:30:52] <peiriannydd> Don't worry, soon they'll be running around destroying everything in sight!
[2009/04/14 22:31:41] <peiriannydd> This *seems* like it should work, but it doesn't:
[2009/04/14 22:31:41] <peiriannydd> resource = Puppet::Type.type(:exec).new(:name => "/bin/sleep 3", :expire => "1")
[2009/04/14 22:31:41] <peiriannydd> @config.add_resource(resource)
[2009/04/14 22:31:41] <peiriannydd> Puppet.expects(:err)
[2009/04/14 22:31:41] <peiriannydd> lambda { @transaction.evaluate }.should raise_error
[2009/04/14 22:34:21] <lak> but doesn't the Timeout catch the error?
[2009/04/14 22:34:35] <lak> so it should be }.should_not raise_error
[2009/04/14 22:34:43] @ Quit: authentic: No route to host
[2009/04/14 22:34:46] @ ^authentic is now known as authentic
[2009/04/14 22:35:20] <lak> peiriannydd: right?
[2009/04/14 22:36:06] <peiriannydd> I think I was incorrectly assuming that Puppet::Error would trigger this, and it doesn't because it's caught too
[2009/04/14 22:36:19] <lak> what error are you catching?
[2009/04/14 22:36:23] <lak> can you pastie your code?
[2009/04/14 22:37:13] <peiriannydd> http://pastie.org/446893
[2009/04/14 22:38:17] <peiriannydd> Top is what I'm trying to test and bottom is what I'm using to try to test
[2009/04/14 22:38:54] <peiriannydd> Apparently, you can't do a expects....with(/regex/)
[2009/04/14 22:40:34] <peiriannydd> Well, crap, I just got it working
[2009/04/14 22:40:44] <peiriannydd> It still doesn't make a lot of sense, but oh well.
[2009/04/14 22:41:51] <peiriannydd> Apparently, *with* doesn't work, but =~ does
[2009/04/14 22:41:53] <peiriannydd> foo
[2009/04/14 22:43:09] @ gaveen joined channel #puppet
[2009/04/14 22:49:48] @ nakano is now known as nakano_
[2009/04/14 22:52:18] <Djelibeybi> lak: is there any way (or any plan) to have a system whereby you can see on the Puppet Master the last time each client checked in?
[2009/04/14 22:52:40] <peiriannydd> Djelibeybi: I think Puppetshow will do that for you with reports turned on
[2009/04/14 22:52:53] <peiriannydd> Or you can just turn on reports and snarf the logs
[2009/04/14 22:53:06] <Djelibeybi> peiriannydd: I thought PuppetShow wasn't considered production-ready?
[2009/04/14 22:53:24] <peiriannydd> Djelibeybi: Possibly....I usually just parse syslog
[2009/04/14 22:53:29] <Djelibeybi> peiriannydd: reporting is an option, yes... I'm looking into that.
[2009/04/14 22:53:35] <Djelibeybi> peiriannydd: syslog on the puppet master?
[2009/04/14 22:53:41] <peiriannydd> Djelibeybi: yeah
[2009/04/14 22:53:59] <peiriannydd> Djelibeybi: It pops out a message saying 'compiled catalog for <client>'
[2009/04/14 22:54:13] <peiriannydd> Djelibeybi: But that doesn't tell you whether or not it actually succeeded
[2009/04/14 22:54:32] <Djelibeybi> peiriannydd: true. It appears not to log that if you have logging to a specific file. Curious
[2009/04/14 22:54:59] <peiriannydd> Djelibeybi: I didn't know that. I always just use syslog and do on the fly file targeting with rsyslog
[2009/04/14 22:55:02] <fujin> Djelibeybi: there's a script in ext/ called puppetlast I believe which uses yaml indirection on the puppetmaster server to detect the last time a configuration was compiled for a client
[2009/04/14 22:55:17] <fujin> unless it's been removed ;]
[2009/04/14 22:55:21] <Djelibeybi> fujin: oh, thanks!
[2009/04/14 22:55:26] * Djelibeybi goes to have a prod/peek
[2009/04/14 22:55:52] <peiriannydd> fujin: I completely forgot about that!
[2009/04/14 22:56:36] <Djelibeybi> Hmm.. not installed with the RPMs. I'll have to go to the source
[2009/04/14 22:56:57] <peiriannydd> Ah. I think that David strips out all of the ext stuff when making the RPMs
[2009/04/14 22:57:08] <peiriannydd> It's definitely in the latest git repo though
[2009/04/14 22:58:37] <Djelibeybi> Found it, thanks!
[2009/04/14 23:00:22] <Djelibeybi> That's FANTASTIC. :)
[2009/04/14 23:00:42] <fujin> I wrote it a while ago and updated it to use yaml indirection as opposed to loading up and parsing the yaml dumps - no idea if it still works
[2009/04/14 23:01:57] <Djelibeybi> fujin: where does it get its list of servers from? We have a few we've removed, but they're in the list.
[2009/04/14 23:02:32] <fujin> I don't recall - believe it uses the yamldir when you run it as root
[2009/04/14 23:03:16] <Djelibeybi> Ok, will check that
[2009/04/14 23:04:32] <fujin> Djelibeybi: http://projects.reductivelabs.com/projects/puppet/repository/revisions/2a3d195402900aa31843f7a7ff78026409cf43f5
[2009/04/14 23:05:15] <fujin> haha
[2009/04/14 23:05:19] <fujin> my original branch is still therE: http://github.com/fujin/puppet/commits/fix1452
[2009/04/14 23:06:46] <Djelibeybi> Yes, it's working fine. :)
[2009/04/14 23:06:58] @ Quit: ethan_rowe: "Lack of interest wins out."
[2009/04/14 23:07:56] <fujin> oh goodums
[2009/04/14 23:11:10] @ Quit: sfeehan: Read error: 110 (Connection timed out)
[2009/04/14 23:11:44] @ Quit: peiriannydd: ""Must...sleep....""
[2009/04/14 23:11:56] @ Quit: offCenter: Read error: 60 (Operation timed out)
[2009/04/14 23:13:01] @ Quit: jtimberman: "Quitters never win [at irc]."
[2009/04/14 23:13:55] <Djelibeybi> I just have to clean old yamls out from servers that don't exist. :)
[2009/04/14 23:14:13] <gepetto> ::trac:: Using Stored Configuration edited by stevenjenkins @ http://reductivelabs.com/trac/puppet/wiki/UsingStoredConfiguration (by steven@endpoint.com)
[2009/04/14 23:15:29] @ sfeehan joined channel #puppet
[2009/04/14 23:18:47] <Djelibeybi> I wonder if storedconfigs works with Oracle...
[2009/04/14 23:18:59] <Djelibeybi> Though, that's something I can happily wonder about some other time. :)
[2009/04/14 23:19:30] @ offCenter joined channel #puppet
[2009/04/14 23:20:05] @ Quit: edwardam: Remote closed the connection
[2009/04/14 23:21:46] @ edwardam joined channel #puppet
[2009/04/14 23:24:25] <ohadlevy> Djelibeybi: store config uses activerecord
[2009/04/14 23:24:30] <ohadlevy> so it can work with Oracle
[2009/04/14 23:24:46] <ohadlevy> but not sure that ActiveRecord is optimized for Oracle
[2009/04/14 23:24:57] <Djelibeybi> ohadlevy: cool. It's something I'm hoping to look at later. :) Given that I work for Oracle and all.
[2009/04/14 23:25:30] <ohadlevy> :)
[2009/04/14 23:26:08] <ohadlevy> it uses the same ruby libraries like any other ROR (ruby on rails) websites.. so just google for activerecord oracle or rails oracle
[2009/04/14 23:39:47] @ Quit: edwardam: Remote closed the connection

Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!