Thursday, 2008-05-01

[2008/05/01 00:13:07] @ nigelk joined channel #puppet
[2008/05/01 00:15:59] @ Quit: glaw: Remote closed the connection
[2008/05/01 00:18:31] @ Quit: malikeye|work: "Lost terminal"
[2008/05/01 00:26:49] @ ^authentic joined channel #puppet
[2008/05/01 00:27:59] @ brscott joined channel #puppet
[2008/05/01 00:29:28] @ Quit: authentic: Read error: 110 (Connection timed out)
[2008/05/01 00:29:29] @ ^authentic is now known as authentic
[2008/05/01 00:31:32] @ Volcane joined channel #puppet
[2008/05/01 00:32:12] * Volcane is having very random behaviour on his custom facts :(
[2008/05/01 00:32:17] <Volcane> start it, it works
[2008/05/01 00:32:24] <Volcane> go to lunch come back, restart puppet, nada
[2008/05/01 00:32:26] <Volcane> cant find variables
[2008/05/01 00:32:37] <Volcane> am the only one working on it
[2008/05/01 00:32:40] <Volcane> so no changes, sigh
[2008/05/01 00:33:37] @ brscott left channel #puppet ()
[2008/05/01 00:37:27] <riddley> does puppet do all the SMF stuff in Sol10?
[2008/05/01 00:41:39] <jamesturnbull> riddley: yes
[2008/05/01 00:42:00] <riddley> great
[2008/05/01 00:42:35] <jamesturnbull> riddley: lib/puppet/provider/service/smf.rb
[2008/05/01 00:42:48] <jamesturnbull> riddley: never delved into it but it's mostly featured
[2008/05/01 00:42:51] <riddley> wonderful! :)
[2008/05/01 00:42:58] <jamesturnbull> the wiki:TypeReference will also help
[2008/05/01 00:43:27] <gepetto> jamesturnbull: wiki:TypeReference is http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2008/05/01 00:43:27] <riddley> thx much
[2008/05/01 00:52:03] @ zobbo__ is now known as zobbo_
[2008/05/01 00:54:39] @ markl_ joined channel #puppet
[2008/05/01 01:12:13] @ YAPDog joined channel #puppet
[2008/05/01 01:12:41] <YAPDog> Is there a way to make puppet show yuo the values of its internal variables (like servername) that are not shown in a standalone facter run?
[2008/05/01 01:13:01] <duritong> use notice or what
[2008/05/01 01:13:56] <YAPDog> I'd need to know the variable names ahead of time with notice though.
[2008/05/01 01:14:21] @ Quit: kolla: Remote closed the connection
[2008/05/01 01:17:34] @ Quit: YAPDog: "leaving"
[2008/05/01 01:19:52] @ martha joined channel #puppet
[2008/05/01 01:32:10] @ yure_ joined channel #puppet
[2008/05/01 01:37:12] <gepetto> ::puppet:: Changeset [83519f4e59f68f867f8ddbe141ac8bd9a6238ae1]: Interim commit, since I want to work but have ... @ http://reductivelabs.com/trac/puppet/changeset/83519f4e59f68f867f8ddbe141ac8bd9a6238ae1 (by Luke Kanies <luke@madstop.com>)
[2008/05/01 01:37:12] <gepetto> ::puppet:: Changeset [8c9b04d807b34ade704da3584b72d39bb129aa75]: I think I've now got the Webrick SSL support w... @ http://reductivelabs.com/trac/puppet/changeset/8c9b04d807b34ade704da3584b72d39bb129aa75 (by Luke Kanies <luke@madstop.com>)
[2008/05/01 01:37:13] <gepetto> ::puppet:: Ticket #1209 (enhancement closed): Patch to fix missing bracket in documentation @ http://reductivelabs.com/trac/puppet/ticket/1209#comment:2 (by luke@madstop.com)
[2008/05/01 01:47:05] <gepetto> ::puppet:: Ticket #1205 (enhancement closed): CONFIG['bindir'] CONFIG['sbindir'] have undesirable defaults on O... @ http://reductivelabs.com/trac/puppet/ticket/1205#comment:3 (by luke@madstop.com)
[2008/05/01 01:47:21] <ashp> you know i constantly get 'state got corrupted' lately and ia ssume that's bad bad news
[2008/05/01 01:47:40] @ Quit: yure: Read error: 110 (Connection timed out)
[2008/05/01 01:53:13] <lak> ashp: it's not usually actually that bad
[2008/05/01 01:53:37] <lak> it just means the cache of state information in yaml got turned into invalid yaml somehow, the worst that'd happen is a file change might not get noticed
[2008/05/01 01:55:49] <ashp> hmm this brings up another question
[2008/05/01 01:55:57] <ashp> when you use puppetd does it make one initial connection and do it all via that
[2008/05/01 01:56:02] <ashp> or does it open several connections along the way?
[2008/05/01 01:56:22] <ashp> because part of what it was doing was (incorrectly, as I messed up something in ldap) changing hosts to point to the wrong ip for puppet
[2008/05/01 02:03:16] <lak> several connections
[2008/05/01 02:03:32] <lak> we tried http keepalive, but we couldn't make it work without corruption
[2008/05/01 02:07:12] @ asa joined channel #puppet
[2008/05/01 02:07:26] @ Quit: huangmingyou: "Leaving."
[2008/05/01 02:07:36] @ huangmingyou joined channel #puppet
[2008/05/01 02:07:44] <ashp> ahhh ok, that explains what happens then
[2008/05/01 02:07:52] <ashp> it updates the host file and then all goes terrible wrong
[2008/05/01 02:08:47] @ RichardBarran joined channel #puppet
[2008/05/01 02:09:02] @ Quit: kyrh: "leaving"
[2008/05/01 02:10:51] <ashp> I wish I knew why puppet ALWAYS changed one of my users passwords every time
[2008/05/01 02:11:06] <ashp> it's a password => '', statement and the password has some $'s, /'s and a : in it
[2008/05/01 02:11:10] <ashp> but that shouldn't confuse the parser
[2008/05/01 02:11:26] @ muerr joined channel #puppet
[2008/05/01 02:11:38] <lak> do you single quote the pass, or double quote it?
[2008/05/01 02:11:46] <ashp> single quote
[2008/05/01 02:12:24] <ashp> the other two are single quoted with the same characters within and they don't trigger an update every time
[2008/05/01 02:13:08] <lak> are there platform differences, or selinux differences, or is there something else that could change the password after puppet writes it?
[2008/05/01 02:13:26] <lak> most often, if you're seeing repeated updates that only happen in certain cases, your system is changing it between puppet's write and its read
[2008/05/01 02:13:28] <ashp> nope, it's a user that never even logs in, he's just in here for backup
[2008/05/01 02:13:37] <RichardBarran> gepetto: help
[2008/05/01 02:13:38] <gepetto> RichardBarran: help topics: 9 core modules: auth, basics, config, filters, httputil, irclog, remote, unicode, userdata; 5 plugins: rss, seen, shortenurls, stats, tracurls (help <topic> for more info)
[2008/05/01 02:13:47] <lak> e.g., someone was using puppet to write a templated file to disk, and selinux was constantly adding a header while the file was being written
[2008/05/01 02:13:53] <lak> so puppet saw the file as different and rewrote it every time
[2008/05/01 02:13:53] <ashp> oh, hmm
[2008/05/01 02:13:59] <ashp> it's not actually writing him into /etc/shadow
[2008/05/01 02:14:08] <ashp> it put him in /etc/passwd, and not /etc/shadow
[2008/05/01 02:14:25] <RichardBarran> gepetto: help config
[2008/05/01 02:14:27] <gepetto> RichardBarran: config module - bot configuration. usage: list, desc, get, set, unset, add, rm
[2008/05/01 02:14:59] <RichardBarran> gepetto: help basics
[2008/05/01 02:15:02] <gepetto> RichardBarran: basics: quit, restart, join, part, hide, save, nick, say, action, topic, quiet, talk, ping, mode
[2008/05/01 02:15:09] <ashp> his definition is indentical to my other users however, how odd: http://pastebin.com/d7da30763
[2008/05/01 02:15:19] <ashp> tkilday is the one that breaks, and tluker works fine
[2008/05/01 02:16:22] <RichardBarran> gepetto: help fileserver.conf
[2008/05/01 02:16:24] <gepetto> RichardBarran: no help for topic fileserver.conf
[2008/05/01 02:16:29] <ashp> it calls usermod -p (pass) tkilday and he has a passwd entry, how odd
[2008/05/01 02:16:41] <ashp> it just silently fails
[2008/05/01 02:17:33] <ashp> oh, it's because redhat and suse use different encryption strings and it silently fails if you don't provide the right type
[2008/05/01 02:18:04] <ashp> i guess puppet doesn't check for the return code on usermod to see if it worked or failed
[2008/05/01 02:18:59] <ashp> or, it returns 0 if it succeeds or fails. :(
[2008/05/01 02:19:56] <lak> it should definitely check the return code
[2008/05/01 02:20:00] <lak> and fail if the code is non-zero
[2008/05/01 02:20:05] <lak> that's the default behaviour
[2008/05/01 02:20:11] <ashp> even if usermod fails it returns 0
[2008/05/01 02:20:17] <ashp> which is absolutely useless
[2008/05/01 02:22:05] @ Quit: jvanzyl:
[2008/05/01 02:24:20] <RichardBarran> Anyone with experience of setting up fileserver.conf around? I've defined the simplest possible fileserver.conf... but see http://pastie.caboo.se/189351 for what happens :)
[2008/05/01 02:29:09] @ Quit: DerekW: "Leaving"
[2008/05/01 02:30:32] @ muerr left channel #puppet ()
[2008/05/01 02:35:07] @ muerr joined channel #puppet
[2008/05/01 02:35:09] @ plathrop joined channel #puppet
[2008/05/01 02:37:12] @ patobrien joined channel #puppet
[2008/05/01 02:37:56] @ jvanzyl joined channel #puppet
[2008/05/01 02:43:23] @ RichardBarran left channel #puppet ()
[2008/05/01 02:49:27] <gepetto> ::puppet:: Developer Repositories edited by luke @ http://reductivelabs.com/trac/puppet/wiki/DeveloperRepositories (by luke@madstop.com)
[2008/05/01 02:51:25] @ jlord joined channel #puppet
[2008/05/01 02:58:17] <lak> http://woss.name/2008/04/09/using-git-submodules-to-track-vendorrails/
[2008/05/01 03:10:35] @ Quit: jlord: Read error: 110 (Connection timed out)
[2008/05/01 03:11:34] <chadh> lak: I was planning to use submodules for my modules (assuming that's what you are referring to)
[2008/05/01 03:11:43] <lak> yeah
[2008/05/01 03:11:48] <lak> brb
[2008/05/01 03:19:27] * lak is back
[2008/05/01 03:56:10] @ erlingre joined channel #puppet
[2008/05/01 04:04:07] @ Quit: lak:
[2008/05/01 04:09:00] @ shadoi joined channel #puppet
[2008/05/01 04:12:38] <erlingre> I have installed librrd-ruby on Debian testing, but the puppetmaster still dumps messages like this: "warning: RRD library is missing; cannot graph metrics"
[2008/05/01 04:12:58] <erlingre> do you have any suggestions for how I can debug this problem?
[2008/05/01 04:15:52] <shadoi> erlingre: http://reductivelabs.com/trac/puppet/wiki/ReportReference#id1
[2008/05/01 04:16:00] <shadoi> it requires that specific library.
[2008/05/01 04:16:39] <erlingre> ahh, thanks for the link
[2008/05/01 04:17:53] @ Quit: zobbo: Read error: 110 (Connection timed out)
[2008/05/01 04:22:12] @ lak joined channel #puppet
[2008/05/01 04:32:53] @ Quit: stevenjenkins: Read error: 110 (Connection timed out)
[2008/05/01 04:37:31] <hacim> lak: just to keep you updated, as you requested, the currently scheduled debian freeze is set for mid-July.
[2008/05/01 04:38:21] <hacim> essential transitions are almost finished (python and perl), which will result in them being frozen, then less essential libraries will be frozen and then the rest of the archive
[2008/05/01 04:39:26] <lak> ok
[2008/05/01 04:39:49] <lak> and if i remember correctly, point upgrades can happen after the freeze, but not major upgrades?
[2008/05/01 04:39:52] <lak> or how does that work?
[2008/05/01 04:41:55] @ ezralini joined channel #puppet
[2008/05/01 04:42:55] <ezralini> if I have a type of mount, and I have device => undef, what will puppet try and do ?
[2008/05/01 04:43:01] <ezralini> it's a little hard for me to test it
[2008/05/01 04:43:31] <ezralini> nah, on 2nd thought, I can test it out
[2008/05/01 04:56:49] @ thecat left channel #puppet ()
[2008/05/01 05:10:58] @ Quit: jvanzyl:
[2008/05/01 05:22:11] @ gh joined channel #puppet
[2008/05/01 05:25:55] @ barnowl joined channel #puppet
[2008/05/01 05:35:00] @ pleemans joined channel #puppet
[2008/05/01 05:38:52] <barnowl> question on modules. I have a a resource set in a class yum called Yumrepo[re]. It is include in the node definition
[2008/05/01 05:39:46] <barnowl> In a module called hobbit also in the node definition, I attempt to require => Yumrepo[re] but the require fails.
[2008/05/01 05:45:28] @ Quit: oxtail: Connection timed out
[2008/05/01 05:46:30] <londo> hmm the file type seem to vulnerable to TOCTOU attacks :(
[2008/05/01 05:52:08] <nigelk> is there a longer term goal for plugins in modules that doesn't involve copying plugins to the ruby sitelibdir ?
[2008/05/01 05:52:30] <barnowl> TOCTOU ?
[2008/05/01 05:53:24] <nigelk> time of check, time of use
[2008/05/01 05:53:39] <nigelk> http://en.wikipedia.org/wiki/Time-of-check-to-time-of-use
[2008/05/01 05:53:54] <barnowl> ah.
[2008/05/01 05:54:53] <barnowl> I am having a with requiring a resource from a class.
[2008/05/01 05:55:28] <barnowl> It seems the only way to do this is to include the class in the class requiring the resource.
[2008/05/01 05:56:08] <barnowl> I had thought it should work as lonag as all classes are parsed by the node definition
[2008/05/01 05:59:57] <barnowl> That was based on the fact that you can not reuse resource names like service{"foo":} in more than one place per node definition
[2008/05/01 06:01:39] <barnowl> scratch that problem, User error.
[2008/05/01 06:09:31] <ezralini> pastie: give me some love
[2008/05/01 06:09:49] <pastie> http://pastie.org/189523 by ezralini.
[2008/05/01 06:10:03] <ezralini> can anyone tell me how I can do this?
[2008/05/01 06:10:25] <ezralini> I couldn't tell if this was possible from http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals
[2008/05/01 06:10:26] <nigelk> I'd do it differently
[2008/05/01 06:10:32] <nigelk> with an instatement conditional
[2008/05/01 06:10:40] <ezralini> nigelk: explain more?
[2008/05/01 06:10:49] <nigelk> working up an example
[2008/05/01 06:10:55] <ezralini> nigelk: well, you don't ned to
[2008/05/01 06:11:07] <ezralini> actually, I am much more comfortable with an instatement conditional
[2008/05/01 06:11:34] <ezralini> I can't figure out what to do in my example, though, because what I really want is to use the "mount" type but not for one of the cases
[2008/05/01 06:11:43] <nigelk> ah
[2008/05/01 06:12:24] <nigelk> so I was going to suggest file { "foo":
[2008/05/01 06:12:39] <ezralini> like this: http://pastie.org/189523
[2008/05/01 06:12:40] <nigelk> and then do name => $my_environment ? { }
[2008/05/01 06:13:01] <ezralini> nigelk: i don't understand
[2008/05/01 06:13:47] @ Quit: erlingre: "Leaving"
[2008/05/01 06:14:00] @ |Innocenti| joined channel #puppet
[2008/05/01 06:14:04] <nigelk> you've edited your paste now and I can't see it :)
[2008/05/01 06:14:31] <nigelk> http://pastie.org/189527
[2008/05/01 06:14:35] <nigelk> that's what I meant
[2008/05/01 06:15:08] <nigelk> if you only have one attribute you want to change based upon the value of some variable, I tend to do an inline conditional like that
[2008/05/01 06:15:45] <ezralini> nigelk: yeah, that works great usually, but not for this case. The type I want to use is mount
[2008/05/01 06:15:59] <ezralini> and for a specific case, I don't want anything to be mounted
[2008/05/01 06:16:11] <ezralini> but for all the other cases, I do
[2008/05/01 06:17:01] <nigelk> how many other cases?
[2008/05/01 06:17:09] @ muerr left channel #puppet ()
[2008/05/01 06:17:13] <nigelk> some arbitrary number? and you don't want to hardwire them in the syntax?
[2008/05/01 06:17:22] <ezralini> three other cases
[2008/05/01 06:18:04] <nigelk> and you don't want to ensure => absent for that one case?
[2008/05/01 06:18:21] <ezralini> well, I guess maybe that's what I was looking for
[2008/05/01 06:18:45] <ezralini> in the one case i don't want the mount, I can do ensure => absent
[2008/05/01 06:18:50] <ezralini> let me try that.
[2008/05/01 06:18:52] <nigelk> i'm not sure if there's any useful attribute you could undef
[2008/05/01 06:19:01] <ezralini> I was using devce => undef, and that wasn't working
[2008/05/01 06:19:06] <nigelk> i haven't done much with mount.
[2008/05/01 06:19:06] <nigelk> yeah
[2008/05/01 06:19:11] <ezralini> cool
[2008/05/01 06:19:31] <nigelk> actaully
[2008/05/01 06:19:35] <nigelk> you could use noop
[2008/05/01 06:19:51] <nigelk> the metaparameter
[2008/05/01 06:19:53] <nigelk> I think
[2008/05/01 06:20:51] <nigelk> http://pastie.org/189530
[2008/05/01 06:21:51] <ashp> http://live.lab42.it/puppetinfrastructure/browser/modules/hardening/manifests/init.pp
[2008/05/01 06:21:54] <ashp> Weird, using that I get an error
[2008/05/01 06:22:14] <ashp> Apr 30 16:17:48 hlslinutil02 puppetmasterd[31684]: Could not match ' ' at /etc/puppet/modules/hardening/manifests/services.pp:3
[2008/05/01 06:22:30] <ashp> I don't get it, I even broke out every one into its own service {} just to be sure
[2008/05/01 06:22:33] <ashp> and it still fails to match
[2008/05/01 06:22:57] <ashp> it fails on thise second line:
[2008/05/01 06:22:57] <ashp> service { "anacron":
[2008/05/01 06:22:58] <ashp> enable    => "false",
[2008/05/01 06:23:14] <ezralini> nigelk: thank you very much, workd lik a charm
[2008/05/01 06:23:18] <nigelk> shouldn't you not quote that ashp?
[2008/05/01 06:23:27] <nigelk> false and true shouldn't be quoted should they?
[2008/05/01 06:23:50] <nigelk> ezralini: cool
[2008/05/01 06:23:54] <ashp> hmm, they are in the lab43 module, let me try
[2008/05/01 06:23:57] <ashp> 42
[2008/05/01 06:24:23] <nigelk> i can never remember the puppet quoting stuff off the top of my head
[2008/05/01 06:24:27] <ashp> makes no difference :/
[2008/05/01 06:24:52] @ Quit: fsweetser: Remote closed the connection
[2008/05/01 06:26:14] @ Quit: Zothar_Work: "ChatZilla 0.9.81 [Firefox 2.0.0.14/2008040414]"
[2008/05/01 06:28:57] @ fsweetser joined channel #puppet
[2008/05/01 06:29:37] <ashp> i am baffled, i removed the quoting from both
[2008/05/01 06:29:44] <ashp> and it still fails on enable => false,
[2008/05/01 06:30:06] <nigelk> are other services working for you?
[2008/05/01 06:30:13] <ashp> yes
[2008/05/01 06:30:17] <ashp> i have lots of other modules working ok
[2008/05/01 06:30:30] <ashp> i just added a new module, added init.pp which has include hardening::services
[2008/05/01 06:30:39] <ashp> and in services.pp i defined all of those services, this normally works ok
[2008/05/01 06:31:34] <nigelk> i really hate semicolons in puppet syntax I've realized
[2008/05/01 06:31:34] <ashp> i removed the enable line, and the next line down fails now
[2008/05/01 06:31:37] <ashp> so something odd is going on
[2008/05/01 06:32:39] <ashp> http://pastebin.com/d2877824d
[2008/05/01 06:34:17] <nigelk> is services a keyword?
[2008/05/01 06:34:29] <nigelk> what happens if you rename services in the class name and file?
[2008/05/01 06:34:55] <ashp> originally i just had them in hardening/init.pp
[2008/05/01 06:34:57] <ashp> and it still complained
[2008/05/01 06:35:15] <barnowl> ashp what is the failure message you are getting?
[2008/05/01 06:35:35] <ashp> Could not match ' ' at services.pp:5
[2008/05/01 06:37:23] <ashp> it's a really weird error
[2008/05/01 06:37:27] <barnowl> It looks like it is trying to match white space. I ran in to this a with packages{}. Try taking out the whitespace between the { and the first "
[2008/05/01 06:37:42] <shadoi> ashp: you should set a Service { ensure => stopped } default
[2008/05/01 06:37:45] <shadoi> in that class
[2008/05/01 06:38:00] <shadoi> and then only declare those that deviate
[2008/05/01 06:38:03] <ashp> oh, and then just list the services? I didn't know I could do that
[2008/05/01 06:38:11] <ashp> i just stop someone elses module for laziness :)
[2008/05/01 06:38:14] <shadoi> you can also declare all services in one block
[2008/05/01 06:38:29] <shadoi> end a declaration with a semicolon
[2008/05/01 06:38:31] <ashp> i had that but put them into one
[2008/05/01 06:38:38] <ashp> er, out of one into many, to try and get it working
[2008/05/01 06:39:20] <ashp> I will set ensure => stopped and so forth and try relisting them
[2008/05/01 06:39:23] <ashp> it was whitespace breaking it
[2008/05/01 06:39:55] <barnowl> I only found it becuase I still have nightmares about that problem from Cobol.
[2008/05/01 06:40:55] <ashp> so to bring them back together in one class
[2008/05/01 06:41:08] <ashp> I'd just do service { "anacron":; "next":;
[2008/05/01 06:41:14] <ashp> that's horrible syntax, but it makes sense sadly
[2008/05/01 06:41:16] <shadoi> ashp: http://pastie.org/189539
[2008/05/01 06:41:21] <barnowl> Not sure why that paticuler spot in all the resources seems to do taht.
[2008/05/01 06:41:38] <ashp> oh hmm, i can just do it as an array, nice
[2008/05/01 06:41:42] <ashp> sometimes puppet is elegant :)
[2008/05/01 06:41:49] <nigelk> that's really nice syntax
[2008/05/01 06:41:56] <barnowl> Arrays make so many things saner.
[2008/05/01 06:41:59] <nigelk> that's not obvious from the language guide at all :)
[2008/05/01 06:42:22] <shadoi> :)
[2008/05/01 06:42:58] <barnowl> Much of the really elegant stuff you can do with puppet is not clear in the guides.
[2008/05/01 06:43:22] <shadoi> LanguageTutorial has most of this stuff
[2008/05/01 06:43:55] <barnowl> Templates are wonderful tools, but I never guessed it based on the Puppet Template explanation.
[2008/05/01 06:44:19] <shadoi> Unless you have some restraint templates can go wild.
[2008/05/01 06:44:28] <nigelk> i kind of think templates are evil
[2008/05/01 06:44:39] <shadoi> Technically you could modify puppet's internals while in the middle of a config run
[2008/05/01 06:44:44] <shadoi> crazy stuff
[2008/05/01 06:44:49] <holoway> shadoi: hooray! :)
[2008/05/01 06:44:51] * holoway kids
[2008/05/01 06:44:53] <ashp> you missed off a = which threw me for a second :D
[2008/05/01 06:44:55] <shadoi> holoway: :)
[2008/05/01 06:45:08] <shadoi> holoway: I qualified it... I'm assuming you have "restraint" haha
[2008/05/01 06:45:16] * holoway is a model of restraint
[2008/05/01 06:45:29] <shadoi> ashp: I did?
[2008/05/01 06:46:11] <ashp> $services = ["etc"]
[2008/05/01 06:46:19] <shadoi> ah whoops
[2008/05/01 06:46:29] <ashp> It's running now, and seems to work, fantastic
[2008/05/01 06:46:30] <shadoi> wow I looked at it like 5 times and didn't notice.. lol
[2008/05/01 06:46:43] <ashp> I have shied away from using arrays due to my problems pulling info out of the arrays ldap returns to me
[2008/05/01 06:46:52] <barnowl> Shadoi You can do that?? (Modify puupet guts on the fly)
[2008/05/01 06:47:02] <shadoi> barnowl: yes but I shouldn't have mentioned it. :P
[2008/05/01 06:47:27] <shadoi> barnowl: it's because in a template you're free to do anything ruby can do.
[2008/05/01 06:47:46] <shadoi> sometimes limitations are good.
[2008/05/01 06:47:52] @ Quit: pleemans: "Ex-Chat"
[2008/05/01 06:48:16] <holoway> ashp: fun ruby fact, strings support a .to_a method
[2008/05/01 06:48:24] <holoway> and an .each method
[2008/05/01 06:48:37] <ashp> i need to mess with templates tomorrow because I have to check for a variable and change the template based on it
[2008/05/01 06:48:38] <holoway> so you can do <% foo.each do |bar| %>
[2008/05/01 06:48:44] <shadoi> wow.. don't try to add a github private feed to Mail.app
[2008/05/01 06:48:50] <shadoi> destruction ensues.
[2008/05/01 06:48:52] <holoway> and that's safe on a string
[2008/05/01 06:48:54] <ashp> what I needed was, I had ldap return environment with [ 'internal','development' ]
[2008/05/01 06:49:07] <ashp> and i had to check that array for 'internal' and set puppets ip in a hosts.erb
[2008/05/01 06:49:21] <ashp> i ended up returning it in a new thing called location and doing a case on that, hideous but it worked
[2008/05/01 06:49:25] <ashp> i should have done it in the erb clearly
[2008/05/01 06:49:37] <holoway> yep
[2008/05/01 06:49:44] <ashp> tomorrow i will look at doing that
[2008/05/01 06:49:46] <shadoi> ashp: I'd go for an "ldap_environment" fact
[2008/05/01 06:50:09] <barnowl> The other tool that I find ugly in presentation but very nice in keeping htings clean is Modules.
[2008/05/01 06:50:13] <holoway> <% if location.detect { |t| t == "internal" } %>
[2008/05/01 06:50:14] <ashp> I knew a fact was probably the right direction, but I didn't get my other fact working :/
[2008/05/01 06:50:24] <ashp> holoway: damn, that would have been easy.
[2008/05/01 06:50:52] <holoway> shadoi: clearly, I need to write the "how to use templates like a heretic" page
[2008/05/01 06:50:55] <barnowl> ashp: Templates are making me learn ruby for just taht kinda of thing
[2008/05/01 06:51:02] <shadoi> I think of templates like views in MVC, the less logic in them the better.
[2008/05/01 06:51:10] <holoway> shadoi: amen
[2008/05/01 06:51:21] <holoway> (sadly, there is no better place for most of that in puppet)
[2008/05/01 06:51:24] <ashp> i'll have a play with a fact that checks the array returned from ldap and checks for some stuff and returns the right ip
[2008/05/01 06:51:29] <ashp> as an idea at least
[2008/05/01 06:51:49] <holoway> in particular, puppet kind of lacks a "Model" layer
[2008/05/01 06:51:58] <holoway> if we're using MVC terminology
[2008/05/01 06:52:03] <holoway> where the manifest is the controller
[2008/05/01 06:52:16] <holoway> and the providers/files/templates the resultant views
[2008/05/01 06:52:20] @ _patobrien_ joined channel #puppet
[2008/05/01 06:52:23] <holoway> well, I guess it has a model layer
[2008/05/01 06:52:25] <holoway> facter
[2008/05/01 06:52:37] <holoway> an interesting thought train, though
[2008/05/01 06:53:01] <shadoi> holoway: native types are models.
[2008/05/01 06:53:02] <shadoi> ;)
[2008/05/01 06:53:10] <shadoi> it's _exactly_ what they are.
[2008/05/01 06:53:15] <holoway> shadoi: they are views!
[2008/05/01 06:53:16] <barnowl> Strange thought, anyone know if you can mix generate and tempalte functions in a content => attirbute ?
[2008/05/01 06:53:35] <barnowl> template
[2008/05/01 06:53:36] <holoway> assuming the consumer of our MVC-ness is the converged result set of puppet
[2008/05/01 06:54:07] <holoway> native types are fancy views
[2008/05/01 06:54:19] <shadoi> holoway: nah, types have the CRUD.
[2008/05/01 06:54:23] <shadoi> they are the models.
[2008/05/01 06:54:27] <holoway> (you can even switch out the underlying view provider without changing the controller!)
[2008/05/01 06:55:00] <holoway> shadoi: that assumes that the thign that takes action on your system is the model, which means templates aren't views
[2008/05/01 06:55:03] <holoway> :0
[2008/05/01 06:55:08] <holoway> oh, the semantic games
[2008/05/01 06:55:10] <holoway> :)
[2008/05/01 06:55:11] <shadoi> holoway: they _should_ be. ;)
[2008/05/01 06:55:25] <shadoi> MVC is all smoke an mirrors, it's a constraint you place on yourself to keep things clean.
[2008/05/01 06:55:31] <holoway> shadoi: totally
[2008/05/01 06:55:47] <holoway> I'm just saying, if we're really trying to wedge puppet in that world
[2008/05/01 06:55:55] <holoway> models feed controllers, controllers feed views
[2008/05/01 06:55:58] <holoway> views feed clients
[2008/05/01 06:56:01] <holoway> and we loop back
[2008/05/01 06:56:46] <holoway> puppet's model layer, the place the controller can extract data to make decisions about data to be rendered
[2008/05/01 06:56:51] <holoway> is totally facter
[2008/05/01 06:56:52] <holoway> :)
[2008/05/01 06:57:03] <shadoi> I think it applies cleanly, the client is fed by templates the same way a view feeds a browser. The problem is the views are more powerful in puppet to some detriment.
[2008/05/01 06:57:10] <shadoi> facter == helpers
[2008/05/01 06:57:13] <shadoi> in a rails app
[2008/05/01 06:57:44] <nigelk> shadoi: from before "is there a longer term goal for plugins in modules that doesn't involve copying plugins to the ruby sitelibdir ?"
[2008/05/01 06:58:03] <shadoi> nigelk: it already works that way
[2008/05/01 06:58:08] <shadoi> nigelk: in 0.24.4
[2008/05/01 06:58:10] <nigelk> really?
[2008/05/01 06:58:12] <nigelk> http://reductivelabs.com/trac/puppet/wiki/PluginsInModules
[2008/05/01 06:58:15] <nigelk> seems to think otherwise
[2008/05/01 06:58:27] <shadoi> I think you misread
[2008/05/01 06:58:30] <shadoi> they go in the module dirs
[2008/05/01 06:58:50] <nigelk> "Also, you must copy plugins to your $libdir on the Puppet master or it will not be able to compile the manifests"
[2008/05/01 06:59:55] <shadoi> nigelk: ah, a bug.. yeah I guess it's not fixed yet.
[2008/05/01 07:00:08] <nigelk> k. so long as it's only a bug :)
[2008/05/01 07:00:11] @ plathrop left channel #puppet ()
[2008/05/01 07:00:12] <shadoi> I think it works if you don't try to restrict access
[2008/05/01 07:00:15] <nigelk> oh
[2008/05/01 07:00:23] <barnowl> Check the workaround below that line
[2008/05/01 07:00:28] <barnowl> "Another workaround to this is to run puppetd on your puppetmaster, and have it pluginsync all plugins locally. This will also allow puppetmaster to compile the manifests."
[2008/05/01 07:00:31] <nigelk> yeah
[2008/05/01 07:00:33] <nigelk> not an option for us
[2008/05/01 07:00:57] @ Quit: patobrien: Read error: 110 (Connection timed out)
[2008/05/01 07:01:00] <barnowl> Not using puppet to maintain itself?
[2008/05/01 07:01:04] <nigelk> no
[2008/05/01 07:01:19] <barnowl> Just seems like a really useful way to handle things.
[2008/05/01 07:01:25] <shadoi> nigelk: why not?
[2008/05/01 07:01:54] <nigelk> it's kind of complicated
[2008/05/01 07:01:57] <shadoi> actually that's exactly why I've never seen it
[2008/05/01 07:02:06] <shadoi> I always have puppetd on the puppetmasterd
[2008/05/01 07:02:33] <lak> nigelk: sorry, kinda in the middle of the conversation, but you're having trouble with your server seeing files in the module plugins dirs?
[2008/05/01 07:02:42] <lak> what kind of trouble?
[2008/05/01 07:02:44] <nigelk> no, we're going to be moving to that model
[2008/05/01 07:02:45] <lak> (if so)
[2008/05/01 07:02:46] <lak> ah
[2008/05/01 07:02:48] <lak> ok
[2008/05/01 07:02:49] <nigelk> and decided to read the docs first :)
[2008/05/01 07:02:53] <lak> crazy talk!
[2008/05/01 07:02:58] <nigelk> :)
[2008/05/01 07:03:01] <shadoi> hehe
[2008/05/01 07:03:43] <shadoi> holoway: q($data) escapes all text crap right?
[2008/05/01 07:04:49] <barnowl> lak: you missed an interesting bit about a paticuler syntax gotcha. Wondering if you knew about it.
[2008/05/01 07:04:59] <lak> what bit is that?
[2008/05/01 07:05:32] <lak> nigelk, shadoi: that bug *should* be fixed -- the autoloader now looks in either lib/ or plugins/ in modules
[2008/05/01 07:05:32] <barnowl> The syntax is service{ "foo":} . this cuase the service to fail with an d error about ' '
[2008/05/01 07:05:40] <nigelk> excellent
[2008/05/01 07:06:03] <barnowl> Actually that seems to be an issue with a couple of resource types.
[2008/05/01 07:06:05] <lak> and if that doesn't work, it's definitely a bug, and one that would get fixed in the next possible release
[2008/05/01 07:06:26] <lak> barnowl: i'd need to see the stack trace or something
[2008/05/01 07:06:40] <lak> i doubt it's a syntax error, though -- it's more likely to be a validation error in the resource type
[2008/05/01 07:07:23] <shadoi> lak: I'll pull it out of that wiki page and update the ticket then.
[2008/05/01 07:07:43] <lak> is the ticket still open?
[2008/05/01 07:07:46] <shadoi> no
[2008/05/01 07:07:51] <lak> ok
[2008/05/01 07:07:59] <shadoi> actually if I just remove it from the wiki that should be enough.
[2008/05/01 07:08:17] <lak> yeah
[2008/05/01 07:08:37] <barnowl> lak: okay. When i get some time I'll see if I can get that. Want me to stick a bug in the tracker for it?
[2008/05/01 07:09:19] <lak> if you can get the stack trace, yes, but please specify the resource type you're having the problems with, along with the expected behaviour
[2008/05/01 07:10:59] <barnowl> alright. The work around is straight word, you just have to make sure there is no white space before the name for the resource type.
[2008/05/01 07:11:16] @ plathrop` joined channel #puppet
[2008/05/01 07:12:13] @ Quit: plathrop`: Remote closed the connection
[2008/05/01 07:12:20] @ plathrop` joined channel #puppet
[2008/05/01 07:13:13] @ Quit: plathrop`: Remote closed the connection
[2008/05/01 07:13:22] @ Quit: barnowl: "Leaving"
[2008/05/01 07:14:12] <gepetto> ::puppet:: Plugins InModules edited by shadoi @ http://reductivelabs.com/trac/puppet/wiki/PluginsInModules (by shadoi@gmail.com)
[2008/05/01 07:15:02] @ plathrop_ joined channel #puppet
[2008/05/01 07:17:36] @ Quit: |Innocenti|: Read error: 110 (Connection timed out)
[2008/05/01 07:20:12] @ shenson is now known as shenson_not_here
[2008/05/01 07:20:35] @ plathrop_ is now known as plathrop`
[2008/05/01 07:20:37] @ Quit: jeckersb: "Leaving"
[2008/05/01 07:21:04] @ plathrop` is now known as plathrop_
[2008/05/01 07:23:00] @ plathrop_ is now known as plathrop
[2008/05/01 07:25:01] <holoway> shadoi: that apache issue?
[2008/05/01 07:25:54] <holoway> it was a side effect of mod_fcgid being compiled against a running httpd
[2008/05/01 07:25:59] <holoway> which was being triggered by puppet
[2008/05/01 07:26:05] <fujin> heh
[2008/05/01 07:26:05] <holoway> and hence, el segfaultorifico
[2008/05/01 07:26:17] <shadoi> wow
[2008/05/01 07:26:20] <shadoi> that's nuts
[2008/05/01 07:26:23] <holoway> agreed
[2008/05/01 07:26:28] <holoway> I have no idea *whY*
[2008/05/01 07:26:31] <holoway> but that's what it was
[2008/05/01 07:26:49] * holoway shakes the sacrifical chicken
[2008/05/01 07:26:58] <fujin> shadoi: hey, you use modrails right?
[2008/05/01 07:27:08] <fujin> whenever I start apache on my box the load goes through the roof with it installed
[2008/05/01 07:27:15] <fujin> like it's been at 50 all night
[2008/05/01 07:27:23] <fujin> I don't have much ram in this machine, that's probably whyt hough
[2008/05/01 07:28:45] <fujin> holoway: were both instaces of apache using the fcgid?
[2008/05/01 07:29:53] <holoway> fujin: nope
[2008/05/01 07:29:59] * fujin boggles
[2008/05/01 07:32:28] @ Quit: _patobrien_: "Leaving"
[2008/05/01 07:33:56] <shadoi> fujin: not currently, just tinkered with it
[2008/05/01 07:34:37] <fujin> ah
[2008/05/01 07:34:56] <fujin> I think mephisto is just a little bloaty for my poor 2.0ghz/256mb second hand server
[2008/05/01 07:35:41] <shadoi> sounds like something is odd
[2008/05/01 07:35:53] <shadoi> I never saw my mephisto instance go above 30mb
[2008/05/01 07:36:03] <holoway> fujin: mod_rails is probably not what you want to be using
[2008/05/01 07:36:11] <holoway> use mephisto + two mongrels
[2008/05/01 07:36:28] <fujin> bleh mongrel
[2008/05/01 07:36:31] <holoway> along with nginx or apache with worker mpm
[2008/05/01 07:36:33] <fujin> Mongrel is *such* a mongrel
[2008/05/01 07:36:43] <holoway> I agree
[2008/05/01 07:36:45] <fujin> I'm using prefork MPM with modrails
[2008/05/01 07:36:53] <fujin> my little hobo rails app works fine
[2008/05/01 07:36:56] <fujin> just mephisto
[2008/05/01 07:37:10] <shadoi> oh my god I hate perl.
[2008/05/01 07:37:48] <fujin> what's up?
[2008/05/01 07:38:29] <shadoi> I just hate how it gets pissy about using "my ($var)" in subs
[2008/05/01 07:38:39] <shadoi> just give me a damn variable!
[2008/05/01 07:38:42] <fujin> lol
[2008/05/01 07:39:36] @ hatumi joined channel #puppet
[2008/05/01 07:40:05] @ Quit: shadoi: Read error: 104 (Connection reset by peer)
[2008/05/01 07:40:17] <fujin> bo0m
[2008/05/01 07:41:25] @ shadoi joined channel #puppet
[2008/05/01 07:42:43] @ Quit: plathrop: Remote closed the connection
[2008/05/01 07:43:31] @ plathrop joined channel #puppet
[2008/05/01 07:52:57] @ Quit: plathrop: Remote closed the connection
[2008/05/01 07:53:17] @ plathrop joined channel #puppet
[2008/05/01 07:54:12] <holoway> shadoi: what's your complaint with perl and my?
[2008/05/01 07:54:57] <shadoi> umm.. I just hate it? ;)
[2008/05/01 07:54:57] <hatumi> Could not parse for environment development: i get this everytime for any manifest that i run using puppet (the standalone script)
[2008/05/01 07:55:10] <shadoi> holoway: totally irrational annoyance.
[2008/05/01 07:55:28] <fujin> fix your manifest hatumi
[2008/05/01 07:56:53] <hatumi> it shows for as simple manifest as echoing some text
[2008/05/01 07:57:06] <shadoi> echoing?
[2008/05/01 07:57:17] <shadoi> hatumi: paste it
[2008/05/01 07:57:27] @ Demosthenes joined channel #puppet
[2008/05/01 07:57:34] <shadoi> pastie: hatumi go go
[2008/05/01 07:58:20] <hatumi> exec {"test":
[2008/05/01 07:58:22] <hatumi> "/bin/echo hi"}
[2008/05/01 07:58:36] <shadoi> command => ?
[2008/05/01 07:58:40] @ Quit: plathrop: Remote closed the connection
[2008/05/01 07:59:33] @ plathrop joined channel #puppet
[2008/05/01 07:59:56] @ Quit: plathrop: Remote closed the connection
[2008/05/01 08:00:51] <hatumi> i use fedora linux
[2008/05/01 08:00:52] @ plathrop joined channel #puppet
[2008/05/01 08:01:22] <shadoi> hatumi: I'm saying your syntax is wrong
[2008/05/01 08:01:33] <shadoi> exec { "test": command => "/bin/echo hi" }
[2008/05/01 08:01:53] <shadoi> if the name is not the command you have to specify it.
[2008/05/01 08:02:02] @ Quit: plathrop: Remote closed the connection
[2008/05/01 08:03:24] @ Quit: shadoi: Remote closed the connection
[2008/05/01 08:03:36] @ shadoi joined channel #puppet
[2008/05/01 08:07:53] @ plathrop joined channel #puppet
[2008/05/01 08:08:22] <hatumi> thanks shadoi
[2008/05/01 08:09:27] @ Quit: lak:
[2008/05/01 08:10:17] @ Quit: ezralini:
[2008/05/01 08:11:35] @ Quit: felix_da_catz: Connection timed out
[2008/05/01 08:14:19] * fujin gives up on rails
[2008/05/01 08:15:52] <fujin> must find a faster server to host on
[2008/05/01 08:16:39] @ Quit: plathrop: Remote closed the connection
[2008/05/01 08:18:03] @ plathrop joined channel #puppet
[2008/05/01 08:18:54] @ Quit: plathrop: Remote closed the connection
[2008/05/01 08:19:21] @ plathrop joined channel #puppet
[2008/05/01 08:19:21] <jamesturnbull> fujin: me too - an I am beginning to distinctly hate hobo
[2008/05/01 08:19:42] <shadoi> jamesturnbull: what's the problem?
[2008/05/01 08:20:38] <shadoi> fujin: I work in a 256MB VM with lots of rails apps, never have a problem.
[2008/05/01 08:20:39] <jamesturnbull> pastie url me
[2008/05/01 08:20:48] <jamesturnbull> pastie: url me
[2008/05/01 08:21:13] <pastie> http://pastie.org/189607 by jamesturnbull.
[2008/05/01 08:21:47] <jamesturnbull> shadoi: that's after the 0.7.5 hobo upgrade
[2008/05/01 08:21:56] <shadoi> uhhh
[2008/05/01 08:22:16] <shadoi> did you upgrade hobo in puppetshow?
[2008/05/01 08:22:33] <shadoi> it's a rails plugin, it doesn't just use the gem
[2008/05/01 08:22:52] <shadoi> when you create a hobo app it sets it all up for you, there's no great way to upgrade an existing app right now unfortunately.
[2008/05/01 08:22:58] @ adoom42 left channel #puppet ()
[2008/05/01 08:23:02] <shadoi> you have to just basically overwrite all the files.
[2008/05/01 08:23:11] <jamesturnbull> shadoi: that's a little ... manual
[2008/05/01 08:23:12] <shadoi> I was planning to just move puppetshow to a new app to update hobo
[2008/05/01 08:23:22] <shadoi> in fact, I'll do it now.
[2008/05/01 08:23:53] <fujin> shadoi: not using apache/modrails I take it
[2008/05/01 08:24:00] <shadoi> fujin: nope
[2008/05/01 08:24:05] <fujin> I dare say I should probably invest in setting up more proxying/mongrel shit
[2008/05/01 08:24:09] <fujin> or apache fcgi
[2008/05/01 08:24:16] <shadoi> I always only use mongrel to develop
[2008/05/01 08:24:22] <shadoi> mod_rails is a deployment method
[2008/05/01 08:24:25] <shadoi> for production
[2008/05/01 08:24:57] <fujin> yea
[2008/05/01 08:25:01] <fujin> still very new, too
[2008/05/01 08:25:06] <jamesturnbull> shadoi: can you point me at what I overwrite - just replace the plugins/hobo directory with the /usr/lib/ruby/gems/1.8/gems/hobo-0.7.5 directory?
[2008/05/01 08:25:17] <shadoi> jamesturnbull: not quite
[2008/05/01 08:25:29] <jamesturnbull> shadoi: why did I think it'd be that easy....
[2008/05/01 08:25:37] <shadoi> jamesturnbull: you have to update the themes in public, rename some stuff.. etc.
[2008/05/01 08:26:23] @ Quit: plathrop: Remote closed the connection
[2008/05/01 08:31:35] <fujin> anyone know if you can do virtualhosted proxies in Apache?
[2008/05/01 08:31:55] <fujin> like, i wanna listen on 80, and proxypass to mongrel only for specific vhosts
[2008/05/01 08:32:43] <jamesturnbull> fujin: ahhhhh yes I think so
[2008/05/01 08:32:47] * jamesturnbull scratches head
[2008/05/01 08:32:49] <nigelk> sure
[2008/05/01 08:32:50] <nigelk> why not?
[2008/05/01 08:33:00] <nigelk> teh standard puppet mongrel proxy setup is in a vhost :)
[2008/05/01 08:33:40] <nigelk> esp if you're not faffing around with ssl
[2008/05/01 08:33:57] <fujin> yeah, I figured it'd be possible
[2008/05/01 08:34:00] <hatumi> doesn't puppet support "YUM" as a package provider. if not then how can it be used?
[2008/05/01 08:34:07] <fujin> yes it does
[2008/05/01 08:34:26] <fujin> nigelk: but can you run other normal non-proxy vhosts?
[2008/05/01 08:34:43] <fujin> on the same port
[2008/05/01 08:35:04] <fujin> fuck it I'll just give it a shot
[2008/05/01 08:39:19] <nigelk> fujin: if you're not doing SSL, I really don't see why not if you do name-based vhosts
[2008/05/01 08:40:17] <fujin> yeah, all of the vhosts on that box are name based
[2008/05/01 08:40:19] <fujin> will give it a crack
[2008/05/01 08:40:24] <fujin> mongrel listens on 3000 by default right?
[2008/05/01 08:41:08] <jamesturnbull> hatumi: wiki:TypeReference - see package
[2008/05/01 08:41:28] <gepetto> jamesturnbull: hatumi: wiki:TypeReference is http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2008/05/01 08:41:44] @ plathrop joined channel #puppet
[2008/05/01 08:49:23] <shadoi> jamesturnbull: just pushed the upgrade to my github
[2008/05/01 08:49:31] <shadoi> jamesturnbull: let me know if it works for you
[2008/05/01 08:50:48] <shadoi> fujin: you can do it
[2008/05/01 08:50:52] <fujin> yeah
[2008/05/01 08:50:53] <shadoi> you use ProxyPass
[2008/05/01 08:50:56] <fujin> got it working already :)
[2008/05/01 08:50:58] <fujin> ty though
[2008/05/01 08:50:59] <shadoi> ah cool
[2008/05/01 08:51:08] <fujin> shadoi: do you know if there is an LSB compliant init script for Mongrel?
[2008/05/01 08:51:17] <shadoi> there's one for mongrel_cluster
[2008/05/01 08:51:18] <fujin> or at least, a non compliant init script?
[2008/05/01 08:51:22] <fujin> ah I see
[2008/05/01 08:51:24] <fujin> I'll investigate, thanks
[2008/05/01 08:51:28] <shadoi> not sure about regular mongrel
[2008/05/01 08:51:39] <fujin> I'm so terrible, ever since I started playing around with rails I've made this channel terribly offtopic
[2008/05/01 08:51:45] <fujin> although I guess I can pretend to be working on puppet changecontrol :>
[2008/05/01 08:52:22] <shadoi> hehe
[2008/05/01 08:52:32] <shadoi> fujin: try the update for puppetshow
[2008/05/01 08:54:05] <fujin> no!!
[2008/05/01 08:54:08] <fujin> I've gotta focus
[2008/05/01 08:54:13] <shadoi> do eeeet
[2008/05/01 08:54:31] <shadoi> it's on topic!
[2008/05/01 08:55:03] <holoway> fujin: do you use runit?
[2008/05/01 08:55:11] <holoway> or daemontools?
[2008/05/01 08:55:16] <waawaamilk> bite ees farking 'ead oofff!!
[2008/05/01 08:55:19] <fujin> nah
[2008/05/01 08:55:23] <fujin> neither of em
[2008/05/01 08:55:27] * waawaamilk goes back to lurking
[2008/05/01 08:55:39] <holoway> I've got a mongrel_runit gem that will build a much more managable mongrel cluster
[2008/05/01 08:55:43] <holoway> mongrel_cluster sucks
[2008/05/01 08:55:44] <holoway> ;)
[2008/05/01 08:55:58] <holoway> haven't got around to releasing it yet
[2008/05/01 08:56:05] <fujin> oh?
[2008/05/01 08:56:18] <fujin> well, I really don't care for a cluster yet
[2008/05/01 08:56:19] <fujin> well maybe
[2008/05/01 08:56:29] <fujin> I'm goign to assume it's infinitely more faster than modrails
[2008/05/01 08:56:32] <holoway> yeah.. lets you do things like /etc/init.d/foo (start|stop|restart|status|kill) etc for the whole cluster
[2008/05/01 08:56:37] <fujin> oh.
[2008/05/01 08:56:38] <fujin> want
[2008/05/01 08:56:39] <fujin> give me now
[2008/05/01 08:57:57] <fujin> come on mate!
[2008/05/01 08:58:02] <fujin> Don't make me message you on MSN!
[2008/05/01 08:58:11] <holoway> ha
[2008/05/01 08:58:33] <holoway> one sec
[2008/05/01 08:58:36] <fujin> cool baby
[2008/05/01 08:59:51] <holoway> https://wiki.hjksolutions.com/pages/viewpageattachments.action?pageId=295039
[2008/05/01 09:00:09] <fujin> oic
[2008/05/01 09:00:11] <fujin> what's runit?
[2008/05/01 09:00:26] <fujin> I'm going to try apache proxy + mongrel on this 256mb VM and see if it handles any better.
[2008/05/01 09:00:29] * fujin curses passenger
[2008/05/01 09:00:48] <holoway> runit is a daemontools clone that is maintained and has some cooler features
[2008/05/01 09:01:00] <holoway> can be used as an init replacement
[2008/05/01 09:01:07] <holoway> but I usually just use it for job control with standard init
[2008/05/01 09:01:13] * holoway hearts runit
[2008/05/01 09:01:17] <holoway> daemonizing is for suckers
[2008/05/01 09:01:19] <holoway> :)
[2008/05/01 09:01:22] <shadoi> fujin: are you using a VM for production? why do you need anything other than mongrel?
[2008/05/01 09:01:44] <fujin> why did I say VM
[2008/05/01 09:01:45] <fujin> I'm so dumb
[2008/05/01 09:01:47] @ Quit: plathrop: Remote closed the connection
[2008/05/01 09:01:50] <holoway> pastie: url me
[2008/05/01 09:01:59] <fujin> shadoi: my puppetmaster is a VM, yeah
[2008/05/01 09:02:00] <fujin> @ work
[2008/05/01 09:02:05] @ plathrop joined channel #puppet
[2008/05/01 09:02:13] <fujin> but my colo box is a shitty old 1.8ghz p4 with 256mb ram
[2008/05/01 09:02:19] <shadoi> ah
[2008/05/01 09:02:23] <fujin> (and that's what passenger was choking on as far as I can see)
[2008/05/01 09:02:37] <shadoi> I recommend pound for memory constraints
[2008/05/01 09:02:52] <shadoi> it's cake to setup too
[2008/05/01 09:03:21] <pastie> http://pastie.org/189631 by holoway.
[2008/05/01 09:03:45] <holoway> the first part of that pastie
[2008/05/01 09:03:50] <holoway> is a config for running iclassify with mongrel runit
[2008/05/01 09:03:59] <holoway> builds 5 servers, starting at port 5000 in /etc/sv
[2008/05/01 09:04:05] <holoway> (for running the services)
[2008/05/01 09:04:12] <holoway> the second one runs our puppetmasterd mongrels
[2008/05/01 09:04:19] <holoway> again, 5 of them, starting at 18140
[2008/05/01 09:04:43] <holoway> we can do /etc/init.d/puppetmasterd create && /etc/init.d/puppetmasterd start
[2008/05/01 09:04:44] <shadoi> holoway: hehe... nice inline code checker
[2008/05/01 09:05:00] <shadoi> I love yaml for that
[2008/05/01 09:05:08] <holoway> yeah, I love that about runit
[2008/05/01 09:05:12] <holoway> that it will check health for you so easily
[2008/05/01 09:05:24] <fujin> shadoi: I run other apache stuff on my box
[2008/05/01 09:05:58] <fujin> holoway: so what do I do
[2008/05/01 09:06:18] <holoway> https://wiki.hjksolutions.com/display/IC/Install+Instructions
[2008/05/01 09:06:33] <holoway> search for mongrel_runit
[2008/05/01 09:06:45] <holoway> once you have the gem installed, follow those same instructions
[2008/05/01 09:06:56] <fujin> cool ty
[2008/05/01 09:07:08] <holoway> alter the first example in that pastie
[2008/05/01 09:07:10] <holoway> for your rails app
[2008/05/01 09:07:25] <holoway> (once you have runit installed... apt-get install runit should do it for you)
[2008/05/01 09:07:50] <fujin> working on it
[2008/05/01 09:09:38] <fujin> heh, how do you install a .gem?
[2008/05/01 09:09:41] <fujin> gem install /path/to/gem?
[2008/05/01 09:09:47] <shadoi> yeah
[2008/05/01 09:09:54] <fujin> oh, that worked
[2008/05/01 09:09:54] <fujin> lol
[2008/05/01 09:09:59] <fujin> tab completion wasn't working - i thought it'd break
[2008/05/01 09:10:42] @ Quit: johnf: Read error: 110 (Connection timed out)
[2008/05/01 09:10:45] <shadoi> holoway: you should make a puppet manifest to install iclassify. haha
[2008/05/01 09:12:05] <fujin> holoway: might I sugges ta seperate page detailing mongrel_runit's setup and configuration, instead of a hoary pastebin? :)
[2008/05/01 09:12:13] <fujin> not to criticise o ranythign, looks very nice so far
[2008/05/01 09:12:34] <holoway> fujin: absolutely
[2008/05/01 09:12:41] <holoway> just haven't had the tuits
[2008/05/01 09:12:49] <holoway> to stick it on rubyforge and write some docs
[2008/05/01 09:12:51] <holoway> lame, but true
[2008/05/01 09:12:52] <holoway> :0
[2008/05/01 09:13:01] <holoway> shadoi: it's probably the best way
[2008/05/01 09:13:06] <holoway> distributing rails apps is a bitch
[2008/05/01 09:13:10] <fujin> heh
[2008/05/01 09:13:15] <fujin> I'm new to it, and they're so shit
[2008/05/01 09:13:31] <holoway> it's all very perl circa 1996
[2008/05/01 09:14:52] <fujin> I know!
[2008/05/01 09:15:16] <fujin> holoway: so basically all I need to do is configure somethign in mongrel_runit, and then your gem will make the magic happen?
[2008/05/01 09:16:17] <holoway> fujin: yep - you stick a conf file in /etc/mongrel_runit/foo.yml, then use the shell script that's on that wiki page as /etc/init.d/mongrel_runit
[2008/05/01 09:16:29] <holoway> symlink /etc/init.d/mongrel_runit to /etc/init.d/foo
[2008/05/01 09:16:37] <holoway> /etc/init.d/foo create
[2008/05/01 09:16:38] <shadoi> holoway: mod_rails is really the best way to go, but it's apparently not quite there yet.
[2008/05/01 09:16:39] <holoway> and viola
[2008/05/01 09:16:47] <holoway> shadoi: I have some reservations
[2008/05/01 09:17:00] <holoway> not the least of which is that the garbage collector dirties every pre-forked page
[2008/05/01 09:17:05] <holoway> over time
[2008/05/01 09:17:09] <holoway> so unless they patch ruby
[2008/05/01 09:17:47] <holoway> but yeah, just like mod_perl is really easier than fastcgi (although external fastcgi is pretty sweet)
[2008/05/01 09:18:09] <shadoi> oh fujin I just realized that you may have ran into the ulimit -s issue they mention on their FAQ
[2008/05/01 09:18:28] <shadoi> holoway: for big deployments it'll always make sense to proxy to a cluster
[2008/05/01 09:18:41] <shadoi> holoway: but for small things, you can't beat it, and GC should never be a huge issue.
[2008/05/01 09:19:15] <holoway> yeah
[2008/05/01 09:19:42] <shadoi> fujin: it says that if you have a high stack size set for ulimit, it automatically takes up that much memory.
[2008/05/01 09:20:54] @ Quit: huangmingyou: "Leaving."
[2008/05/01 09:21:01] @ huangmingyou joined channel #puppet
[2008/05/01 09:24:32] <fujin> holoway: 5000: false: warning: /etc/sv/mongrel-junglist.gen.nz-5000: unable to open supervise/ok: file does not exist
[2008/05/01 09:25:31] <fujin> holoway: HOW TO FIX PLS ZIR?
[2008/05/01 09:25:35] <holoway> hehehe
[2008/05/01 09:25:43] <holoway> is runit installed?
[2008/05/01 09:25:47] <holoway> hit me on IM
[2008/05/01 09:25:57] <fujin> yea it is
[2008/05/01 09:36:11] <fujin> brb going to try fix stuff
[2008/05/01 09:36:19] @ Quit: fujin: "leaving"
[2008/05/01 09:41:55] @ fujin joined channel #puppet
[2008/05/01 09:43:35] <fujin> woops
[2008/05/01 09:43:38] <fujin> hosed me apache2.conf
[2008/05/01 09:43:39] <fujin> ;{
[2008/05/01 09:45:06] <fujin> is there someway to force dpkg to reinstall config files?
[2008/05/01 09:45:51] @ grim_radical left channel #puppet ("Leaving")
[2008/05/01 09:47:00] @ shenson_not_here is now known as shenson
[2008/05/01 09:50:58] @ zobbo joined channel #puppet
[2008/05/01 09:57:23] <nigelk> fujin: NZ Junglist?
[2008/05/01 09:57:28] <nigelk> fan of concorde dawn?
[2008/05/01 09:57:31] <fujin> not really
[2008/05/01 09:57:43] <fujin> I haven't felt any concorde dawn tracks since their old shit
[2008/05/01 09:57:52] <nigelk> I always found them too trancy
[2008/05/01 09:57:57] <fujin> heh
[2008/05/01 09:58:00] <fujin> I'm more a fan of State of Mind
[2008/05/01 09:58:13] <fujin> alot of the NZ breakbeat stuff is proving to be a little more active than dnb is these days
[2008/05/01 09:58:19] <nigelk> that happened in Sydney too
[2008/05/01 09:58:22] <fujin> being a jungling guy lets me flip between dnb and breaks
[2008/05/01 10:00:07] <nigelk> i got bored with where all that stuff was heading, and the sydney scene got really dull
[2008/05/01 10:02:06] <fujin> heh
[2008/05/01 10:02:10] <plathrop> G'night all
[2008/05/01 10:02:12] @ plathrop left channel #puppet ("ERC Version 5.2 (IRC client for Emacs)")
[2008/05/01 10:02:19] <fujin> I've been listening to a ridiculous amoutn of breakbeats recently
[2008/05/01 10:02:29] <fujin> junglist.gen.nz used to be a multiuser dnb review/download site
[2008/05/01 10:02:35] <fujin> but all of the other reviewers stopped
[2008/05/01 10:04:16] @ johnf joined channel #puppet
[2008/05/01 10:07:31] <nigelk> I used to live with Sub Bass Snarl who have been dj'ing dnb forever in Sydney
[2008/05/01 10:07:48] <nigelk> so was always inundated with it
[2008/05/01 10:07:56] <fujin> ah right
[2008/05/01 10:09:25] @ shenson is now known as shenson_not_here
[2008/05/01 10:17:31] <hatumi> is it possible to have multiple commands in one exec
[2008/05/01 10:17:34] <hatumi> ?
[2008/05/01 10:18:16] <fujin> That's a dumb idea.
[2008/05/01 10:18:49] <holoway> hatumi: sure, use &&
[2008/05/01 10:18:56] <holoway> 'echo foo && echo bar'
[2008/05/01 10:19:12] <nigelk> assuming you want the second to rely upon the exit status of the first
[2008/05/01 10:19:17] <holoway> indeed
[2008/05/01 10:19:22] <nigelk> i still think you're better off modelling it in puppet usually
[2008/05/01 10:19:25] <holoway> otherwise, feel free to do ||
[2008/05/01 10:19:37] <nigelk> it's clearer to say "do x then y if x works"
[2008/05/01 10:19:39] <holoway> but two execs with a notify/dependency is probably clenaer
[2008/05/01 10:19:44] <nigelk> great minds
[2008/05/01 10:19:54] <holoway> but really, just be consistent
[2008/05/01 10:20:13] <holoway> consistency counts for a lot in the automation game
[2008/05/01 10:20:14] <holoway> :0
[2008/05/01 10:20:17] <holoway> er :)
[2008/05/01 10:20:47] <hatumi> i would go for the notify/dependency. thanks for the help
[2008/05/01 10:23:49] @ Quit: yure_: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:23:58] @ barnbarn joined channel #puppet
[2008/05/01 10:24:30] @ rmiller joined channel #puppet
[2008/05/01 10:24:32] @ yure_ joined channel #puppet
[2008/05/01 10:24:37] @ badacid_ joined channel #puppet
[2008/05/01 10:24:40] <rmiller> is there any way to require a class to have run?
[2008/05/01 10:25:03] @ Quit: spike: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:06] @ Quit: jason^: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:09] @ Quit: glut: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:11] @ Quit: londo: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:14] @ Quit: wrobel: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:16] @ Quit: nevyn: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:19] @ Quit: fux: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:20] @ Quit: silk: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:23] @ Quit: badacid: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:24] @ Quit: Mandus: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:25] @ Quit: mellen: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:25] @ Quit: barnbarn_: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:25:26] <nigelk> require Class["foo"] ?
[2008/05/01 10:25:26] <rmiller> doesn't seem to work
[2008/05/01 10:25:55] @ fux joined channel #puppet
[2008/05/01 10:26:07] @ nevyn joined channel #puppet
[2008/05/01 10:26:10] <rmiller> err: Could not apply complete configuration: Could not retrieve dependency 'Class[common-sysctl]' at /var/tmp/barbiedb/manifests/barbiedb-base.pp:13
[2008/05/01 10:26:20] @ jason^ joined channel #puppet
[2008/05/01 10:26:42] <shadoi> rmiller: are you sure it's included?
[2008/05/01 10:26:52] <shadoi> should work fine
[2008/05/01 10:27:00] <rmiller> include common-sysctl
[2008/05/01 10:27:02] <rmiller> hmm
[2008/05/01 10:27:28] <shadoi> unless the class can't apply for some reason or has a syntax error?
[2008/05/01 10:27:34] @ londo joined channel #puppet
[2008/05/01 10:27:42] <shadoi> I assume you'd notice that right away though
[2008/05/01 10:28:38] <rmiller> debug: //common-sysctl/Sysctl[kernel.sysrq]/notify: subscribes to Exec[load-sysctl]
[2008/05/01 10:28:48] @ jvanzyl joined channel #puppet
[2008/05/01 10:28:55] <rmiller> that's before it fails
[2008/05/01 10:29:16] @ Quit: jvanzyl: Client Quit
[2008/05/01 10:29:24] <shadoi> is some dependency in the class requiring something that's not available to it?
[2008/05/01 10:30:14] <shadoi> rmiller: let's have a look at the manifest
[2008/05/01 10:30:23] @ Quit: johnf: Read error: 110 (Connection timed out)
[2008/05/01 10:30:47] <rmiller> hang on, coworker being a coworker..
[2008/05/01 10:31:25] @ spike joined channel #puppet
[2008/05/01 10:31:26] @ Mandus joined channel #puppet
[2008/05/01 10:31:27] @ glut joined channel #puppet
[2008/05/01 10:31:28] @ wrobel joined channel #puppet
[2008/05/01 10:31:29] @ silk joined channel #puppet
[2008/05/01 10:31:30] @ mellen joined channel #puppet
[2008/05/01 10:32:17] @ Quit: randybias:
[2008/05/01 10:35:08] <rmiller> going to pastebin it, a sec...
[2008/05/01 10:37:13] @ Demosthenex joined channel #puppet
[2008/05/01 10:38:08] <rmiller> http://pastebin.com/d48cd1ef7
[2008/05/01 10:38:53] <fujin> shadoi: I'm such a retard, my webserver was doing 5MB (yes, B)/s out
[2008/05/01 10:39:10] <fujin> turned out my torrentflux /downloads directory had lost it's htaccess
[2008/05/01 10:39:13] <fujin> (fail!!)
[2008/05/01 10:39:18] <shadoi> rmiller: that exec needs a path to printf
[2008/05/01 10:39:23] <shadoi> fujin: lol
[2008/05/01 10:39:36] <shadoi> gotta run
[2008/05/01 10:39:39] @ Quit: shadoi: "leaving"
[2008/05/01 10:39:54] <rmiller> mm
[2008/05/01 10:40:54] @ Quit: silk: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:40:55] @ Quit: Mandus: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:40:57] @ Quit: glut: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:40:59] @ Quit: wrobel: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:41:01] @ Quit: spike: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:41:04] @ Quit: mellen: kubrick.freenode.net irc.freenode.net
[2008/05/01 10:41:05] @ Mandus_ joined channel #puppet
[2008/05/01 10:41:40] @ mellen joined channel #puppet
[2008/05/01 10:41:43] @ spike_ joined channel #puppet
[2008/05/01 10:43:08] <hatumi> is it possible to run database sql ddl statement using puppet. any hints ??
[2008/05/01 10:44:07] <hatumi> i am setting up a system where a database needs to be created in the first installation
[2008/05/01 10:44:31] @ wrobel` joined channel #puppet
[2008/05/01 10:44:46] @ spike_ is now known as spike
[2008/05/01 10:47:36] @ shake-n-bake joined channel #puppet
[2008/05/01 10:49:35] @ Quit: Demosthenes: Read error: 110 (Connection timed out)
[2008/05/01 10:50:36] <chadh> Can anyone take a look at a problem with my take on remotefile? http://pastebin.com/m460f0557
[2008/05/01 10:52:48] <holoway> chadh: sure
[2008/05/01 10:53:51] <holoway> are you certain that the file is in the right spot on the puppet master?
[2008/05/01 10:54:05] <chadh> holoway: thanks
[2008/05/01 10:54:14] <chadh> I am adding the ls -lR now
[2008/05/01 10:56:26] <chadh> holoway: it's there now, but the short answer is yes. I was using explicit File resources before with symlinks for the architecture, and that worked fine, but when I switched to this define
[2008/05/01 10:56:30] <chadh> that behavior started
[2008/05/01 10:57:35] @ gh left channel #puppet ()
[2008/05/01 10:59:47] <rmiller> I wonder if puppet 0.22.4 just doesn't support this...
[2008/05/01 11:00:46] <chadh> How much of a pain is it to strace puppetmaster? :)
[2008/05/01 11:01:53] @ shake-n-bake_ joined channel #puppet
[2008/05/01 11:01:55] @ Quit: shake-n-bake: Read error: 104 (Connection reset by peer)
[2008/05/01 11:04:14] @ Quit: shake-n-bake_: Client Quit
[2008/05/01 11:04:42] @ shake-n-bake joined channel #puppet
[2008/05/01 11:07:56] @ Quit: shake-n-bake: Client Quit
[2008/05/01 11:08:12] @ Quit: nigelk:
[2008/05/01 11:08:54] @ shake-n-bake joined channel #puppet
[2008/05/01 11:11:16] @ Quit: mellen: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:18] @ Quit: wrobel`: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:20] @ Quit: yure_: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:22] @ Quit: barnbarn: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:25] @ Quit: RainDoctor: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:27] @ Quit: Soahc: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:29] @ Quit: Volcane: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:31] @ Quit: phips: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:33] @ Quit: hatumi: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:35] @ Quit: mcbride_: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:37] @ Quit: londo_: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:38] @ Quit: tmz: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:40] @ Quit: tim|imac: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:42] @ Quit: spike: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:44] @ Quit: badacid_: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:45] @ Quit: fsweetser: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:47] @ Quit: Wakko666: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:49] @ Quit: andyhold: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:50] @ Quit: chadh: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:52] @ Quit: ianm: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:53] @ Quit: happymcplaksin: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:55] @ Quit: mizzy: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:57] @ Quit: ashp: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:58] @ Quit: riddleyAthome: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:11:59] @ Quit: Cuchulain: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:01] @ Quit: euth: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:02] @ Quit: blblack: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:04] @ Quit: ssm: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:05] @ Quit: jcastro: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:06] @ Quit: phalenor: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:07] @ Quit: londo: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:08] @ Quit: kajtzu: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:10] @ Quit: StyleWarz: kubrick.freenode.net irc.freenode.net
[2008/05/01 11:12:11] @ spike joined channel #puppet
[2008/05/01 11:12:12] @ badacid_ joined channel #puppet
[2008/05/01 11:12:12] @ hatumi joined channel #puppet
[2008/05/01 11:12:13] @ fsweetser joined channel #puppet
[2008/05/01 11:12:14] @ tim|imac joined channel #puppet
[2008/05/01 11:12:16] @ Wakko666 joined channel #puppet
[2008/05/01 11:12:17] @ andyhold joined channel #puppet
[2008/05/01 11:12:18] @ chadh joined channel #puppet
[2008/05/01 11:12:19] @ ianm joined channel #puppet
[2008/05/01 11:12:20] @ happymcplaksin joined channel #puppet
[2008/05/01 11:12:22] @ mizzy joined channel #puppet
[2008/05/01 11:12:23] @ mcbride_ joined channel #puppet
[2008/05/01 11:12:24] @ euth joined channel #puppet
[2008/05/01 11:12:25] @ ashp joined channel #puppet
[2008/05/01 11:12:25] @ riddleyAthome joined channel #puppet
[2008/05/01 11:12:26] @ londo_ joined channel #puppet
[2008/05/01 11:12:27] @ tmz joined channel #puppet
[2008/05/01 11:12:29] @ Cuchulain joined channel #puppet
[2008/05/01 11:12:31] @ blblack joined channel #puppet
[2008/05/01 11:12:32] @ ssm joined channel #puppet
[2008/05/01 11:12:34] @ jcastro joined channel #puppet
[2008/05/01 11:12:35] @ phalenor joined channel #puppet
[2008/05/01 11:12:36] @ londo joined channel #puppet
[2008/05/01 11:12:38] @ kajtzu joined channel #puppet
[2008/05/01 11:12:40] @ StyleWarz joined channel #puppet
[2008/05/01 11:12:42] @ wrobel` joined channel #puppet
[2008/05/01 11:12:43] @ mellen joined channel #puppet
[2008/05/01 11:13:18] @ barnbarn joined channel #puppet
[2008/05/01 11:13:19] @ RainDoctor joined channel #puppet
[2008/05/01 11:13:20] @ Soahc joined channel #puppet
[2008/05/01 11:13:27] @ Volcane joined channel #puppet
[2008/05/01 11:13:28] @ phips joined channel #puppet
[2008/05/01 11:24:40] @ Quit: shake-n-bake:
[2008/05/01 11:25:43] @ jvanzyl joined channel #puppet
[2008/05/01 11:29:33] @ Quit: hatumi: Read error: 110 (Connection timed out)
[2008/05/01 12:05:03] @ felix_da_catz joined channel #puppet
[2008/05/01 12:18:30] @ Quit: huangmingyou: "Leaving."
[2008/05/01 12:18:39] @ huangmingyou joined channel #puppet
[2008/05/01 12:19:22] <martha> I'm beginning to really hate freebsd
[2008/05/01 12:19:42] <fujin> wow, really?
[2008/05/01 12:21:00] <martha> yes.
[2008/05/01 12:21:32] <martha> the postgres and mysql packages have different names based on whether they are installed or not
[2008/05/01 12:22:12] <martha> and the init scripts use different names for checking the enable status
[2008/05/01 12:22:19] <fujin> HA
[2008/05/01 12:22:19] <fujin> wtf
[2008/05/01 12:22:22] <fujin> That's awesome
[2008/05/01 12:22:26] <martha> yeah
[2008/05/01 12:22:39] <martha> my modules are so ugly now
[2008/05/01 12:22:42] <holoway> martha: what do the names change to?
[2008/05/01 12:22:47] <fujin> I'd just fire bsd
[2008/05/01 12:22:49] <fujin> bsd -> get out
[2008/05/01 12:23:20] <waawaamilk> bsd -> sharks
[2008/05/01 12:23:27] <martha> mysql50-server -> mysql-server and postgresql81-server -> postgresql-server
[2008/05/01 12:23:37] <holoway> ahhh
[2008/05/01 12:23:43] <holoway> because they embedd the version in the install name
[2008/05/01 12:23:50] <holoway> because ports has no elegant way to pin
[2008/05/01 12:23:57] <holoway> ?
[2008/05/01 12:23:58] <martha> and mysql looks in /etc/rc.conf.d/mysql for the enable
[2008/05/01 12:24:06] <martha> not mysql-server
[2008/05/01 12:24:11] <holoway> nice
[2008/05/01 12:24:36] <martha> even better, munin-node looks for munin_node for the enable
[2008/05/01 12:24:42] <holoway> ha!
[2008/05/01 12:24:50] <holoway> speaking of munin
[2008/05/01 12:24:58] <holoway> I recently saw some really nice, in production ganglia instances
[2008/05/01 12:25:07] <holoway> that made me understand why some people really love ganglia
[2008/05/01 12:25:28] <martha> the enable stuff I'm working around, but I can't figure out what to do about the package names
[2008/05/01 12:26:03] <holoway> I imagine puppet's package provider freaks out
[2008/05/01 12:26:30] <martha> it is not happy
[2008/05/01 12:29:52] <holoway> martha: I think I might write a wrapper
[2008/05/01 12:29:56] <holoway> honestly
[2008/05/01 12:30:10] <holoway> the pragmatist in me thinks so, the purist in me gets pissed about it
[2008/05/01 12:30:24] <holoway> similar issues would show up if we had a PEAR provider
[2008/05/01 12:30:34] <holoway> because some packages you install as pecl/json, for example
[2008/05/01 12:30:38] <holoway> but show up in the pacakge list as just json
[2008/05/01 12:32:10] <martha> holoway: I wrote a pear provider
[2008/05/01 12:32:22] @ Quit: rmiller: "leaving"
[2008/05/01 12:32:39] <martha> I haven't tried it on bsd, though, just debian
[2008/05/01 12:37:12] <martha> holoway: how would you write a wrapper?
[2008/05/01 12:38:17] <holoway> probably a definition that gave both names, and wrapped some execs that check for the package installed/install it
[2008/05/01 12:38:21] <holoway> bypassing the package provider
[2008/05/01 12:38:27] <martha> ah
[2008/05/01 12:38:29] <holoway> if it really can't be fudged
[2008/05/01 12:38:40] <holoway> it's probably worth a patch to the port provider
[2008/05/01 12:38:55] @ Quit: asa:
[2008/05/01 12:39:02] <holoway> okay, gotta head home for dinner
[2008/05/01 12:41:37] <martha> bye
[2008/05/01 12:43:54] @ m1n3s6 joined channel #puppet
[2008/05/01 12:50:57] @ Quit: dysinger:
[2008/05/01 12:51:05] @ martha left channel #puppet ()
[2008/05/01 13:02:53] @ lak joined channel #puppet
[2008/05/01 13:06:19] @ Quit: huangmingyou: "Leaving."
[2008/05/01 13:06:33] @ huangmingyou joined channel #puppet
[2008/05/01 13:13:42] @ dysinger joined channel #puppet
[2008/05/01 13:24:03] @ shadoi joined channel #puppet
[2008/05/01 13:27:37] @ Quit: shadoi: Client Quit
[2008/05/01 13:28:06] @ randybias joined channel #puppet
[2008/05/01 13:28:18] @ shadoi joined channel #puppet
[2008/05/01 13:42:00] @ Quit: lak:
[2008/05/01 13:45:48] @ johnf joined channel #puppet
[2008/05/01 13:50:32] @ lak joined channel #puppet
[2008/05/01 13:51:34] @ Quit: lak: Client Quit
[2008/05/01 14:01:13] @ nigelk joined channel #puppet
[2008/05/01 14:07:55] <fujin> hmm
[2008/05/01 14:08:05] <fujin> I have one box which fails at retreiving plugins
[2008/05/01 14:08:07] <fujin> every time
[2008/05/01 14:08:08] <fujin> really weird
[2008/05/01 14:08:24] <fujin> haha
[2008/05/01 14:08:26] <fujin> man I'm an idiot
[2008/05/01 14:08:28] * fujin looks at firewall
[2008/05/01 14:08:35] @ Quit: nigelk:
[2008/05/01 14:08:42] @ Demosthenes joined channel #puppet
[2008/05/01 14:09:42] <hacim> one great unintended side-effect of puppet is how it brings out the odd-corner cases on your machines and forces you to standardize :)
[2008/05/01 14:09:57] <fujin> hehe yah
[2008/05/01 14:10:05] <fujin> like that node I just puppetized, was on a different /25
[2008/05/01 14:10:22] <fujin> had to update my proxy/aptmirror configs, firewall, and now puppetmaster
[2008/05/01 14:10:25] <fujin> good to get it together though
[2008/05/01 14:10:28] <fujin> manageable even :)
[2008/05/01 14:12:17] <fujin> shadoi: you around?
[2008/05/01 14:14:29] @ nigelk joined channel #puppet
[2008/05/01 14:15:05] @ asa joined channel #puppet
[2008/05/01 14:16:23] <shadoi> fujin: werd
[2008/05/01 14:17:16] @ Quit: Demosthenex: Read error: 110 (Connection timed out)
[2008/05/01 14:19:31] <fujin> shadoi: what do you think would be the best way to get the YAML from the reports=store provider? create a new provider that does some magic to insert it into a db? open the files on disk and read them?
[2008/05/01 14:19:43] <fujin> open on disk and read them is a start
[2008/05/01 14:46:21] <shadoi> anything other than just reading them in as files should just be integrated with the way storeconfigs is doing things. After 0.25 it'll just be a REST call.
[2008/05/01 14:46:35] <shadoi> so I think just read the files in if you're gonna do something right now.
[2008/05/01 14:47:52] <shadoi> fujin: if you feel like tinkering and this is only for linux....
[2008/05/01 14:47:53] <shadoi> http://dinhe.net/~aredridel/projects/ruby/ruby-inotify-0.0.2/doc/
[2008/05/01 14:48:43] @ sparanjape joined channel #puppet
[2008/05/01 14:48:50] <fujin> ah, that's like a filewatcher in c#
[2008/05/01 14:48:54] <shadoi> yup
[2008/05/01 14:52:42] <fujin> hrmm
[2008/05/01 14:52:57] @ pietros joined channel #puppet
[2008/05/01 14:53:09] <fujin> well now that I've worked out that I can *actually* virtualhost mongrels quite easily thanks to holoway
[2008/05/01 14:53:20] <fujin> will probly get crackin on it tonight
[2008/05/01 14:55:26] @ hatumi joined channel #puppet
[2008/05/01 15:20:33] @ nigelk_ joined channel #puppet
[2008/05/01 15:21:10] @ Quit: nigelk: Read error: 104 (Connection reset by peer)
[2008/05/01 15:21:40] @ nigelk joined channel #puppet
[2008/05/01 15:29:11] @ Quit: nigelk:
[2008/05/01 15:37:15] @ Quit: nigelk_: Read error: 110 (Connection timed out)
[2008/05/01 15:41:38] @ Quit: asa:
[2008/05/01 16:09:57] @ asa joined channel #puppet
[2008/05/01 16:18:12] @ Quit: asa:
[2008/05/01 16:40:27] <hatumi> exit
[2008/05/01 16:40:33] @ Quit: hatumi: "ChatZilla 0.9.81 [Firefox 2.0.0.14/2008040413]"
[2008/05/01 16:43:07] @ keyur joined channel #puppet
[2008/05/01 17:05:52] @ Quit: authentic: Read error: 110 (Connection timed out)
[2008/05/01 17:26:08] @ Quit: felix_da_catz: No route to host
[2008/05/01 17:28:04] @ kolla joined channel #puppet
[2008/05/01 17:35:05] @ e^ipi joined channel #puppet
[2008/05/01 17:39:56] <e^ipi> alright
[2008/05/01 17:40:21] <e^ipi> so.. puppetrun should be able to just connect to the client & do a run, yeah?
[2008/05/01 17:40:47] <e^ipi> erm, from the puppetmaster -> client, client sees the connection, does an unscheduled run
[2008/05/01 17:40:50] <e^ipi> da?
[2008/05/01 17:47:42] <fujin> that's hte idea
[2008/05/01 17:47:45] <fujin> well, from anywhere -> client
[2008/05/01 17:47:53] <fujin> providing its' allowed by namespaceauth
[2008/05/01 17:49:41] @ |Innocenti| joined channel #puppet
[2008/05/01 17:51:11] <e^ipi> hmm...
[2008/05/01 17:51:12] <e^ipi> because it's not
[2008/05/01 17:51:40] <e^ipi> i just get "could not contact host" errors
[2008/05/01 17:53:55] @ Quit: johnf: "Leaving."
[2008/05/01 17:55:36] <fujin> holoway: I love you
[2008/05/01 17:55:37] <e^ipi> namespaceauth.conf exists
[2008/05/01 17:55:52] <fujin> e^ipi: are you puppetds set to listen, and firewalls are all ok?
[2008/05/01 17:56:05] <e^ipi> yep, and yep
[2008/05/01 17:56:14] <e^ipi> assuming they listen on 8139
[2008/05/01 17:57:27] <fujin> shadoi: so far so good.. http://pcc.junglist.gen.nz
[2008/05/01 17:57:33] <fujin> got my models nearly done
[2008/05/01 17:57:38] <fujin> e^ipi: can you telnet 8139 to them?
[2008/05/01 17:58:21] <fujin> e^ipi: I've gotta admit, I haven't used puppetrun etc to try and do what you're doing, but it should be as simple as doing --listen (or equiv puppet.conf), configuring namespaceauth and then just doing puppetrun --host blah or whatever it is.
[2008/05/01 18:11:32] <fujin> holoway: I love you
[2008/05/01 18:13:06] <e^ipi> yeah, i can telnet in just fine
[2008/05/01 18:16:32] @ Quit: |Innocenti|: Read error: 110 (Connection timed out)
[2008/05/01 18:23:48] <fujin> that's weird
[2008/05/01 18:23:51] <fujin> whta cmdline are you using?
[2008/05/01 18:24:49] <shadoi> fujin: looking good dude
[2008/05/01 18:24:56] <fujin> yeah, making progress
[2008/05/01 18:25:03] <fujin> I'm very new to the MVC idea
[2008/05/01 18:25:09] @ Quit: e^ipi: Read error: 104 (Connection reset by peer)
[2008/05/01 18:25:11] <shadoi> fujin: table-plus is probably what you'll want to use display most of it
[2008/05/01 18:25:18] <fujin> table-plus?
[2008/05/01 18:25:22] <fujin> I've just been playing with permissions
[2008/05/01 18:25:28] <shadoi> it's one of the dryml rapid tags
[2008/05/01 18:25:30] <fujin> pretty much disabled everyhing lol, I figure something else will be creating it
[2008/05/01 18:25:32] @ e^ipi joined channel #puppet
[2008/05/01 18:25:38] <fujin> ah right, haven't got to configuring the dryml yet
[2008/05/01 18:26:09] <shadoi> that's where all the power is.. it's also probably one of the harder bits, but I'm sure you'll get along.
[2008/05/01 18:26:31] <shadoi> man it's late, I'm off to bed.
[2008/05/01 18:26:35] <fujin> hehe
[2008/05/01 18:26:46] <fujin> seeya dude
[2008/05/01 18:26:53] <shadoi> g'night
[2008/05/01 18:26:55] @ Quit: shadoi: "leaving"
[2008/05/01 18:37:15] @ Quit: sparanjape: "Leaving"
[2008/05/01 18:52:55] @ |Innocenti| joined channel #puppet
[2008/05/01 19:07:52] @ oxtail joined channel #puppet
[2008/05/01 19:17:33] @ Quit: |Innocenti|: Read error: 110 (Connection timed out)
[2008/05/01 19:21:14] @ mib_5iyhs71p joined channel #puppet
[2008/05/01 19:22:29] <mib_5iyhs71p> Hi, I'm working through the simplest puppet install recipe. the puppet master seems to have started ok but when i run puppetd --verbose it starts the client and says it cant find the server. Any ideas?
[2008/05/01 19:25:56] <e^ipi> mib_5iyhs71p: check your puppet.conf, you might need to set the server= value
[2008/05/01 19:26:09] <e^ipi> OMG i'm gonna commit a hate crime pretty soon
[2008/05/01 19:26:15] <e^ipi> puppetrun just /won't/ work
[2008/05/01 19:26:24] @ DerekW joined channel #puppet
[2008/05/01 19:27:09] @ volandg joined channel #puppet
[2008/05/01 19:27:27] <mib_5iyhs71p> you mean puppetd.conf?
[2008/05/01 19:28:11] <volandg> Hi 2all
[2008/05/01 19:28:51] @ Quit: volandg: Client Quit
[2008/05/01 19:29:14] <fujin> no, he means puppet.conf
[2008/05/01 19:29:21] <fujin> puppetd.conf is deprecated and well
[2008/05/01 19:29:22] <fujin> breaks stuff
[2008/05/01 19:30:56] <mib_5iyhs71p> ok then where is puppet.conf? i am in /etc/puppet and have done a find on puppet.conf which brought nothing back? in this dir i have fileserver.conf puppetca.conf puppetd.conf and puppetmasterd.conf
[2008/05/01 19:32:19] <fujin> must be a really old version
[2008/05/01 19:33:09] <mib_5iyhs71p> i have facter-1.3.7-1 puppet -0.22.4-1 and puppetserver-0.22.4-1
[2008/05/01 19:34:03] <Volcane> thats pretty old
[2008/05/01 19:35:56] <e^ipi> fujin: puppetrun cares about [puppetrunner] yeah?
[2008/05/01 19:38:34] <mib_5iyhs71p> ok i found the newest version, is it easier to upgrade or just reinstall?
[2008/05/01 19:39:03] <mib_5iyhs71p> nvm
[2008/05/01 19:40:16] @ erlingre joined channel #puppet
[2008/05/01 19:41:44] <e^ipi> ARG! totally murder time
[2008