Friday, 2008-06-27

[2008/06/27 00:01:31] @ chopperlawson is now known as cuchulain
[2008/06/27 00:07:44] @ Gwayne joined channel #puppet
[2008/06/27 00:13:08] @ Quit: nevyn: Read error: 104 (Connection reset by peer)
[2008/06/27 00:28:28] @ Aaton left channel #puppet ("Leaving...")
[2008/06/27 01:07:13] @ Pockets joined channel #puppet
[2008/06/27 01:07:23] @ Pockets left channel #puppet ("Leaving")
[2008/06/27 01:07:46] @ Darkarnium joined channel #puppet
[2008/06/27 01:25:37] <msf> anyone using external node support ?
[2008/06/27 01:31:51] <jamesturnbull> msf: yep
[2008/06/27 01:32:28] @ pleemans joined channel #puppet
[2008/06/27 01:52:13] <msf> jamesturnbull: puppet will call the external script up to three times ?
[2008/06/27 01:55:33] <jamesturnbull> yep
[2008/06/27 01:56:35] <jamesturnbull> fqdn, ostname, default I believe
[2008/06/27 02:19:27] @ aymerick joined channel #puppet
[2008/06/27 02:33:33] @ jvanzyl joined channel #puppet
[2008/06/27 02:37:08] @ andrewcshafer joined channel #puppet
[2008/06/27 02:42:09] @ Quit: andrewcshafer: Read error: 104 (Connection reset by peer)
[2008/06/27 02:45:15] @ andrewcshafer joined channel #puppet
[2008/06/27 02:48:56] @ msf_ joined channel #puppet
[2008/06/27 02:49:02] @ Quit: msf_: Client Quit
[2008/06/27 02:55:24] @ Quit: markl_: Read error: 104 (Connection reset by peer)
[2008/06/27 03:01:02] @ Quit: jvanzyl:
[2008/06/27 03:01:18] @ Innocenti joined channel #puppet
[2008/06/27 03:10:58] @ Quit: andrewcshafer:
[2008/06/27 03:17:56] @ tim|macbook joined channel #puppet
[2008/06/27 03:24:22] @ Quit: Kindred: Remote closed the connection
[2008/06/27 03:24:27] @ Kindred joined channel #puppet
[2008/06/27 03:24:44] @ |Innocenti| joined channel #puppet
[2008/06/27 03:28:12] @ flakrat_ joined channel #puppet
[2008/06/27 03:30:25] @ Quit: Innocenti: Read error: 104 (Connection reset by peer)
[2008/06/27 03:34:53] @ Quit: pkhamre: Remote closed the connection
[2008/06/27 03:34:59] @ pkhamre joined channel #puppet
[2008/06/27 03:35:14] @ Quit: fujin: Remote closed the connection
[2008/06/27 03:35:20] @ fujin joined channel #puppet
[2008/06/27 03:36:02] @ Quit: evil_steve: Remote closed the connection
[2008/06/27 03:36:07] @ evil_steve joined channel #puppet
[2008/06/27 03:38:44] @ Quit: tim|macbook: Read error: 104 (Connection reset by peer)
[2008/06/27 03:41:46] @ tim|macbook joined channel #puppet
[2008/06/27 03:45:11] @ Quit: flakrat: Read error: 110 (Connection timed out)
[2008/06/27 03:48:06] @ Quit: mellen: Read error: 110 (Connection timed out)
[2008/06/27 03:48:19] @ jleggett_ joined channel #puppet
[2008/06/27 03:49:16] @ Quit: f3ew: Read error: 110 (Connection timed out)
[2008/06/27 03:50:07] @ Quit: Binford: Read error: 110 (Connection timed out)
[2008/06/27 03:53:13] @ f3ew joined channel #puppet
[2008/06/27 04:06:54] @ mellen joined channel #puppet
[2008/06/27 04:17:04] @ lak joined channel #puppet
[2008/06/27 04:36:59] @ andrewcshafer joined channel #puppet
[2008/06/27 04:44:20] @ Quit: lak:
[2008/06/27 05:08:11] @ andrewcshafer_ joined channel #puppet
[2008/06/27 05:09:53] @ Quit: andrewcshafer: Read error: 104 (Connection reset by peer)
[2008/06/27 05:18:32] @ Quit: spheromak: Remote closed the connection
[2008/06/27 05:19:04] @ spheromak joined channel #puppet
[2008/06/27 05:24:01] @ Quit: andrewcshafer_:
[2008/06/27 05:30:17] @ Quit: Gwayne: Remote closed the connection
[2008/06/27 05:33:21] @ Quit: stahnma: Read error: 104 (Connection reset by peer)
[2008/06/27 05:35:28] @ stahnma joined channel #puppet
[2008/06/27 06:02:41] @ Quit: |Innocenti|: Client Quit
[2008/06/27 06:03:00] @ Innocenti joined channel #puppet
[2008/06/27 06:10:00] @ andrewcshafer joined channel #puppet
[2008/06/27 06:43:04] @ Quit: dysinger:
[2008/06/27 06:46:03] @ keithlard joined channel #puppet
[2008/06/27 07:02:12] @ Quit: andrewcshafer: Read error: 113 (No route to host)
[2008/06/27 07:15:30] @ robin_ joined channel #puppet
[2008/06/27 07:57:30] @ Quit: kenvandine: Read error: 110 (Connection timed out)
[2008/06/27 08:04:32] @ Quit: cote: Read error: 110 (Connection timed out)
[2008/06/27 08:08:41] @ Quit: robin_:
[2008/06/27 08:12:46] @ _NJGuy is now known as RainDoctor
[2008/06/27 08:32:22] @ Quit: zipkid: Read error: 110 (Connection timed out)
[2008/06/27 08:38:11] @ andrewcshafer joined channel #puppet
[2008/06/27 08:39:46] @ Quit: andrewcshafer: Client Quit
[2008/06/27 08:40:35] @ kenvandine joined channel #puppet
[2008/06/27 08:40:38] @ andrewcshafer joined channel #puppet
[2008/06/27 08:43:32] @ Quit: andrewcshafer: Client Quit
[2008/06/27 08:49:48] @ kambiz joined channel #puppet
[2008/06/27 08:53:37] @ Zothar_Work joined channel #puppet
[2008/06/27 09:02:21] @ glaw joined channel #puppet
[2008/06/27 09:07:19] @ ashp joined channel #puppet
[2008/06/27 09:22:36] @ Quit: cervicek: "leaving"
[2008/06/27 09:23:15] @ Quit: ashp_: Read error: 113 (No route to host)
[2008/06/27 09:24:42] @ Vivek joined channel #puppet
[2008/06/27 09:33:18] @ shenson_not_here is now known as shenson
[2008/06/27 09:45:48] @ jbrothers joined channel #puppet
[2008/06/27 09:48:38] @ zipkid joined channel #puppet
[2008/06/27 10:04:59] @ Quit: pleemans: "Ex-Chat"
[2008/06/27 10:08:52] @ cote joined channel #puppet
[2008/06/27 10:12:53] @ Quit: Zothar_Work: "ChatZilla 0.9.83 [Firefox 3.0/2008052912]"
[2008/06/27 10:22:45] @ magnachef__ joined channel #puppet
[2008/06/27 10:24:15] @ Quit: magnachef__: Client Quit
[2008/06/27 10:25:13] @ jvanzyl joined channel #puppet
[2008/06/27 10:38:37] @ snake007uk joined channel #puppet
[2008/06/27 10:39:14] <snake007uk> hey guys, I stumbled across Puppet by accident, I was initially planning to go the CfEngine route, but now im looking to use puppet to manage my infrastructure
[2008/06/27 10:39:30] <snake007uk> Ive order a book from Apress, wondering if there was any other books out?
[2008/06/27 10:42:00] @ Quit: silent-ion: "Chatzilla 0.9.75.1 [SeaMonkey 1.1.9/2008031300]"
[2008/06/27 10:42:05] <Aji-Dahaka> snake007uk: what were the primary factors in your decision?
[2008/06/27 10:42:48] <snake007uk> simple one, the fact that I dont really to worry about the commands and just on what I want done
[2008/06/27 10:43:05] <snake007uk> Also the fact there seems to be much more ORGANISED documentation for puppet over CfEngine
[2008/06/27 10:43:09] <snake007uk> and a better community
[2008/06/27 10:43:32] <Volcane> puppets configurations are easier to build in small moudles and just include whats needed per host than cfengine
[2008/06/27 10:43:53] <Volcane> so if you have 2 or 3 types of mahcines, cfengine is fine
[2008/06/27 10:43:56] <snake007uk> Also syntax seems simpler, why make something thats going to manage lots servers have a complicated configs
[2008/06/27 10:44:01] <Volcane> if you have 10 or 15, boy cfengin will kill you :)
[2008/06/27 10:44:03] <snake007uk> ive got 300 machines
[2008/06/27 10:44:15] <snake007uk> re-use of code
[2008/06/27 10:44:18] <Volcane> "type" of machine
[2008/06/27 10:44:19] <snake007uk> functions
[2008/06/27 10:44:29] <Volcane> puppets better at that
[2008/06/27 10:44:33] <snake007uk> 220 IBM Blades
[2008/06/27 10:44:39] <snake007uk> 80 Xseries servers
[2008/06/27 10:44:54] <Volcane> when i say type i mean role
[2008/06/27 10:45:03] <Volcane> like group of configuration types
[2008/06/27 10:45:04] <snake007uk> but also I liked the fact there seems to be good documentation
[2008/06/27 10:45:47] <snake007uk> i have web servers/ application servers / database serves/ kickstatrt build server/ Subversion servers/ Xen Virtual Servers
[2008/06/27 10:45:52] <snake007uk> etc.....
[2008/06/27 10:46:02] <Volcane> go with puppet :P
[2008/06/27 10:46:15] <snake007uk> app servers are broken into, Jboss, Tomcat, Websphere, Apache Geronimo
[2008/06/27 10:46:23] <snake007uk> each with probably 3/4 applications
[2008/06/27 10:46:27] <snake007uk> so yeah puppet :D
[2008/06/27 10:46:43] <Volcane> use modules from day one
[2008/06/27 10:46:45] <snake007uk> also IRC channel seems to be more "alive"
[2008/06/27 10:46:48] <snake007uk> i will :D
[2008/06/27 10:47:05] <snake007uk> thanks for the tips, Just wondering if there are any other Books, except the Apress
[2008/06/27 10:47:12] <Volcane> just hte one so far
[2008/06/27 10:47:31] <Volcane> puppet is still young, so it changes often
[2008/06/27 10:47:36] <Disconnect> random side note, ubuntu and deb finally issued their ruby updates
[2008/06/27 10:47:38] <Volcane> and new features gets added a lot
[2008/06/27 10:47:49] @ ski98033 joined channel #puppet
[2008/06/27 10:47:50] <Volcane> so the book is a good intro etc
[2008/06/27 10:47:58] <Volcane> then put it down and use the wiki
[2008/06/27 10:48:05] * Disconnect should find the pdf copy, throw it on the ebook reader
[2008/06/27 10:49:35] <Disconnect> ..ugh. i'm not spending another $15 on this thing. nevermind.
[2008/06/27 10:53:24] <snake007uk> yeah i like the wiki, hoping to have some samples written soon :)
[2008/06/27 10:55:57] <snake007uk> $15 is peanuts comapred to the benfits :D
[2008/06/27 10:58:40] <Disconnect> i've already got the paper version.
[2008/06/27 10:58:49] <Disconnect> pdf is (presumably) searchable, but otherwise .. nah.
[2008/06/27 10:59:04] <Disconnect> lack of an index will still piss me off :) esp on the ebook reader
[2008/06/27 11:03:43] <Volcane> Disconnect: its not like the shitty trac wiki is any better though
[2008/06/27 11:03:53] <Disconnect> at least its searchable. but yah.
[2008/06/27 11:03:56] <Volcane> its search really is dismal
[2008/06/27 11:03:59] <Volcane> and its slow
[2008/06/27 11:04:17] <Disconnect> yah
[2008/06/27 11:04:21] <Volcane> if they could build like static pages at least for the type reference it would kick arse
[2008/06/27 11:04:26] <Volcane> I'd happily host a mirror
[2008/06/27 11:05:21] @ Quit: flakrat_: "Leaving"
[2008/06/27 11:06:18] @ Quit: Londo_:
[2008/06/27 11:08:26] @ RainDoctor is now known as _NJGuy
[2008/06/27 11:08:37] <Disconnect> ditto
[2008/06/27 11:08:49] @ emacsen joined channel #puppet
[2008/06/27 11:09:04] <emacsen> How do I specify a package be removed in a manifest?
[2008/06/27 11:09:12] <Volcane> ensure => absent
[2008/06/27 11:09:18] @ muerr joined channel #puppet
[2008/06/27 11:09:30] <emacsen> Volcane, where's a reference manual? I couldn't find that anywhere
[2008/06/27 11:10:07] <tim|macbook> wiki:TypeReference
[2008/06/27 11:10:50] <gepetto> tim|macbook: wiki: wiki:TypeReference is http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2008/06/27 11:10:50] <tim|macbook> i think
[2008/06/27 11:10:50] <tim|macbook> http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2008/06/27 11:10:50] <emacsen> ah yes. thanks
[2008/06/27 11:11:01] <tim|macbook> gepetto is a bit slow, it seems :)
[2008/06/27 11:11:10] <Volcane> and wiki:FunctionReference and wiki:LanguageTutorial
[2008/06/27 11:11:13] <gepetto> Volcane: wiki:FunctionReference is http://reductivelabs.com/trac/puppet/wiki/FunctionReference
[2008/06/27 11:11:18] <gepetto> Volcane: wiki:LanguageTutorial is http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial
[2008/06/27 11:11:55] <tim|macbook> yeah, but the ensure => absent is in the type reference
[2008/06/27 11:13:10] <Volcane> nods
[2008/06/27 11:19:08] @ Quit: kambiz: "Leaving"
[2008/06/27 11:22:08] @ Quit: snake007uk:
[2008/06/27 11:24:04] @ snake007uk joined channel #puppet
[2008/06/27 11:24:55] @ Quit: Innocenti: Client Quit
[2008/06/27 11:33:04] @ Londo_ joined channel #puppet
[2008/06/27 11:46:02] @ lak joined channel #puppet
[2008/06/27 11:50:33] @ Quit: tim|macbook: "This computer has gone to sleep"
[2008/06/27 11:51:23] @ Quit: Aji-Dahaka: No route to host
[2008/06/27 11:55:51] @ Quit: Vivek: Read error: 113 (No route to host)
[2008/06/27 11:57:17] @ Quit: snake007uk:
[2008/06/27 11:58:09] <lazzurs> does puppet have the concept of splaytime that cfengine does, is it fussy about when it runs or does it follow a strict time schedule?
[2008/06/27 12:00:50] @ Vivek joined channel #puppet
[2008/06/27 12:02:52] <thom> lazzurs: see the splay option for puppetd
[2008/06/27 12:05:51] <stick> does anyone have any code examples (or even a working script) for adding a node to storconfigs, especially in a nagios context
[2008/06/27 12:06:10] * stick has non-puppetized machines that need to be picked up via storeconfigs
[2008/06/27 12:18:32] @ Aji-Dahaka joined channel #puppet
[2008/06/27 12:26:01] @ jvanzyl_ joined channel #puppet
[2008/06/27 12:26:03] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer)
[2008/06/27 12:28:12] @ Quit: keithlard:
[2008/06/27 12:28:16] @ Quit: jvanzyl_: Read error: 54 (Connection reset by peer)
[2008/06/27 12:29:33] @ jvanzyl joined channel #puppet
[2008/06/27 12:30:31] @ keithlard_ joined channel #puppet
[2008/06/27 12:30:53] @ plathrop joined channel #puppet
[2008/06/27 12:33:13] <gileswork> http://puppetview.com/
[2008/06/27 12:37:19] <Disconnect> ....?
[2008/06/27 12:38:15] <windowsrefund> what's the best way to check if a variable is defined?
[2008/06/27 12:38:25] <windowsrefund> and to take some action based on that test?
[2008/06/27 12:38:40] <Disconnect> windowsrefund: if ($foo) { # do stuff } else { # do other stuff }
[2008/06/27 12:40:02] @ Quit: muerr: Read error: 110 (Connection timed out)
[2008/06/27 12:40:38] <Disconnect> if you only want to do stuff when $foo is false (eg if (!$foo) ..) you need to replace "#do stuff" with noop (except that doesn't actually work, so you need to just do something useless like $fooobarnothing = "foo" ..)
[2008/06/27 12:42:00] <duritong> or info("i do nothing")
[2008/06/27 12:42:05] <duritong> :)
[2008/06/27 12:42:35] <windowsrefund> ok so I shouldn't be trying something like content => $foobar ? { undef => 'this', default => 'that', }
[2008/06/27 12:48:34] @ markl_ joined channel #puppet
[2008/06/27 12:48:56] @ kambiz joined channel #puppet
[2008/06/27 12:53:29] @ Quit: lak:
[2008/06/27 12:57:33] <Volcane> gileswork: hehe
[2008/06/27 13:01:46] @ Quit: glaw: Remote closed the connection
[2008/06/27 13:03:47] <Volcane> gileswork: cant say i did any kind of websearches before choosing a name :)
[2008/06/27 13:05:21] @ Quit: gileswork: Read error: 113 (No route to host)
[2008/06/27 13:10:28] @ Quit: keithlard_:
[2008/06/27 13:15:51] @ keithlard_ joined channel #puppet
[2008/06/27 13:18:35] @ Quit: jvanzyl: Read error: 54 (Connection reset by peer)
[2008/06/27 13:18:47] @ jvanzyl joined channel #puppet
[2008/06/27 13:18:59] @ Quit: jvanzyl: Remote closed the connection
[2008/06/27 13:24:56] @ shake-n-bake_ joined channel #puppet
[2008/06/27 13:35:48] @ shake-n-bake__ joined channel #puppet
[2008/06/27 13:46:50] @ shake-n-bake joined channel #puppet
[2008/06/27 13:56:08] @ Quit: shake-n-bake__: Read error: 110 (Connection timed out)
[2008/06/27 13:58:12] @ Quit: shake-n-bake_: Read error: 110 (Connection timed out)
[2008/06/27 14:01:34] @ emerose joined channel #puppet
[2008/06/27 14:01:55] @ Quit: emerose_: Read error: 104 (Connection reset by peer)
[2008/06/27 14:03:56] @ jvanzyl joined channel #puppet
[2008/06/27 14:05:00] <e^ipi> i don't suppose there's an iclassify plugin for puppet such that I can tag nodes as a function of their definition or similar ?
[2008/06/27 14:05:30] <e^ipi> exempli gratia: node foo { inherit => bar; tag => ['blah'], }
[2008/06/27 14:06:21] <e^ipi> or rather, { include bar, tag => ['blah'] } i should say
[2008/06/27 14:13:02] @ runlevel joined channel #puppet
[2008/06/27 14:13:29] <runlevel> has anyone got a good example configuration on using SVN in puppet?
[2008/06/27 14:15:44] @ Quit: keithlard_:
[2008/06/27 14:18:36] @ keithlard_ joined channel #puppet
[2008/06/27 14:19:08] @ Quit: keithlard_: Client Quit
[2008/06/27 14:20:42] @ Quit: plathrop: "ERC Version 5.2 (IRC client for Emacs)"
[2008/06/27 14:20:48] <Disconnect> e^ipi: other way around, you tag them in iclassify then use it as an external node agent
[2008/06/27 14:20:58] <runlevel> sup Disconnect
[2008/06/27 14:21:33] <Disconnect> nada. work.
[2008/06/27 14:21:49] <runlevel> ah
[2008/06/27 14:25:16] <e^ipi> Disconnect: i see
[2008/06/27 14:25:18] <e^ipi> there doesn't seem to be much in the way of documentation on how to do /that/ either
[2008/06/27 14:26:23] <Disconnect> wiki for external nodes.. then you just use icpuppet or (better, but only ont he same box) icagent-tiny (the icagent-tiny one queries solr directly, rather than going through iclassify)
[2008/06/27 14:26:31] <Disconnect> icpuppet-tiny that is
[2008/06/27 14:27:06] <Disconnect> every iclassify tag is looked for as a class or module (basically it translates to an automatic "include foo")
[2008/06/27 14:31:16] <e^ipi> & how would I build erb config files out of the stuff iclassify knows about?
[2008/06/27 14:32:00] <Disconnect> same as without iclassify - facts become variables, tags become includes (and istr they become variables defined as 'true' but that might not be right)
[2008/06/27 14:32:02] <Volcane> a bit OT but does anyone here use centreon for monitoring?
[2008/06/27 14:32:51] <e^ipi> Disconnect: but i can grab facts based on stuff iclassify knows about?
[2008/06/27 14:33:10] <Disconnect> "stuff iclassify knows about" -is- facts
[2008/06/27 14:33:24] <Volcane> e^ipi: if iclassify know about it, it makes a fact for you
[2008/06/27 14:33:38] <e^ipi> i'm still trying to solve my same problem that i've been trying to solve for a week... my mongrel nodes don't know anything about my database nodes
[2008/06/27 14:34:00] <e^ipi> i want to build the mongrel nodes' config files such that they include the database nodes' hostname in a bunch of places
[2008/06/27 14:35:01] <e^ipi> and i dont' understand the architecture well enough to know where to proceed with that
[2008/06/27 14:35:07] <e^ipi> so i'm sortof thrashing about here
[2008/06/27 14:35:17] <Volcane> did you look at the strored config example for nagios?
[2008/06/27 14:36:21] <Volcane> like, stored configs sux atm, but they're about closest you'll get
[2008/06/27 14:36:30] <Volcane> otherwise, you can do queries in templates using iclassify
[2008/06/27 14:36:41] <Volcane> though I've never used iclassify so you're on your own
[2008/06/27 14:44:08] <Disconnect> once iclassify is working you should be able to run icpuppet {node} and get info
[2008/06/27 14:45:05] <Disconnect> classes (tags) and parameters (facts)
[2008/06/27 14:45:30] <Disconnect> in the standard external node format
[2008/06/27 14:47:56] <Disconnect> wow. why is the "external nodes"-titled page NOT the first hit for a search on "external nodes"??? :(
[2008/06/27 14:48:09] <Disconnect> http://reductivelabs.com/trac/puppet/wiki/ExternalNodes
[2008/06/27 14:48:23] <Disconnect> (its not even on the first page btw.. that search doesn't just suck, its actively hostile)
[2008/06/27 15:04:27] @ Quit: emerose:
[2008/06/27 15:04:44] @ Quit: emacsen: "ircII EPIC4-2.6 -- Are we there yet?"
[2008/06/27 15:11:28] <Wakko666> is it possible to do a conditional if/else in a template? i can't seem to find an adequate tutorial on the syntax to do this
[2008/06/27 15:12:41] <zipkid> Wakko666: http://reductivelabs.com/trac/puppet/wiki/PuppetTemplating#Conditionals
[2008/06/27 15:13:02] <Wakko666> zipkid: that does not show an if/else, just an if.
[2008/06/27 15:13:51] <zipkid> Wakko666: You are correct!!!!
[2008/06/27 15:14:39] @ gh joined channel #puppet
[2008/06/27 15:15:09] <Wakko666> though, i think i figured it out
[2008/06/27 15:15:18] <zipkid> http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/
[2008/06/27 15:15:31] <zipkid> just use <% else %>
[2008/06/27 15:15:41] <Wakko666> the main detail i was missing is that erb requires each "line" to be within it's own set of <% %>
[2008/06/27 15:22:12] @ _zsh joined channel #puppet
[2008/06/27 15:32:41] @ Ol__ joined channel #puppet
[2008/06/27 15:33:49] <Disconnect> is there any reasonable way for puppet to push client configs out? (to be added to puppet.conf)
[2008/06/27 15:40:24] @ muerr joined channel #puppet
[2008/06/27 15:40:47] <gh> clients pull, as opposed to a server pushing
[2008/06/27 15:41:12] @ Quit: \ask_:
[2008/06/27 15:56:19] <Disconnect> ....thats all well and good, but doesn't even pretend to answer the actual question - can puppetmaster manage a client's puppet.conf?
[2008/06/27 15:58:33] @ Quit: kambiz: "Leaving"
[2008/06/27 15:59:36] <runlevel> why not?
[2008/06/27 16:00:03] @ emerose joined channel #puppet
[2008/06/27 16:03:09] <Volcane> Disconnect: its a file, like any other file.
[2008/06/27 16:03:22] <Volcane> Disconnect: and thats what file{} manages
[2008/06/27 16:04:33] <Disconnect> which is great, except for two things.. if it breaks, puppet won't loop back around and fix itself. and puppet doesn't manage config files, it just copies them. big difference. i can't say "ensure pluginsync is true" I can just say "dump this file, possibly from a template, in place of the old file"
[2008/06/27 16:05:16] <Volcane> well you didnt ask if theres a native type to create puppet configs, you asked if it can manage the file :)
[2008/06/27 16:05:35] <muerr> we use puppet to push out puppet.conf
[2008/06/27 16:05:35] <runlevel> hi
[2008/06/27 16:05:48] <Volcane> theres no native type, templates or just files is what you'd do
[2008/06/27 16:05:49] <muerr> in fact, thats how i got factsync deployed in less than 30 minutes on every system :-)
[2008/06/27 16:05:57] <Volcane> muerr: yip :)
[2008/06/27 16:06:19] * Volcane almost never change his puppet configs
[2008/06/27 16:06:32] <muerr> that was the first non-default setting to the file on clients.
[2008/06/27 16:06:38] <muerr> had a few on the master.
[2008/06/27 16:08:30] @ Quit: holoway: Remote closed the connection
[2008/06/27 16:08:32] <Volcane> i have graph, report and factsync = true, rest is default
[2008/06/27 16:08:36] @ holoway joined channel #puppet
[2008/06/27 16:08:42] <Volcane> other place i had to do silly things like environments= etc
[2008/06/27 16:08:50] <Volcane> but yeah, keep them simple
[2008/06/27 16:14:10] @ Quit: holoway: Remote closed the connection
[2008/06/27 16:14:42] <runlevel> has anyone got a good example configuration on using SVN in puppet?
[2008/06/27 16:16:00] <Volcane> runlevel: to do what with?
[2008/06/27 16:18:21] <runlevel> i would like to manage an svn checkout on 10 different machines
[2008/06/27 16:18:44] <runlevel> so if i need to push out new code to those boxen, puppet can tell them all to "svn up"
[2008/06/27 16:19:14] <runlevel> i could do it with exec() but theres gota be a more elegant way of doing it im sure
[2008/06/27 16:19:20] <Volcane> and only when you trigger something? or just always keep them up to date?
[2008/06/27 16:19:33] @ holoway joined channel #puppet
[2008/06/27 16:19:34] <runlevel> um whatever possible. iether works
[2008/06/27 16:19:38] <e^ipi> capistrano? run a cron job to svn up every 5 mins?
[2008/06/27 16:19:47] <muerr> http://reductivelabs.com/trac/puppet/wiki/Recipes/UpdateFromSubversionRepo
[2008/06/27 16:19:51] <runlevel> most likly would like to have a manual update
[2008/06/27 16:20:12] <e^ipi> capistrano then
[2008/06/27 16:20:31] <muerr> Hmm. that isn't what i thought it was
[2008/06/27 16:20:33] <runlevel> capistrano
[2008/06/27 16:20:34] <muerr> http://reductivelabs.com/trac/puppet/wiki/Recipes/SubversionIntegration
[2008/06/27 16:20:50] <e^ipi> ( /me fails to see how puppet is any less automatic in this regard than crond )
[2008/06/27 16:20:55] <runlevel> muerr: that looks perfect man. thanks.
[2008/06/27 16:21:06] <Volcane> runlevel: well that sounds like all you need is a file resource to make the containing directory and an exec resource to call svn co .... all the time
[2008/06/27 16:21:09] <muerr> second one is what we're doing.
[2008/06/27 16:21:10] @ Quit: kenvandine: Read error: 110 (Connection timed out)
[2008/06/27 16:21:20] <muerr> first one is uh, i'm not sure, the summary sounded better than it really was.
[2008/06/27 16:21:27] <runlevel> Volcane: e^ipi i just want a nice clean way of doing it mostly.
[2008/06/27 16:21:50] <runlevel> thanks yall.
[2008/06/27 16:22:20] <runlevel> brb
[2008/06/27 16:24:25] <Disconnect> '/etc/cron.d/svn-up .. sounds clean to me..
[2008/06/27 16:25:06] @ emerose_ joined channel #puppet
[2008/06/27 16:25:18] <runlevel> Disconnect: do you ahve a good example conf of using cron? thats my next thing to setup
[2008/06/27 16:25:31] <muerr> there's a cron resource type.
[2008/06/27 16:25:55] <Disconnect> i'd just manage /etc/cron.d files as straight files. (with the bonus of using contains=> if you want to keep the contents in the classes)
[2008/06/27 16:25:55] <runlevel> i saw that and tried to set it up but i cant seem to get it to work. tho i havnt put a TON of effort into it just yet
[2008/06/27 16:26:42] <runlevel> Disconnect: good point.
[2008/06/27 16:27:06] <Disconnect> in fact, for icagent runs thats exactly what I already do
[2008/06/27 16:27:39] <Volcane> cron { command => "blah", user => "root", minute => 1, hour => 0 }
[2008/06/27 16:27:42] <Volcane> thats all there is to it
[2008/06/27 16:27:51] <Volcane> cron {"stupid cron": command => "blah", user => "root", minute => 1, hour => 0 }
[2008/06/27 16:27:54] <Volcane> actually
[2008/06/27 16:27:59] <runlevel> Volcane: hmm ok, ill see what i can produce. thanks
[2008/06/27 16:30:54] <Volcane> it ads it to the users crontab, so crontab -l -u user
[2008/06/27 16:30:56] <Volcane> not /etc/crontab
[2008/06/27 16:31:08] <Volcane> and atm funky time periods like @daily doesnt work
[2008/06/27 16:31:47] @ andrewcshafer joined channel #puppet
[2008/06/27 16:34:43] @ Quit: emerose: Read error: 110 (Connection timed out)
[2008/06/27 16:35:17] @ lak joined channel #puppet
[2008/06/27 16:36:53] <Volcane> lak: when you presenting your admin/reporting tool thing you mentioned the other day?
[2008/06/27 16:37:04] <lak> i presented it on tuesday
[2008/06/27 16:37:24] <Volcane> oh, is there public info up somewhere?
[2008/06/27 16:40:21] <lak> not yet
[2008/06/27 16:40:42] <lak> haven't had any time, and we kinda barely squeaked the demo in under the wire, so it's going to take us a few more days to get info available
[2008/06/27 16:40:51] <Volcane> ah ok
[2008/06/27 16:41:10] @ \ask_ joined channel #puppet
[2008/06/27 16:42:15] @ mmcgrath joined channel #puppet
[2008/06/27 16:43:08] @ Quit: muerr: "Leaving"
[2008/06/27 16:43:23] <mmcgrath> Is there a way to append to arrays in a manifest? Like instead of doing $tcpPorts = [25, 80, 33] do a $tcpPorts = AppendSomeHow[55] ?
[2008/06/27 16:44:34] <lak> unfortunately not
[2008/06/27 16:46:32] @ Kenichiro joined channel #puppet
[2008/06/27 16:46:38] <Kenichiro> Wanna Play Fun RPG game ? /q me or join #HypeRPG
[2008/06/27 16:46:45] <runlevel> uh
[2008/06/27 16:46:59] <runlevel> /kickthespammer
[2008/06/27 16:48:39] <lak> is this a common spam thing?
[2008/06/27 16:48:51] <lak> i can op myself and kick him if apropriate
[2008/06/27 16:48:52] <runlevel> kicking them?
[2008/06/27 16:49:00] <lak> the rpg thing
[2008/06/27 16:49:00] <runlevel> its clearly spam
[2008/06/27 16:49:04] <lak> ok
[2008/06/27 16:49:05] <Volcane> yip
[2008/06/27 16:49:07] @ Fieldy joined channel #puppet
[2008/06/27 16:49:23] @ Mode +o lak by ChanServ
[2008/06/27 16:49:32] @ Kenichiro has been kicked from #puppet by lak (lak)
[2008/06/27 16:49:44] <runlevel> hurray
[2008/06/27 16:49:45] <Disconnect> report him @ #freenode too
[2008/06/27 16:49:56] <runlevel> seriously
[2008/06/27 16:50:22] <Disconnect> is there any way to ask puppetd how long its planning on splay-waiting? cuz its been 20 mins... at this rate, it could have just skipped a run..
[2008/06/27 16:51:48] <Volcane> it waits between no time and your run frequency doesnt it?
[2008/06/27 16:51:50] <Volcane> randomly?
[2008/06/27 16:51:53] <Disconnect> nevermind. evidently all my nodes are going to wait about 20 mins, then run within a fw secs of each other still.
[2008/06/27 16:52:05] <Volcane> heh
[2008/06/27 16:52:26] <Disconnect> "Whether to sleep for a pseudo-random (but consistent) amount of time before a run.".. consistant.. so this is gonna keep happening
[2008/06/27 16:52:43] @ Fieldy left channel #puppet ()
[2008/06/27 16:52:45] <Volcane> ah right
[2008/06/27 16:52:50] <Disconnect> nice :(
[2008/06/27 16:52:52] @ jbooth joined channel #puppet
[2008/06/27 16:53:04] <Volcane> well, consistent based on what, i mean consistent for each node?
[2008/06/27 16:53:10] <Volcane> kewl, surely not the same for all nodes though
[2008/06/27 16:53:28] <Volcane> like 10 hosts, host 1 will always sleep 10 minutes, host 2 might sleep 5 always?
[2008/06/27 16:53:32] <Volcane> that seems logical
[2008/06/27 16:53:48] <Disconnect> ...right. and i just had 3 hosts all go 20 minutes. literally, they were running closer together with it set than without
[2008/06/27 16:54:06] <Disconnect> difference of 4 seconds from the first to the last
[2008/06/27 16:54:33] <jbooth> Greetings folks. schedule{} question, if anyone can field it: so I can set the period to "weekly", but what do I set for the range=>? Hours doesn't seem to make sense -- or if I do set hours, when does a week start? Sunday morning at 12am?
[2008/06/27 16:54:35] <Disconnect> so really all it does is ensure that when i run puppetd restart (to kick off a new config by hand) I have to spend 20 minutes looking bsuy
[2008/06/27 16:54:37] <Disconnect> busy
[2008/06/27 16:54:55] <Volcane> Disconnect: ah :(
[2008/06/27 16:56:24] <lak> Volcane: right
[2008/06/27 16:56:31] @ Quit: Vivek: "Leaving"
[2008/06/27 16:56:48] <lak> Disconnect: that, um, really shouldn't happen
[2008/06/27 16:56:54] <Disconnect> ...thats nice.
[2008/06/27 16:56:55] <Disconnect> :)
[2008/06/27 16:57:05] <lak> anyone else getting this behaviour?
[2008/06/27 16:57:14] <Disconnect> Jun 27 16:51:27 mgmt-master puppetmasterd[20368]: (Scope(Class[main])) Configuring <foo>
[2008/06/27 16:57:18] <Volcane> yeah i guess its somehow hashing on the hostname or something to get the frequency, so its always the same splay time?
[2008/06/27 16:57:29] <Disconnect> Jun 27 16:51:32 mgmt-master puppetmasterd[20368]: (Scope(Class[main])) Configuring <bar>
[2008/06/27 16:57:48] <Disconnect> and there was one in the middle
[2008/06/27 16:57:54] <Disconnect> i'm pretty sure that is all 3 that have splay set, too..
[2008/06/27 16:58:51] <lak> Volcane: yeah
[2008/06/27 16:59:14] * Volcane puts hostname based sleeps in his daily crons on virtual machines that way
[2008/06/27 16:59:22] <Volcane> makes sure they dont all hammer the box
[2008/06/27 16:59:30] <Disconnect> (as in the other hosts don't have it set and are running on the old schedule)
[2008/06/27 17:00:23] <ashp> someone should add a bit of code whereby when puppet runs it can find out when another host last run, and set itself to run 10 seconds slower next time :)
[2008/06/27 17:00:35] @ cote_ joined channel #puppet
[2008/06/27 17:00:38] <ashp> (in another host ran within 15 seconds, for example)
[2008/06/27 17:03:19] <Disconnect> yah
[2008/06/27 17:03:41] <Disconnect> most services like that allow the server to push new runtimes down to the clients.
[2008/06/27 17:04:40] @ Quit: cote_: Client Quit
[2008/06/27 17:07:16] <ashp> it would gradually spread itself out over time, it can't be that hard to code
[2008/06/27 17:07:31] <Disconnect> even with too many hosts at least it would shuffle them
[2008/06/27 17:08:38] <Disconnect> anytime a host hits while a second is running, adjust it to run after the first one. you're not changing intervals so you don't lose runs, and its a faster fix than incremental shifts
[2008/06/27 17:11:21] <lak> you need to add further instrumentation to the server, to track what's being compiled -- which is often happening in a thread -- and then an extra interface so that the client can query the server for that info
[2008/06/27 17:11:32] <lak> i thought about doing that instead of splay, since it's so much more graceful
[2008/06/27 17:11:41] <lak> but it was also so much more work that i wasn't up for it
[2008/06/27 17:13:46] @ Quit: cote: Read error: 110 (Connection timed out)
[2008/06/27 17:14:25] <Disconnect> how do i reset the delay time?
[2008/06/27 17:21:15] <lak> it's not tunable; either splay is enabled or it's not
[2008/06/27 17:24:09] @ shenson is now known as shenson_not_here
[2008/06/27 17:31:22] @ Quit: Ol__:
[2008/06/27 17:32:20] @ Quit: lak:
[2008/06/27 17:36:33] @ gileswork joined channel #puppet
[2008/06/27 17:47:54] <Disconnect> so i can either have them all run every 30 minutes or they can all run 20 minutes after that? thats no good :(
[2008/06/27 17:49:05] <stevenjenkins> does anyone have any info on the proposed GUI?
[2008/06/27 17:56:29] <e^ipi> gvim
[2008/06/27 17:57:43] <e^ipi> gui admin tools are a bad idea...
[2008/06/27 18:00:13] @ verwilst joined channel #puppet
[2008/06/27 18:09:48] @ Quit: emerose_:
[2008/06/27 18:12:11] @ Quit: jfluhmann: Remote closed the connection
[2008/06/27 18:19:05] @ gh left channel #puppet ()
[2008/06/27 18:23:48] @ Quit: jbrothers: "Leaving."
[2008/06/27 18:28:04] @ Quit: aymerick: "kit mais sage"
[2008/06/27 18:28:58] @ pftqg_ joined channel #puppet
[2008/06/27 18:30:49] @ nasrat joined channel #puppet
[2008/06/27 18:31:31] <nasrat> some more dumb how do I do this in win32 questions for facter
[2008/06/27 18:32:15] <nasrat> we've a bunch of helpers (eg finding which) that depend on redirection to /dev/null
[2008/06/27 18:32:57] <nasrat> (2)
[2008/06/27 18:33:09] @ pftqg_ is now known as pftqg
[2008/06/27 18:35:09] <nasrat> is there a portable popen3 or such in ruby that I could use to wrap that stuff or should I make those utilities os conditional by say using rbconfig
[2008/06/27 18:43:54] @ emerose joined channel #puppet
[2008/06/27 18:44:44] @ stahnma left channel #puppet ("Konversation terminated!")
[2008/06/27 18:51:47] @ andrewcshafer_ joined channel #puppet
[2008/06/27 18:51:49] @ Quit: andrewcshafer: Read error: 104 (Connection reset by peer)
[2008/06/27 19:04:24] @ Quit: lutter: "Leaving."
[2008/06/27 19:06:24] @ Quit: \ask_: Read error: 104 (Connection reset by peer)
[2008/06/27 19:06:34] @ \ask_ joined channel #puppet
[2008/06/27 19:12:46] @ Quit: markl_: "Lost terminal"
[2008/06/27 19:18:09] @ Quit: emerose:
[2008/06/27 19:21:19] @ Quit: _zsh: "ChatZilla 0.9.83 [Firefox 2.0.0.14/2008040413]"
[2008/06/27 19:23:31] @ ski98033 left channel #puppet ()
[2008/06/27 19:37:07] @ lutter joined channel #puppet
[2008/06/27 19:37:23] @ randybias joined channel #puppet
[2008/06/27 19:39:52] @ Quit: nasrat:
[2008/06/27 19:46:14] <runlevel> omg bbl
[2008/06/27 19:46:17] @ Quit: runlevel: "leaving"
[2008/06/27 19:50:08] @ andrewcshafer joined channel #puppet
[2008/06/27 19:50:13] @ Quit: andrewcshafer_: Read error: 104 (Connection reset by peer)
[2008/06/27 19:52:50] @ Quit: jvanzyl:
[2008/06/27 20:03:00] <jamesturnbull> any rails people around?
[2008/06/27 20:03:18] <jamesturnbull> I am trying to migrate Redmine's sessions from the flesystem to the db
[2008/06/27 20:03:24] <jamesturnbull> filesystem even
[2008/06/27 20:03:55] <jamesturnbull> I ran the rake taste to create the session table
[2008/06/27 20:04:18] <jamesturnbull> there is obviously a step I am missing next...
[2008/06/27 20:14:27] @ shake-n-bake_ joined channel #puppet
[2008/06/27 20:16:11] <jamesturnbull> ignore me...
[2008/06/27 20:16:25] * jamesturnbull hits head with palm
[2008/06/27 20:17:52] <pftqg> I did that recently... step one was the rake task, step two was changing a setting in conf/, but which is it... that's the question
[2008/06/27 20:18:24] <jamesturnbull> pftqg: I found the configuration option already
[2008/06/27 20:18:58] <jamesturnbull> pftqg: it's just somehow the db table is not being created - but I suspect it'd sqlite3
[2008/06/27 20:19:54] <pftqg> in theory your sessions will be in the same db as your other data, as defined in database.yml
[2008/06/27 20:20:26] <jamesturnbull> pftqg: yes .. in theory :)
[2008/06/27 20:21:01] @ Quit: shake-n-bake: Read error: 110 (Connection timed out)
[2008/06/27 20:21:07] <pftqg> but rake db:... will default to the development environment (which may or may not be what you want)
[2008/06/27 20:26:06] <jamesturnbull> pftqg: I overrode that with RAILS_ENV=production
[2008/06/27 20:26:25] <jamesturnbull> pftqg: just creates a file called db/095_blah.rb
[2008/06/27 20:26:34] <jamesturnbull> pftqg: rather than an actual table
[2008/06/27 20:26:58] <pftqg> oh right, have you tried doing a rake db:migrate RAILS_ENV=production after that?
[2008/06/27 20:27:43] * jamesturnbull backs up database
[2008/06/27 20:27:58] <pftqg> always a good idea :)
[2008/06/27 20:29:04] <jamesturnbull> pftqg: bingo
[2008/06/27 20:31:35] <pftqg> I suppose that makes sense in a way (especially if you deploy the app/migrations using capistrano).
[2008/06/27 20:32:57] <jamesturnbull> pftqg: thanks for that
[2008/06/27 20:33:23] <jamesturnbull> pftqg: seems a little faster and I don't have 40000000000 million session files in the filesystem
[2008/06/27 20:33:56] <pftqg> definitely, I wouldn't run a rails app any other way :)
[2008/06/27 20:34:48] <pftqg> just make sure you have a cleanup of old sessions in the database somehow - I don't recall if that happens automatically (or at least it might do now but didn't some time ago, or if I added a cron job that takes care of it or...)
[2008/06/27 20:39:54] <fastjay> anyone know if its easy to have puppetmasterd use webrick w/o ssl
[2008/06/27 20:39:56] <fastjay> ?
[2008/06/27 20:40:23] <fastjay> (please dont ask)
[2008/06/27 20:48:28] <pftqg> night all
[2008/06/27 20:51:02] @ Quit: verwilst: "Ex-Chat"
[2008/06/27 21:09:48] @ Gwayne joined channel #puppet
[2008/06/27 21:10:04] <jamesturnbull> pftqg: is that just a matter of running a rake task?
[2008/06/27 21:10:21] <jamesturnbull> fastjay: can't be done
[2008/06/27 21:10:34] <fastjay> ahh
[2008/06/27 21:10:47] <fastjay> i was trying to run puppetmasterd under bleak_house but not having much luck.
[2008/06/27 21:12:41] @ kenvandine joined channel #puppet
[2008/06/27 21:13:05] <jamesturnbull> fastjay: sorry not a combination I've seen vefore
[2008/06/27 21:13:11] <jamesturnbull> before even
[2008/06/27 21:13:16] <fastjay> trying to find memory leak
[2008/06/27 21:13:28] <fastjay> but it was seg faulting and doing other nasty stuff on me :)
[2008/06/27 21:13:44] <jamesturnbull> fastjay: ask fujin and holoway how they did the initial tracing
[2008/06/27 21:13:55] <jamesturnbull> fastjay: they did fair bit of work with Puppet and memory prifling
[2008/06/27 21:13:59] <fastjay> bleak_house looks pretty promising.. and in theory it does rails stuff.
[2008/06/27 21:14:09] <fastjay> it was designed for rails stuff
[2008/06/27 21:14:15] <fastjay> so i reckon it would have workedbut
[2008/06/27 21:14:28] <fastjay> i have a feeling its just the rpms and various gems and what not causing me problems
[2008/06/27 21:16:44] <fastjay> jamesturnbull: i will ping them on monday thnx
[2008/06/27 21:19:02] @ brothers left channel #puppet ()
[2008/06/27 21:30:36] @ Ash__ joined channel #puppet
[2008/06/27 21:30:40] @ Quit: Ash: Read error: 104 (Connection reset by peer)
[2008/06/27 21:49:40] @ Quit: Gwayne: Remote closed the connection
[2008/06/27 21:57:10] @ Quit: gileswork: Read error: 110 (Connection timed out)
[2008/06/27 22:07:40] @ Quit: \ask_:
[2008/06/27 22:08:00] @ jcollie` joined channel #puppet
[2008/06/27 22:09:40] @ jcollie` left channel #puppet ("Ex-Chat")
[2008/06/27 22:14:33] @ _NJGuy is now known as RainDoctor
[2008/06/27 22:36:14] @ Quit: randybias:
[2008/06/27 22:49:36] @ randybias joined channel #puppet
[2008/06/27 22:49:42] @ Quit: randybias: Remote closed the connection
[2008/06/27 23:01:31] @ \ask_ joined channel #puppet
[2008/06/27 23:07:48] @ Quit: andrewcshafer:
[2008/06/27 23:10:03] @ andrewcshafer joined channel #puppet
[2008/06/27 23:14:30] @ keithlard joined channel #puppet

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