Friday, 2010-03-12

[2010/03/12 00:02:50] @ Log started by gepetto
[2010/03/12 00:02:50] @ tjoe joined channel #puppet
[2010/03/12 00:02:59] <tjoe> how do you add a line to a file ?
[2010/03/12 00:03:23] <tjoe> like for example I'd like to add a line to /etc/auto.master
[2010/03/12 00:04:19] <justdave> tjoe: http://pastebin.mozilla.org/707724 <- there's how we do it
[2010/03/12 00:05:17] <tjoe> justdave: thanks mate
[2010/03/12 00:06:10] <justdave> reference that with something like http://pastebin.mozilla.org/707725
[2010/03/12 00:07:15] <justdave> if I do a "before" on an exec, will that make the exec actually have to run before its dependent, or only need to be checked first?
[2010/03/12 00:07:56] <justdave> I have one that may or may not actually run, but has to run before a different one if it does, and the dependent independently may or may not run, I just need to ensure the order if they both do
[2010/03/12 00:08:32] <justdave> (so I'm hoping that only means it gets checked first, and won't cause a failed dependency if it doesn't run)
[2010/03/12 00:09:13] @ Quit: Jiko: Remote host closed the connection
[2010/03/12 00:09:18] @ Jiko joined channel #puppet
[2010/03/12 00:17:10] @ Quit: captkirk: Ping timeout: 252 seconds
[2010/03/12 00:17:58] @ captkirk joined channel #puppet
[2010/03/12 00:25:17] @ Quit: rcrowley: Quit: rcrowley
[2010/03/12 00:26:58] @ Quit: rmiller4pi8: Ping timeout: 260 seconds
[2010/03/12 00:27:40] @ Quit: bug: Quit: bug
[2010/03/12 00:27:54] @ Quit: cliff-hm: Ping timeout: 260 seconds
[2010/03/12 00:32:02] @ Quit: OpenMedia: Quit: Leaving.
[2010/03/12 00:32:48] <justdave> the docs for the "logoutput" parameter for exec say "Values are true, false, on_failure, and any legal log level."
[2010/03/12 00:32:59] <justdave> thinking that "notify" is a log level, I used that as a value
[2010/03/12 00:33:11] <justdave> err: Could not run Puppet configuration client: Parameter logoutput failed: Invalid value "notify". Valid values are true, false, on_failure.
[2010/03/12 00:33:57] <justdave> http://docs.reductivelabs.com/references/stable/type.html#exec is the docs in question, in case there's more than one
[2010/03/12 00:36:20] @ Quit: Djelibeybi: Quit: Leaving
[2010/03/12 00:40:41] @ lak joined channel #puppet
[2010/03/12 00:43:09] @ bug joined channel #puppet
[2010/03/12 00:58:32] @ Quit: vzctl_: Remote host closed the connection
[2010/03/12 00:59:30] @ Quit: wbruce: Ping timeout: 252 seconds
[2010/03/12 01:02:44] @ JJA joined channel #puppet
[2010/03/12 01:07:59] @ Quit: JJA: Ping timeout: 265 seconds
[2010/03/12 01:20:24] @ webx joined channel #puppet
[2010/03/12 01:20:27] @ Quit: webx: Client Quit
[2010/03/12 01:27:17] @ artista_frustrad joined channel #puppet
[2010/03/12 01:31:58] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/03/12 01:45:55] @ m1nish joined channel #puppet
[2010/03/12 01:52:10] @ Brownoxford joined channel #puppet
[2010/03/12 01:52:57] @ alban2 joined channel #puppet
[2010/03/12 01:53:12] @ gaveen joined channel #puppet
[2010/03/12 01:54:52] @ Quit: Brown|afk: Ping timeout: 256 seconds
[2010/03/12 01:55:27] @ littleidea joined channel #puppet
[2010/03/12 02:08:18] @ cliff-hm joined channel #puppet
[2010/03/12 02:08:48] @ JJA joined channel #puppet
[2010/03/12 02:13:04] @ Quit: cliff-hm: Ping timeout: 265 seconds
[2010/03/12 02:13:37] @ Quit: Bass10: Ping timeout: 264 seconds
[2010/03/12 02:14:09] @ mealstrom joined channel #puppet
[2010/03/12 02:15:53] @ cliff-hm joined channel #puppet
[2010/03/12 02:26:34] @ Quit: lak: Quit: lak
[2010/03/12 02:27:55] @ kubicek joined channel #puppet
[2010/03/12 02:29:23] <ericlee> Hi, if I define a resource that a package ensure => installed what effect will happen?
[2010/03/12 02:35:44] @ giskard joined channel #puppet
[2010/03/12 02:40:21] @ Quit: vollmer: Ping timeout: 260 seconds
[2010/03/12 02:42:38] @ wbruce joined channel #puppet
[2010/03/12 02:43:56] @ Quit: biertie: Ping timeout: 245 seconds
[2010/03/12 02:44:22] @ Beaver joined channel #puppet
[2010/03/12 02:44:58] @ Quit: Beaver: Killed (idoru (Spam is off topic on freenode.))
[2010/03/12 02:45:25] @ vollmer joined channel #puppet
[2010/03/12 02:47:38] @ Quit: littleidea: Quit: littleidea
[2010/03/12 02:51:40] <whack> ericlee: the package will be installed if not already installed. If already installed, no effect.
[2010/03/12 02:52:48] @ Quit: ashp: Read error: Connection reset by peer
[2010/03/12 02:52:52] @ ashp joined channel #puppet
[2010/03/12 02:56:38] @ Quit: Spads: Ping timeout: 256 seconds
[2010/03/12 02:56:43] <ericlee> how does the package install?
[2010/03/12 02:56:53] <ericlee> if I use fedora.
[2010/03/12 02:58:54] <mealstrom> some package manager ?
[2010/03/12 02:59:00] @ angrox joined channel #puppet
[2010/03/12 02:59:20] @ DavidS joined channel #puppet
[2010/03/12 03:00:27] <DavidS> ohai!
[2010/03/12 03:02:30] <ericlee> maybe, but I cannot get clearly
[2010/03/12 03:03:03] <justdave> ericlee: if you're on fedora, it'll use yum unless you tell it otherwise
[2010/03/12 03:03:07] @ MattyM joined channel #puppet
[2010/03/12 03:03:15] <ericlee> after => Package[ssh], what's the mening?
[2010/03/12 03:03:19] <ericlee> *meaning.
[2010/03/12 03:03:26] <ericlee> justdave, I see. Thanks.
[2010/03/12 03:03:37] <justdave> that means it'll wait until after ssh is installed before doing that one
[2010/03/12 03:04:09] <ericlee> Ah, I see.
[2010/03/12 03:04:19] <ericlee> subscribe => [Package[ssh]] what's that?
[2010/03/12 03:04:42] <justdave> is that on a service?
[2010/03/12 03:05:23] <justdave> means if the ssh package gets updated, then whatever action that's listed on will do its refresh action (which usually means either a reload or a restart for services)
[2010/03/12 03:05:38] <ericlee> yes
[2010/03/12 03:05:59] <justdave> http://docs.reductivelabs.com/references/stable/metaparameter.html
[2010/03/12 03:07:16] @ pmorillo joined channel #puppet
[2010/03/12 03:07:57] <ericlee> okay, thanks.
[2010/03/12 03:11:30] @ ggillies_ joined channel #puppet
[2010/03/12 03:14:49] @ Quit: ggillies: Ping timeout: 264 seconds
[2010/03/12 03:15:56] @ Quit: giskard: Remote host closed the connection
[2010/03/12 03:24:34] @ ckauhaus joined channel #puppet
[2010/03/12 03:32:01] @ Quit: wbruce: Ping timeout: 265 seconds
[2010/03/12 03:40:58] @ pdilung joined channel #puppet
[2010/03/12 03:41:06] <pdilung> hello all :)
[2010/03/12 03:43:16] @ tim|macbook joined channel #puppet
[2010/03/12 03:43:42] @ giskard joined channel #puppet
[2010/03/12 03:48:32] @ gebi joined channel #puppet
[2010/03/12 03:50:00] @ Quit: pugnacity: Ping timeout: 252 seconds
[2010/03/12 03:50:51] @ pugnacity joined channel #puppet
[2010/03/12 03:53:10] @ Quit: ggillies_: Ping timeout: 240 seconds
[2010/03/12 03:54:21] @ ggillies joined channel #puppet
[2010/03/12 03:54:29] @ Spads joined channel #puppet
[2010/03/12 04:03:16] @ Quit: blahdeblah: Remote host closed the connection
[2010/03/12 04:03:31] @ Quit: madduck: Ping timeout: 248 seconds
[2010/03/12 04:05:11] @ danielbln joined channel #puppet
[2010/03/12 04:06:18] @ blahdeblah joined channel #puppet
[2010/03/12 04:06:48] @ Quit: blahdeblah: Client Quit
[2010/03/12 04:08:14] @ Quit: ricky: Ping timeout: 246 seconds
[2010/03/12 04:08:28] @ qwebirc56396 joined channel #puppet
[2010/03/12 04:11:03] @ TREllis joined channel #puppet
[2010/03/12 04:12:41] @ madduck joined channel #puppet
[2010/03/12 04:12:42] @ Quit: madduck: Changing host
[2010/03/12 04:12:42] @ madduck joined channel #puppet
[2010/03/12 04:12:53] @ crazynuxer joined channel #puppet
[2010/03/12 04:16:32] @ Quit: bug: Quit: bug
[2010/03/12 04:17:34] @ Quit: m1nish: Ping timeout: 276 seconds
[2010/03/12 04:17:40] @ ricky joined channel #puppet
[2010/03/12 04:25:12] @ Quit: nevyn: Ping timeout: 252 seconds
[2010/03/12 04:27:01] @ nevyn joined channel #puppet
[2010/03/12 04:29:21] @ Quit: tim|macbook: Ping timeout: 245 seconds
[2010/03/12 04:31:28] @ Quit: kubicek: Quit: kubicek
[2010/03/12 04:32:08] @ Quit: qwebirc56396: Quit: Page closed
[2010/03/12 04:34:04] @ kubicek joined channel #puppet
[2010/03/12 04:34:05] @ m1nish joined channel #puppet
[2010/03/12 04:37:27] @ nexx joined channel #puppet
[2010/03/12 04:37:58] @ tim|macbook joined channel #puppet
[2010/03/12 04:47:23] @ ffrank joined channel #puppet
[2010/03/12 04:48:41] <ffrank> hi. i installed 0.25.4 using install.rb, but puppetd --test apparently ignores my /etc/puppet/puppetd.conf. how can i tell what configs it tries to parse? error is "No such file or directory - /var/puppet/state/puppetdlock" (which is due to the wrong vardir)
[2010/03/12 04:49:12] <DavidS> puppetd.conf is deprecated since ages
[2010/03/12 04:49:58] <ffrank> ah, that would explain that then :)
[2010/03/12 04:50:48] <ffrank> i'm mostly running 24.5 as that's what's in debian stable. so i'm not exactly cutting edge normally...
[2010/03/12 04:50:55] @ shug joined channel #puppet
[2010/03/12 04:52:00] @ Quit: pdilung: Ping timeout: 252 seconds
[2010/03/12 04:54:30] <ffrank> so, how do i specify vardir now? neither wiki nor --help is exactly useful here..
[2010/03/12 04:58:06] <tim|macbook> ffrank: /etc/puppet/puppet.conf
[2010/03/12 05:01:43] @ ohadlevy left channel #puppet ()
[2010/03/12 05:02:41] <DavidS> news-at-11: microsoft can't decode base64 ...
[2010/03/12 05:03:03] <ffrank> tim|macbook: thanks
[2010/03/12 05:07:29] @ mattwynne joined channel #puppet
[2010/03/12 05:09:33] <Jeff__> i'm trying to admin my windows machines by puppet..., because puppet doesn't support windows i've used cygwin to support the puppet agent.. package manager that i know in cygwin is cyg-apt.. too bad that provider isn't supported in puppet ... any ideas how where to begin to make your own provider? or any different way to manage windows machines?
[2010/03/12 05:15:49] <tim|macbook> Jeff__: simply switch to a real OS ;-)
[2010/03/12 05:16:06] <tim|macbook> but I don't think anyone else in the puppet community is doing anything with puppet+windows
[2010/03/12 05:16:27] <tim|macbook> you could check out the other providers for packages and try to see if you can easily adapt one for cyg-apt
[2010/03/12 05:17:25] <ffrank> does the puppet source have an equivalent of "make uninstall"?
[2010/03/12 05:17:44] @ Quit: cliff-hm: Ping timeout: 256 seconds
[2010/03/12 05:18:31] @ monachus is now known as monachus_
[2010/03/12 05:23:11] @ Quit: mattwynne: Ping timeout: 265 seconds
[2010/03/12 05:24:12] @ mattwynne joined channel #puppet
[2010/03/12 05:26:32] @ cliff-hm joined channel #puppet
[2010/03/12 05:30:30] @ PsychoSid joined channel #puppet
[2010/03/12 05:33:38] @ Quit: cliff-hm: Ping timeout: 248 seconds
[2010/03/12 05:35:00] @ giskard_ joined channel #puppet
[2010/03/12 05:37:03] @ Quit: giskard: Ping timeout: 276 seconds
[2010/03/12 05:40:04] @ sim2409_ joined channel #puppet
[2010/03/12 05:43:07] @ cliff-hm joined channel #puppet
[2010/03/12 05:43:43] @ Quit: mattwynne: Remote host closed the connection
[2010/03/12 05:46:09] @ Quit: m1nish: Ping timeout: 276 seconds
[2010/03/12 05:48:38] @ cTaPuK joined channel #puppet
[2010/03/12 05:48:54] @ Quit: cliff-hm: Ping timeout: 256 seconds
[2010/03/12 05:56:26] <Jeff__> ;) thnx tim
[2010/03/12 05:57:31] @ Quit: sim2409_: Quit: Verlassend
[2010/03/12 05:57:42] @ cliff-hm joined channel #puppet
[2010/03/12 05:59:57] @ Quit: jfryman: Ping timeout: 268 seconds
[2010/03/12 06:00:43] @ Quit: _lunix_: Ping timeout: 240 seconds
[2010/03/12 06:02:58] @ Quit: cliff-hm: Ping timeout: 248 seconds
[2010/03/12 06:03:20] @ jfryman joined channel #puppet
[2010/03/12 06:03:40] @ m1nish joined channel #puppet
[2010/03/12 06:10:31] @ Quit: shug: Quit: Leaving
[2010/03/12 06:17:14] @ mattwynne joined channel #puppet
[2010/03/12 06:19:12] @ Quit: mattwynne: Remote host closed the connection
[2010/03/12 06:21:29] @ Quit: PsychoSid: Quit: Leaving.
[2010/03/12 06:28:53] @ Quit: kubicek: Quit: kubicek
[2010/03/12 06:29:41] @ morphic joined channel #puppet
[2010/03/12 06:33:35] @ PsychoSid joined channel #puppet
[2010/03/12 06:41:30] @ monachus_ is now known as monachus
[2010/03/12 06:41:48] <Volcane> madduck: what version puppet you on?
[2010/03/12 06:42:51] <madduck> 0.25.4
[2010/03/12 06:42:54] <madduck> Volcane: ^
[2010/03/12 06:42:58] <madduck> (why?)
[2010/03/12 06:43:09] <Volcane> was looking for a 0.24 tester
[2010/03/12 06:48:17] @ cliff-hm joined channel #puppet
[2010/03/12 06:55:50] @ Quit: Pirate_Hunter: Quit: Oh nO! wHo pUlleD ThE pLUg?
[2010/03/12 06:57:50] @ suchu joined channel #puppet
[2010/03/12 07:00:51] @ bug joined channel #puppet
[2010/03/12 07:01:09] @ Quit: cliff-hm: Ping timeout: 240 seconds
[2010/03/12 07:01:57] @ Quit: robinbowes: Quit: Leaving
[2010/03/12 07:06:17] @ cliff-hm joined channel #puppet
[2010/03/12 07:06:38] @ sbrock__ is now known as sbrock
[2010/03/12 07:10:41] @ Quit: maxagaz: Quit: Ex-Chat
[2010/03/12 07:11:18] @ Quit: m1nish: Ping timeout: 252 seconds
[2010/03/12 07:11:26] @ ahasenack joined channel #puppet
[2010/03/12 07:13:37] @ kolla joined channel #puppet
[2010/03/12 07:14:21] @ artista_frustrad joined channel #puppet
[2010/03/12 07:15:11] @ Quit: cTaPuK:
[2010/03/12 07:15:40] @ robinbowes joined channel #puppet
[2010/03/12 07:20:27] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/03/12 07:23:15] <madduck> Volcane: extlookup is just ♥
[2010/03/12 07:23:16] <madduck> thanks
[2010/03/12 07:23:54] <Volcane> is just?
[2010/03/12 07:23:58] @ m1nish joined channel #puppet
[2010/03/12 07:26:51] <kjetilho> <3
[2010/03/12 07:30:37] @ Quit: suchu: Quit: ChatZilla 0.9.86 [Firefox 3.5.8/20100202165920]
[2010/03/12 07:32:25] <kjetilho> is there a tool which can check a tree of Puppet classes for duplicate definitions?
[2010/03/12 07:33:44] <kjetilho> it's a bit hard to do with conditionals... I guess I'll have to wing it with some Perl-parsing :)
[2010/03/12 07:46:12] @ rasputnik joined channel #puppet
[2010/03/12 07:46:37] @ Quit: morphic: Ping timeout: 264 seconds
[2010/03/12 07:47:25] @ fzzzt joined channel #puppet
[2010/03/12 07:52:10] @ kubicek joined channel #puppet
[2010/03/12 07:53:04] @ benlovell joined channel #puppet
[2010/03/12 07:54:58] @ Quit: erm_: Ping timeout: 248 seconds
[2010/03/12 07:56:32] @ _lunix_ joined channel #puppet
[2010/03/12 08:01:36] @ littleidea joined channel #puppet
[2010/03/12 08:01:54] @ Quit: gebi: Ping timeout: 248 seconds
[2010/03/12 08:03:58] @ Quit: littleidea: Client Quit
[2010/03/12 08:06:47] @ erm_ joined channel #puppet
[2010/03/12 08:09:52] @ Quit: hamish: Remote host closed the connection
[2010/03/12 08:10:09] @ hamish joined channel #puppet
[2010/03/12 08:13:58] <robinbowes> kjetilho: how do you mean?
[2010/03/12 08:14:56] @ littleidea joined channel #puppet
[2010/03/12 08:15:06] @ Quit: littleidea: Client Quit
[2010/03/12 08:15:50] <kjetilho> robinbowes: given a .pp file, list File["foo", "bar", "zot"]
[2010/03/12 08:16:23] <kjetilho> would be very useful when pulling resources into common modules
[2010/03/12 08:21:54] @ Bass10 joined channel #puppet
[2010/03/12 08:28:00] @ Quit: mealstrom: Ping timeout: 276 seconds
[2010/03/12 08:28:03] @ Quit: benlovell: Quit: benlovell
[2010/03/12 08:28:52] <madduck> Volcane: there was a heart. ;)
[2010/03/12 08:35:02] @ rmiller4pi8 joined channel #puppet
[2010/03/12 08:36:11] <ffrank> is that ascii btw?
[2010/03/12 08:37:46] @ uphillian joined channel #puppet
[2010/03/12 08:39:01] <madduck> unicode, ffrank
[2010/03/12 08:42:55] @ Quit: MattyM: Quit: ta ta
[2010/03/12 08:50:53] <madduck> Volcane: so extlookup falls through to a default file if no better matching file is found, but not if it cannot find the requested key in the host-specific file, eh?
[2010/03/12 08:51:21] <Volcane> if it cant find the key
[2010/03/12 08:52:17] @ Quit: erm_: Ping timeout: 245 seconds
[2010/03/12 08:53:16] <madduck> … then it returns failure or the alternative specified in the extlookup() call, Volcane?
[2010/03/12 08:53:37] <Volcane> it tries the files first in order
[2010/03/12 08:53:48] <Volcane> if any files - even the default file - has it, that will be returned
[2010/03/12 08:53:53] <Volcane> if no file has it, the one you specify in the code
[2010/03/12 08:54:10] <madduck> that is not the behaviour I am seeing, using extlookup from DavidS's common module
[2010/03/12 08:54:19] @ benlovell joined channel #puppet
[2010/03/12 08:54:32] @ MattyM joined channel #puppet
[2010/03/12 08:55:02] <Volcane> pastie what u have
[2010/03/12 08:56:05] <madduck> actually, this is even weirder.
[2010/03/12 08:56:46] <madduck> Volcane: http://slexy.org/view/s20uEuPg7u
[2010/03/12 08:58:34] <Volcane> where do you have those $extlookup_* vars and where do you set $debian_suite? like what files etc?
[2010/03/12 08:59:10] <madduck> both in site.pp, extlookup in global scope, and the other stuff is in the debiannode node class, from which piper.* inherits
[2010/03/12 09:00:02] <madduck> it works if i move the extlookup to global scope
[2010/03/12 09:00:28] <Volcane> the actual extlookup calls shouldnt generally be in global scope - it doesnt get parsed all the time and vars like $fqdn is undefined
[2010/03/12 09:01:00] <Volcane> dont think I ever tried it in node inherited classes there might be some weirdness with how the scope works
[2010/03/12 09:01:44] <Volcane> anyway. i dont understand your shell prompt
[2010/03/12 09:01:49] <Volcane> so not sure what directories are you in
[2010/03/12 09:01:59] <madduck> /etc/puppet/extlookup
[2010/03/12 09:02:10] <Volcane> whats the 'master' bit in your prompt?
[2010/03/12 09:02:17] <madduck> anyway, now i moved it all into the node definition and now it correctly reads 'sid' for piper
[2010/03/12 09:02:23] <duritong> wtf. my mails to the list get messed up
[2010/03/12 09:02:27] <madduck> Volcane: the current Git branch
[2010/03/12 09:02:30] <Volcane> ah
[2010/03/12 09:02:37] <madduck> but all the other hosts, the ones that should get DEFAULT, get ""
[2010/03/12 09:02:41] <madduck> well, "foo"
[2010/03/12 09:03:04] <madduck> Volcane: http://madduck.net/blog/2008.05.07:adding-vcs-information-to-the-zsh-prompt/
[2010/03/12 09:05:09] @ Quit: pugnacity: Ping timeout: 240 seconds
[2010/03/12 09:05:24] @ Quit: afletcher: Quit: afletcher
[2010/03/12 09:08:00] <Volcane> might be related to using it in the inherited base class, puppets scape is weird at best of times :(
[2010/03/12 09:11:08] @ crazynuxer1 joined channel #puppet
[2010/03/12 09:12:28] @ Quit: swygue: Quit: Ex-Chat
[2010/03/12 09:13:22] @ Quit: crazynuxer: Ping timeout: 260 seconds
[2010/03/12 09:13:42] @ crazynuxer1 is now known as crazynuxer
[2010/03/12 09:14:26] @ Quit: jmccune: Ping timeout: 248 seconds
[2010/03/12 09:15:08] <masterzen> duritong: I'm not sure it is me or you, but your puppet-users mail looks empty on my side...
[2010/03/12 09:16:51] <Volcane> empty to me too yeah
[2010/03/12 09:17:42] <DavidS> masterzen: duritong: mee too
[2010/03/12 09:18:01] <madduck> well, Volcane actually, it is available in a class included from the same node as the extlookup() call, just not in the node itself.
[2010/03/12 09:18:16] <madduck> Volcane: puppet's scope is what I should call arbitrary
[2010/03/12 09:18:50] <Volcane> madduck: if its just a class then it shoud be fine cos i use it 100s of times just like that
[2010/03/12 09:19:36] <Volcane> best option is to add a few Puppet.debug(...) lines to extlookup.rb to make sure its seeing your right files etc
[2010/03/12 09:19:53] <Volcane> which sux, but puppets scope is on par with debugging problems :P
[2010/03/12 09:20:00] @ Quit: JJA: Ping timeout: 252 seconds
[2010/03/12 09:20:16] @ Quit: bug: Quit: bug
[2010/03/12 09:20:35] <madduck> i cannot simply wrap what I am using into a class defined inside the node and include that class. stink.
[2010/03/12 09:20:54] @ erm_ joined channel #puppet
[2010/03/12 09:22:30] <madduck> nor define the class using the variable outside the node scope, define the variable inside, and then use it.
[2010/03/12 09:22:47] <Volcane> well it might not be a scope issue at all, you might have something else wrong
[2010/03/12 09:22:49] <madduck> i guess somehow i need to ensure that extlookup() is called first think
[2010/03/12 09:22:50] <madduck> thing
[2010/03/12 09:22:59] <Volcane> the thing to do is to print in extlookup.rb what its seeing as fqdn and domain etc
[2010/03/12 09:23:22] <Volcane> extlookup should be able to be called anywhere except in site.pp generally - or anywhere in the global scope really
[2010/03/12 09:23:47] <Volcane> its like a global variable that changes its value based on where you use it, should be usable anywhere
[2010/03/12 09:23:52] @ Quit: crazynuxer: Ping timeout: 252 seconds
[2010/03/12 09:25:00] <madduck> well, I only really want extlookup in the nodes though, so site.pp
[2010/03/12 09:25:17] <Volcane> works inside node {} blocks
[2010/03/12 09:25:45] @ morphic joined channel #puppet
[2010/03/12 09:26:09] <Volcane> where do you use this debian suite variable that you're setting? also just in the node block?
[2010/03/12 09:28:22] <madduck> Volcane: http://slexy.org/view/s2k81pHdoJ — it works fine inside the apt class, but not in the apt::repository type
[2010/03/12 09:29:41] <Volcane> your $extlookup_* vars should be in site.pp top of the file outside of any node/class blocks
[2010/03/12 09:30:21] <madduck> i tried that before, same problem Volcane
[2010/03/12 09:30:59] <Volcane> well then u need to add the debug bits i mentioned, cos that works for me
[2010/03/12 09:32:37] <duritong> masterzen: Volcane DavidS 15:02 < duritong> wtf. my mails to the list get messed up
[2010/03/12 09:33:20] <masterzen> duritong: I should have scrolled back...
[2010/03/12 09:34:12] <duritong> anyway I wanted to point out that maybe filebuckets might be the cause?
[2010/03/12 09:34:52] <duritong> and that also #2899 might be related
[2010/03/12 09:34:52] <gepetto> duritong: #2899 is http://projects.reductivelabs.com/issues/show/2899 "Puppet - Bug #2899: puppetd checks client files recursively even if they aren't specified - ReductiveLabs.com"
[2010/03/12 09:35:54] @ webx joined channel #puppet
[2010/03/12 09:37:41] @ giskard_ is now known as giskard
[2010/03/12 09:38:13] <webx> if I'm getting an error that says "fileserver module '<modulename>' not mounted" is there anything obvious that's causing the error
[2010/03/12 09:38:16] @ Quit: ggillies: Ping timeout: 268 seconds
[2010/03/12 09:38:55] @ pheezy joined channel #puppet
[2010/03/12 09:39:59] <webx> http://pastie.org/866557
[2010/03/12 09:40:09] <madduck> is there *ANYTHING* ruby syntax actually didn't reinvent??
[2010/03/12 09:40:28] <webx> I have other puppet servers with the exact same setup, so I'm guessing it's something other than fileserver.conf
[2010/03/12 09:40:40] @ pugnacity joined channel #puppet
[2010/03/12 09:40:57] @ prekitt_ joined channel #puppet
[2010/03/12 09:41:44] @ Quit: sunny: Ping timeout: 245 seconds
[2010/03/12 09:42:23] <webx> gq test
[2010/03/12 09:42:42] @ ggillies joined channel #puppet
[2010/03/12 09:43:40] @ sunny joined channel #puppet
[2010/03/12 09:43:49] @ afletcher joined channel #puppet
[2010/03/12 09:44:00] @ Quit: prekitt: Ping timeout: 265 seconds
[2010/03/12 09:45:29] <madduck> with debugging, I can confirm that datafiles is "/etc/puppet/extdata/vera.madduck.net.csv /etc/puppet/extdata/DOMAIN_madduck.net.csv /etc/puppet/extdata/DEFAULT.csv", but that result is empty and hence result.length > 0 never branches.
[2010/03/12 09:45:34] <madduck> Volcane: ^^
[2010/03/12 09:46:54] @ Quit: ckauhaus: Ping timeout: 268 seconds
[2010/03/12 09:47:04] <Volcane> try debug print the csv structure it builds when reading those files?
[2010/03/12 09:47:11] <Volcane> can it read the files?
[2010/03/12 09:47:11] @ mrchucho joined channel #puppet
[2010/03/12 09:48:19] @ stahnma_ joined channel #puppet
[2010/03/12 09:48:20] @ Quit: stahnma_: Changing host
[2010/03/12 09:48:20] @ stahnma_ joined channel #puppet
[2010/03/12 09:48:35] <madduck> i wish i'd know how to make puppet do stuff. ruby drives me up the walls
[2010/03/12 09:48:36] @ Quit: stahnma: Ping timeout: 276 seconds
[2010/03/12 09:48:51] <mrchucho> if I have a module that needs to install an RPM, I assume I can put that rpm in the /files directory of the module then use source: "puppet:///<modulename>/<rpm>", right?
[2010/03/12 09:49:25] <Volcane> mrchucho: nope
[2010/03/12 09:49:32] <mrchucho> Volcane: doh
[2010/03/12 09:49:39] <madduck> it can read the files
[2010/03/12 09:49:52] <madduck> okay wait. it cannot
[2010/03/12 09:50:00] <madduck> DEFAULT.csv, not just DEFAULT
[2010/03/12 09:50:02] <madduck> ARGH
[2010/03/12 09:50:14] <mrchucho> Volcane: am I missing something?
[2010/03/12 09:50:15] @ Quit: Risar: Ping timeout: 252 seconds
[2010/03/12 09:50:27] <Volcane> mrchucho: yup, puppet will just tell rpm the url you give it
[2010/03/12 09:50:30] @ wastrel__ joined channel #puppet
[2010/03/12 09:50:40] <Volcane> mrchucho: urls, paths, etc. should be something rpm understand
[2010/03/12 09:51:05] <Volcane> madduck: heh i missed that yeah in your paste
[2010/03/12 09:51:24] @ Quit: wastrel__: Client Quit
[2010/03/12 09:51:55] <mrchucho> Volcane: so I probably need a file resource for the rpm, then use that for the package resource?
[2010/03/12 09:52:04] <zeroXten> quick question - is it possible to prioritize the order in which puppetd does things? so for a new machine the first thing I would want is the firewall setup then for services to be installed/configured/started?
[2010/03/12 09:52:08] @ systest joined channel #puppet
[2010/03/12 09:52:27] <Volcane> mrchucho: really I think you wouldnt want to copy rpms - unles they're very small - out using puppet file resources cos it sux at it
[2010/03/12 09:52:30] @ Quit: wastrel: Ping timeout: 276 seconds
[2010/03/12 09:52:48] <DavidS> zeroXten: you can run puppetd multiple times using --tags or specify hard dependencies between the classes
[2010/03/12 09:52:53] @ Quit: stahnma_: Ping timeout: 265 seconds
[2010/03/12 09:53:06] @ Risar joined channel #puppet
[2010/03/12 09:53:26] <mrchucho> Volcane: yeah, its a very small rpm -- it's just the postgres repo. rpm. In other words, I'm using puppet to install the rpm that sets up the repo
[2010/03/12 09:53:45] @ stahnma joined channel #puppet
[2010/03/12 09:53:46] @ Quit: stahnma: Changing host
[2010/03/12 09:53:47] @ stahnma joined channel #puppet
[2010/03/12 09:53:48] <Volcane> sounds like you should jsut use yumrepo :)
[2010/03/12 09:54:27] <zeroXten> hmm, thanks DavidS
[2010/03/12 09:54:31] <mrchucho> Volcane: yeah... I guess I should
[2010/03/12 09:55:04] <madduck> Volcane: i feel a bit silly now; thanks for your help
[2010/03/12 09:55:15] <Volcane> madduck: no worries :)
[2010/03/12 09:55:45] @ scroogie joined channel #puppet
[2010/03/12 09:56:25] <systest> Looking at the templating docs shows ruby embedded in a temple with both "<% ... %>" and "<% ... -%>". Whats the difference between closing with "%>" versus "-%>
[2010/03/12 09:56:34] @ bug joined channel #puppet
[2010/03/12 09:56:53] @ tecto joined channel #puppet
[2010/03/12 09:58:16] @ Quit: webx: Quit: [BX] I got sucked into /dev/null!
[2010/03/12 09:58:30] <DavidS> systest: -%> swallows the \n after it
[2010/03/12 09:59:02] <systest> DavidS: cool, thanks
[2010/03/12 09:59:34] <DavidS> systest: see any plain ERB templating tutorial for more info on the syntax
[2010/03/12 09:59:54] <Jenza> I didn't think the standard ERB templating used the -%>
[2010/03/12 09:59:59] <systest> was looking in http://ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html but didn't see it
[2010/03/12 10:00:04] <Jenza> someone said it was a puppet special
[2010/03/12 10:00:17] @ Quit: gaveen: Quit: Leaving
[2010/03/12 10:00:26] @ mvn071 joined channel #puppet
[2010/03/12 10:00:29] <DavidS> meh, no idea
[2010/03/12 10:00:59] <Jenza> I had the same issue a few weeks ago
[2010/03/12 10:01:02] <Jenza> <3 -%>
[2010/03/12 10:01:41] <scroogie> yeah, me to.
[2010/03/12 10:01:42] <scroogie> it
[2010/03/12 10:01:46] <scroogie> it's not ERB
[2010/03/12 10:01:51] <scroogie> at least afaik
[2010/03/12 10:02:02] <madduck> Volcane: can you think of a way to have extlookup return boolean values for 0/1/yes/no/true/false ?
[2010/03/12 10:02:09] <madduck> or do i really need to deal with strings?
[2010/03/12 10:02:12] <Volcane> not without code changes :)
[2010/03/12 10:02:25] @ JJA joined channel #puppet
[2010/03/12 10:02:27] <madduck> yeah sure, but how?
[2010/03/12 10:02:33] <madduck> extlookup_boolean ?
[2010/03/12 10:02:35] <fzzzt> huh, i never noticed the remote value for recurse before
[2010/03/12 10:03:02] <Volcane> if val =~ /(0|no|false)/ { val = false }
[2010/03/12 10:03:03] <Volcane> etc
[2010/03/12 10:03:22] <Volcane> if u wanted your extlookup to always behave that way it wont be hard
[2010/03/12 10:04:36] <madduck> Volcane: so a wrapper extlookup_boolean it is, eh?
[2010/03/12 10:05:03] <Volcane> i mean if you just want extlookup to treat those specially, just pop it into its code to do that
[2010/03/12 10:05:09] @ Quit: benlovell: Quit: benlovell
[2010/03/12 10:05:20] <madduck> Volcane: would you accept the patch?
[2010/03/12 10:05:52] <Volcane> probably not soething I want it to do by default :)
[2010/03/12 10:06:00] <madduck> that said, where is the canonical location for extlookup.rb?
[2010/03/12 10:06:07] @ notbrien joined channel #puppet
[2010/03/12 10:06:14] <madduck> Volcane: so a wrapper like extlookup_boolean would make more sense
[2010/03/12 10:06:25] <madduck> i am a huge fan of zero diversion from upstream
[2010/03/12 10:07:22] @ Quit: rmiller4pi8: Ping timeout: 240 seconds
[2010/03/12 10:07:30] <Volcane> yeah probably
[2010/03/12 10:07:43] <Volcane> madduck: not something you year debian people say, like ever.
[2010/03/12 10:08:41] @ webx joined channel #puppet
[2010/03/12 10:08:48] <madduck> yeah, we're known for other stuff. ask the mozilla people. ;)
[2010/03/12 10:09:50] @ Quit: DavidS: Read error: Connection reset by peer
[2010/03/12 10:09:55] <scroogie> does someone here have modification access to the puppet bugtracker?
[2010/03/12 10:09:55] <madduck> Volcane: so where is "upstream" for extlookup.rb?
[2010/03/12 10:10:16] @ mpdehaan joined channel #puppet
[2010/03/12 10:10:17] @ Mode +v mpdehaan by ChanServ
[2010/03/12 10:10:18] @ mpdehaan_ joined channel #puppet
[2010/03/12 10:11:46] <madduck> how do i write a ruby wrapper function? how do I just pass all arguments onwards?
[2010/03/12 10:12:55] <webx> not sure if anyone responded to this, as I was having a bitch of a time getting emulation right for ansi and disconnected a bunch of times
[2010/03/12 10:13:02] <webx> http://pastie.org/866557
[2010/03/12 10:13:25] <webx> any idea what may be causing the fileserver module to not mount?
[2010/03/12 10:17:30] @ eidolon joined channel #puppet
[2010/03/12 10:17:39] @ Quit: morphic: Ping timeout: 240 seconds
[2010/03/12 10:17:52] @ unxfrek joined channel #puppet
[2010/03/12 10:19:06] @ ggillies_ joined channel #puppet
[2010/03/12 10:20:10] @ littleidea joined channel #puppet
[2010/03/12 10:22:13] <barn> littleidea: well done on the running
[2010/03/12 10:22:36] @ Quit: ggillies: Ping timeout: 256 seconds
[2010/03/12 10:23:23] <littleidea> barn: thanks, now I have to take my son to school and get back to see Matz :/
[2010/03/12 10:23:35] @ Quit: mpdehaan_: Quit: Leaving
[2010/03/12 10:23:38] <barn> then why are you on IRC? (:
[2010/03/12 10:23:56] <littleidea> just popped on the check mail
[2010/03/12 10:24:01] <madduck> Volcane: http://scratch.madduck.net/__tmp__extlookup_boolean.rb next to extlookup.rb,, mode 644, but puppetmaster does not seem to care: "Unknown function extlookup_boolean"
[2010/03/12 10:24:14] <littleidea> 'to check' that is
[2010/03/12 10:26:03] @ Quit: notbrien: Quit: notbrien
[2010/03/12 10:26:19] @ rgsteele joined channel #puppet
[2010/03/12 10:27:41] @ rmiller4pi8 joined channel #puppet
[2010/03/12 10:29:38] @ Quit: jheiss: Quit: jheiss
[2010/03/12 10:30:22] @ jheiss joined channel #puppet
[2010/03/12 10:32:43] @ Quit: choc: Quit: changing servers
[2010/03/12 10:33:16] @ notbrien joined channel #puppet
[2010/03/12 10:34:24] @ ggillies joined channel #puppet
[2010/03/12 10:35:25] @ ggillies1 joined channel #puppet
[2010/03/12 10:36:02] @ Quit: rmiller4pi8: Quit: Leaving.
[2010/03/12 10:37:14] @ rmiller4pi8 joined channel #puppet
[2010/03/12 10:37:37] @ Quit: ggillies_: Ping timeout: 264 seconds
[2010/03/12 10:38:24] @ swygue joined channel #puppet
[2010/03/12 10:38:32] @ cwebber joined channel #puppet
[2010/03/12 10:39:17] @ Quit: ggillies: Ping timeout: 265 seconds
[2010/03/12 10:39:40] @ mikepea joined channel #puppet
[2010/03/12 10:39:44] @ ggillies joined channel #puppet
[2010/03/12 10:40:44] @ ggillies_ joined channel #puppet
[2010/03/12 10:42:38] @ lak joined channel #puppet
[2010/03/12 10:43:09] @ Quit: ggillies1: Ping timeout: 265 seconds
[2010/03/12 10:44:00] @ ggillies1 joined channel #puppet
[2010/03/12 10:44:36] @ Quit: ggillies: Ping timeout: 265 seconds
[2010/03/12 10:45:22] @ Quit: n0ts: Ping timeout: 264 seconds
[2010/03/12 10:45:31] @ n0ts joined channel #puppet
[2010/03/12 10:46:03] @ Quit: ggillies_: Ping timeout: 265 seconds
[2010/03/12 10:46:57] <madduck> can someone please provide a clue for a ruby newbie? http://scratch.madduck.net/__tmp__extlookup_boolean.rb yields "odd number list for Hash" for the two if/elsif lines, why?
[2010/03/12 10:47:04] @ PsychoSid1 joined channel #puppet
[2010/03/12 10:47:47] @ Quit: littleidea: Quit: littleidea
[2010/03/12 10:48:17] @ Quit: PsychoSid: Ping timeout: 265 seconds
[2010/03/12 10:50:08] <mpdehaan> madduck, traceback to pastebin.com ?
[2010/03/12 10:50:16] @ rcrowley joined channel #puppet
[2010/03/12 10:50:23] <madduck> fixed. i was using {} to declare scope.
[2010/03/12 10:50:26] <madduck> reload
[2010/03/12 10:51:14] <scroogie> yeah, i was just about to say that
[2010/03/12 10:51:20] <scroogie> ruby interprets {} as hashes
[2010/03/12 10:51:36] <madduck> yeah, so now I have http://scratch.madduck.net/__tmp__extlookup_boolean.rb, and ruby parses that
[2010/03/12 10:51:46] <madduck> but puppetmaster says: SERVER: Unknown function extlookup
[2010/03/12 10:52:09] <madduck> http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions says to call functions from functions I just need to call function_extlookup
[2010/03/12 10:53:32] @ Quit: vollmer: Changing host
[2010/03/12 10:53:32] @ vollmer joined channel #puppet
[2010/03/12 10:54:32] <madduck> this is so demoralising
[2010/03/12 10:55:36] @ Quit: lak: Quit: lak
[2010/03/12 10:56:12] <scroogie> mhm
[2010/03/12 10:56:21] <scroogie> so puppet doesn't see the function
[2010/03/12 10:56:40] <madduck> the extlookup function
[2010/03/12 10:56:46] <madduck> not the extlookup_boolean function
[2010/03/12 10:56:58] <madduck> w
[2010/03/12 10:57:40] @ choc joined channel #puppet
[2010/03/12 10:57:44] @ Quit: lupi: Ping timeout: 246 seconds
[2010/03/12 10:58:40] @ lupi joined channel #puppet
[2010/03/12 10:59:41] <scroogie> so what are you calling?
[2010/03/12 10:59:44] <scroogie> i don't understand it yet
[2010/03/12 10:59:52] <scroogie> you call extlookup or extlookup_boolean?
[2010/03/12 11:00:06] <madduck> calling extlookup_boolean from the manifest, which is supposed to call extlookup
[2010/03/12 11:00:10] <madduck> http://scratch.madduck.net/__tmp__extlookup_boolean.rb
[2010/03/12 11:03:33] <scroogie> does requiring extlookup help?
[2010/03/12 11:03:38] <madduck> nope
[2010/03/12 11:03:51] <madduck> neither just "require 'extlookup'" nor with the full path
[2010/03/12 11:04:12] @ Quit: jheiss: Quit: jheiss
[2010/03/12 11:05:43] @ Quit: uphillian: Quit: Leaving.
[2010/03/12 11:06:09] <scroogie> did you try in irb if Parser knows extlookup after requiring it?
[2010/03/12 11:06:20] * madduck installs irb
[2010/03/12 11:06:50] <madduck> irb(main):003:0> require '/etc/puppet/modules/common/lib/puppet/parser/functions/extlookup_boolean.rb'
[2010/03/12 11:06:53] <madduck> => false
[2010/03/12 11:07:03] <madduck> oh wait, it was true the first time
[2010/03/12 11:07:08] <madduck> i accidentally did it twice
[2010/03/12 11:07:13] <madduck> irb(main):004:0> Puppet::Parser::Functions.function(:extlookup_boolean)
[2010/03/12 11:07:14] <madduck> => "function_extlookup_boolean"
[2010/03/12 11:07:19] <madduck> looks good
[2010/03/12 11:07:20] <scroogie> and extlookup?
[2010/03/12 11:07:41] <madduck> irb(main):006:0> Puppet::Parser::Functions.function(:extlookup)
[2010/03/12 11:07:41] <madduck> => "function_extlookup"
[2010/03/12 11:07:44] <scroogie> mhm
[2010/03/12 11:07:47] <madduck> after requiring it with full path too
[2010/03/12 11:07:51] <scroogie> weird
[2010/03/12 11:07:59] <scroogie> dont know
[2010/03/12 11:08:17] <madduck> on the positive side of things, i am really happily surprised ruby devs decided to keep if/then/else rather to invent something totally new and counter-intuitive for that too.
[2010/03/12 11:08:31] @ lak joined channel #puppet
[2010/03/12 11:08:32] <scroogie> hehehe
[2010/03/12 11:08:35] <madduck> like ^$&&{} could mean if
[2010/03/12 11:09:00] <madduck> did i say this was demoralising?
[2010/03/12 11:09:43] <scroogie> did you ever need to debug perl scripts of a different developer?
[2010/03/12 11:09:46] <scroogie> :D
[2010/03/12 11:10:07] <barn> pfft, that would never happen
[2010/03/12 11:10:12] <barn> two people can't work on one perl script
[2010/03/12 11:10:18] <barn> you can only write to perl scripts
[2010/03/12 11:10:19] <madduck> i know what to avoid, and so far, ruby was on that list. like perl. well, ruby's still on that list, but unfortunately, i have to use puppet
[2010/03/12 11:10:32] <scroogie> yeah, barn, tell that to my boss
[2010/03/12 11:10:34] <scroogie> :P
[2010/03/12 11:10:44] <barn> scroogie: happily (:
[2010/03/12 11:10:50] @ Quit: dllh: Ping timeout: 258 seconds
[2010/03/12 11:10:51] <scroogie> perl is a write-only language
[2010/03/12 11:10:54] * madduck frowns at lak for his choice of ruby
[2010/03/12 11:11:08] <barn> madduck: his choice is well documented and with reason
[2010/03/12 11:11:20] <barn> lak's love of Rails and gem...
[2010/03/12 11:11:33] <lak> madduck: it's worked out ok, but meh
[2010/03/12 11:11:35] <lak> barn: hah!
[2010/03/12 11:11:37] <madduck> he did seem mentally stable last i met him in person. weird.
[2010/03/12 11:11:39] <barn> (note: not all of that statement is true...)
[2010/03/12 11:11:55] <scroogie> or, i like the other one: Perl is the only language that looks the same before and after RSA encryption.
[2010/03/12 11:11:57] <scroogie> :)
[2010/03/12 11:12:06] <scroogie> sorry for OT. ;)
[2010/03/12 11:12:10] <madduck> well, this might well be a puppet problem, not ruby's
[2010/03/12 11:12:46] <madduck> my function parses, irb can import it, puppet fails with an error about the function which I tried to supplement
[2010/03/12 11:13:00] <madduck> it seems like by defininng extlookup_boolean, I made puppet forget about extlookup
[2010/03/12 11:13:25] <madduck> Unknown function extlookup at /etc/puppet/manifests/site.pp:28 ← this is actually before extlookup_boolean is encountered
[2010/03/12 11:13:31] <masterzen> madduck: I think for calling a function from a function you actually sometimes need to tell puppet about it with: Puppet::Parser::Functions.function(:extlookup)
[2010/03/12 11:13:45] <masterzen> madduck: have a look to require which uses include for an example
[2010/03/12 11:14:03] @ Quit: choc: Remote host closed the connection
[2010/03/12 11:14:11] <madduck> masterzen: it doesn't even get to my function
[2010/03/12 11:14:34] <madduck> HAHAHA. now it just started working
[2010/03/12 11:14:39] <madduck> and i didn't change *anything*
[2010/03/12 11:14:46] <jbooth> madduck: I have to say I find ruby kinda neat, but I'm also a CS guy faking the sysadmin.
[2010/03/12 11:15:41] <jbooth> madduck: did you restart puppetmaster? I've noticed it sometimes need a kick to see changes in types (strangely, provider changes work fine).
[2010/03/12 11:15:42] <scroogie> jbooth: me too, i still don't like ruby :P
[2010/03/12 11:15:43] <madduck> jbooth: i like good languages. i am in love with smalltalk. i frown at python for being nice and comprehensible, but for just sucking in various, non-obvious places. I just don't understand ruby.
[2010/03/12 11:15:49] <madduck> jbooth: yes, been restarting.
[2010/03/12 11:15:49] @ choc joined channel #puppet
[2010/03/12 11:16:17] <jbooth> Of course I also like Tcl and most people look at me like I'm insane for that so...
[2010/03/12 11:17:34] <madduck> nice. next riddle
[2010/03/12 11:17:39] <madduck> Parameter purge failed: interning empty string at /etc/puppet/modules/apt/manifests/init.pp:88
[2010/03/12 11:17:45] <madduck> this is on a line using $debian_apt_enforce_sourceslist_set
[2010/03/12 11:17:46] * scroogie gives jbooth a weird look
[2010/03/12 11:17:50] <scroogie> just kidding ;)
[2010/03/12 11:17:51] <madduck> *after*
[2010/03/12 11:17:52] <madduck> $debian_apt_enforce_sourceslist_set = $debian_apt_enforce_sourceslist_set ?
[2010/03/12 11:17:52] <madduck> { "" => false, default => $debian_apt_enforce_sourceslist_set }
[2010/03/12 11:18:41] <madduck> i didn't know one can intern empty strings; i didn't even know interning was a reflexive verb
[2010/03/12 11:19:38] @ Quit: MattyM: Quit: ta ta
[2010/03/12 11:19:50] @ vzctl_ joined channel #puppet
[2010/03/12 11:20:34] @ bkohler joined channel #puppet
[2010/03/12 11:21:50] @ Quit: PsychoSid1: Quit: Leaving.
[2010/03/12 11:22:12] <scroogie> why don't you use $debian_apt_enforce_sourceslist_set = ($debian_apt_enforce_sourceslist_set == "" ? false : $debian_apt_enforce_sourceslist_set)
[2010/03/12 11:22:20] @ Quit: lak: Quit: lak
[2010/03/12 11:22:21] <scroogie> or is it something else you're trying to do, that I don't grasp?
[2010/03/12 11:22:51] <madduck> because i don't want to do this all over the place, and because the value of $debian_apt_enforce_sourceslist_set comes from extlookup as a string
[2010/03/12 11:24:28] <madduck> wow. http://slexy.org/view/s2vEYhLo4h
[2010/03/12 11:24:50] <madduck> does ruby's elsif actually do what elsif should do?
[2010/03/12 11:25:11] <madduck> and how can '' even match that regexp?
[2010/03/12 11:26:35] @ littleidea joined channel #puppet
[2010/03/12 11:26:58] <madduck> ok, that was my fault for printing #{ret} instead of #{r}
[2010/03/12 11:27:22] <madduck> debug: Mapping 'false' to false.
[2010/03/12 11:27:22] <madduck> debug: Mapping 'true' to true.
[2010/03/12 11:27:23] <madduck> \o/
[2010/03/12 11:27:54] @ Quit: kubicek: Quit: kubicek
[2010/03/12 11:30:24] @ tyll joined channel #puppet
[2010/03/12 11:30:34] <madduck> this continues to be insane
[2010/03/12 11:30:58] <madduck> how can http://scratch.madduck.net/__tmp__extlookup_boolean.rb when called and stored in a variable yield an empty value?
[2010/03/12 11:34:22] @ Quit: pugnacity: Ping timeout: 276 seconds
[2010/03/12 11:37:15] @ Quit: mvn071: Quit: Leaving
[2010/03/12 11:38:15] @ Quit: ffrank: Quit: leaving
[2010/03/12 11:38:28] @ mattwynne joined channel #puppet
[2010/03/12 11:40:24] <masterzen> madduck: is your function a rvalue function?
[2010/03/12 11:41:45] <madduck> yes
[2010/03/12 11:42:38] @ kubicek joined channel #puppet
[2010/03/12 11:43:17] <madduck> okay, it's now working: http://scratch.madduck.net/__tmp__extlookup_boolean.rb
[2010/03/12 11:43:28] <madduck> the problem was that extlookup might return an array, but it might also not
[2010/03/12 11:43:30] <madduck> \o/
[2010/03/12 11:44:17] @ Quit: mattwynne: Ping timeout: 246 seconds
[2010/03/12 11:45:25] @ Quit: rasputnik: Read error: Operation timed out
[2010/03/12 11:45:44] <madduck> Volcane: http://scratch.madduck.net/__tmp__extlookup_boolean.rb is done and does what I want.
[2010/03/12 11:45:52] <madduck> size:1382 hash:d395f8fe3293715be36aea373e475d8a4a044116
[2010/03/12 11:47:13] @ Quit: pmorillo: Quit: pmorillo
[2010/03/12 11:48:16] <orbit> Survey - what version control are you using for your puppet manifests?
[2010/03/12 11:48:20] <madduck> git
[2010/03/12 11:49:08] <legooolas> git :)
[2010/03/12 11:49:21] <jbooth> svn
[2010/03/12 11:49:25] <barn> svn and self loathing
[2010/03/12 11:49:33] <legooolas> Are there some config options I need to set on apt/dpkg to make installs all non-interactive?
[2010/03/12 11:49:38] @ Quit: giskard: Remote host closed the connection
[2010/03/12 11:49:55] <madduck> legooolas: DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical
[2010/03/12 11:49:55] @ ohadlevy joined channel #puppet
[2010/03/12 11:50:09] <legooolas> madduck: Cheers, I'll try that
[2010/03/12 11:50:10] <madduck> or use preseeding
[2010/03/12 11:51:03] <legooolas> Can preseeding be done per-package?
[2010/03/12 11:51:07] <legooolas> (Not at install time)
[2010/03/12 11:51:24] <madduck> debconf-set-selections
[2010/03/12 11:51:31] <madduck> there is plenty of material out there to read.
[2010/03/12 11:51:39] <legooolas> Ok, cool ta :)
[2010/03/12 11:54:18] <eric0> barn++
[2010/03/12 11:54:47] @ alfism joined channel #puppet
[2010/03/12 11:54:51] @ rasputnik joined channel #puppet
[2010/03/12 11:55:39] @ HouseAway is now known as DrHouseMD
[2010/03/12 11:56:20] <eric0> i'm pretty unhappy about my SCM workflow for releasing to production. it needs a great deal of crispness added to it and i'm not sure how to do that
[2010/03/12 11:56:34] @ murkk joined channel #puppet
[2010/03/12 11:58:56] @ Quit: rasputnik: Client Quit
[2010/03/12 11:59:38] <madduck> switch to git.
[2010/03/12 12:00:22] @ Quit: danielbln: Quit: Leaving.
[2010/03/12 12:00:54] @ swygue_ joined channel #puppet
[2010/03/12 12:01:04] @ Quit: swygue: Read error: Connection reset by peer
[2010/03/12 12:01:59] @ ckauhaus joined channel #puppet
[2010/03/12 12:04:53] @ Quit: tyll: Quit: leaving
[2010/03/12 12:04:54] <dan__t> So what's the most sane way to test things like making conditionals in templates
[2010/03/12 12:04:57] <dan__t> short of applying them to a node
[2010/03/12 12:05:23] @ Quit: systest: Quit: Leaving
[2010/03/12 12:06:46] @ Quit: scroogie: Remote host closed the connection
[2010/03/12 12:07:09] @ Quit: mpdehaan: Ping timeout: 240 seconds
[2010/03/12 12:09:23] <DigitalFlux> Guys, what is the status of Puppet's internal DSL or shadow puppet ?
[2010/03/12 12:10:02] @ Quit: zipkid: Ping timeout: 264 seconds
[2010/03/12 12:10:31] @ zipkid joined channel #puppet
[2010/03/12 12:11:53] <DigitalFlux> I need to talk to some puppet code from within a rails application ..
[2010/03/12 12:15:10] @ Quit: littleidea: Quit: littleidea
[2010/03/12 12:19:48] <DigitalFlux> or if some one has some code samples on how to pass some ruby variables to puppet to be used in definitions, please pass it on .
[2010/03/12 12:20:22] <dan__t> Do you know what facts are?
[2010/03/12 12:21:49] <jbooth> DigitalFlux: what exactly are you trying to do?
[2010/03/12 12:25:49] @ mattwynne joined channel #puppet
[2010/03/12 12:27:11] @ alexine_dsouza joined channel #puppet
[2010/03/12 12:27:43] @ lutter joined channel #puppet
[2010/03/12 12:28:52] @ Quit: rcrowley: Read error: Operation timed out
[2010/03/12 12:30:27] @ Quit: mattwynne: Ping timeout: 265 seconds
[2010/03/12 12:37:03] @ giskard joined channel #puppet
[2010/03/12 12:38:26] @ littleidea joined channel #puppet
[2010/03/12 12:43:10] @ Quit: tripoux: Quit: Quitte
[2010/03/12 12:43:53] @ Quit: ckauhaus: Ping timeout: 268 seconds
[2010/03/12 12:44:42] <DigitalFlux> jbooth:
[2010/03/12 12:46:46] <DigitalFlux> jbooth: i am trying to pass some variables from a rails web app (where you get them through an HTML form) and pass it to puppet definetions so that puppet will apply them to the underlying system
[2010/03/12 12:48:27] <jbooth> DigitalFlux: are you trying to duplicate the functionality of external node classifiers?
[2010/03/12 12:48:29] @ lak joined channel #puppet
[2010/03/12 12:49:11] @ Quit: TREllis: Quit: leaving
[2010/03/12 12:49:32] <jbooth> DigitalFlux, otherwise you're probably trying to do things against puppet's way of doing things.
[2010/03/12 12:49:38] @ Quit: tim|macbook: Quit: tim|macbook
[2010/03/12 12:50:02] @ TREllis joined channel #puppet
[2010/03/12 12:50:39] @ fzzzt left channel #puppet ()
[2010/03/12 12:51:03] @ Quit: TREllis: Client Quit
[2010/03/12 12:56:51] <scooby2> anyone used puppet on windows?
[2010/03/12 12:57:04] <DigitalFlux> jbooth: No, not like external node classifiers, i just know how can i use the puppet language structures from within ruby
[2010/03/12 12:57:33] <DigitalFlux> jbooth: this way i will be able to talk to puppet constructs from within the rails app, no ?
[2010/03/12 12:59:57] <jbooth> DigitalFlux: You'd have to write out .pp manifests from rails for puppet to read.
[2010/03/12 13:01:00] @ Quit: murkk: Quit: murkk
[2010/03/12 13:01:52] <mrchucho> within a module, can I make a resource in a definition depend on a class?
[2010/03/12 13:02:06] <mrchucho> like so http://gist.github.com/330578 (require => Class["iptables"])
[2010/03/12 13:02:27] <DigitalFlux> jbooth: Hmm..
[2010/03/12 13:02:39] <DigitalFlux> jbooth: And what about shadowPuppet ?
[2010/03/12 13:02:52] <jbooth> mrchucho: yes. Best to include the base class
[2010/03/12 13:03:11] <jbooth> DigitalFlux: I have no idea what you're talking about, so no comments from me.
[2010/03/12 13:03:36] <mrchucho> jbooth: so, use an include, too?
[2010/03/12 13:03:41] <DigitalFlux> jbooth: I mean that http://blog.railsmachine.com/articles/2009/01/27/introducing-shadowpuppet/, but thanks for the hint
[2010/03/12 13:04:42] <jbooth> Shadowpuppet is just an alternate code base for puppet from that article. I fail to see how that helps you poke things into puppet?
[2010/03/12 13:04:57] <jbooth> mrchucho: You don't have to, but otherwise it'll fail if your users haven't included iptables first.
[2010/03/12 13:05:01] <jbooth> (I think)
[2010/03/12 13:05:20] <mrchucho> mrchucho: that seems to be the case; getting closer. thx
[2010/03/12 13:05:42] <jbooth> mrchucho: Keep in mind it won't hurt to include something 20 or 200 times. Well, okay, 200 times will be kinda slow, but...
[2010/03/12 13:05:44] @ mdp_ joined channel #puppet
[2010/03/12 13:05:56] <mrchucho> jbooth: roger that
[2010/03/12 13:05:59] @ tonyskapunk joined channel #puppet
[2010/03/12 13:06:07] <jbooth> mrchucho: being a declaritive language, it doesn't hurt to include it dozens of times, they all declare the same final-state.
[2010/03/12 13:08:11] * eric0 gotta figure out a clever way around duplicate resource definitions
[2010/03/12 13:09:15] <jbooth> eric0: That's puppet's `nice' way of say, "you're doing it wrong" :-)
[2010/03/12 13:10:36] @ mdp_ is now known as mdp_ona
[2010/03/12 13:12:36] <eric0> i have a lot of nfs mounts to manage, 6 per filer x 2^8 filer, that are mounted in a structure like /top/filername/vol1 /top/filername/vol2 - i made a define to loop through them and can create the mountpoint directories, but not the intermediate 'filername' dirs due to duplicate definitions
[2010/03/12 13:14:46] <mrchucho> hrm, I modified my iptables class/def to be like so http://gist.github.com/330578
[2010/03/12 13:14:49] @ Quit: m1nish: Quit: Leaving
[2010/03/12 13:15:05] <mrchucho> but now I'm getting a dependency cycle...
[2010/03/12 13:15:13] <mrchucho> Found dependency cycles in the following relationships: Service[iptables] => File[/etc/sysconfig/iptables.d/99devssh], File[/etc/sysconfig/iptables.d/99devssh] => Service[iptables], File[/etc/sysconfig/iptables.d/98ssh] => Service[iptables], Service[iptables] => File[/etc/sysconfig/iptables.d/98ssh]
[2010/03/12 13:15:50] <mrchucho> ah, is it because the iptables service depends on the File[/etc/sysconfig/iptables.d] ?
[2010/03/12 13:16:23] <mrchucho> hrm, no
[2010/03/12 13:16:51] <jbooth> mrchucho: can you update your pastie of it?
[2010/03/12 13:16:55] @ ckauhaus joined channel #puppet
[2010/03/12 13:17:16] @ jmccune joined channel #puppet
[2010/03/12 13:17:22] <mrchucho> jbooth: http://gist.github.com/330578
[2010/03/12 13:17:32] <mrchucho> jbooth: including usage and error @ the bottom
[2010/03/12 13:18:36] @ Quit: bkohler: Ping timeout: 265 seconds
[2010/03/12 13:18:52] @ Quit: littleidea: Quit: littleidea
[2010/03/12 13:19:00] @ lilmatt joined channel #puppet
[2010/03/12 13:19:29] <jbooth> mrchucho: Yeah, notify is a superset of before, so you end up with the file in the define being both before and required by stuff in iptables (in this case, the service definition)
[2010/03/12 13:19:43] @ pting joined channel #puppet
[2010/03/12 13:20:14] <jbooth> mrchucho: You can fix it by splitting the service out to class iptables::service and/or just targetting specific lines -- forex, the define only needs the file ensure=>directory really. The rest is irrelevant to placing the file-frag on the system
[2010/03/12 13:21:05] <mrchucho> jbooth: hrm, ok... digesting that
[2010/03/12 13:22:10] <mrchucho> jbooth: ok, I think I see what you're saying. perhaps I was being overly cautious by saying that the define required that all of the iptables stuff be setup/installed
[2010/03/12 13:22:17] <mrchucho> jbooth: I can split them up
[2010/03/12 13:23:05] @ Quit: Spads: Ping timeout: 258 seconds
[2010/03/12 13:23:50] <jbooth> mrchucho: the require => class is powerful, but can get you in trouble too. Splitting them up -- more a matter of your preference it doesn't really matter to puppet
[2010/03/12 13:24:29] @ bhearsum joined channel #puppet
[2010/03/12 13:25:17] @ wbruce joined channel #puppet
[2010/03/12 13:25:31] @ Quit: eidolon: Quit: Leaving.
[2010/03/12 13:25:35] <bhearsum> is there an upper limit on how many machines a puppet master can handle? i've got one with ~275 which needs to have stopped working. the process runs, and CPU usage spikes sometimes, but my clients never hear back from it with "connection reset by peer" type errors
[2010/03/12 13:26:06] <mrchucho> jbooth: thx! fixed: http://gist.github.com/330578
[2010/03/12 13:27:19] <jbooth> bhearsum: puppet manifest compile time is O(# connected ^ 2) or worse.
[2010/03/12 13:27:35] <bhearsum> when do the manifests get compiled?
[2010/03/12 13:27:39] <jbooth> bhearsum: I try to keep it to only 1-2 machines talking to each puppetmaster process.
[2010/03/12 13:27:52] <jbooth> bhearsum: whenever the client contacts the puppetmaster
[2010/03/12 13:27:55] <bhearsum> ah
[2010/03/12 13:28:03] <bhearsum> do you mean 1-2 at a time?
[2010/03/12 13:30:19] <bhearsum> i do see a bunch of "compiled catalog for" messages in the log, they take 20s or so each in my case
[2010/03/12 13:30:30] <bhearsum> but i doubt there's more than a few slaves connected at any given time
[2010/03/12 13:30:56] <jbooth> bhearsum: More than 2 may be too many. (at least in 0.24, I haven't updated the cluster to 0.25 yet)
[2010/03/12 13:31:16] @ bkohler joined channel #puppet
[2010/03/12 13:31:57] <bhearsum> so...is the recommended solution to run a puppet master for ever 2 machines i have?
[2010/03/12 13:32:26] <jbooth> bhearsum: I run enough puppetmasters to limit the average # of connections to it at any given time to 1-2.
[2010/03/12 13:32:43] <bhearsum> ok
[2010/03/12 13:32:44] <jbooth> bhearsum: this depends on how often your puppet clients are polling the master for config changes, # of clients, etc.
[2010/03/12 13:32:46] <bhearsum> that's sort of unfortunate
[2010/03/12 13:32:47] @ labrown joined channel #puppet
[2010/03/12 13:32:48] <bhearsum> yeah
[2010/03/12 13:33:13] <bhearsum> out of curiosity, can't the puppet master just queue requests when it gets too many?
[2010/03/12 13:33:39] <jbooth> bhearsum: I'd been meaning to see if I could setup apache/iptables to queue incoming connections up, but hadn't had time yet.
[2010/03/12 13:33:45] <jbooth> bhearsum: in theory or in practice?
[2010/03/12 13:33:49] <bhearsum> both
[2010/03/12 13:33:54] <jbooth> in practice it doesn't appear to. In theory no reason why not.
[2010/03/12 13:34:05] <bhearsum> ok, that's good to know
[2010/03/12 13:34:44] <bhearsum> how do you manage which machines go to a given master? do you just pick that at install time?
[2010/03/12 13:34:50] <bhearsum> i'm pondering round robin dns as a solution
[2010/03/12 13:35:10] <jbooth> apache/mongrel is what I do
[2010/03/12 13:35:18] <jbooth> but for now lunch!
[2010/03/12 13:35:55] <bhearsum> ahh
[2010/03/12 13:35:58] <bhearsum> ok, cheers!
[2010/03/12 13:36:01] <bhearsum> and thanks for the help
[2010/03/12 13:37:15] <bhearsum> also: fwiw, rebooting my master (which had been up for 8 months or so), has helped in the interim
[2010/03/12 13:38:33] @ _elmata_ joined channel #puppet
[2010/03/12 13:40:11] @ Quit: bkohler: Ping timeout: 245 seconds
[2010/03/12 13:40:44] <weaselkeeper> we are using apache/passenger, works fine with multiple clients.
[2010/03/12 13:41:06] <weaselkeeper> wouldn't be much of a central config system if it took 1 server per 2 clients :P
[2010/03/12 13:41:24] <bhearsum> that's what i thought!
[2010/03/12 13:41:27] <bhearsum> what's passenger?
[2010/03/12 13:41:41] <weaselkeeper> mod_rails for apache basically
[2010/03/12 13:41:45] <bhearsum> ah
[2010/03/12 13:41:55] @ Quit: Chiku|dc: Quit: Quitte
[2010/03/12 13:41:57] @ Quit: RageLink: Ping timeout: 276 seconds
[2010/03/12 13:42:00] <weaselkeeper> I don't care much for mongrel, used it in the past, it has issues with memory bloat
[2010/03/12 13:42:05] <weaselkeeper> and silently failing.
[2010/03/12 13:42:17] <weaselkeeper> or had anyway. May have improved in the last year or so
[2010/03/12 13:43:07] <weaselkeeper> Last place I was at, using apache/mongrel, we had about 70 systems talking to one puppetmaster, worked fine.
[2010/03/12 13:43:32] <weaselkeeper> we just had to restart apache/mongrels nightly to clean up dead mongrels.
[2010/03/12 13:45:30] @ WALoeIII joined channel #puppet
[2010/03/12 13:49:54] @ Quit: mikepea: Quit: mikepea
[2010/03/12 13:50:04] <bhearsum> is there any documentation on how to set up something like that?
[2010/03/12 13:53:05] <tonyskapunk> bhearsum: http://reductivelabs.com/trac/puppet/wiki/UsingPassenger
[2010/03/12 13:53:26] <bhearsum> thx
[2010/03/12 13:53:54] @ Quit: alfism: Quit: alfism
[2010/03/12 13:54:50] <beelzebob> I'm trying to subclass ssh_authorized_key and ovverride user
[2010/03/12 13:54:59] <beelzebob> this doesn't seem to work. see: http://pastie.org/866854
[2010/03/12 13:55:40] <beelzebob> the original ssh_authorized_key has user => "root"
[2010/03/12 13:55:41] @ Alagar joined channel #puppet
[2010/03/12 13:56:13] <beelzebob> the strange part is that the paste there will change _root's_ option, but seems to ignore the user
[2010/03/12 13:56:55] <markl_> ok weird error here:
[2010/03/12 13:56:56] <markl_> Failed to retrieve current state of resource: Error 400 on SERVER: Not authorized to call find on /file_metadata/dist/common/etc/selinux/config Could not retrieve file metadata
[2010/03/12 13:57:16] @ Quit: mrchucho: Ping timeout: 245 seconds
[2010/03/12 13:58:57] <markl_> so what is /file_metadata/ ? that doesn't look quite right, it should be /var/puppet
[2010/03/12 13:59:32] @ alfism joined channel #puppet
[2010/03/12 14:00:38] <markl_> and FWIW, master of puppets is arguably one of the greatest CD's of all time (if only it were mixed a little better!)
[2010/03/12 14:03:33] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/03/12 14:03:56] @ Quit: wbruce: Ping timeout: 245 seconds
[2010/03/12 14:04:14] @ alexine_dsouza joined channel #puppet
[2010/03/12 14:04:24] <dan__t> So what was the difference between <%= and <% in templating again?
[2010/03/12 14:05:19] <dan__t> I forget :(
[2010/03/12 14:07:23] <justdave> should I have to kick puppetmaster to recognize when I add new .pp files?
[2010/03/12 14:07:30] <bhearsum> justdave: yeah
[2010/03/12 14:07:33] <bhearsum> we have to do that on ours
[2010/03/12 14:07:48] <justdave> meh. okay.
[2010/03/12 14:08:02] <bhearsum> justdave: while you're here: how many clients do you guys have?
[2010/03/12 14:08:05] <justdave> svn up on the puppetmaster says "At revision 5703."
[2010/03/12 14:08:06] <bhearsum> and what does your server setup look like?
[2010/03/12 14:08:17] <justdave> client still says "info: Applying configuration version '5702'"
[2010/03/12 14:08:28] <bhearsum> huh
[2010/03/12 14:09:11] <bhearsum> is it actually talking to the master?
[2010/03/12 14:09:22] <bhearsum> it will use the cached manifests it has if it can't reach the mastrer
[2010/03/12 14:09:38] <justdave> I'm using --test, which is supposed to ignore the cache I thought
[2010/03/12 14:10:04] <bhearsum> i don't think it does
[2010/03/12 14:10:52] <jra__> does other stuff get committed to that repository?
[2010/03/12 14:11:15] <justdave> restarting puppetmaster did get it to pick up the new file
[2010/03/12 14:11:21] <jra__> because the latest change to a particular checkout does not have to occur at the revision stated by "svn up"
[2010/03/12 14:11:40] <jra__> ah
[2010/03/12 14:11:52] <justdave> there is other stuff in there but the revision in question was a puppet .pp file add
[2010/03/12 14:12:10] @ tyll joined channel #puppet
[2010/03/12 14:15:00] <jra__> how do you get it to display the revision number
[2010/03/12 14:15:21] @ Quit: lak: Quit: lak
[2010/03/12 14:16:11] @ Spads joined channel #puppet
[2010/03/12 14:17:13] <justdave> in puppet.conf:
[2010/03/12 14:17:14] <justdave> config_version = /usr/bin/svnversion
[2010/03/12 14:17:27] @ Quit: neek: Quit: BitchX-1.1-final -- just do it.
[2010/03/12 14:17:41] <justdave> in the [puppetmasterd] section
[2010/03/12 14:23:31] @ plathrop-away is now known as plathrop
[2010/03/12 14:25:19] <justdave> 14:08:02 < bhearsum> justdave: while you're here: how many clients do you guys have?
[2010/03/12 14:25:32] <justdave> our largest install right now has 205 clients
[2010/03/12 14:25:56] <justdave> I think we're using mongrel for the backend IIRC
[2010/03/12 14:26:14] @ Robbie joined channel #puppet
[2010/03/12 14:26:15] <justdave> we were having scaling problems with the default backend server
[2010/03/12 14:26:22] <bhearsum> ah
[2010/03/12 14:26:32] <bhearsum> we've got almost 300
[2010/03/12 14:26:39] @ Robbie is now known as Guest10373
[2010/03/12 14:26:50] <bhearsum> justdave: any chance you can show me the mongrel/apache setup you have?
[2010/03/12 14:27:22] @ toi joined channel #puppet
[2010/03/12 14:30:34] @ Quit: afletcher: Quit: afletcher
[2010/03/12 14:31:45] @ Quit: Guest10373: Quit: Leaving...
[2010/03/12 14:36:03] @ murkk_ joined channel #puppet
[2010/03/12 14:36:44] <justdave> bhearsum: using rhel/centos/fedora or similar for your server?
[2010/03/12 14:36:53] <bhearsum> yeah
[2010/03/12 14:37:00] <bhearsum> centos 5.0, to be precise
[2010/03/12 14:37:06] <justdave> /etc/sysconfig/puppetmaster
[2010/03/12 14:37:14] <justdave> the switch is in there
[2010/03/12 14:37:23] <justdave> PUPPETMASTER_PORTS
[2010/03/12 14:37:31] <justdave> if you have more than one in an array it'll use mongrel
[2010/03/12 14:37:44] <bhearsum> ah
[2010/03/12 14:37:49] <bhearsum> and then there's an apache side?
[2010/03/12 14:38:23] <justdave> yeah, balancer proxy in apache
[2010/03/12 14:38:52] <bhearsum> do you have an example you could paste?
[2010/03/12 14:39:08] <justdave> http://it.pastebin.mozilla.org/707814
[2010/03/12 14:40:01] <inveratulo> Is there a way to explicitly exclude a class that has been included in a class that is being included in the current class definition (wow what a mouthful)
[2010/03/12 14:40:08] <bhearsum> justdave: thanks
[2010/03/12 14:40:20] <bhearsum> justdave: what in there actually limits the # of connections, though?
[2010/03/12 14:41:04] <bhearsum> actually, i should probably just read some manpages, nm
[2010/03/12 14:41:07] <justdave> no clue. oremj set all that up.
[2010/03/12 14:41:11] <bhearsum> ah, ok
[2010/03/12 14:43:50] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/03/12 14:43:53] @ alexine_dsouza joined channel #puppet
[2010/03/12 14:47:03] @ murkk_ left channel #puppet ()
[2010/03/12 14:49:44] @ Quit: WALoeIII: Quit: Bai.
[2010/03/12 14:50:38] @ Quit: jaredrhine: Ping timeout: 256 seconds
[2010/03/12 14:52:59] @ pierre`_ left channel #puppet ()
[2010/03/12 14:55:20] @ Quit: lutter: Quit: Leaving.
[2010/03/12 15:03:41] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/03/12 15:03:47] @ alexine_dsouza joined channel #puppet
[2010/03/12 15:04:09] @ wbruce joined channel #puppet
[2010/03/12 15:05:31] @ Quit: swygue_: Remote host closed the connection
[2010/03/12 15:07:06] @ swygue joined channel #puppet
[2010/03/12 15:08:58] <sbrock> hey guys, in the cron recipe type, i need to pass a variable to the command => line and its not working.
[2010/03/12 15:09:06] <sbrock> any thoughts on how to make-it-go?
[2010/03/12 15:09:19] @ Quit: ckauhaus: Quit: Leaving.
[2010/03/12 15:09:26] <sbrock> tried this: command => '/var/www/bin/cleancache ${name}',
[2010/03/12 15:09:34] <sbrock> and this: command => '/var/www/bin/cleancache $short',
[2010/03/12 15:09:55] <joe-mac1> single quotes will do that
[2010/03/12 15:09:56] <sbrock> target crontab has the actual text in there instead of being substituted for the variable content
[2010/03/12 15:10:03] <joe-mac1> you need to use ""
[2010/03/12 15:10:08] <joe-mac1> if you watn variable expansion
[2010/03/12 15:10:17] <sbrock> awesome ill do that. thanks
[2010/03/12 15:11:28] <joe-mac1> np
[2010/03/12 15:11:43] <sbrock> and it works.. thanks a ton :)
[2010/03/12 15:12:17] <zahna> if i specify environment tags on all config options on my puppetmaster, will clients need an explicit environment tag set or will the clients still default to "production"?
[2010/03/12 15:13:29] @ Quit: lilmatt: Ping timeout: 258 seconds
[2010/03/12 15:13:38] <joe-mac1> zahna: depends, are you using like an old version, such as .24.4?
[2010/03/12 15:14:00] <joe-mac1> that one for some reason on my boxes defaulted to development, but newer stuff goes to production. might have something to do wuith facter
[2010/03/12 15:14:01] <zahna> no, 0.25.1 or 0.25.4
[2010/03/12 15:17:35] @ lilmatt joined channel #puppet
[2010/03/12 15:17:52] <zahna> joe-mac1: i also am going to have 2 locations soon. do you think serving them up via environments would be simpler or more complex than running 2 puppetmasters?
[2010/03/12 15:18:12] <joe-mac1> mehh, depends more on networking setup than just having two locations
[2010/03/12 15:18:46] <joe-mac1> is teh other location another data center or another office or what?
[2010/03/12 15:18:47] <zahna> they will be "directly" connected together via a vpn
[2010/03/12 15:19:06] <zahna> Amazon Virtual Private Cloud
[2010/03/12 15:19:22] <zahna> so, i guess datacenter
[2010/03/12 15:20:45] @ afletcher joined channel #puppet
[2010/03/12 15:20:49] <n9986> is there a way to handle custom init script exit codes?
[2010/03/12 15:28:08] @ littleidea joined channel #puppet
[2010/03/12 15:28:21] @ murkk joined channel #puppet
[2010/03/12 15:30:23] @ Quit: littleidea: Client Quit
[2010/03/12 15:32:46] @ Quit: murkk: Ping timeout: 264 seconds
[2010/03/12 15:40:43] <jY> if i inherit a pp file.. that has a package to purged.. I have the same package name set to installed on the child.. shouldn't that work?
[2010/03/12 15:42:52] <weaselkeeper> you are purging in one, and installing in another pp file ?
[2010/03/12 15:42:58] <weaselkeeper> for that same node?
[2010/03/12 15:44:50] <jY> i purge in the parent.. install in the child
[2010/03/12 15:45:03] <jY> yes.. same node
[2010/03/12 15:48:09] <justdave> hmm, so $hostname seems to have just the machine name in it, is there a variable for the fqdn?
[2010/03/12 15:48:16] <justdave> (using it as a replacement in a template)
[2010/03/12 15:49:01] @ bodepd joined channel #puppet
[2010/03/12 15:49:01] <justdave> ah, $fqdn, how obvious. :)
[2010/03/12 15:49:13] <justdave> (looked to see what facter knew)
[2010/03/12 15:49:17] <jbooth> jY: You can override things when you inherit... but you don't inherit .pp files, you inherit classes off each other (or I suppose nodes)
[2010/03/12 15:49:39] <weaselkeeper> when a file puppet controls is changed, and puppet fixes it, filebucket puts that file (the changed one) in a bucket somewhere. Is that bucket on the client node? or on the server?
[2010/03/12 15:49:59] <jra__> over here it's on the server
[2010/03/12 15:50:13] <weaselkeeper> jra__: is that configurable somewhere?
[2010/03/12 15:50:28] <jra__> if it is I'd like to know as well
[2010/03/12 15:50:30] @ Quit: wbruce: Ping timeout: 252 seconds
[2010/03/12 15:50:34] <weaselkeeper> I have a mostly default config, and filebucket isn't working correctly
[2010/03/12 15:50:38] <jra__> because more often than not I need that file on the client (:
[2010/03/12 15:50:45] @ Quit: bug: Quit: bug
[2010/03/12 15:51:22] <weaselkeeper> when I change something, that changed file is put somewhere, but trying to recover it results in a nil. But I can manually use filebucket to store and retrieve stuff, both locally and remotely. It's frustrating.
[2010/03/12 15:52:58] <weaselkeeper> hrm, looking at it closer, it gets put on the client, in /var/lib/puppet/clientbucket/blahblah,
[2010/03/12 15:53:02] <weaselkeeper> for me anyway
[2010/03/12 15:53:31] @ DrHouseMD is now known as HouseAway
[2010/03/12 15:55:10] @ malraid joined channel #puppet
[2010/03/12 16:00:09] @ Quit: afletcher: Quit: afletcher
[2010/03/12 16:02:40] @ littleidea joined channel #puppet
[2010/03/12 16:03:57] @ synack- joined channel #puppet
[2010/03/12 16:05:27] @ Quit: swygue: Quit: Ex-Chat
[2010/03/12 16:06:47] @ lak joined channel #puppet
[2010/03/12 16:10:08] @ Quit: lilmatt: Remote host closed the connection
[2010/03/12 16:12:14] @ lilmatt joined channel #puppet
[2010/03/12 16:13:21] @ mainEack joined channel #puppet
[2010/03/12 16:15:21] @ jaredrhine joined channel #puppet
[2010/03/12 16:21:50] @ lutter joined channel #puppet
[2010/03/12 16:23:54] @ mattwynne joined channel #puppet
[2010/03/12 16:25:02] @ Quit: toi: Ping timeout: 264 seconds
[2010/03/12 16:26:11] @ Quit: ahasenack: Quit: Leaving
[2010/03/12 16:28:31] @ Quit: unxfrek: Quit: Leaving
[2010/03/12 16:33:16] @ morphic joined channel #puppet
[2010/03/12 16:35:09] @ Quit: littleidea: Ping timeout: 240 seconds
[2010/03/12 16:35:30] @ littleidea joined channel #puppet
[2010/03/12 16:35:46] @ Quit: tyll: Quit: leaving
[2010/03/12 16:36:44] @ Quit: lak: Quit: lak
[2010/03/12 16:40:25] @ Quit: giskard: Remote host closed the connection
[2010/03/12 16:41:39] @ Quit: JJA: Ping timeout: 240 seconds
[2010/03/12 16:42:29] @ monachus is now known as monachus_
[2010/03/12 16:46:59] <markl_> i have a weird variable scoping kind of problem
[2010/03/12 16:47:26] <markl_> i'm including a class but one variable i define in the node definition seems to disappear
[2010/03/12 16:47:47] <markl_> is it not possible to define variables in the node section?
[2010/03/12 16:48:02] @ Quit: littleidea: Quit: littleidea
[2010/03/12 16:52:21] <markl_> specifically i'm trying to override like this:
[2010/03/12 16:52:22] <markl_> http://www.tapdancinggoats.com/server-variables-in-puppet-templates.htm
[2010/03/12 16:54:11] @ bhearsum left channel #puppet ()
[2010/03/12 16:54:36] <markl_> ok i see what happened, i think
[2010/03/12 16:54:52] <markl_> it inherited a base class that already included the class that needed the variable
[2010/03/12 16:55:35] <markl_> so when i set it in the mode definition, the already-reached include couldn't see that the variable changed
[2010/03/12 17:01:41] @ Quit: morphic: Read error: Connection reset by peer
[2010/03/12 17:02:18] @ Quit: labrown: Quit: Leaving
[2010/03/12 17:06:42] @ Quit: mattwynne: Ping timeout: 276 seconds
[2010/03/12 17:07:16] @ tag joined channel #puppet
[2010/03/12 17:08:19] @ mattwynne joined channel #puppet
[2010/03/12 17:08:36] @ morphic joined channel #puppet
[2010/03/12 17:10:05] @ Quit: p3rror: Read error: Operation timed out
[2010/03/12 17:11:40] @ Quit: HouseAway: Remote host closed the connection
[2010/03/12 17:11:42] @ ezmobius joined channel #puppet
[2010/03/12 17:14:44] <jbooth> Anyone have a pattern similar to file{something:source=>[array, of, sources];} but for templates?
[2010/03/12 17:15:04] <jbooth> Rather, for content=>template() ?
[2010/03/12 17:15:57] <ricky> template() can take multiple arguments and it will combine them
[2010/03/12 17:16:42] <jbooth> Yeah, I don't want that. I want it to take the first, just like source=>[array] does
[2010/03/12 17:17:13] @ cbrinke1 joined channel #puppet
[2010/03/12 17:17:37] <jbooth> I'm looking at templatefirst("config.$os$osrelease", "config.$os", "config") so I can easily support variant OSes.
[2010/03/12 17:17:56] <jbooth> Without a slew of identical files and/or symlinks on the host.
[2010/03/12 17:18:08] <cbrinke1> Hello, having some troubles with defines. It looks like the class variables are not defined inside of a "define" block, any idea why that is?
[2010/03/12 17:18:59] <cbrinke1> class foo { $bar = "baz" define baz () { notice($bar) } } shows an emptry string
[2010/03/12 17:19:35] <cbrinke1> instead of the expected "baz"
[2010/03/12 17:20:58] @ joe-mac1 left channel #puppet ()
[2010/03/12 17:21:15] <Volcane> jbooth: i wrote a function http://pastie.org/666728
[2010/03/12 17:21:39] <eric0> cbrinke1: let me explain this as i understand it, and hopefully someone who knows it better will correct me if this is wrong.
[2010/03/12 17:21:43] <Volcane> cbrinke1: yes, they are seperate scope
[2010/03/12 17:22:01] <Volcane> cbrinke1: if u want a variable in the define, u need to pass it as an option
[2010/03/12 17:22:05] <eric0> defines exist in their own namespace that is parallel to (but different from) classes
[2010/03/12 17:22:15] @ Quit: bodepd: Quit: bodepd
[2010/03/12 17:22:23] @ Quit: mattwynne: Ping timeout: 265 seconds
[2010/03/12 17:22:41] <cbrinke1> k, so if I call this define 10 times, I have to copy that var into each call?
[2010/03/12 17:24:47] <cbrinke1> this is where I got the problematic code from: http://reductivelabs.com/trac/puppet/wiki/Recipes/DebianApache2Recipe
[2010/03/12 17:25:13] <jbooth> Volcane: Mind if I steal it?
[2010/03/12 17:25:15] @ p3rror joined channel #puppet
[2010/03/12 17:25:26] <cbrinke1> you will notice the define site, has 1.5 mentions of the ${apache2_sites} variable
[2010/03/12 17:25:36] <ReinH> Anyone want to test out Puppet Dashboard 1.0.0rc1 before I announce to the list? http://github.com/reductivelabs/puppet-dashboard/
[2010/03/12 17:25:47] <eric0> so you can have a define that takes an argument 'define foo::baz($arg="somedefault") { notice "argument is $arg" }' and call that from your class with 'class foo { foo::baz{ "namevar": arg => "new argument" } }'
[2010/03/12 17:25:50] <cbrinke1> and of course it is not working... because this is on the wiki am I to presume this worked at some point?
[2010/03/12 17:26:06] <ReinH> you know you want to, you awesome early adopters, you ;)
[2010/03/12 17:26:12] <ReinH> Volcane: oh hi
[2010/03/12 17:29:24] @ Quit: erm_: Ping timeout: 246 seconds
[2010/03/12 17:31:07] <eric0> ReinH: will it work with sqlite3 or does it require mysql?
[2010/03/12 17:32:36] <ReinH> eric0: still requires mysql atm, I had to push portable SQL to a future release (but it's a priority)
[2010/03/12 17:33:05] <ReinH> I need to figure out a better way to aggregate report statistics
[2010/03/12 17:33:16] @ synack- left channel #puppet ()
[2010/03/12 17:33:28] <ReinH> everything else is portable (just uses ActiveRecord)
[2010/03/12 17:33:52] <ReinH> sqlite's lack of funcitons like LIMIT makes it difficult :(
[2010/03/12 17:34:23] <ReinH> s/LIMIT/FLOOR
[2010/03/12 17:34:24] <ReinH> sorry
[2010/03/12 17:34:57] <eric0> i'm not a huge fan of it either but it is a much lighter (hah!) requirement for testing
[2010/03/12 17:35:02] <ReinH> sure is
[2010/03/12 17:35:10] <ReinH> I like sqlite for local dev
[2010/03/12 17:35:42] <ReinH> eric0: this is the only mysql-only code in dashboard: http://github.com/reductivelabs/puppet-dashboard/blob/master/app/models/status.rb#L23-44
[2010/03/12 17:36:03] <ReinH> if we can come up with portable or ported equivalent(s), we'd be fine
[2010/03/12 17:36:39] <ReinH> or a whole new and better way to aggregate the stats, even
[2010/03/12 17:37:02] <ReinH> perhaps a statuses table that denormalizes the data
[2010/03/12 17:37:37] <ReinH> we'll work on it
[2010/03/12 17:38:10] <cbrinke1> here is another recipe that has variables inside of a define: http://reductivelabs.com/trac/puppet/wiki/Recipes/DebianApache2Recipe
[2010/03/12 17:38:23] <cbrinke1> Are these recipes just silently breaking?
[2010/03/12 17:38:45] @ Quit: rgsteele: Remote host closed the connection
[2010/03/12 17:39:02] <cbrinke1> or perhaps I am missing something obvious about how they are getting values into the definitions?
[2010/03/12 17:40:47] @ Quit: aliver: Remote host closed the connection
[2010/03/12 17:41:06] @ aliver joined channel #puppet
[2010/03/12 17:43:31] @ mrsprinkles joined channel #puppet
[2010/03/12 17:45:35] @ littleidea joined channel #puppet
[2010/03/12 17:47:16] @ Quit: littleidea: Read error: Connection reset by peer
[2010/03/12 17:48:02] <ReinH> ugh. Stupid, stupid MySQL :(
[2010/03/12 17:48:31] <mrsprinkles> I'm using stored configs to distribute ip addresses around my cluster. the problem is that some servers have 2 ips addresses. I'd use ipaddress_eth1 but some of the servers have the right ip on eth0. anyone know a way to get around this?
[2010/03/12 17:49:49] <pheezy> Huh, I was just about to ask how facter handles things like multiple netmasks for multiple interfaces (ie fact1_2 or so)
[2010/03/12 17:50:03] <pheezy> Could you do it by MAC?
[2010/03/12 17:51:25] @ cbrinke1 left channel #puppet ()
[2010/03/12 17:52:09] <mrsprinkles> hmm good question, i'm not sure
[2010/03/12 17:54:27] @ Quit: pheezy: Remote host closed the connection
[2010/03/12 17:56:30] <mrsprinkles> looks like writing a custom facter is the way to go for me
[2010/03/12 17:56:34] @ bodepd joined channel #puppet
[2010/03/12 17:59:28] @ Quit: cwebber: Quit: cwebber
[2010/03/12 18:00:20] @ Quit: malraid: Quit: malraid
[2010/03/12 18:01:28] @ cwebber joined channel #puppet
[2010/03/12 18:03:19] @ afletcher joined channel #puppet
[2010/03/12 18:04:04] @ artista_frustrad joined channel #puppet
[2010/03/12 18:04:50] <weaselkeeper> facter reports multiple MAC addresses labeled eth0, 1, etc
[2010/03/12 18:05:02] <weaselkeeper> macaddress => 00:14:4F:4A:00:82
[2010/03/12 18:05:03] <weaselkeeper> macaddress_eth0 => 00:14:4F:4A:00:82
[2010/03/12 18:05:20] <weaselkeeper> that's from a system with 4 nics
[2010/03/12 18:05:45] <weaselkeeper> there are 3 other lines, but no point putting them here.
[2010/03/12 18:06:10] @ Quit: meister: Read error: Operation timed out
[2010/03/12 18:06:27] @ Quit: choc: Quit: changing servers
[2010/03/12 18:08:16] @ Quit: masterzen: Ping timeout: 268 seconds
[2010/03/12 18:08:35] @ Quit: matti: Ping timeout: 265 seconds
[2010/03/12 18:09:00] @ masterzen joined channel #puppet
[2010/03/12 18:09:42] @ choc joined channel #puppet
[2010/03/12 18:10:40] @ matti joined channel #puppet
[2010/03/12 18:10:41] @ Quit: matti: Changing host
[2010/03/12 18:10:41] @ matti joined channel #puppet
[2010/03/12 18:11:44] @ Quit: tonyskapunk: Read error: Connection reset by peer
[2010/03/12 18:14:01] @ martin2929195 joined channel #puppet
[2010/03/12 18:14:22] @ meister joined channel #puppet
[2010/03/12 18:15:14] <mrsprinkles> anyone know why my custom fact isn't working? i'm using 0.25.4 and it seems straight forward. I see "info: Loading facts in my_fact" when I run puppet. but it isn't listed when i run facter. am i missing something?
[2010/03/12 18:16:24] <weaselkeeper> I am having a problem getting puppet to hand modified files on the client, back to the filebucket location when they are replaced by puppet, that is, hand edit a file, and puppet replaces it, and is supposed to copy the "bad" file back ot the filebucket on the puppet master. The puppet client seems to be doing it's part, but something is breaking after that, the file never gets to the server (although it does wind up in clientbucket on
[2010/03/12 18:16:34] @ Quit: jmccune: Remote host closed the connection
[2010/03/12 18:16:47] <weaselkeeper> puppet invokes facter with some options I think
[2010/03/12 18:17:26] @ plathrop is now known as plathrop-away
[2010/03/12 18:17:43] <mrsprinkles> ahh I see now. if I pass facter --puppet it shows up just fine. tanks!
[2010/03/12 18:18:11] <weaselkeeper> glad to be of some help to someone :)
[2010/03/12 18:18:59] @ tonyskapunk joined channel #puppet
[2010/03/12 18:19:17] @ erm_ joined channel #puppet
[2010/03/12 18:23:56] @ Quit: _elmata_: Quit: up up and away
[2010/03/12 18:25:18] <dan__t> test
[2010/03/12 18:25:31] <weaselkeeper> return(FAIL);
[2010/03/12 18:26:15] <weaselkeeper> I am not being mean, it's just friday, I need to go home and goof off with computers.
[2010/03/12 18:26:25] <weaselkeeper> instead of being at work, working with them.
[2010/03/12 18:26:27] <weaselkeeper> sigh
[2010/03/12 18:26:28] @ Quit: cwebber: Quit: cwebber
[2010/03/12 18:32:42] @ Quit: afletcher: Quit: afletcher
[2010/03/12 18:35:40] @ robbles joined channel #puppet
[2010/03/12 18:44:37] @ Quit: jcesario: Read error: Connection reset by peer
[2010/03/12 18:48:08] @ wbruce joined channel #puppet
[2010/03/12 18:53:39] @ Quit: wbruce: Remote host closed the connection
[2010/03/12 18:55:09] @ giskard joined channel #puppet
[2010/03/12 19:00:54] @ Quit: erm_: Ping timeout: 260 seconds
[2010/03/12 19:02:24] @ DrHouseMD joined channel #puppet
[2010/03/12 19:05:27] @ Quit: tonyskapunk: Quit: Leaving
[2010/03/12 19:15:09] <robbles> Hi puppeteers, my puppetd client has problems: I get "hostname was not match with the server certificate" after I sign the cert with puppetca. Can anyone take a look and tell me what might be wrong?
[2010/03/12 19:15:13] <robbles> http://pastie.org/private/qqgtpu4wutbdgrvuu0uaa
[2010/03/12 19:21:08] <robbles> I found http://permalink.gmane.org/gmane.linux.debian.devel.bugs.general/682816 which says "changing the server hostname used by puppetd to match
[2010/03/12 19:21:11] <robbles> the server's CN made the problem go away."
[2010/03/12 19:21:35] <robbles> but I'm not sure how to check that. "facter fqdn" on the puppetmaster server return empty
[2010/03/12 19:23:03] <eric0> is 'adc' your puppetmaster host?
[2010/03/12 19:23:17] <robbles> no, 'adc' is the client
[2010/03/12 19:25:16] <eric0> do you have dns/host name 'puppet' for the server? if so whats 'openssl s_client -showcerts -connect puppet:8140' say
[2010/03/12 19:27:40] <robbles> yeah, I had puppet as a hostname for the server
[2010/03/12 19:27:41] <robbles> http://pastie.org/private/333gtusivxmznpurwfzwq
[2010/03/12 19:28:08] <robbles> here are my /etc/hosts and /etc/hostname on the client: http://pastie.org/private/fub08w8dyqsvjk3mapxreq
[2010/03/12 19:28:22] <robbles> and on the server: http://pastie.org/private/ke0rsanfsjzroh1ocruw
[2010/03/12 19:29:00] @ tonyskapunk joined channel #puppet
[2010/03/12 19:30:22] @ Quit: morphic: Ping timeout: 264 seconds
[2010/03/12 19:33:45] <eric0> so your server subject says 'cicero' but doesn't say 'puppet', but you're connecting from client to 'puppet'. thus the error
[2010/03/12 19:34:17] <eric0> you can either (a) specify puppetd --server=cicero on commandline, put 'server=cicero' in client puppet.conf, or re-make puppetmaster cert to include a subjectAltName of 'puppet'
[2010/03/12 19:34:25] <eric0> ^re-make^(c) re-make
[2010/03/12 19:35:06] <robbles> Oh, great! Much appreciated, I have been banging on this for 2 hours now. I will try what you suggest
[2010/03/12 19:35:09] <eric0> which it should have actually done when it started up as puppetmasterd and didn't find an already existing ca + server cert, so not sure what went wrong
[2010/03/12 19:35:44] <eric0> did you run puppetd a few times on cicero before starting up puppetmasterd or something?
[2010/03/12 19:36:30] <robbles> I do believe I ran puppetd a few times on the puppetmaster host, yes. I purged/reinstalled puppet and puppetmaster before I pasted stuff in here though
[2010/03/12 19:37:13] <eric0> depending on what 'purged' means, /etc/puppet/ssl might have hung around , i bet thats what happened
[2010/03/12 19:37:22] @ Quit: ezmobius: Quit: Leaving...
[2010/03/12 19:37:35] <robbles> How can I make puppetmaster ad a subjectAltName? Do I add 'puppet' to my server's /etc/hosts or something?
[2010/03/12 19:37:51] <robbles> hmm, I didn't check, so I can't say
[2010/03/12 19:38:32] <eric0> if you're jsut starting, the easiest thing to do is stop puppetmasterd, stop puppetd, rm -rf /etc/puppet/ssl in both places, start puppetmasterd, start puppetd
[2010/03/12 19:38:59] <robbles> eric0: is /var/lib/puppet/ important, too? There seem to be .pem certs stored in there
[2010/03/12 19:39:55] <robbles> going to reinstall again
[2010/03/12 19:40:20] <eric0> oh /var/lib/puppet may be your os equivalent of /etc/puppet -- so yes, if theres certs
[2010/03/12 19:40:30] <eric0> especially a /var/lib/puppet/ssl/ca dir
[2010/03/12 19:40:33] <eric0> thats what needs to go
[2010/03/12 19:40:45] <eric0> you dont have to reinstall the puppet packages or anythign
[2010/03/12 19:40:47] @ tonyskapunk left channel #puppet ()
[2010/03/12 19:44:41] @ tonyskapunk joined channel #puppet
[2010/03/12 19:45:36] <robbles> Woohoo, it works now with the --server option.
[2010/03/12 19:46:38] @ Quit: bodepd: Quit: bodepd
[2010/03/12 19:46:55] <robbles> thanks again, eric0
[2010/03/12 19:47:04] <eric0> np
[2010/03/12 19:48:10] <robbles> you were right, /var/lib/puppet and /etc/puppet aren't removed when purging with my distro packaging tools
[2010/03/12 19:48:19] @ tonyskapunk left channel #puppet ("ERC Version 5.3 (IRC client for Emacs)")
[2010/03/12 19:49:03] <eric0> the files therein are created on run, not included in package. so the tools are doing the right thing.
[2010/03/12 19:49:22] <robbles> Oh I see
[2010/03/12 19:50:09] @ bkohler joined channel #puppet
[2010/03/12 19:57:57] @ tonyskapunk joined channel #puppet
[2010/03/12 20:04:11] @ lak joined channel #puppet
[2010/03/12 20:04:17] @ Quit: kubicek: Quit: kubicek
[2010/03/12 20:05:26] @ Quit: notbrien: Quit: notbrien
[2010/03/12 20:09:44] @ Quit: shenson: Quit: WeeChat 0.3.0
[2010/03/12 20:10:44] @ bodepd joined channel #puppet
[2010/03/12 20:20:30] @ Quit: alfism: Quit: http://opensolaris.com/
[2010/03/12 20:23:07] @ Quit: lak: Quit: lak
[2010/03/12 20:23:10] @ Quit: eshamow: Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/
[2010/03/12 20:24:11] @ weaselkeeper left channel #puppet ()
[2010/03/12 20:24:39] @ Quit: Alagar: Ping timeout: 240 seconds
[2010/03/12 20:25:57] @ Quit: martin2929195: Remote host closed the connection
[2010/03/12 20:32:22] @ Quit: lilmatt: Quit: lilmatt
[2010/03/12 20:36:21] @ ambroff joined channel #puppet
[2010/03/12 20:37:25] @ Quit: markl_: Ping timeout: 260 seconds
[2010/03/12 20:43:53] @ Quit: tonyskapunk: Quit: ERC Version 5.3 (IRC client for Emacs)
[2010/03/12 20:45:44] @ Quit: strattog: Quit: leaving
[2010/03/12 20:45:45] @ blahdeblah joined channel #puppet
[2010/03/12 20:50:20] @ strattog joined channel #puppet
[2010/03/12 20:56:03] @ afletcher joined channel #puppet
[2010/03/12 20:56:38] @ Quit: jaredrhine: Ping timeout: 260 seconds
[2010/03/12 20:57:17] @ lak joined channel #puppet
[2010/03/12 21:00:39] @ Quit: afletcher: Ping timeout: 265 seconds
[2010/03/12 21:03:25] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/03/12 21:05:14] @ bug joined channel #puppet
[2010/03/12 21:14:47] @ Quit: lak: Quit: lak
[2010/03/12 21:15:53] @ Quit: nexx: Quit: quit
[2010/03/12 21:16:56] @ gaveen joined channel #puppet
[2010/03/12 21:27:57] @ Quit: tag: Disconnected by services
[2010/03/12 21:28:21] @ tag__ joined channel #puppet
[2010/03/12 21:30:12] @ tag joined channel #puppet
[2010/03/12 21:33:05] @ markl joined channel #puppet
[2010/03/12 21:33:38] @ afletcher joined channel #puppet
[2010/03/12 21:35:42] @ Quit: bkohler: Remote host closed the connection
[2010/03/12 21:44:00] @ Quit: bgupta: Quit: bgupta
[2010/03/12 21:45:36] @ sebas891 joined channel #puppet
[2010/03/12 21:49:01] @ bgupta joined channel #puppet
[2010/03/12 21:49:21] @ unpaidbill joined channel #puppet
[2010/03/12 21:57:38] @ Quit: pting: Quit: Ex-Chat
[2010/03/12 22:13:18] @ Quit: mizzy: Ping timeout: 252 seconds
[2010/03/12 22:21:17] @ mizzy joined channel #puppet
[2010/03/12 22:25:43] @ Quit: mizzy: Ping timeout: 265 seconds
[2010/03/12 22:30:31] @ tonyskapunk joined channel #puppet
[2010/03/12 22:37:39] @ joe-mac left channel #puppet ()
[2010/03/12 22:38:03] @ joe-mac joined channel #puppet
[2010/03/12 22:42:59] @ Quit: Jailbait: Ping timeout: 246 seconds
[2010/03/12 22:44:35] @ mizzy joined channel #puppet
[2010/03/12 22:53:31] @ Quit: blahdeblah: Remote host closed the connection
[2010/03/12 22:53:32] @ blahdeblah1 joined channel #puppet
[2010/03/12 22:59:58] @ Quit: tonyskapunk: Quit: ERC Version 5.2 (IRC client for Emacs)
[2010/03/12 23:04:48] @ Quit: sebas891: Quit: Leaving.
[2010/03/12 23:05:21] @ markl is now known as markl_
[2010/03/12 23:17:14] @ Quit: cliff-hm: Ping timeout: 256 seconds
[2010/03/12 23:23:18] <doubleukay> hm is there an obvious way to get all ip addresses into a list variable? I'm trying to make this service bind to all the ip addresses (instead of to 0.0.0.0)
[2010/03/12 23:23:38] @ lilmatt joined channel #puppet
[2010/03/12 23:23:53] @ Quit: lilmatt: Client Quit
[2010/03/12 23:24:02] <doubleukay> (I'm using facter 1.5.6 and puppet 0.25.4)
[2010/03/12 23:31:45] <joe-mac> doubleukay: what service? it doesn't take a wildcard?
[2010/03/12 23:32:37] @ lak joined channel #puppet
[2010/03/12 23:33:59] <doubleukay> yes, it takes the 0.0.0.0 wildcard, but for specific reasons I need to bind it to each individual ip address
[2010/03/12 23:35:24] <doubleukay> ^ powerdns
[2010/03/12 23:35:35] <doubleukay> its listen-ip config takes a space-separated list of ips, so I managed to get what I want by concatenating all the interface ips like "$ipaddress_eth0 $ipaddress_eth1 .." , works for now but won't work for when I have a novel interface name :)
[2010/03/12 23:36:16] <joe-mac> yea in an erb template you could do it
[2010/03/12 23:36:38] <joe-mac> you can take the interfaces fact, split on ',' and access fact names of every interface
[2010/03/12 23:36:44] <joe-mac> and skip the lo, etc
[2010/03/12 23:36:49] <doubleukay> ahhh
[2010/03/12 23:37:05] <doubleukay> yes I can try that. time to learn some ruby ;)
[2010/03/12 23:37:40] <joe-mac> that should be pretty easy
[2010/03/12 23:38:02] <joe-mac> and ruby is good, so it should be fun
[2010/03/12 23:40:29] @ Quit: afletcher: Quit: afletcher
[2010/03/12 23:56:56] <doubleukay> joe-mac: hey I got something written up.. but I'm not a ruby person and I don't know if this is a good way to do things. got a minute to look at a few lines? :P

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