Friday, 2009-04-24

[2009/04/24 00:03:39] @ Log started by gepetto
[2009/04/24 00:03:39] @ nakano is now known as nakano_
[2009/04/24 00:14:32] @ Quit: gaveen: Connection timed out
[2009/04/24 00:15:06] @ Quit: Kindred: Read error: 104 (Connection reset by peer)
[2009/04/24 00:15:18] @ Kindred joined channel #puppet
[2009/04/24 00:15:29] @ gaveen joined channel #puppet
[2009/04/24 00:24:46] @ cw_ joined channel #puppet
[2009/04/24 00:25:22] @ nakano_ is now known as nakano
[2009/04/24 00:27:32] @ Quit: gaveen: Read error: 60 (Operation timed out)
[2009/04/24 00:44:20] @ gaveen joined channel #puppet
[2009/04/24 00:50:46] @ Quit: cwebber:
[2009/04/24 00:55:09] @ randybias joined channel #puppet
[2009/04/24 00:55:38] @ Quit: jmarki: Remote closed the connection
[2009/04/24 00:56:28] @ Quit: randybias: Client Quit
[2009/04/24 00:59:07] @ cw_ is now known as cw_|away
[2009/04/24 00:59:30] @ Quit: mfoster: Remote closed the connection
[2009/04/24 01:00:14] @ randybias joined channel #puppet
[2009/04/24 01:00:20] @ cw_ joined channel #puppet
[2009/04/24 01:01:52] @ Quit: _lunix_: "_lunix_ has no reason"
[2009/04/24 01:06:47] @ mfoster joined channel #puppet
[2009/04/24 01:06:58] @ mfoster left channel #puppet ()
[2009/04/24 01:10:11] @ Quit: cw_|away: Read error: 104 (Connection reset by peer)
[2009/04/24 01:14:43] @ tuf joined channel #puppet
[2009/04/24 01:17:13] @ WALoeIII joined channel #puppet
[2009/04/24 01:19:06] @ cw_ is now known as cw_|away
[2009/04/24 01:20:18] @ threetee joined channel #puppet
[2009/04/24 01:30:40] * monachus is in limbo.
[2009/04/24 01:30:40] @ nakano is now known as nakano_
[2009/04/24 01:31:01] @ Quit: fujin:
[2009/04/24 01:31:32] @ gaveen_ joined channel #puppet
[2009/04/24 01:31:42] @ Quit: gaveen: Connection timed out
[2009/04/24 01:35:04] @ Quit: Djelibeybi: "Leaving"
[2009/04/24 01:35:30] @ nakano_ is now known as nakano
[2009/04/24 01:40:17] @ cw_|away is now known as cw_
[2009/04/24 02:01:11] @ Quit: gaveen_: Connection timed out
[2009/04/24 02:05:48] <FiXion> goodmorning :)
[2009/04/24 02:07:55] <andrewcshafer> good something
[2009/04/24 02:07:57] @ Quit: cw_: "Leaving..."
[2009/04/24 02:08:49] @ Quit: randybias: "Leaving..."
[2009/04/24 02:09:20] @ Quit: WALoeIII: Remote closed the connection
[2009/04/24 02:09:38] @ WALoeIII joined channel #puppet
[2009/04/24 02:11:11] <FiXion> :)
[2009/04/24 02:11:49] <FiXion> anyone installing packages, using puppet? I can't get puppet to run apt-get update, before trying to update a package to a new version
[2009/04/24 02:12:59] <bda> Add a regular cronjob to update?
[2009/04/24 02:13:03] <bda> That's what I'd do, anyway.
[2009/04/24 02:13:25] @ randybias joined channel #puppet
[2009/04/24 02:13:30] <SyTonnerre> FiXion, Package { depends => Exec["apt-get update"] }
[2009/04/24 02:14:11] <bda> Nice.
[2009/04/24 02:14:13] * bda notes.
[2009/04/24 02:14:42] <SyTonnerre> Just a random idea
[2009/04/24 02:14:57] <SyTonnerre> You of course need to define the exec job for that as well
[2009/04/24 02:15:14] <FiXion> SyTonnerre: I tried require.. I'll try depends - thank you.
[2009/04/24 02:15:17] <SyTonnerre> And it's probably a good idea to define a schedule for that exec
[2009/04/24 02:15:21] @ cw_ joined channel #puppet
[2009/04/24 02:15:26] <SyTonnerre> FiXion, require might be it
[2009/04/24 02:15:27] <bda> jamesturnbull: Sorry I didn't get tests for those patches written. :(
[2009/04/24 02:15:45] <bda> jamesturnbull: I ran out of puppet-time this iteration. Next scheduled batch is in a few weeks.
[2009/04/24 02:16:07] @ Quit: cw_: Client Quit
[2009/04/24 02:16:18] <FiXion> SyTonnerre: I can see others have used require - but it doesn't work :(
[2009/04/24 02:16:55] <FiXion> it just tries to install the new version and apt-get complains.. it doesn't mention anything about trying to run apt-get beforehand
[2009/04/24 02:17:46] @ Quit: fbe_: Read error: 110 (Connection timed out)
[2009/04/24 02:19:02] <FiXion> SyTonnerre: depends was invalid :(
[2009/04/24 02:20:55] <SyTonnerre> FiXion, I guess so; I was actually typing from memory ;)
[2009/04/24 02:21:20] <FiXion> SyTonnerre: fair enough. any ideas as to why puppet ignores the require?
[2009/04/24 02:21:24] <FiXion> it doesn't even complain :(
[2009/04/24 02:22:03] @ Quit: randybias: Client Quit
[2009/04/24 02:23:12] <FiXion> not in --debug mode on the client either :(
[2009/04/24 02:23:59] <gstratton> FiXion: How are you ensuring Exec[apt-get update] doesn't run every time?
[2009/04/24 02:24:33] <SyTonnerre> gstratton, schedules should do
[2009/04/24 02:24:34] <FiXion> http://pastebin.com/m6d10071e
[2009/04/24 02:24:43] @ Quit: WALoeIII:
[2009/04/24 02:25:14] <FiXion> I have refreshonly => true
[2009/04/24 02:25:22] <FiXion> but that might be what is messing me up..
[2009/04/24 02:25:29] <SyTonnerre> FiXion, yes
[2009/04/24 02:25:46] <FiXion> gstratton: you could make the apt-get update a virtual (@exec..)
[2009/04/24 02:25:53] <FiXion> and then only realize it when you need to.
[2009/04/24 02:26:16] <FiXion> I don't know if a require => exec.. to a virtual will actually consistute a realize of it?
[2009/04/24 02:26:40] @ pleemans joined channel #puppet
[2009/04/24 02:26:51] <FiXion> I tested - it doesn't
[2009/04/24 02:27:05] * FiXion goes and looks up schedules
[2009/04/24 02:27:32] <FiXion> SyTonnerre: can't I just define an exec that ISN'T run - except if something require's it?
[2009/04/24 02:28:48] @ mvn071 joined channel #puppet
[2009/04/24 02:28:48] <FiXion> SyTonnerre: http://reductivelabs.com/trac/puppet/wiki/BootstrappingWithPuppet - they use require apt-get update and have refreshonly => true on it
[2009/04/24 02:28:56] <FiXion> that's what I had and it didn't work :(
[2009/04/24 02:29:09] <SyTonnerre> Hm
[2009/04/24 02:29:28] <FiXion> but now puppet runs apt-get update everytime.. but it doesn't mention that it should run it before the package install
[2009/04/24 02:29:44] <FiXion> that "might" be because it realizes it has run it once before in that run.
[2009/04/24 02:29:55] <FiXion> but I don't see how it could know that apt-get update is only necessary once
[2009/04/24 02:30:17] <FiXion> I'm running 0.24.8 btw.
[2009/04/24 02:30:30] @ nakano is now known as nakano_
[2009/04/24 02:30:36] @ astinus_ joined channel #puppet
[2009/04/24 02:30:37] @ Quit: astinus: Read error: 104 (Connection reset by peer)
[2009/04/24 02:31:23] <FiXion> I'd like the answer to that: http://reductivelabs.com/trac/puppet/tags/%27refreshonly%27
[2009/04/24 02:31:31] <FiXion> but the link has been removed appearently :(
[2009/04/24 02:32:12] <FiXion> I'll go eat some breakfast - see you in a bit
[2009/04/24 02:32:32] @ nakano_ is now known as nakano
[2009/04/24 02:37:46] @ ghenry joined channel #puppet
[2009/04/24 02:39:47] <FiXion> SyTonnerre: all insights appreciated ;)
[2009/04/24 02:40:05] <FiXion> meanwhile I'll google and see if I can find someone who has done something other than that..
[2009/04/24 02:40:15] <FiXion> since it for some reason doesn't work, even though it's on the wiki.
[2009/04/24 02:40:26] <FiXion> or perhaps I missed some small, but important detail :)
[2009/04/24 02:40:28] <FiXion> as usual
[2009/04/24 02:41:09] @ stijnbe joined channel #puppet
[2009/04/24 02:41:43] @ Quit: kingitchy:
[2009/04/24 02:44:51] <FiXion> I could make a workaround.. make the apt-get subscribe to a /tmp/runapt file
[2009/04/24 02:45:02] <FiXion> and then write that, before I try to install a package
[2009/04/24 02:45:14] <FiXion> so change require => exec to require => file
[2009/04/24 02:45:28] <FiXion> since the exec doesn't work when the exec has refreshonly => true
[2009/04/24 03:02:00] @ aymerick joined channel #puppet
[2009/04/24 03:13:11] @ Quit: maxagaz: Remote closed the connection
[2009/04/24 03:17:09] @ kolla joined channel #puppet
[2009/04/24 03:17:31] @ maxagaz joined channel #puppet
[2009/04/24 03:19:56] * monachus is in limbo.
[2009/04/24 03:21:41] <kolla> how's the weather there? :)
[2009/04/24 03:22:33] @ nasrat joined channel #puppet
[2009/04/24 03:23:35] @ masterzen joined channel #puppet
[2009/04/24 03:31:35] @ HarryCalahan joined channel #puppet
[2009/04/24 03:32:42] @ nasrat_ joined channel #puppet
[2009/04/24 03:32:42] @ Quit: nasrat: Read error: 104 (Connection reset by peer)
[2009/04/24 03:32:49] @ Quit: nasrat_: Remote closed the connection
[2009/04/24 03:33:40] @ Quit: yure: Remote closed the connection
[2009/04/24 03:34:41] <ssm> weather { "here": ensure => "nice" }
[2009/04/24 03:34:57] <HarryCalahan> fail "gray and misty"
[2009/04/24 03:35:01] @ madrescher joined channel #puppet
[2009/04/24 03:35:50] <ssm> HarryCalahan: perfect weather for staying indoors and making more manifests
[2009/04/24 03:36:34] <HarryCalahan> three meetings this morning... too many interruptions
[2009/04/24 03:37:13] <ssm> meh
[2009/04/24 03:38:10] <ssm> Meetings are good when you need to maintain an illusion of productivity, but not when you need to get things done
[2009/04/24 03:41:16] <HarryCalahan> meetings make sense if we would coordinate something and stick to the plan. but i know what's happening on monday: new plans.
[2009/04/24 03:41:26] * HarryCalahan is away trying to look interested
[2009/04/24 03:42:33] <SyTonnerre> Life is the thing that keeps spoiling your plans
[2009/04/24 03:45:43] <johnw> believe it or not, i find myself meeting-starved lately
[2009/04/24 03:46:21] <SyTonnerre> johnw, yeah, the financial crisis has its good sides; the companies that want to survive strip out the meetings and let their workers do their work ;)
[2009/04/24 03:46:49] <johnw> i have all kinds of things I'd like to let my co-workers know about, but since I don't meet with them, I can only deliver a trickle via e-mail that largely get ignored
[2009/04/24 03:50:53] <tim|imac> johnw: my advice for a subject that will make your emails read: WANT TO MAKE HER HAPPY?? V|4GR4
[2009/04/24 03:51:38] <johnw> i already get about 200 of those a day
[2009/04/24 03:53:07] <johnw> actually, right now I'm at an average of 572 spams per day, since July '08
[2009/04/24 03:53:15] <HarryCalahan> and you read them all?
[2009/04/24 03:53:56] <johnw> hmm... i could answer that, but this is probably a logged channel...
[2009/04/24 03:54:26] @ Djelibeybi joined channel #puppet
[2009/04/24 03:56:28] @ gaveen joined channel #puppet
[2009/04/24 04:01:49] @ DavidS1 joined channel #puppet
[2009/04/24 04:01:58] <tim|imac> johnw: the fact that you get so many signifies that they get read a lot, no?
[2009/04/24 04:02:16] <johnw> well, in truth that wolud signify that I respond
[2009/04/24 04:02:32] @ nakano is now known as nakano_
[2009/04/24 04:03:00] <johnw> what I think it really means is that my e-mail address is easily harvested
[2009/04/24 04:04:04] <ssm> that, or that someone with your address in their mail address book got an infected pc...
[2009/04/24 04:06:09] <bda> Heh. I get about 1k/spam a day.
[2009/04/24 04:06:20] <bda> Thankfully, I see maybe one or two, if that. :)
[2009/04/24 04:07:19] <johnw> yeah, i usually see at most 0-1
[2009/04/24 04:08:51] @ DerekW joined channel #puppet
[2009/04/24 04:10:38] @ MattyM joined channel #puppet
[2009/04/24 04:15:53] <FiXion> gstratton: my exec[apt-update] isn't run on every run - ONLY when something require's it
[2009/04/24 04:15:56] @ nakano_ is now known as nakano
[2009/04/24 04:16:03] <FiXion> gstratton: and I have removed refreshonly => true
[2009/04/24 04:16:46] <Volcane> show the code?
[2009/04/24 04:17:21] @ mikepea joined channel #puppet
[2009/04/24 04:20:00] @ Quit: DavidS: Read error: 110 (Connection timed out)
[2009/04/24 04:20:36] @ Quit: ericrw:
[2009/04/24 04:22:00] @ briandquinn joined channel #puppet
[2009/04/24 04:33:11] @ vesbula left channel #puppet ()
[2009/04/24 04:38:17] <FiXion> typical - now it runs it every time
[2009/04/24 04:38:26] <FiXion> before a host wouldn't run it at all - before I added a require
[2009/04/24 04:38:32] * FiXion is confused
[2009/04/24 04:38:45] <FiXion> the host couldn't upgrade puppet to 0.24.4
[2009/04/24 04:38:56] <FiXion> but I think it's perhaps a diff in how 0.24.4 and 0.24.8 works
[2009/04/24 04:39:13] <FiXion> without refreshonly - it seems 0.24.4 doesn't run it.. unless something requires it.
[2009/04/24 04:39:16] <FiXion> 0.24.8 does
[2009/04/24 04:39:23] <Volcane> nope, not the case
[2009/04/24 04:40:32] <FiXion> I'll try to remove the require and test on another host who hasn't updated to 0.24.8 yet
[2009/04/24 04:44:35] @ glaw joined channel #puppet
[2009/04/24 04:50:04] <HarryCalahan> FiXion: i have a require for apt-get-update on Package (default)
[2009/04/24 04:50:46] <HarryCalahan> Package { provider => "apt", require => Exec["apt-get-update"] }
[2009/04/24 04:54:34] @ d3vilb0x joined channel #puppet
[2009/04/24 04:56:24] <phantez> Is there a schema that represent the intern design of puppet ?
[2009/04/24 04:56:44] @ nasrat joined channel #puppet
[2009/04/24 05:03:33] <FiXion> HarryCalahan: hmm. is the provider necessary ?
[2009/04/24 05:04:06] <FiXion> HarryCalahan: and do you have a refreshonly => true on the exec["apt-get-update"] definition?
[2009/04/24 05:05:06] <HarryCalahan> FiXion: about the provider i'm not sure. I think not but it doesn't hurt me.
[2009/04/24 05:05:22] <HarryCalahan> and i don't have a refreshonly. As Volcane pointed out that doesn't work.
[2009/04/24 05:05:39] @ Quit: gstratton:
[2009/04/24 05:06:33] <FiXion> HarryCalahan: so you run apt-get update on every run - even though there's no package operations ?
[2009/04/24 05:06:42] <HarryCalahan> yes.
[2009/04/24 05:06:46] <FiXion> that's what happens to me with 0.24.8 clients atleast
[2009/04/24 05:06:51] <HarryCalahan> i run puppetd only by cron.
[2009/04/24 05:10:05] @ bajan joined channel #puppet
[2009/04/24 05:12:49] <HarryCalahan> i have a problem with resource ssh_authorized_key
[2009/04/24 05:13:01] <HarryCalahan> it updates the authorized_keys file on EVERY run.
[2009/04/24 05:13:05] <HarryCalahan> http://pastie.org/456814
[2009/04/24 05:13:45] @ Quit: madrescher: "Leaving."
[2009/04/24 05:14:28] <jenza> Yeah
[2009/04/24 05:14:32] <jenza> I logged a bug about it
[2009/04/24 05:14:35] <jenza> you need to set the target
[2009/04/24 05:15:00] <masterzen> yes, it's pretty annoying :-)
[2009/04/24 05:15:38] <jenza> #2124
[2009/04/24 05:15:39] <gepetto> jenza: #2124 is http://projects.reductivelabs.com/issues/show/2124 "Puppet - Bug #2124: ssh_authorized_key always changes target if target is not defined - ReductiveLabs.com"
[2009/04/24 05:15:51] <FiXion> jenza: so this: http://reductivelabs.com/trac/puppet/wiki/Recipes/Authorized_keys needs to be updated to SET target ?
[2009/04/24 05:16:11] * FiXion hasn't yet moved to controlling ssh keys with puppet :)
[2009/04/24 05:16:24] <HarryCalahan> FiXion: there is a new resource to control authorized keys
[2009/04/24 05:16:42] <FiXion> HarryCalahan: link? in 0.24.8 ?
[2009/04/24 05:16:48] <HarryCalahan> in 24.8
[2009/04/24 05:16:58] <HarryCalahan> http://reductivelabs.com/trac/puppet/wiki/TypeReference#ssh-authorized-key
[2009/04/24 05:17:09] <jenza> ssh_authorized_key has been around for a bit
[2009/04/24 05:17:13] <jenza> but they made some changes in .8
[2009/04/24 05:17:25] <jenza> Which created this bug#
[2009/04/24 05:17:51] @ alban2 joined channel #puppet
[2009/04/24 05:17:58] <FiXion> nice :)
[2009/04/24 05:19:18] <HarryCalahan> jenza: specify target works. thanks.
[2009/04/24 05:19:24] <jenza> np
[2009/04/24 05:20:55] <HarryCalahan> anyone sucessfully using the mount resource (http://reductivelabs.com/trac/puppet/wiki/TypeReference#mount)
[2009/04/24 05:23:34] <FiXion> HarryCalahan: it seems it only mounts stuff - not updating fstab. so it wouldn't be anything I'd use.
[2009/04/24 05:23:53] <FiXion> I'm looking into using augeas to control fstab - and just exec a mount -a upon change
[2009/04/24 05:24:47] <HarryCalahan> bug 1 it correctly updates the fstab only if target is specified, otherwise it only adds a header to fstab and updates it on every run. same bug as in authorized_keys
[2009/04/24 05:25:03] <HarryCalahan> bug 2 after adding it it doesn't mount the filesystem
[2009/04/24 05:25:17] <HarryCalahan> bug 3 it doesn't create the mountpoint
[2009/04/24 05:25:25] <HarryCalahan> s/bug/problem
[2009/04/24 05:25:31] @ DavidS1 is now known as DavidS
[2009/04/24 05:26:39] <FiXion> HarryCalahan: bug 2 could be worked around with a require => exec[mount-all] ?
[2009/04/24 05:27:02] <FiXion> and bug 3 would probably be necessary to do with a require => file[..]
[2009/04/24 05:27:19] <HarryCalahan> i expected the mount resource to handle this itself.
[2009/04/24 05:27:21] <FiXion> so it's probably a "feature" in it that it doesn't handle those things?
[2009/04/24 05:31:07] @ Quit: johnw:
[2009/04/24 05:37:36] <HarryCalahan> ensure => "mounted" will handle bug 2
[2009/04/24 05:38:01] <HarryCalahan> problem 3 has to be handled by a File resource
[2009/04/24 05:39:24] <HarryCalahan> problem 1 i can't reproduce anymore
[2009/04/24 05:44:45] @ fujin joined channel #puppet
[2009/04/24 05:45:12] @ DavidS1 joined channel #puppet
[2009/04/24 05:46:44] @ fujin_ joined channel #puppet
[2009/04/24 05:49:42] @ nakano is now known as nakano_
[2009/04/24 05:51:38] @ Quit: DavidS: Nick collision from services.
[2009/04/24 05:51:42] @ DavidS1 is now known as DavidS
[2009/04/24 05:52:48] @ squiddle joined channel #puppet
[2009/04/24 05:57:18] @ Quit: BMDan: Read error: 54 (Connection reset by peer)
[2009/04/24 05:57:46] @ BMDan joined channel #puppet
[2009/04/24 06:01:30] @ verwilst joined channel #puppet
[2009/04/24 06:02:51] @ Quit: fujin: Read error: 110 (Connection timed out)
[2009/04/24 06:10:07] @ Quit: raphink: Read error: 104 (Connection reset by peer)
[2009/04/24 06:15:40] <HarryCalahan> how is hasstatus handled in an Exec resource. Is it looking at the return value of initscript status?
[2009/04/24 06:17:42] @ melopt joined channel #puppet
[2009/04/24 06:22:17] @ madrescher joined channel #puppet
[2009/04/24 06:23:04] <FiXion> hmm - anyone know if authorized_keys handles command and other settings - that is prepended to the authorized_keys line ?
[2009/04/24 06:23:26] <FiXion> so that I can log certain pub keys to only being able to run a certain command and only to certain hosts etc.
[2009/04/24 06:23:32] <FiXion> all those nice features of ssh :)
[2009/04/24 06:26:03] <HarryCalahan> FiXion: the manpage says so
[2009/04/24 06:28:05] @ berlinAdmin joined channel #puppet
[2009/04/24 06:41:13] <Volcane> what do you mean how is hasstatus handled? it doesnt have such a property at all?
[2009/04/24 06:41:29] <Volcane> rl website fubar again
[2009/04/24 06:41:37] <HarryCalahan> my misstake. I mean't service.
[2009/04/24 06:41:57] <Volcane> HarryCalahan: it expects scripts to be LSB compliant
[2009/04/24 06:42:18] <HarryCalahan> and it's handled by checking the return code. Looks like anything besides 0 means not running
[2009/04/24 06:42:53] <Volcane> pretty much
[2009/04/24 06:42:57] <HarryCalahan> ah lsb.
[2009/04/24 06:43:03] <HarryCalahan> should have thought of that
[2009/04/24 06:43:13] <Volcane> http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
[2009/04/24 06:43:17] <HarryCalahan> for reference if this channel is logged: http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
[2009/04/24 06:43:21] <HarryCalahan> :)
[2009/04/24 06:44:14] @ yarihm joined channel #puppet
[2009/04/24 06:53:50] @ Quit: Djelibeybi: "Leaving"
[2009/04/24 06:53:54] @ keithlard joined channel #puppet
[2009/04/24 06:54:26] <berlinAdmin> I have a question about using multiple sources when using "file { }" and "recurse => true". My problem is that i want to copy the content of multiple directories (recursive) from my puppetmaster into one directory on the client. But only the first source dir is processed.
[2009/04/24 06:54:26] <berlinAdmin> For Example:
[2009/04/24 06:54:26] <berlinAdmin> file {
[2009/04/24 06:54:26] <berlinAdmin> "/usr/lib/nagios/plugins/":
[2009/04/24 06:54:26] <berlinAdmin> source => [
[2009/04/24 06:54:28] <berlinAdmin> "puppet:///nagios/nrpe-client-plugins/none/",
[2009/04/24 06:54:30] <berlinAdmin> "puppet:///nagios/nrpe-client-plugins/${architecture}/"
[2009/04/24 06:54:32] <berlinAdmin> ],
[2009/04/24 06:54:34] <berlinAdmin> recurse => true, ensure => directory, purge => false,
[2009/04/24 06:54:36] <berlinAdmin> }
[2009/04/24 06:54:38] <berlinAdmin> Only the files of "none/" are copied. If i swap the sources, then the content of $architecture/" is copied.
[2009/04/24 06:54:43] <Volcane> berlinAdmin: please paste on pastie.org not in channel
[2009/04/24 06:54:53] <berlinAdmin> I use oh, sorry
[2009/04/24 06:55:01] <berlinAdmin> oh sorry
[2009/04/24 06:55:31] <Volcane> the [ ] select works by first one tht exist gets copied
[2009/04/24 06:55:47] <Volcane> it doesnt work with recurse like u want, recurse is to not list every single file in a directory, just copy the whole directory
[2009/04/24 06:56:03] <jamesturnbull> bda: it's okay
[2009/04/24 06:56:09] <jamesturnbull> bda: that'll go into beta1
[2009/04/24 06:56:27] <jamesturnbull> bda: if you could get the tests to me at some point thatt'd be great
[2009/04/24 07:06:55] <berlinAdmin> Volcane: is there a way to get "file {}" work the way i want it?
[2009/04/24 07:07:57] <berlinAdmin> or is there an other funtion in puppet which can do that?
[2009/04/24 07:20:25] @ chillitom joined channel #puppet
[2009/04/24 07:21:32] @ Quit: yarihm: "Leaving"
[2009/04/24 07:30:34] @ Quit: maxagaz: Remote closed the connection
[2009/04/24 07:34:34] <Volcane> nothing jumps to mind immediately, I'd say you need to make plugin packages and manage it that way
[2009/04/24 07:35:38] <berlinAdmin> i thought about that, too
[2009/04/24 07:35:47] <berlinAdmin> maybe thats the best way
[2009/04/24 07:35:49] <berlinAdmin> thx
[2009/04/24 07:38:58] @ yarihm joined channel #puppet
[2009/04/24 07:47:45] @ nakano_ is now known as nakano
[2009/04/24 07:50:39] @ rsquared joined channel #puppet
[2009/04/24 07:52:23] * Volcane 's looking for people on various versions of puppet to send output of "puppetdoc -r type' to him so he can make a proper archive of old docs that isnt on a shitty box that dies all the time
[2009/04/24 07:52:56] <Volcane> also -r function
[2009/04/24 07:54:08] @ snerd joined channel #puppet
[2009/04/24 07:55:05] @ yarihm_ joined channel #puppet
[2009/04/24 07:58:19] @ Quit: yarihm: Read error: 104 (Connection reset by peer)
[2009/04/24 08:06:06] @ fbe_ joined channel #puppet
[2009/04/24 08:15:25] <Volcane> versioned type and fucntion docs 0.24.4 - 8
[2009/04/24 08:15:25] <Volcane> http://nephilim.ml.org/~rip/puppet/historical/0.24.7/
[2009/04/24 08:15:31] <Volcane> http://nephilim.ml.org/~rip/puppet/historical/ even
[2009/04/24 08:20:14] @ raphink joined channel #puppet
[2009/04/24 08:20:31] <FiXion> what do you use for log parsing?
[2009/04/24 08:20:48] <FiXion> I want something that can run in cron, and not alert on entries that it has already alerted on/seen.
[2009/04/24 08:21:03] <Volcane> http://www.consol.com/opensource/nagios/check-logfiles
[2009/04/24 08:21:05] <Volcane> its awesome++
[2009/04/24 08:21:35] <FiXion> I have a central log repository
[2009/04/24 08:22:01] <FiXion> and I want the checker to have an ignore list, and then mail everything unknown to a RT queue.
[2009/04/24 08:22:13] <Volcane> ah
[2009/04/24 08:22:22] <Volcane> let me know if you find something :P
[2009/04/24 08:22:23] <FiXion> and then I want nagios to check the RT queue (for each host) if there's unsolved cases.
[2009/04/24 08:22:41] <FiXion> so I just want something simple that can email what it finds
[2009/04/24 08:22:44] <Volcane> i wrote something similar, puts unknown things on a Active MQ message bus so i can just watch it scroll from anywhere etc
[2009/04/24 08:22:50] <FiXion> swatch works - except it rescans the entire file
[2009/04/24 08:22:55] <Volcane> yeah its lame
[2009/04/24 08:23:00] <Volcane> same problem with it
[2009/04/24 08:23:15] <FiXion> swatch can also use tail.. but if the daemon dies - it restarts.
[2009/04/24 08:23:17] <FiXion> lame
[2009/04/24 08:23:29] <FiXion> can't see why it can't just remember it's offset and start from there :(
[2009/04/24 08:24:28] <Volcane> yeah thats what that nagios plugin does
[2009/04/24 08:24:57] <FiXion> but problem with that - is that when nagios checks again - the error is gone
[2009/04/24 08:25:09] <Volcane> it can persist the error state for as long as you want
[2009/04/24 08:25:11] <FiXion> and I'd like an active alert until someone actually looks at the log
[2009/04/24 08:25:14] <Volcane> or look for clear patterns
[2009/04/24 08:25:16] <HarryCalahan> Volcane: older puppet version don't have html output in puppetdoc
[2009/04/24 08:25:20] <FiXion> it sounds awsome++
[2009/04/24 08:25:29] <FiXion> :)
[2009/04/24 08:25:29] * FiXion goes and takes a look
[2009/04/24 08:25:30] <Volcane> so i have mine persist the critical state for 30 minutes after the last matching line
[2009/04/24 08:25:41] <Volcane> HarryCalahan: text|rst2html
[2009/04/24 08:26:26] * Volcane wish RL would just do this static dumps of function/type/language reference and let us provide mirros
[2009/04/24 08:26:38] <Volcane> I'd happily mirror it in many places
[2009/04/24 08:26:41] <FiXion> Volcane: it seems it only has positive matching patterns. ie. no "unmatched = warning"
[2009/04/24 08:26:51] <Volcane> FiXion: regex
[2009/04/24 08:27:08] <FiXion> can I make a list of 100+ regexes to ignore?
[2009/04/24 08:27:27] <Volcane> you probably could heh
[2009/04/24 08:27:36] @ Quit: snerd: Remote closed the connection
[2009/04/24 08:27:46] <FiXion> Volcane: don't you have that? otherwise you'll get alerts all the time
[2009/04/24 08:27:57] <Volcane> no, i check specific logs for specific things
[2009/04/24 08:28:09] <Volcane> for my general flow of logs i just have a activemq queue that gets it
[2009/04/24 08:28:31] <Volcane> i generally make great effort to design things that not require logs for monitoring state
[2009/04/24 08:28:36] <Volcane> so dont really have a big need
[2009/04/24 08:28:45] <Volcane> knoiwing how crap the state of log processing is
[2009/04/24 08:28:55] <FiXion> so I could do a long list of !not-this-regex
[2009/04/24 08:29:42] <FiXion> how can I give it a list to an array - on commandline ?
[2009/04/24 08:29:57] <Volcane> config file is probably best fro what u want
[2009/04/24 08:29:59] <HarryCalahan> Volcane: and older puppetdoc versions only document types (not language and function)
[2009/04/24 08:30:08] <Volcane> new ones dont do language either
[2009/04/24 08:30:19] <Volcane> HarryCalahan: yeah, well if you have older ones please send to e
[2009/04/24 08:30:42] <FiXion> Volcane: how to you reset an alert with it?
[2009/04/24 08:30:54] <HarryCalahan> Volcane: it's easy to generate them
[2009/04/24 08:30:59] <Volcane> wait 30 mins after its gone, or give it a all-clear pattern to search fro
[2009/04/24 08:31:20] <Volcane> HarryCalahan: yeah I ust did those there quick quick
[2009/04/24 08:31:23] <FiXion> Volcane: ok. thanks for the tip.
[2009/04/24 08:36:20] @ mib_orfc3t joined channel #puppet
[2009/04/24 08:36:48] <mib_orfc3t> How do i remove a cronjob? i tried with ensure => absent, but without luck
[2009/04/24 08:41:22] <Volcane> should work, but only for ones puppet made
[2009/04/24 08:44:30] <mib_orfc3t> Volcane: Yeah it did - it was just a error on my part :-)
[2009/04/24 08:45:32] @ Quit: masterzen: "Leaving"
[2009/04/24 08:49:33] <HarryCalahan> Volcane: http://pastie.org/456960
[2009/04/24 08:49:52] <Volcane> lol
[2009/04/24 08:51:41] <Volcane> bash can finally do {11..20} instead of relying on seq :)
[2009/04/24 08:52:26] @ pdt joined channel #puppet
[2009/04/24 08:52:39] <melopt> Volcane, thats a *very* recent bash...
[2009/04/24 08:52:42] <HarryCalahan> yeah but i sometimes run around on an old sh-only system
[2009/04/24 08:52:45] @ Quit: keithlard:
[2009/04/24 08:52:49] <Volcane> heh
[2009/04/24 08:53:00] <HarryCalahan> where i only left symlinks from bash to sh
[2009/04/24 08:53:07] <melopt> Volcane, my mistake, typo
[2009/04/24 08:53:19] <melopt> it works ok on my version
[2009/04/24 08:54:32] <Volcane> not a big fan of how bash does it though, like on zsh {01..10} would do 01, 02, 03 etc
[2009/04/24 08:54:36] <Volcane> bash chops off the 0s
[2009/04/24 08:55:19] <HarryCalahan> thats what the zsh manifest is for ;)
[2009/04/24 08:56:05] <ssm> Volcane: if you need the leading 0, you'd have to go throuhgh printf, then
[2009/04/24 08:56:17] <Volcane> lame, will just stick to zsh :P
[2009/04/24 08:56:38] <ssm> I can't assume zsh, or even bash, is present on all hosts
[2009/04/24 08:57:02] @ Quit: yarihm_: "Leaving"
[2009/04/24 09:00:22] @ axisys joined channel #puppet
[2009/04/24 09:04:02] @ pheezy joined channel #puppet
[2009/04/24 09:13:52] @ Quit: pheezy: Remote closed the connection
[2009/04/24 09:16:32] <joe-mac> melopt: afaik bash has shipped with that functionality in more recent distros for a while
[2009/04/24 09:16:37] @ Quit: pdt:
[2009/04/24 09:16:42] <joe-mac> i'm pretty sure the one in ubuntu LTS can do reg ex matching too
[2009/04/24 09:16:50] <joe-mac> i <3 bash
[2009/04/24 09:17:02] <joe-mac> !$ alone saves me so much typing
[2009/04/24 09:17:10] @ Quit: astinus_: Read error: 104 (Connection reset by peer)
[2009/04/24 09:17:13] @ astinus joined channel #puppet
[2009/04/24 09:17:25] * melopt nods, I mistyped the code when I tested it, I didn't knew about the feature.Very cool
[2009/04/24 09:23:35] <FiXion> done rewriting swatch - now it starts from it's last position when reading the same file :)
[2009/04/24 09:24:23] @ kambiz_away is now known as kambiz
[2009/04/24 09:28:42] @ nakano is now known as nakano_
[2009/04/24 09:41:37] @ pheezy joined channel #puppet
[2009/04/24 09:42:02] @ Quit: fujin_: Read error: 54 (Connection reset by peer)
[2009/04/24 09:42:31] @ fujin joined channel #puppet
[2009/04/24 09:46:58] @ Quit: mikepea:
[2009/04/24 09:49:54] @ Quit: markl_: "Lost terminal"
[2009/04/24 09:51:38] @ Quit: mvn071: Read error: 113 (No route to host)
[2009/04/24 09:53:59] <FiXion> anyone have an example for overloading a virtual
[2009/04/24 09:54:11] <FiXion> I need to realize a virtual - but change ensure => running to stopped
[2009/04/24 09:54:15] <joe-mac> if aptproxy had a pair, i'd kick them so hard right now
[2009/04/24 09:54:35] <FiXion> joe-mac: I just use apt-mirror and maintain my own mirror instead.
[2009/04/24 09:54:39] <FiXion> easier
[2009/04/24 09:54:43] <joe-mac> FiXion: me too, turnms out i had to make a parent class that realizes it, then inherit in the node and override
[2009/04/24 09:55:13] <joe-mac> yea, we're going to be doing that pretty soon, we just have a data center mvoe and email migration that are huge projects and need to ahppen first
[2009/04/24 09:55:22] <FiXion> I saw some example recently about how to override - but I can't remember and didn't get to use it
[2009/04/24 09:55:35] <joe-mac> hmm, override as you realize? that would really make my day
[2009/04/24 09:55:42] <joe-mac> i could cut out that garb workaround i did
[2009/04/24 09:55:49] <FiXion> I may be mistaken
[2009/04/24 09:55:57] <FiXion> It was perhaps only when inherited
[2009/04/24 09:56:07] <joe-mac> yea, that's the whole thing you need to inherit to override
[2009/04/24 09:56:11] <FiXion> I think the example I saw was when inherited
[2009/04/24 09:56:20] <joe-mac> be nice if the realize function accepted attributes
[2009/04/24 09:56:27] <FiXion> can I inherit a @service ?
[2009/04/24 09:56:43] <joe-mac> if it's in a class then you can inherit the class it's in
[2009/04/24 09:57:05] <joe-mac> actually you need to realize it in a class, then inherit from the class
[2009/04/24 09:57:21] <joe-mac> it's messy, i would file a featyure request but i have no idea what the best way to do that would be
[2009/04/24 09:57:23] <Volcane> http://pastie.org/457029
[2009/04/24 09:57:37] @ edwardam joined channel #puppet
[2009/04/24 09:57:53] <joe-mac> Volcane: i like that
[2009/04/24 09:57:58] <joe-mac> cleaner than the way i did it
[2009/04/24 09:58:09] <FiXion> Volcane: cool - thank you.
[2009/04/24 09:58:31] <FiXion> the realize also gets the ensure => version ?
[2009/04/24 09:59:00] <Volcane> thats the whole point of using virtual resources yes
[2009/04/24 09:59:08] <Volcane> if you dont do that - amend specific resources later - dont use them
[2009/04/24 09:59:15] <FiXion> but the package doesn't have a @ in the one that inherited it
[2009/04/24 09:59:27] <Volcane> p != P
[2009/04/24 09:59:30] <FiXion> that's what confuses me
[2009/04/24 10:00:02] * FiXion goes testing
[2009/04/24 10:00:33] <Volcane> the @package creates it, the Package adjusts the inherited resource
[2009/04/24 10:05:59] @ Quit: madrescher: Read error: 60 (Operation timed out)
[2009/04/24 10:07:00] <FiXion> http://pastie.org/457046 - the last line (realize service" gives me problems :(
[2009/04/24 10:07:28] <FiXion> err: Could not retrieve catalog: Syntax error at 'Service'; expected '}' at /etc/puppet/modules/ntp/manifests/init.pp:66
[2009/04/24 10:08:10] @ mfoster joined channel #puppet
[2009/04/24 10:08:20] @ ckm joined channel #puppet
[2009/04/24 10:08:36] @ bajan left channel #puppet ()
[2009/04/24 10:08:36] <Volcane> realize(....)
[2009/04/24 10:08:42] <Volcane> not Realize
[2009/04/24 10:09:54] <FiXion> arghh. thank you :)
[2009/04/24 10:10:09] <FiXion> if anyone wants a modded swatch just say the word :)
[2009/04/24 10:10:21] <FiXion> I'm so much looking forward to a proper solution for watching my logs
[2009/04/24 10:10:26] @ Quit: ckm: Client Quit
[2009/04/24 10:10:31] <FiXion> which can run in cron - no daemon using tail crap :)
[2009/04/24 10:13:03] <HarryCalahan> i had a central syslog server and some reporting tool for it.
[2009/04/24 10:13:46] @ pior joined channel #puppet
[2009/04/24 10:13:46] <HarryCalahan> rsyslog was the central server and...
[2009/04/24 10:13:48] <pior> hello
[2009/04/24 10:14:27] <HarryCalahan> phplogcon was the viewer we used.
[2009/04/24 10:14:43] <HarryCalahan> just checking it once in the morning for every red line ;)
[2009/04/24 10:15:13] <pior> is it possible to use wildcard in puppet fileserver like that ?
[2009/04/24 10:15:15] <pior> file { "whatever": source => "puppet://puppetserver/config/vhost/*.conf}
[2009/04/24 10:16:13] <HarryCalahan> what about taking the complete vhost folder and recurse
[2009/04/24 10:16:44] <pior> HarryCalahan, I do that
[2009/04/24 10:16:58] <pior> I just don't want the files except *.conf
[2009/04/24 10:17:06] <pior> ie: *.swp ;)
[2009/04/24 10:17:07] <FiXion> HarryCalahan: I hate web interfaces - for anything than "fun for the management" :)
[2009/04/24 10:17:20] <FiXion> I want everything to alert on nagios - and if nagios is green - nothings wrong :)
[2009/04/24 10:17:42] <HarryCalahan> FiXion: yes nagios i also have ;)
[2009/04/24 10:17:45] <FiXion> and I don't want to wait a day for someone to catch some dumb problem
[2009/04/24 10:17:54] <pior> or your nagios is died :D
[2009/04/24 10:18:23] <FiXion> so I am setting it up to run swatch every 5 min. and emailing the output (if any - all output = unexpected, ie. bad) to RT
[2009/04/24 10:18:28] <SyTonnerre> Brrrrrr nagios
[2009/04/24 10:18:40] <FiXion> pior: then I'm fucked no matter what - but that shows up on the monitoring screen when it reloads
[2009/04/24 10:18:47] <HarryCalahan> prior: file {"/etc/apache2/vhosts": source => "puppet:///vhost", recurse=>inf, i
[2009/04/24 10:18:59] <FiXion> SyTonnerre: what do you prefer?
[2009/04/24 10:19:07] <SyTonnerre> FiXion, anything not PHP based
[2009/04/24 10:19:15] <HarryCalahan> pior: oh. ignoring. hm. sorry.
[2009/04/24 10:19:21] <pior> :)
[2009/04/24 10:19:22] * Volcane has multiple nagios machines, regional ones and they check each other :P
[2009/04/24 10:19:27] <SyTonnerre> FiXion, hobbitclient seems to work ok for smaller setups and I'm working on something for larger ones
[2009/04/24 10:19:32] <pior> I used ignore => *.swp
[2009/04/24 10:19:44] <HarryCalahan> SyTonnerre: nagios is not php
[2009/04/24 10:19:49] <FiXion> SyTonnerre: it's C
[2009/04/24 10:19:50] <SyTonnerre> HarryCalahan, it is since version 3.1
[2009/04/24 10:19:55] <FiXion> SyTonnerre: there's a php webinterface though
[2009/04/24 10:19:57] <SyTonnerre> At least the web frontend
[2009/04/24 10:20:04] <HarryCalahan> SyTonnerre: what. oh no.
[2009/04/24 10:20:21] <FiXion> it works really well - I have used it many places with great success.
[2009/04/24 10:20:22] <SyTonnerre> FiXion, but even before the PHP stuff Nagios never worked really well; I tested it on my monitoring box (UltraSPARC) and it fell apart once a day
[2009/04/24 10:20:32] <FiXion> it never has for me.
[2009/04/24 10:20:40] <Volcane> you set it up wrong then
[2009/04/24 10:20:44] <SyTonnerre> Also it's really slow; try monitoring a couple of thousand hosts
[2009/04/24 10:20:52] <SyTonnerre> Volcane, that shouldn't make it segfault
[2009/04/24 10:20:53] * Volcane monitors thousands of hosts
[2009/04/24 10:20:56] <FiXion> and I've used it to sms alert people - which makes you fix wrongful alerts pretty quickly :)
[2009/04/24 10:21:08] @ Quit: edwardam: Remote closed the connection
[2009/04/24 10:21:14] <FiXion> SyTonnerre: well - I only monitor a few 100 - and that's not a problem
[2009/04/24 10:21:22] <SyTonnerre> FiXion, me too, but it failed so many times I switched to hobbitclient
[2009/04/24 10:21:43] <FiXion> I can only agree with Volcane - you must have set it up wrong somehow.
[2009/04/24 10:21:54] <SyTonnerre> Sure, sure.
[2009/04/24 10:21:59] <FiXion> nagios 2 and (now running v3) just works here
[2009/04/24 10:22:07] <FiXion> and another place v2 has been in use for years
[2009/04/24 10:22:15] <FiXion> SyTonnerre: what "died" for you?
[2009/04/24 10:22:21] <SyTonnerre> FiXion, did you ever try to run it on UltraSPARC?
[2009/04/24 10:22:27] @ madrescher joined channel #puppet
[2009/04/24 10:22:30] <FiXion> SyTonnerre: nope - no such exotic hardware here :)
[2009/04/24 10:22:41] <teratoma> what do you use instead of nagios then ?
[2009/04/24 10:22:46] <SyTonnerre> FiXion, it crashed in its database code someplace after a couple of hundreds of checks; looked like corruption to me
[2009/04/24 10:22:47] <FiXion> running it in a freebsd jail is bad though :)
[2009/04/24 10:22:50] <SyTonnerre> teratoma, again: hobbit
[2009/04/24 10:23:34] <SyTonnerre> And me misconfiguring it is a very reasonable assumption given that I was the pkgsrc Nagios maintainer for quite some time (I resigned when they switched to PHP for the web frontend)
[2009/04/24 10:23:57] <Volcane> but the frontend isnt in php?
[2009/04/24 10:24:05] <teratoma> maybe you forgot a semicolon
[2009/04/24 10:24:24] <SyTonnerre> teratoma, sure; that would be a great reason to corrupt the database after a few hours and crash on it
[2009/04/24 10:24:41] <Volcane> and it doesnt talk to the database on its own unless you install 3rd party stuff
[2009/04/24 10:24:42] @ lak joined channel #puppet
[2009/04/24 10:24:43] <FiXion> SyTonnerre: fair enough. you can use what you will :) - I'm just saying I've never seen such problems
[2009/04/24 10:24:52] <FiXion> and I've never used a DB backend for it
[2009/04/24 10:24:54] <Volcane> like the ndo things
[2009/04/24 10:24:58] <FiXion> makes me scrinch just to think it
[2009/04/24 10:25:02] <Volcane> which was beta till very recently
[2009/04/24 10:25:54] <Volcane> so erm, why does beta software crash on esoteric hardware? boggle.
[2009/04/24 10:26:28] <joe-mac> i thought nagios's frontend was stillw ritten in C
[2009/04/24 10:26:36] <Volcane> joe-mac: exactly, it is
[2009/04/24 10:26:53] <joe-mac> ok, just checking
[2009/04/24 10:27:10] <joe-mac> cause when you vi one of the files, you get a bunch of weird codes and you see ELF whatever
[2009/04/24 10:28:10] <joe-mac> what os on ultrasparc was it crashing on
[2009/04/24 10:28:26] <joe-mac> i actually used to use a lot of ultrasparc machines because it made me feel more manly
[2009/04/24 10:28:43] <joe-mac> lack of vmware workstation however, caused me to switch, plus they ended their sparc workstation line afaik
[2009/04/24 10:29:16] <HarryCalahan> joe-mac: tim taylor would say *arf* *arf* more power
[2009/04/24 10:30:24] <joe-mac> lol... i saved up for so long at my mcjob to buy my first sparc off of ebay
[2009/04/24 10:31:48] <HarryCalahan> poor boy ;)
[2009/04/24 10:33:05] <joe-mac> it was back when sun actually licensed certain other companies to make sparc motherboards
[2009/04/24 10:33:07] <joe-mac> so it was a tower
[2009/04/24 10:33:18] <joe-mac> basically an ultra 5 but not with the sun logo on it and in a tower form factor
[2009/04/24 10:33:20] <Volcane> sparcs a open cpu, other companies still make them
[2009/04/24 10:33:26] <Volcane> fujitsu
[2009/04/24 10:33:56] <joe-mac> yea, but the mother boards still had a sun logo on the inside, the boxes didn;t, idk it was some weird business situation
[2009/04/24 10:36:28] <teratoma> i had a HAL
[2009/04/24 10:36:44] @ masterzen joined channel #puppet
[2009/04/24 10:36:53] @ Quit: kolla: Remote closed the connection
[2009/04/24 10:37:28] @ rgsteele||work joined channel #puppet
[2009/04/24 10:38:26] <rgsteele||work> Hey folks. Can you glob match in conditionals? E.g., owner => $foo ? { log[0-9] => "bar" }
[2009/04/24 10:38:34] <rgsteele||work> I know that syntax isn't right, but hopefully it conveys the idea.
[2009/04/24 10:39:54] @ Quit: pheezy: Remote closed the connection
[2009/04/24 10:42:25] @ pheezy joined channel #puppet
[2009/04/24 10:43:37] <masterzen> rgsteele||work: no.
[2009/04/24 10:45:57] <rgsteele||work> masterzen: Okay, thanks.
[2009/04/24 10:47:52] @ Quit: axisys: "Lost terminal"
[2009/04/24 10:48:30] @ Quit: DerekW: "Leaving"
[2009/04/24 10:49:30] @ Quit: pleemans: Read error: 104 (Connection reset by peer)
[2009/04/24 10:53:37] @ Quit: tuf: Read error: 110 (Connection timed out)
[2009/04/24 10:55:16] @ Quit: mib_orfc3t: "http://www.mibbit.com ajax IRC Client"
[2009/04/24 10:55:49] @ Quit: fujin:
[2009/04/24 10:59:16] @ axisys joined channel #puppet
[2009/04/24 11:04:23] <gepetto> ::trac:: Development Lifecycle edited by jamtur01 @ http://reductivelabs.com/trac/puppet/wiki/DevelopmentLifecycle (by james@lovedthanlost.net)
[2009/04/24 11:04:46] @ Quit: teratoma: "leaving"
[2009/04/24 11:05:26] @ Quit: stijnbe: Client Quit
[2009/04/24 11:06:03] @ fujin joined channel #puppet
[2009/04/24 11:06:38] @ teratoma joined channel #puppet
[2009/04/24 11:06:51] @ pleemans joined channel #puppet
[2009/04/24 11:12:31] @ Quit: madrescher: Read error: 113 (No route to host)
[2009/04/24 11:13:30] @ Quit: pheezy: Remote closed the connection
[2009/04/24 11:14:18] @ pheezy joined channel #puppet
[2009/04/24 11:15:20] @ edwardam joined channel #puppet
[2009/04/24 11:18:39] @ Quit: MrHeavy: Read error: 110 (Connection timed out)
[2009/04/24 11:19:25] @ Quit: HarryCalahan: "final dot"
[2009/04/24 11:25:16] @ Quit: MattyM: "ta ta"
[2009/04/24 11:25:21] @ Quit: pleemans: Read error: 113 (No route to host)
[2009/04/24 11:28:00] @ markl_ joined channel #puppet
[2009/04/24 11:30:11] @ threetee_ joined channel #puppet
[2009/04/24 11:30:45] @ Quit: pheezy: Remote closed the connection
[2009/04/24 11:32:23] @ Quit: edwardam: Remote closed the connection
[2009/04/24 11:32:37] @ pheezy joined channel #puppet
[2009/04/24 11:33:32] @ Quit: gaveen: Read error: 110 (Connection timed out)
[2009/04/24 11:37:30] @ Quit: fujin:
[2009/04/24 11:38:46] @ gaveen joined channel #puppet
[2009/04/24 11:41:28] <devicenull_> how often does puppetd check for new updates by efault?
[2009/04/24 11:41:40] <Volcane> puppetd --genconfig|less
[2009/04/24 11:41:44] @ Quit: verwilst: "Ex-Chat"
[2009/04/24 11:42:15] <Volcane> all current settings are shown there
[2009/04/24 11:44:12] @ Quit: berlinAdmin: "Leaving."
[2009/04/24 11:44:31] @ Quit: _nono_: "Leaving"
[2009/04/24 11:46:21] @ Quit: pheezy: Remote closed the connection
[2009/04/24 11:47:44] @ Quit: threetee: Read error: 110 (Connection timed out)
[2009/04/24 11:48:03] @ pheezy joined channel #puppet
[2009/04/24 11:57:55] @ Quit: pheezy: Remote closed the connection
[2009/04/24 11:58:38] @ MrHeavy joined channel #puppet
[2009/04/24 11:58:42] @ pheezy joined channel #puppet
[2009/04/24 12:04:57] @ kingitchy joined channel #puppet
[2009/04/24 12:06:12] @ Quit: MrHeavy: "Ex-Chat"
[2009/04/24 12:11:10] <jbooth> Survey: for a firewall/iptables implementation, if you specify no dependencies on a rule should it add to the start or end of its chain?
[2009/04/24 12:12:38] <Volcane> start probably has the highest chance of actually doing something, but for denies that might not be desirable at all
[2009/04/24 12:13:08] @ Quit: pheezy: Remote closed the connection
[2009/04/24 12:14:11] @ pheezy joined channel #puppet
[2009/04/24 12:14:30] @ Quit: squiddle: "leaving"
[2009/04/24 12:18:32] @ claymation joined channel #puppet
[2009/04/24 12:23:35] @ WALoeIII joined channel #puppet
[2009/04/24 12:30:20] @ MrHeavy joined channel #puppet
[2009/04/24 12:31:22] @ Quit: alban2: Read error: 110 (Connection timed out)
[2009/04/24 12:35:05] @ Quit: jhulten: "leaving"
[2009/04/24 12:36:05] <jbooth> I found a reason to let it put it at the start unless otherwise specified through a require
[2009/04/24 12:36:20] <jbooth> putting it at the end has systems like fedora/redhat never have the rule work
[2009/04/24 12:36:36] <jbooth> since the end of the "main" chain is a -j REJECT rule
[2009/04/24 12:39:15] @ rdaugherty joined channel #puppet
[2009/04/24 12:40:17] <joe-mac> why not just do a default drop policy on the main chain?
[2009/04/24 12:42:03] @ jhulten joined channel #puppet
[2009/04/24 12:43:04] <jbooth> becase redhat rejects with ICMP host prohibited
[2009/04/24 12:43:13] <jbooth> And I don't think you can set things like that on the main chains.
[2009/04/24 12:43:23] <jbooth> Now, why they don't ALSO drop on the main chain for safety I'm not sure.
[2009/04/24 12:44:37] @ voixd joined channel #puppet
[2009/04/24 12:47:26] @ justdave_ joined channel #puppet
[2009/04/24 12:47:33] @ Quit: justdave: Read error: 104 (Connection reset by peer)
[2009/04/24 12:49:41] <nDuff> if by "the main chain" you're referring to filter -- I'm pretty sure one can indeed do a REJECT there.
[2009/04/24 12:51:51] <jbooth> You can reject. Can you reject with a particular ICMP response?
[2009/04/24 12:52:28] @ jmarki joined channel #puppet
[2009/04/24 12:54:04] @ Quit: devicenull_: Read error: 104 (Connection reset by peer)
[2009/04/24 12:56:52] @ Quit: glaw: Remote closed the connection
[2009/04/24 12:58:33] @ sunoano left channel #puppet ("Leaving.")
[2009/04/24 12:58:54] @ Quit: alfism: "Connection reset by beer"
[2009/04/24 12:59:44] <nDuff> jbooth, yes; the --reject-with parameter should work there.
[2009/04/24 13:00:00] @ Quit: fbe_: Read error: 60 (Operation timed out)
[2009/04/24 13:00:58] <joe-mac> jbooth: what do you mean? there is an icmp module that can reject, drop, or accept any icmp type
[2009/04/24 13:01:40] <joe-mac> OH WITH
[2009/04/24 13:01:41] <joe-mac> nm
[2009/04/24 13:01:45] <joe-mac> i was totally misunderstanding you jbooth
[2009/04/24 13:03:48] * nDuff wishes for a shell=> parameter for the exec type.
[2009/04/24 13:04:12] * grim_radical_ does as well
[2009/04/24 13:04:34] * nDuff wonders if setting the SHELL environment variable will do the trick -- if it's going straight through to a command() call...
[2009/04/24 13:04:43] <nDuff> s/command/system/
[2009/04/24 13:05:05] <nDuff> ...no, looks like system() is hardcoded to "/bin/sh"...
[2009/04/24 13:07:56] @ madrescher joined channel #puppet
[2009/04/24 13:08:40] @ Quit: nasrat: "Ex-Chat"
[2009/04/24 13:09:17] <joe-mac> what happens if you do llike /bin/ksh -c or whatever the switch is to process the argv as a command for that shell
[2009/04/24 13:09:35] <joe-mac> i use /bin/sh -c "" when i have a command that has some logical operators in it
[2009/04/24 13:09:50] <grim_radical_> joe-mac: it's a bit of a hack...and it creates escaping issues
[2009/04/24 13:09:58] <joe-mac> i see
[2009/04/24 13:10:04] <grim_radical_> I really wish exec's command param would take an array
[2009/04/24 13:10:20] <jbooth> nDuff: in that case ask RedHat why they are dumb
[2009/04/24 13:10:26] <grim_radical_> but looking inside util.rb#execute, it appears to squash arrays into a string
[2009/04/24 13:10:32] <joe-mac> grim_radical i would file a feature req and state uyour case
[2009/04/24 13:10:40] <grim_radical_> joe-mac: yup
[2009/04/24 13:13:58] @ Quit: voixd: Read error: 110 (Connection timed out)
[2009/04/24 13:14:35] <lak> and then attach a patch :)
[2009/04/24 13:14:42] <grim_radical_> ha!
[2009/04/24 13:14:52] <joe-mac> lol
[2009/04/24 13:14:59] <grim_radical_> MAYBE I WILL
[2009/04/24 13:15:03] <joe-mac> sadly i suck at ruby so my feature reqs have no patch :-(
[2009/04/24 13:15:54] <grim_radical_> joe-mac: well, instead of attaching ruby code to the ticket attach a $20 bill. I'm sure lak accepts those just as readily as code. :P
[2009/04/24 13:16:21] <joe-mac> lol, nice idea, .jpg or .png?
[2009/04/24 13:17:22] <lak> heh
[2009/04/24 13:18:26] @ ezmob joined channel #puppet
[2009/04/24 13:18:52] @ mfoster1 joined channel #puppet
[2009/04/24 13:18:54] @ mikepea joined channel #puppet
[2009/04/24 13:20:32] @ edwardam joined channel #puppet
[2009/04/24 13:21:32] <jbooth> lak: Thanks for all the Q&A on custom type/provider development. It works! It is really rough, but functional.
[2009/04/24 13:21:43] <lak> cool
[2009/04/24 13:23:08] @ Quit: phips: "leaving"
[2009/04/24 13:27:32] @ Quit: mfoster: Read error: 110 (Connection timed out)
[2009/04/24 13:28:22] @ Quit: mfoster1: Read error: 104 (Connection reset by peer)
[2009/04/24 13:31:47] @ mfoster joined channel #puppet
[2009/04/24 13:32:12] @ Quit: wassy121: "Ex-Chat"
[2009/04/24 13:36:26] @ rdaugherty left channel #puppet ()
[2009/04/24 13:38:42] @ tuf joined channel #puppet
[2009/04/24 13:39:53] @ Quit: briandquinn:
[2009/04/24 13:39:55] @ mfoster1 joined channel #puppet
[2009/04/24 13:40:53] @ Quit: mfoster1: Client Quit
[2009/04/24 13:44:42] @ ericrw joined channel #puppet
[2009/04/24 13:45:35] <gepetto> ::trac:: Documentation Start edited by teyo @ http://reductivelabs.com/trac/puppet/wiki/DocumentationStart (by teyo@brainfinger.org)
[2009/04/24 13:45:46] @ phips joined channel #puppet
[2009/04/24 13:51:00] <gepetto> ::trac:: Documentation Start edited by teyo @ http://reductivelabs.com/trac/puppet/wiki/DocumentationStart (by teyo@brainfinger.org)
[2009/04/24 13:52:07] @ mconigliaro joined channel #puppet
[2009/04/24 13:52:19] <mconigliaro> anyone seen this error before?
[2009/04/24 13:52:20] <mconigliaro> http://pastie.org/457292
[2009/04/24 13:52:27] <mconigliaro> uninitialized constant Facter::IPAddress (NameError)
[2009/04/24 13:52:53] <mconigliaro> i tried reinstalling the puppet client, but that didnt help
[2009/04/24 13:55:04] @ Quit: mfoster: Read error: 110 (Connection timed out)
[2009/04/24 14:00:19] @ pleemans joined channel #puppet
[2009/04/24 14:02:10] @ Quit: lak:
[2009/04/24 14:02:55] @ keithlard joined channel #puppet
[2009/04/24 14:11:38] @ Quit: mikepea:
[2009/04/24 14:18:58] @ alban2 joined channel #puppet
[2009/04/24 14:19:54] @ Quit: melopt: "Leaving"
[2009/04/24 14:19:56] <mconigliaro> anyone? uninitialized constant Facter::IPAddress (NameError)
[2009/04/24 14:20:10] <mconigliaro> im not a ruby person, so im not sure how to debug this
[2009/04/24 14:20:55] <mconigliaro> looks to me like its having trouble finding out information about my interfaces
[2009/04/24 14:24:39] @ xocas left channel #puppet ()
[2009/04/24 14:27:15] @ Quit: keithlard:
[2009/04/24 14:29:52] @ keithlard joined channel #puppet
[2009/04/24 14:35:32] @ randybias joined channel #puppet
[2009/04/24 14:38:58] @ alfism joined channel #puppet
[2009/04/24 14:47:59] <score> mconigliaro: what version of facter?
[2009/04/24 14:48:21] <mconigliaro> 1.5.4
[2009/04/24 14:48:40] @ mfoster joined channel #puppet
[2009/04/24 14:49:02] <mconigliaro> i can figure out whats different between the machine this works on and the machines where i get the error...
[2009/04/24 14:49:35] @ shenson joined channel #puppet
[2009/04/24 14:49:46] <score> mconigliaro: might try facter-1.5.5 stuff
[2009/04/24 14:49:57] <score> think it was fixed recently
[2009/04/24 14:50:10] <shenson> I'm trying to create a parser function that will need to know the file system path to a module that it names, is there an easy way to get that information?
[2009/04/24 14:50:14] <mconigliaro> this got installed via a puppet rpm. how can i just install that version of facter?
[2009/04/24 14:50:41] <mconigliaro> i assume ruby has some kind of easy_install thing
[2009/04/24 14:51:02] @ rzm102 joined channel #puppet
[2009/04/24 14:51:05] <score> mconigliaro: there are gems, if that's what you mean
[2009/04/24 14:51:31] <mconigliaro> probably, im not a ruby guy =P
[2009/04/24 14:52:06] <grim_radical_> mconigliaro: "gem install" is the rough equivalent of "easy_install"
[2009/04/24 14:52:15] @ Quit: rzm102: Client Quit
[2009/04/24 14:52:28] <grim_radical_> you'll need to install the rubygems rpm to get the "gem" executable, IIRC
[2009/04/24 14:52:44] @ rzm102 joined channel #puppet
[2009/04/24 14:52:56] <score> not sure which it'll find first though. the facter installed by rpm or the gem
[2009/04/24 14:54:16] <mconigliaro> i just downloaded http://reductivelabs.com/downloads/facter/facter-1.5.5rc1.tgz
[2009/04/24 14:54:21] <mconigliaro> discovered install.rb
[2009/04/24 14:54:39] <mconigliaro> this didnt fix it =(
[2009/04/24 14:58:39] <niczar1> quick Q: facter kernelrelease gives 2.6.18-128.1.6.el5, but I need 2.6.18_128.1.6.el5 so that I can use it in a kernel module package require: drbd-km-2.6.18_128.1.6.el5-8.3.1-3 → drbd-km-$kernelrelease-8.3.1-3, what's the simplest way to do that
[2009/04/24 14:59:44] <chu> compile against the kernel version you need, and make your own rpm
[2009/04/24 15:01:14] <niczar1> chu: that's already what I'm doing
[2009/04/24 15:01:24] <niczar1> plus in a repository of my own
[2009/04/24 15:01:54] <niczar1> I'm just asking about a string replace s/-/_/
[2009/04/24 15:02:12] <niczar1> or if there's something for that particular case
[2009/04/24 15:02:36] <chu> do not understand the question
[2009/04/24 15:03:22] <niczar1> $ facter kernelrelease
[2009/04/24 15:03:34] <niczar1> 2.6.18-128.1.6.el5
[2009/04/24 15:03:47] <niczar1> $ rpm -qa|grep drbd-km
[2009/04/24 15:03:47] <niczar1> drbd-km-2.6.18_128.1.6.el5-8.3.1-3
[2009/04/24 15:04:16] <niczar1> I want to be able to precompute the package name based on facter's kernelrelease
[2009/04/24 15:04:56] <niczar1> so that I can package { "drbd-km-$mykernelrelease-8.3.1-3: sure=> installed}
[2009/04/24 15:05:19] <chu> dunno
[2009/04/24 15:05:29] <niczar1> because otherwise when I have to do a kernel upgrade, I have a problem
[2009/04/24 15:05:29] <chu> I'd work around it by providing my own rpm. Seems simpler.
[2009/04/24 15:05:35] <niczar1> ok you don't get it
[2009/04/24 15:05:38] <niczar1> I have my own rpm
[2009/04/24 15:05:55] <niczar1> but the rpm's name for a kernel module contains the kernel's version
[2009/04/24 15:06:14] <niczar1> with a "_" otherwise rpm would mistake the kernel version for the modules' version
[2009/04/24 15:08:53] @ Quit: tuf: Read error: 110 (Connection timed out)
[2009/04/24 15:09:43] @ tuf joined channel #puppet
[2009/04/24 15:21:24] @ ezmob is now known as ezmob|away
[2009/04/24 15:28:18] @ Quit: markl__: "Lost terminal"
[2009/04/24 15:29:50] <mconigliaro> wtf?
[2009/04/24 15:29:57] <mconigliaro> i deleted ipmess.rb and that fixed my problem
[2009/04/24 15:30:13] <mconigliaro> the machines that dont have a problem dont even have ipmess.rb
[2009/04/24 15:30:18] <Volcane> how did you upgrade?
[2009/04/24 15:30:34] <mconigliaro> yum update
[2009/04/24 15:30:42] <Volcane> weird
[2009/04/24 15:30:54] <mconigliaro> should i just delete ipmess.rb?
[2009/04/24 15:31:15] <Volcane> rpm should have deleted it really
[2009/04/24 15:31:32] <mconigliaro> that is weird
[2009/04/24 15:31:36] <mconigliaro> oh well, i can do it myself
[2009/04/24 15:31:41] <mconigliaro> or maybe have puppet do it ;)
[2009/04/24 15:31:56] <mconigliaro> or no, that wouldnt work
[2009/04/24 15:32:00] <mconigliaro> manually it is
[2009/04/24 15:34:58] @ cwebber joined channel #puppet
[2009/04/24 15:35:15] @ lak joined channel #puppet
[2009/04/24 15:37:20] @ Quit: atlan_: Remote closed the connection
[2009/04/24 15:39:41] @ ezmob|away is now known as ezmob
[2009/04/24 15:46:22] @ Quit: keithlard: Read error: 110 (Connection timed out)
[2009/04/24 15:52:31] @ tuf_ joined channel #puppet
[2009/04/24 15:52:51] @ Quit: tuf: Read error: 104 (Connection reset by peer)
[2009/04/24 15:56:03] <rzm102> Can puppet pull pkgdmgs from puppet://puppet?
[2009/04/24 15:56:16] <Volcane> it just pass the url to the package provider
[2009/04/24 15:56:45] <rzm102> Cool, thanks
[2009/04/24 15:58:11] @ ezmob is now known as ezmob|away
[2009/04/24 16:01:15] <rzm102> err: //Node[puppet1.local]/files/Package[Caffeine1.0.3.pkg.dmg]/ensure: change from absent to present failed: could not set present on ensure: No Such file or directory - puppet://puppet/files/pkgs/Caffeine1.0.3.pkg.dmg at /etc/puppetmanifests/classes/files.pp:22
[2009/04/24 16:03:15] <Volcane> so like i said, puppet tells your package manager whatever url/path you specify
[2009/04/24 16:03:35] <rzm102> I know that my other files are working using the puppet:// url
[2009/04/24 16:03:44] <jmarki> should it be puppet:///?
[2009/04/24 16:04:09] <Volcane> if you specify in package "puppet://puppet/files/pkgs/Caffeine1.0.3.pkg.dmg"
[2009/04/24 16:04:10] <rzm102> it's working for me with //
[2009/04/24 16:04:19] <Volcane> then puppet will literally just tell your package managed to install puppet://puppet/files/pkgs/Caffeine1.0.3.pkg.dmg
[2009/04/24 16:04:21] <Volcane> it wont fetch files
[2009/04/24 16:04:39] <Volcane> puppet doesnt fetch packages, its all up to your package manager
[2009/04/24 16:04:48] <rzm102> oh, so it can't pull the files?
[2009/04/24 16:04:58] <Volcane> if you want puppet to do it, you need to use file{} to put it in some directory and then use the paths in that directory
[2009/04/24 16:05:28] <rzm102> I see, then thats in addition to the package{}?
[2009/04/24 16:05:41] <rzm102> so I file{} it, then package{} it?
[2009/04/24 16:06:10] @ mfoster left channel #puppet ()
[2009/04/24 16:06:59] <rzm102> because I have seen an example using the package{} and http to curl the dmg, so I thought that it would pull it with puppet too
[2009/04/24 16:07:16] @ ezmob|away is now known as ezmob
[2009/04/24 16:07:19] <Volcane> dude, please read what i am saying
[2009/04/24 16:07:29] <Volcane> if you tell it a url as a source
[2009/04/24 16:07:32] <rzm102> I am trying to understand, I really am
[2009/04/24 16:07:40] <Volcane> your PACKAGE MANAGER must support whatever url you supply
[2009/04/24 16:08:56] <Volcane> puppet literally just runs: pkgdmgs install <whatever url/path/etc you supplied>
[2009/04/24 16:09:17] <Volcane> or however pkddmgs work, it doesnt go and try to fetch files cos that would be stupid in most cases
[2009/04/24 16:17:09] @ Quit: edwardam: Remote closed the connection
[2009/04/24 16:17:30] @ Quit: tuf_: Read error: 110 (Connection timed out)
[2009/04/24 16:17:33] @ tuf joined channel #puppet
[2009/04/24 16:19:56] <Cuchulain> unless things have improved recently, it's still not considered best practice to use puppet urls to distribute large files
[2009/04/24 16:20:06] <Volcane> yup
[2009/04/24 16:20:41] <Cuchulain> you're better off hosting them on a file or web server, and either accessing them directly via a direct url, or using a file{} resource to fetch them to a local staging directory
[2009/04/24 16:20:59] <Cuchulain> (it's a performance issue)
[2009/04/24 16:21:02] <Volcane> file{} would be slow and shitty
[2009/04/24 16:21:07] @ mikepea joined channel #puppet
[2009/04/24 16:22:37] @ Quit: mikepea: Client Quit
[2009/04/24 16:23:52] <rzm102> OK, thanks guys. Still learning about this beast
[2009/04/24 16:24:25] @ threetee joined channel #puppet
[2009/04/24 16:25:21] <rzm102> Sorry for the noob questions, I can understand it gets annoying. I appreciate the help. Bye
[2009/04/24 16:25:26] @ Quit: rzm102:
[2009/04/24 16:25:51] @ randybias is now known as randybias|away
[2009/04/24 16:27:08] @ Quit: masterzen: "Exploring other worlds"
[2009/04/24 16:32:13] <joe-mac> nice, floods indoors, they rock
[2009/04/24 16:32:19] <joe-mac> too bad puppet can't tidy that up
[2009/04/24 16:37:21] @ kolla joined channel #puppet
[2009/04/24 16:37:45] @ Quit: pleemans: Read error: 110 (Connection timed out)
[2009/04/24 16:39:50] <cwebber> is it possible to do class foo { class bar {} class bar::stuff inherits bar {}}
[2009/04/24 16:41:38] <Volcane> why nest them?
[2009/04/24 16:42:10] <Volcane> class foo {} class foo::bar {} class foo::bar::stuff inherits foo::bar {}
[2009/04/24 16:42:18] <cwebber> hmmmm
[2009/04/24 16:42:21] @ Quit: threetee_: Read error: 110 (Connection timed out)
[2009/04/24 16:42:37] <cwebber> that would make things easier
[2009/04/24 16:43:23] <jmarki> Volcane: is there a difference in usage between those 2 methods? i didn't quite catch that from the documentations
[2009/04/24 16:43:42] <Volcane> yeah I've not yet figured out the advantage to nesting them over just doing as above
[2009/04/24 16:44:05] <Volcane> to me it seems the same
[2009/04/24 16:44:30] <jmarki> okay, i was wondering for some time. thanks =)
[2009/04/24 16:44:30] <Volcane> who knows, there might be some subtletly, i never nest them so would probably not have noticed heh
[2009/04/24 16:44:32] <cwebber> i didnt realize you could do the foo::bar class without nesting
[2009/04/24 16:45:35] <jmarki> it's supposed to be equivalent, in the sense foo must be included before bar when foo::bar is called
[2009/04/24 16:45:51] <sc0ttB> do you have to explictly add "inherits foo" for foo::bar?
[2009/04/24 16:46:13] <Volcane> jmarki: except if you just do classes like i did above you dont need to.
[2009/04/24 16:46:20] <Volcane> maybe thats the difference *shrug*
[2009/04/24 16:46:31] <jmarki> Volcane: with the inherits?
[2009/04/24 16:47:00] <Volcane> no, i think you're saying that to access foo::bar in this case: class foo { class bar { } } you need to include first first?
[2009/04/24 16:47:45] <jmarki> ahh, nope. i somehow needed to "include foo; include foo::bar" in my manifests
[2009/04/24 16:48:23] <cwebber> yeah it is really just for organizational purposes
[2009/04/24 16:48:25] <jmarki> just "include foo::bar" wouldn't do. puppet screams that class foo is not included
[2009/04/24 16:48:26] @ threetee_ joined channel #puppet
[2009/04/24 16:48:37] <Volcane> http://pastie.org/457501
[2009/04/24 16:48:41] <Volcane> seems totally equivelant to me
[2009/04/24 16:50:03] <jmarki> interesting... why do i still need to have an "include foo" line then?!?
[2009/04/24 16:50:19] <Volcane> you dont
[2009/04/24 16:50:27] <cwebber> it actually works better to do it as seperate classes because then you can then inherit the parent... ie you cannot do class foo { class bar inherits foo {}}
[2009/04/24 16:50:33] <Volcane> unless you actually want things thats only in 'foo' to happen
[2009/04/24 16:50:40] <Volcane> see how my 'Inside foo' didnt happen
[2009/04/24 16:50:56] <jmarki> hmm.... i had thought don't need to, but puppet complained
[2009/04/24 16:51:00] @ joe-mac left channel #puppet ()
[2009/04/24 16:51:04] <jmarki> maybe it's my code...
[2009/04/24 16:51:05] <Volcane> cwebber: in sep classes you can also use sep files in modules
[2009/04/24 16:51:06] <cwebber> but you can do class foo {} class foo::bar inherits foo {}
[2009/04/24 16:51:08] @ threetee_ left channel #puppet ()
[2009/04/24 16:51:11] * jmarki goes to debug
[2009/04/24 16:51:26] @ shenson left channel #puppet ("/me taps out")
[2009/04/24 16:51:46] <cwebber> Volcane: not sure what you mean
[2009/04/24 16:51:59] <Volcane> http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation
[2009/04/24 16:52:15] <Volcane> class foo < modules/foo/manifests/init.pp
[2009/04/24 16:52:15] @ fbe_ joined channel #puppet
[2009/04/24 16:52:24] <Volcane> class foo::bar < modules/foo/manifests/bar.pp
[2009/04/24 16:52:38] <Volcane> class foo::bar::baz < modules/foo/manifests/bar/baz.pp
[2009/04/24 16:52:51] <Volcane> thats what modules do for you, automagically goes and loads those files
[2009/04/24 16:52:53] <cwebber> ahhh
[2009/04/24 16:53:02] <cwebber> i see what you mean now
[2009/04/24 16:53:21] <Volcane> source => "puppet://puppet/foo/foo.txt" thats in modules/foo/files/foo.txt
[2009/04/24 16:53:32] <Volcane> template("foo/foo.erb") is in modules/foo/templates/foo.erb
[2009/04/24 16:53:42] <mconigliaro> hey guys, im suddenly getting this in my subversion pre-commit script: http://pastebin.com/medd6458
[2009/04/24 16:53:59] <Volcane> nice to group all related things into a small group
[2009/04/24 16:54:08] <Volcane> good for charing, branching etc
[2009/04/24 16:54:20] @ shake-n-bake joined channel #puppet
[2009/04/24 16:54:25] <Volcane> s/charing/sharing
[2009/04/24 16:54:44] <mconigliaro> its erroring on this line: paths = ENV["PATH"].split(File::PATH_SEPARATOR)
[2009/04/24 16:55:02] <Volcane> mconigliaro: show your file
[2009/04/24 16:55:14] <mconigliaro> templates.pp?
[2009/04/24 16:55:30] <Volcane> whatever is causing the problem, anyway, .pp files != ruby language
[2009/04/24 16:55:50] <mconigliaro> this is /usr/lib/ruby/site_ruby/1.8/puppet/defaults.rb:102
[2009/04/24 16:55:52] <Volcane> so unless thats an actual template its odd, which is why i want to see where its moaning
[2009/04/24 16:56:00] <Volcane> ah right
[2009/04/24 16:56:08] <mconigliaro> the template is valid. i can run puppet against it manually
[2009/04/24 16:56:16] <mconigliaro> its only happening in the pre-commit script
[2009/04/24 16:56:24] <mconigliaro> i used this: http://reductivelabs.com/trac/puppet/wiki/VersionControlPuppet
[2009/04/24 16:56:27] <Volcane> ah
[2009/04/24 16:56:52] @ Quit: claymation:
[2009/04/24 16:57:15] <Volcane> its doing it for all commits?
[2009/04/24 16:57:20] <mconigliaro> yeah
[2009/04/24 16:57:26] <mconigliaro> it used to work
[2009/04/24 16:57:48] <mconigliaro> then i upgraded to cent 5.3
[2009/04/24 16:58:05] @ claymation joined channel #puppet
[2009/04/24 16:58:26] @ Quit: tuf: Read error: 110 (Connection timed out)
[2009/04/24 16:58:29] <pheezy> :)
[2009/04/24 16:58:38] <Volcane> well the error suggests that PATH environment variable is empty
[2009/04/24 16:59:05] <mconigliaro> hmm, so i guess thats for the apache use?
[2009/04/24 16:59:08] <mconigliaro> user
[2009/04/24 16:59:18] <Volcane> try to set it in the pre-commit script
[2009/04/24 17:00:57] <mconigliaro> huh, that did it
[2009/04/24 17:01:02] <mconigliaro> thanks
[2009/04/24 17:01:09] <mconigliaro> i wonder what the path should be
[2009/04/24 17:01:14] <mconigliaro> i just did PATH=/
[2009/04/24 17:01:39] <Volcane> it shouldnt matter, i think it just wants it to be there rather than nothing at all
[2009/04/24 17:02:20] <mconigliaro> yup. PATH="" works too
[2009/04/24 17:04:30] @ Quit: sigmonsays: Read error: 110 (Connection timed out)
[2009/04/24 17:06:07] @ Quit: threetee: Read error: 110 (Connection timed out)
[2009/04/24 17:06:25] @ Quit: rgsteele||work: Remote closed the connection
[2009/04/24 17:06:31] @ mfoster joined channel #puppet
[2009/04/24 17:11:14] @ Quit: shake-n-bake:
[2009/04/24 17:11:57] <gepetto> ::trac:: Version Control Puppet edited by mconigliaro @ http://reductivelabs.com/trac/puppet/wiki/VersionControlPuppet (by mconigliaro@fandotech.com)
[2009/04/24 17:13:25] @ Quit: jmarki: Remote closed the connection
[2009/04/24 17:14:47] @ Quit: seph_:
[2009/04/24 17:21:35] @ Quit: erm_: "leaving"
[2009/04/24 17:30:26] @ sigmonsays joined channel #puppet
[2009/04/24 17:38:40] @ kambiz is now known as kambiz_away
[2009/04/24 17:45:34] @ tuf joined channel #puppet
[2009/04/24 17:45:44] <ChoHag> So. Who decided to write puppet in the slowest language around?
[2009/04/24 17:45:55] <grim_radical_> lol
[2009/04/24 17:46:18] <jrojas> anyone have experience with plugins and puppet?
[2009/04/24 17:46:41] <ChoHag> It's taken 5 minutes so far to restart on the virtual machine I'm using to test it.
[2009/04/24 17:46:45] <grim_radical_> ChoHag: I've been submitting a lot of performance-related patches...are you on linux?
[2009/04/24 17:46:58] <ChoHag> Yes.
[2009/04/24 17:47:07] <pheezy> maybe it's your virtualization :-/
[2009/04/24 17:47:17] <jrojas> ChoHag: that wouldnt be language related, was puppet running and actually doing work? it could be waiting for a process to finish up,
[2009/04/24 17:47:23] <grim_radical_> recompiling ruby with "--disable-pthreads" gave me about a 30% speedup right off the bat
[2009/04/24 17:47:27] <ChoHag> It's doing bugger all.
[2009/04/24 17:47:43] <ChoHag> Thw whole box is doing bugger all.
[2009/04/24 17:48:24] <grim_radical_> ChoHag: hmm...yeah, if there's no real CPU usage from puppet, then I don't know that Ruby itself is to blame
[2009/04/24 17:51:55] @ Quit: MrHeavy: "Ex-Chat"
[2009/04/24 17:53:03] <ChoHag> When does puppetd look for new facts?
[2009/04/24 17:53:11] <ChoHag> Other than being explicitely told to.
[2009/04/24 17:56:03] <jrojas> ChoHag: if factsync/pluginsync is enable on your client then it will check for new facts at every run
[2009/04/24 17:59:37] @ mconigliaro left channel #puppet ()
[2009/04/24 18:06:08] @ Quit: pheezy: "Leaving..."
[2009/04/24 18:06:57] <ChoHag> Why doesn't puppet see my new fact?
[2009/04/24 18:07:09] <ChoHag> facter only sees it if I set FACTERLIB.
[2009/04/24 18:08:56] <jrojas> ChoHag: are the new facts going into /var/lib/puppet/facts on the client?
[2009/04/24 18:09:02] <ChoHag> Yes.
[2009/04/24 18:09:09] <jrojas> then puppet should see them
[2009/04/24 18:09:17] @ rektide_ joined channel #puppet
[2009/04/24 18:11:10] <ChoHag> So I understand.
[2009/04/24 18:11:12] <ChoHag> But it doesn't.
[2009/04/24 18:21:40] @ atlan_ joined channel #puppet
[2009/04/24 18:22:43] @ Quit: ghenry: Read error: 104 (Connection reset by peer)
[2009/04/24 18:23:16] @ ezmob is now known as ezmob|away
[2009/04/24 18:25:03] @ Quit: rektide: Read error: 110 (Connection timed out)
[2009/04/24 18:27:08] <jrojas> lak: are you around?
[2009/04/24 18:27:13] <lak> kind of
[2009/04/24 18:27:43] <jrojas> lak: im having some trouble with plugins, they dont seem to be getting found, is there anything else I need besides the .rb file ?
[2009/04/24 18:27:55] <jrojas> and the path
[2009/04/24 18:28:22] <lak> can i have some more detail?
[2009/04/24 18:28:46] <jrojas> err. puppetmaster has pluginpath = /opt/puppet/development/plugins
[2009/04/24 18:29:08] <lak> grim_radical: did you see speedups from moving to Sets with the Catalog.edges variable, or the Vertexwrapper.adjacencies?
[2009/04/24 18:29:18] <lak> i had to change Catalog.edges back to an array so yaml-dumping actually works
[2009/04/24 18:29:20] <jrojas> plugins sync is being used, so under /opt/puppet/development/plugins, what should the dir scructure look like?
[2009/04/24 18:29:50] <lak> depends on the plugin, but something like $plugindir/puppet/type/$type.rb, for instance
[2009/04/24 18:30:07] <jrojas> thats what I have, is plugindir the same as plugin path?
[2009/04/24 18:30:17] <lak> yeah
[2009/04/24 18:30:20] <jrojas> i cant seem to get plugins loading from modules either,
[2009/04/24 18:30:28] <lak> 0.24.8?
[2009/04/24 18:30:32] <jrojas> yea
[2009/04/24 18:33:06] <jrojas> with the debug flag on for the puppetmaster logging i see, no plugins mount, creating default, and listing /plugins for host
[2009/04/24 18:33:10] @ Quit: atlan_: Remote closed the connection
[2009/04/24 18:33:24] @ keithlard joined channel #puppet
[2009/04/24 18:35:27] <grim_radical_> lak: I don't quite recall...let me look at the code
[2009/04/24 18:35:57] @ atlan_ joined channel #puppet
[2009/04/24 18:36:18] <grim_radical_> lak: actually, I think I changed both at the same time
[2009/04/24 18:36:30] <grim_radical_> are there typically more adjacencies than edges, or vice-versa?
[2009/04/24 18:36:35] <lak> yeah, your patch changed both
[2009/04/24 18:36:36] <lak> more edges
[2009/04/24 18:36:46] <lak> and the adjacency arrays/sets would normally be pretty small
[2009/04/24 18:36:54] <lak> but there aren't really a lot of operations on the edges array
[2009/04/24 18:37:14] <grim_radical_> lak: I say just change it to an array, and I can benchmark
[2009/04/24 18:37:20] <lak> done :)
[2009/04/24 18:37:26] <lak> i'll be publishing/merging imminently
[2009/04/24 18:37:46] <grim_radical_> 0.25 is so much faster than 0.24 that the @edges optimization might not really even matter anymore. :P
[2009/04/24 18:38:36] @ Quit: aymerick:
[2009/04/24 18:39:00] @ ezmob|away is now known as ezmob
[2009/04/24 18:43:56] @ Quit: madrescher: "Leaving."
[2009/04/24 18:49:32] @ Quit: Tuf8:
[2009/04/24 18:50:06] @ collier_s joined channel #puppet
[2009/04/24 18:55:34] @ Quit: mfoster: "Leaving."
[2009/04/24 19:03:51] @ Djelibeybi joined channel #puppet
[2009/04/24 19:12:37] <lak> :)
[2009/04/24 19:13:52] @ randybias|away is now known as randybias
[2009/04/24 19:15:45] @ Quit: Djelibeybi: "Leaving"
[2009/04/24 19:22:20] @ Quit: randybias: "Leaving..."
[2009/04/24 19:22:44] <jrojas> lak: i went into the code and added some logging lines to see what really is going on and I see this:
[2009/04/24 19:22:52] <jrojas> mount[plugins] (info): Describing isg-perl-001 for /opt/puppet/development/modules/plugins/files
[2009/04/24 19:23:51] <lak> do you have a path set for your plugins in your fileserver.conf?
[2009/04/24 19:23:58] <lak> sorry, i have to run :/
[2009/04/24 19:24:06] <lak> family time, then packing, then flying to london 12 hrs from now
[2009/04/24 19:24:09] <jrojas> pluginpath = /opt/puppet/development/plugins
[2009/04/24 19:24:16] <jrojas> not in fileserver no
[2009/04/24 19:24:26] <jrojas> ts ok
[2009/04/24 19:24:31] <jrojas> have a good time
[2009/04/24 19:24:54] <ChoHag> You can come here and fix my plugins.
[2009/04/24 19:27:50] @ rektide_ is now known as rektide
[2009/04/24 19:37:53] @ nakano_ is now known as nakano
[2009/04/24 19:40:46] <jrojas> lak: network/client/master.rb: # changed plugins, because Puppet::Type loads plugins on demand.
[2009/04/24 19:40:56] <jrojas> but I cant seem to find where it loads the plugins..
[2009/04/24 19:42:32] <lak> jrojas: look in util/autoloader.rb
[2009/04/24 19:43:43] <jrojas> k
[2009/04/24 19:44:56] @ Quit: claymation:
[2009/04/24 19:47:46] @ Quit: markl_: "Lost terminal"
[2009/04/24 19:48:36] @ Quit: lak:
[2009/04/24 19:49:51] @ edwardam joined channel #puppet
[2009/04/24 19:55:09] @ Quit: ezmob: "Bye!"
[2009/04/24 20:00:25] @ DavidS1 joined channel #puppet
[2009/04/24 20:03:32] @ plathrop joined channel #puppet
[2009/04/24 20:03:38] <plathrop> Oooh! A 0.25 beta? Sounds awesome.
[2009/04/24 20:04:28] @ Quit: cwebber:
[2009/04/24 20:04:55] @ cwebber joined channel #puppet
[2009/04/24 20:12:07] @ randybias joined channel #puppet
[2009/04/24 20:18:29] @ Quit: DavidS: Read error: 113 (No route to host)
[2009/04/24 20:27:06] @ Quit: cwebber: Connection timed out
[2009/04/24 20:31:50] @ randybias is now known as randybias|away
[2009/04/24 20:34:02] @ threetee joined channel #puppet
[2009/04/24 20:34:04] @ threetee left channel #puppet ()
[2009/04/24 20:36:25] @ randybias|away is now known as randybias
[2009/04/24 20:36:40] @ Quit: alfism: "Connection reset by beer"
[2009/04/24 20:50:47] <jamesturnbull> bda: see #2197
[2009/04/24 20:50:47] <gepetto> jamesturnbull: bda: #2197 is http://projects.reductivelabs.com/issues/show/2197 "Puppet - Bug #2197: Daemontools tests don't work - ReductiveLabs.com"
[2009/04/24 21:02:27] @ Quit: andrewcshafer:
[2009/04/24 21:03:50] @ Quit: edwardam: Remote closed the connection
[2009/04/24 21:03:55] @ randybias is now known as randybias|away
[2009/04/24 21:08:31] @ Quit: keithlard:
[2009/04/24 21:11:29] @ randybias|away is now known as randybias
[2009/04/24 21:18:09] @ peiriannydd joined channel #puppet
[2009/04/24 21:29:19] @ cwebber joined channel #puppet
[2009/04/24 21:33:42] @ Quit: pior: Read error: 60 (Operation timed out)
[2009/04/24 21:34:07] @ Quit: gaveen: Connection timed out
[2009/04/24 21:35:09] @ gaveen joined channel #puppet
[2009/04/24 21:42:46] @ Quit: WALoeIII: "Bai."
[2009/04/24 21:45:59] @ randybias is now known as randybias|away
[2009/04/24 21:50:33] @ peiriannydd left channel #puppet ()
[2009/04/24 21:51:47] @ Quit: cwebber:
[2009/04/24 21:57:49] @ Quit: gaveen: Read error: 110 (Connection timed out)
[2009/04/24 21:58:23] @ DavidS joined channel #puppet
[2009/04/24 21:59:41] @ PhabX joined channel #puppet
[2009/04/24 22:00:22] @ fujin joined channel #puppet
[2009/04/24 22:00:40] @ gaveen joined channel #puppet
[2009/04/24 22:15:52] @ Quit: DavidS1: Read error: 110 (Connection timed out)
[2009/04/24 22:17:00] @ Quit: fujin:
[2009/04/24 22:17:24] @ Quit: lutter: "Leaving."
[2009/04/24 22:18:45] @ andrewcshafer joined channel #puppet
[2009/04/24 22:24:23] @ randybias|away is now known as randybias
[2009/04/24 22:38:14] @ fujin joined channel #puppet
[2009/04/24 22:38:38] @ chip__ joined channel #puppet
[2009/04/24 22:40:14] @ cwebber joined channel #puppet
[2009/04/24 22:41:48] @ justdave_ is now known as justdave
[2009/04/24 22:52:08] @ Quit: atlan_: Read error: 110 (Connection timed out)
[2009/04/24 23:03:07] @ Quit: drmikecrowe: Read error: 110 (Connection timed out)
[2009/04/24 23:04:51] @ lak joined channel #puppet
[2009/04/24 23:08:58] <bda> jamesturnbull: I saw. I'll try to have a look at it this weekend.
[2009/04/24 23:19:39] @ justdave_ joined channel #puppet
[2009/04/24 23:20:27] @ Quit: justdave: Nick collision from services.
[2009/04/24 23:20:34] @ justdave_ is now known as justdave
[2009/04/24 23:20:56] @ Quit: lak:
[2009/04/24 23:32:34] @ shake-n-bake joined channel #puppet
[2009/04/24 23:41:26] @ Quit: PhabX: Remote closed the connection
[2009/04/24 23:43:51] @ erm_ joined channel #puppet
[2009/04/24 23:45:51] @ lak joined channel #puppet
[2009/04/24 23:55:12] @ Quit: cwebber:
[2009/04/24 23:56:13] @ Quit: lak:

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