Friday, 2010-03-12

[2010/03/12 00:40:41] @ Log started by gepetto
[2010/03/12 00:40:41] @ lak joined channel #puppet-dev
[2010/03/12 01:02:44] @ JJA joined channel #puppet-dev
[2010/03/12 01:07:59] @ Quit: JJA: Ping timeout: 265 seconds
[2010/03/12 02:08:48] @ JJA joined channel #puppet-dev
[2010/03/12 02:26:34] @ Quit: lak: Quit: lak
[2010/03/12 02:59:20] @ DavidS joined channel #puppet-dev
[2010/03/12 04:08:14] @ Quit: ricky: Ping timeout: 246 seconds
[2010/03/12 04:12:30] <masterzen> nigelk: I was wondering if you could profile again your master but with more than one catalog compilation. In the current trace the parser has a large impact, which I expect to disappear in real use because we parse the manifests only when they change.
[2010/03/12 04:17:48] @ ricky joined channel #puppet-dev
[2010/03/12 09:14:26] @ Quit: jmccune: Ping timeout: 248 seconds
[2010/03/12 09:20:00] @ Quit: JJA: Ping timeout: 252 seconds
[2010/03/12 09:41:56] <nigelk> masterzen: yes that was my plan for today actually
[2010/03/12 09:44:15] <masterzen> nigelk: ok. I'm interested in your profile output, then. I might not have time to process it until next week though. I think there is a small hotspot in scope#find_hostclass (at least that's what I found in your first (the html one) profile outpu, if I read it correctly).
[2010/03/12 09:48:19] @ stahnma_ joined channel #puppet-dev
[2010/03/12 09:48:20] @ Quit: stahnma_: Changing host
[2010/03/12 09:48:20] @ stahnma_ joined channel #puppet-dev
[2010/03/12 09:48:36] @ Quit: stahnma: Ping timeout: 276 seconds
[2010/03/12 09:50:09] <nigelk> what was the alternative to racc you suggested masterzen ? What kind of difference would you expect swapping that out would make?
[2010/03/12 09:50:55] <masterzen> nigelk: I was talking about treetop (it's a PEG parser). I have absolutely no idea of the performance benefits/drawbacks...
[2010/03/12 09:51:40] <masterzen> nigelk: Markus and I talked about it once, because the issue is that racc is buggy and/or doesn't allow to express all kind of grammars we might want.
[2010/03/12 09:52:05] <nigelk> ah
[2010/03/12 09:52:53] @ Quit: stahnma_: Ping timeout: 265 seconds
[2010/03/12 09:53:44] <skvidal> hi all
[2010/03/12 09:53:45] @ stahnma joined channel #puppet-dev
[2010/03/12 09:53:46] @ Quit: stahnma: Changing host
[2010/03/12 09:53:46] @ stahnma joined channel #puppet-dev
[2010/03/12 09:53:47] <nasrat> treetop is what cucumber uses
[2010/03/12 09:54:11] <skvidal> is there a way in puppet to determine which certificate a host is using when it connects to the puppetmaster?
[2010/03/12 09:54:42] <skvidal> sometimes there is more than one key/cert in /var/lib/puppet/ssl on a host and I would like to make sure I know which one is the right one
[2010/03/12 09:54:46] <nigelk> skvidal: we have a puppet_certname fact we use that parses the config file, but it feels like it should be built in
[2010/03/12 09:58:06] <nasrat> skvidal: obviously you can force it using --fqdn
[2010/03/12 09:58:46] <skvidal> nasrat: right - I was hoping to just find the right key
[2010/03/12 09:58:50] <skvidal> so I could clean up the wrong ones
[2010/03/12 09:59:00] <nasrat> nigelk: what like ruby -e "require 'puppet'; puts Puppet.settings['certname']"
[2010/03/12 10:01:35] <skvidal> nasrat: oo - handy
[2010/03/12 10:02:25] @ JJA joined channel #puppet-dev
[2010/03/12 10:02:42] <nasrat> skvidal: think that will dtrt, probably want to be root as there is some weirdness around setting stuff
[2010/03/12 10:03:00] <nasrat> may also want Puppet.parse_config() in there too. Would have to look at the code
[2010/03/12 10:03:37] <skvidal> it does do the right thing
[2010/03/12 10:03:38] <skvidal> thanks
[2010/03/12 10:04:27] <skvidal> where shoud I look for the list of things that can be in the settings dictionary?
[2010/03/12 10:04:51] <nasrat> sudo ruby -e "require 'puppet'; Puppet.parse_config; puts File.join(Puppet.settings[:certdir], Puppet.settings[:certname] + '.pem')"
[2010/03/12 10:05:01] <nasrat> might be what you want
[2010/03/12 10:05:12] <nasrat> skvidal: puppetd --genconfig will basically tell you that
[2010/03/12 10:05:17] <skvidal> nasrat: thanks
[2010/03/12 10:05:18] <nasrat> or you could use irb
[2010/03/12 10:06:07] <skvidal> nasrat: thank you, this is really helpful info
[2010/03/12 10:06:07] @ notbrien joined channel #puppet-dev
[2010/03/12 10:07:07] <nasrat> np
[2010/03/12 10:07:22] <nasrat> I keep meaning to get back to my private S3 bucket yum patch
[2010/03/12 10:07:27] <nasrat> but it's just not burning
[2010/03/12 10:07:29] <skvidal> nod
[2010/03/12 10:07:32] <skvidal> I understand
[2010/03/12 10:08:36] <skvidal> nasrat: ruby -e "require 'puppet'; puts Puppet.settings['hostcert']"
[2010/03/12 10:08:39] <skvidal> that looks like a winner, too
[2010/03/12 10:09:17] <skvidal> but it outputs it in /etc/puppet
[2010/03/12 10:09:28] <nasrat> use parse_config first
[2010/03/12 10:09:44] <nasrat> http://gist.github.com/330390
[2010/03/12 10:09:50] @ Quit: DavidS: Read error: Connection reset by peer
[2010/03/12 10:10:21] <nasrat> else you're using the defaults
[2010/03/12 10:10:52] <skvidal> perfect
[2010/03/12 10:26:03] @ Quit: notbrien: Quit: notbrien
[2010/03/12 10:33:16] @ notbrien joined channel #puppet-dev
[2010/03/12 10:42:39] @ lak joined channel #puppet-dev
[2010/03/12 10:55:36] @ Quit: lak: Quit: lak
[2010/03/12 11:08:31] @ lak joined channel #puppet-dev
[2010/03/12 11:22:20] @ Quit: lak: Quit: lak
[2010/03/12 12:48:30] @ lak joined channel #puppet-dev
[2010/03/12 12:49:59] <jbooth> Argh. Someone had to purge Type's requires? didn't they? :-P
[2010/03/12 13:17:16] @ jmccune joined channel #puppet-dev
[2010/03/12 14:15:21] @ Quit: lak: Quit: lak
[2010/03/12 14:23:31] @ plathrop-away is now known as plathrop
[2010/03/12 14:24:23] <ReinH> 'ello
[2010/03/12 14:32:42] <plathrop> howdy
[2010/03/12 14:55:26] <eric0> hi guys... #86 is killin' me. i understand volcane's concerns in comment 16 but i feel like there's gotta be some straightforward way out of this. any thoughts?
[2010/03/12 14:55:27] <gepetto> eric0: #86 is http://projects.reductivelabs.com/issues/show/86 "Puppet - Feature #86: Directory creation fails if parent directory does not exist - ReductiveLabs.com"
[2010/03/12 14:56:04] <plathrop> eric0: I've tried to tackle this more than once, it is really not straightforward
[2010/03/12 14:56:24] <plathrop> eric0: No matter what we choose to do, the behavior will violate the principle of least surprise
[2010/03/12 15:03:41] <eric0> boo. yeah, guess i just have to get craftier with generating the manifest for my giant-ass list o' mounts and just build up the right parent dir resources
[2010/03/12 15:24:28] <nigelk> I don't believe this feature should be implemented fwiw
[2010/03/12 15:24:36] <nigelk> too many shitty side effects
[2010/03/12 15:25:14] <nigelk> and given we have workarounds of an exec or even a defined type that makes all the parent dirs, I don't think it's a big deal
[2010/03/12 15:26:23] <ReinH> eric0: exec "mkdir -p"
[2010/03/12 15:26:24] * ReinH runs
[2010/03/12 15:26:31] <ReinH> kidding
[2010/03/12 15:26:34] <nigelk> no, that's a good answer I think
[2010/03/12 15:26:50] <eric0> i have five hundred of these to loop over
[2010/03/12 15:26:53] <nigelk> if you wish to implement something like this, you have to deal with cleaning it up
[2010/03/12 15:27:50] <nigelk> huh. who runs http://www.puppetmanaged.org/ ?
[2010/03/12 15:27:54] <eric0> but i do think a little custom type might work out.
[2010/03/12 15:39:03] <jbooth> How can a class peek into the require=> graph that gets generated internal to a puppet run?
[2010/03/12 15:42:05] <stahnma> kanirip runs puppetmanaged.org
[2010/03/12 15:42:15] <stahnma> he's a Fedora guy
[2010/03/12 15:46:21] <nigelk> stahnma: huh. I'd never come across it before, but something brought it up on a google search
[2010/03/12 15:47:05] <stahnma> it's mostly stuff for his RoR shop. He's a system admin there I think
[2010/03/12 15:48:12] <nigelk> the comments all appear to be disguised spam as far as I can tell
[2010/03/12 15:49:08] <jbooth> jY: You can override things when you inherit... but you don't inherit .pp files, you inherit classes off each other (or I suppose nodes)
[2010/03/12 15:49:12] <jbooth> Doh!
[2010/03/12 16:06:47] @ lak joined channel #puppet-dev
[2010/03/12 16:36:44] @ Quit: lak: Quit: lak
[2010/03/12 16:38:56] * jbooth answered his question at least -- @resource.catalog.relationship_graph.dependencies(@resource) gives me what I need -- those rules that this rule depends on.
[2010/03/12 16:41:39] @ Quit: JJA: Ping timeout: 240 seconds
[2010/03/12 18:08:16] @ Quit: masterzen: Ping timeout: 268 seconds
[2010/03/12 18:08:30] @ masterzen joined channel #puppet-dev
[2010/03/12 18:16:34] @ Quit: jmccune: Remote host closed the connection
[2010/03/12 18:17:26] @ plathrop is now known as plathrop-away
[2010/03/12 20:04:11] @ lak joined channel #puppet-dev
[2010/03/12 20:05:26] @ Quit: notbrien: Quit: notbrien
[2010/03/12 20:23:07] @ Quit: lak: Quit: lak
[2010/03/12 20:57:18] @ lak joined channel #puppet-dev
[2010/03/12 21:14:47] @ Quit: lak: Quit: lak
[2010/03/12 23:32:38] @ lak joined channel #puppet-dev

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