Saturday, 2010-07-03

[2010/07/03 00:00:30] @ Log started by gepetto
[2010/07/03 00:00:30] @ Quit: rcrowley: Quit: rcrowley
[2010/07/03 00:00:43] @ Quit: Hypnoz: Ping timeout: 265 seconds
[2010/07/03 00:09:27] @ KenjiPops joined channel #puppet
[2010/07/03 00:09:42] @ Quit: kc7zzv: Quit: kc7zzv
[2010/07/03 00:13:55] @ yannL joined channel #puppet
[2010/07/03 00:15:34] @ pting joined channel #puppet
[2010/07/03 00:28:34] @ alban21 joined channel #puppet
[2010/07/03 00:28:35] @ Quit: alban2: Read error: Connection reset by peer
[2010/07/03 00:29:49] @ voodoo_ left channel #puppet ("Leaving")
[2010/07/03 00:31:45] @ nexx joined channel #puppet
[2010/07/03 00:38:41] <simplechat> hey guys, is there any reason why puppetmasterd would forever refuse its own certificate?
[2010/07/03 00:38:55] <simplechat> Certificate does not match private key.
[2010/07/03 00:52:44] <simplechat> damnit
[2010/07/03 00:52:50] <simplechat> it looks like 0.45 was broken
[2010/07/03 00:52:53] <simplechat> and never got fixed :(
[2010/07/03 00:52:57] <simplechat> why did you guys release it?
[2010/07/03 00:53:04] @ allsystemsarego joined channel #puppet
[2010/07/03 00:59:29] @ Quit: tessier: Read error: No route to host
[2010/07/03 01:00:16] <jamesturnbull> simplechat: what is 0.45?
[2010/07/03 01:06:19] <joschi> jamesturnbull: I think he refers to puppet 0.24.5
[2010/07/03 01:06:32] <jamesturnbull> joschi: I see
[2010/07/03 01:09:08] @ Djelibeybi joined channel #puppet
[2010/07/03 01:09:17] <jamesturnbull> hmm 0.24.5 was the default in Ubuntu for quite for some time - I am pretty sure it's not broken - old but not broken
[2010/07/03 01:10:09] <Djelibeybi> jamesturnbull: do you have tests for mysql/postgresql storeconfigs?
[2010/07/03 01:10:21] * Djelibeybi needs to determine if a small schema change for Oracle will break mysql/postgresql/sqlite3
[2010/07/03 01:10:28] <jamesturnbull> Djelibeybi: there are
[2010/07/03 01:11:04] <Djelibeybi> jamesturnbull: can you change rails/database/schema.rb -- t.column :environment, :string to t.column :environment, :text
[2010/07/03 01:11:17] <Djelibeybi> And see if that breaks mysql/postgresql/sqlite3?
[2010/07/03 01:11:29] <Djelibeybi> Because Oracle's string is max 255 chars, but text is unlimited
[2010/07/03 01:11:39] <Djelibeybi> And that environment column hit 1900+ chars on my single resource test. :)
[2010/07/03 01:12:14] <jamesturnbull> Djelibeybi: hang on
[2010/07/03 01:12:24] <simplechat> jamesturnbull, sorry, typod
[2010/07/03 01:13:03] <Djelibeybi> jamesturnbull: we use text columns for other things, so I'm sure it's supported.
[2010/07/03 01:17:13] <jamesturnbull> Djelibeybi: hmmm the tests pass
[2010/07/03 01:17:25] <jamesturnbull> Djelibeybi: whether that is good or not ...
[2010/07/03 01:17:30] <jamesturnbull> Djelibeybi: masterzen might know
[2010/07/03 01:20:32] <Djelibeybi> jamesturnbull: yeah, I'd be curious to see what happens without the change. I'm not sure what the column limit on string type is for mysql/postgresql
[2010/07/03 01:20:44] <Djelibeybi> I would imagine postgresql at least would have a max varchar(255)
[2010/07/03 01:21:05] <jamesturnbull> Djelibeybi: imagine if you knew a MySQL core developer to ask?
[2010/07/03 01:21:08] <jamesturnbull> Djelibeybi: oh wait
[2010/07/03 01:21:15] <Djelibeybi> jamesturnbull: because that change is required for Oracle. I have to rush off now. Can you commit that for me and run some tests? :)
[2010/07/03 01:21:36] <Djelibeybi> jamesturnbull: if all else fails, I can wrap that in an if oracle_enhanced block
[2010/07/03 01:22:20] <Djelibeybi> jamesturnbull: I'll be back on tomorrow to check your progress. :p
[2010/07/03 01:22:23] <Djelibeybi> Byee!
[2010/07/03 01:22:25] @ Quit: Djelibeybi: Quit: Leaving
[2010/07/03 01:28:10] @ Quit: wakko666: *.net *.split
[2010/07/03 01:28:10] @ Quit: QuackNL: *.net *.split
[2010/07/03 01:28:10] @ Quit: romgo: *.net *.split
[2010/07/03 01:28:10] @ Quit: tanto: *.net *.split
[2010/07/03 01:28:10] @ Quit: kuh: *.net *.split
[2010/07/03 01:28:11] @ Quit: elementai: *.net *.split
[2010/07/03 01:28:11] @ Quit: r3g1ster: *.net *.split
[2010/07/03 01:28:11] @ Quit: zoeloelip: *.net *.split
[2010/07/03 01:28:11] @ Quit: Omahn: *.net *.split
[2010/07/03 01:28:12] @ r3g1ster joined channel #puppet
[2010/07/03 01:28:13] @ tanto joined channel #puppet
[2010/07/03 01:28:13] @ zoeloelip joined channel #puppet
[2010/07/03 01:28:14] @ Omahn joined channel #puppet
[2010/07/03 01:28:16] @ elementai joined channel #puppet
[2010/07/03 01:28:23] @ kuh joined channel #puppet
[2010/07/03 01:28:25] @ wakko666 joined channel #puppet
[2010/07/03 01:28:26] @ romgo joined channel #puppet
[2010/07/03 01:30:53] @ Quit: pting: Quit: Ex-Chat
[2010/07/03 01:41:25] @ Quit: floess_chris: Ping timeout: 264 seconds
[2010/07/03 01:49:38] @ gebi joined channel #puppet
[2010/07/03 01:53:16] @ ericlee joined channel #puppet
[2010/07/03 01:53:18] @ Quit: littleidea: Quit: littleidea
[2010/07/03 01:53:46] @ Quit: simplechat: Remote host closed the connection
[2010/07/03 01:59:05] @ Quit: gniks: Quit: Leaving.
[2010/07/03 02:03:20] @ Quit: yannL: Remote host closed the connection
[2010/07/03 02:18:15] @ jab_doa joined channel #puppet
[2010/07/03 02:24:29] @ alban21 is now known as alban2
[2010/07/03 02:48:41] <alcy> is it ok/possible to use a local (debian) repository as source=>local.debian.repo with apt ?
[2010/07/03 02:49:37] <alcy> package{xyz: provider=>apt, source=>local.deb.repo.} ?
[2010/07/03 02:49:59] @ Quit: tuf: Quit: tuf
[2010/07/03 02:51:08] <Volcane> nope
[2010/07/03 02:54:20] <alcy> ...so add a section for configuring the sources.list, supply it from the puppet file server, and in package{}, do require=>sources.list ?
[2010/07/03 02:57:08] <Volcane> yup
[2010/07/03 02:57:31] <alcy> cool
[2010/07/03 03:01:02] @ Quit: ceren: Quit: ceren
[2010/07/03 03:21:02] @ ceren joined channel #puppet
[2010/07/03 03:27:21] @ Quit: m1nish: Ping timeout: 240 seconds
[2010/07/03 03:33:23] @ adrian_broher joined channel #puppet
[2010/07/03 03:45:18] @ ckauhaus joined channel #puppet
[2010/07/03 03:57:45] @ Whoop joined channel #puppet
[2010/07/03 03:58:53] @ wilmoore joined channel #puppet
[2010/07/03 04:05:11] @ p3rror joined channel #puppet
[2010/07/03 04:14:02] @ kc7zzv joined channel #puppet
[2010/07/03 04:16:54] @ floess_chris joined channel #puppet
[2010/07/03 04:35:41] @ Notice joined channel #puppet
[2010/07/03 04:49:56] @ Quit: KenjiPops: Remote host closed the connection
[2010/07/03 04:51:59] @ Quit: Notice: Quit: bye
[2010/07/03 05:00:14] @ mezgani joined channel #puppet
[2010/07/03 05:02:03] @ Quit: ckauhaus: Read error: Operation timed out
[2010/07/03 05:02:25] @ Quit: p3rror: Ping timeout: 264 seconds
[2010/07/03 05:06:19] @ Quit: mezgani: Ping timeout: 260 seconds
[2010/07/03 05:07:05] @ mezgani joined channel #puppet
[2010/07/03 05:21:21] @ alcy left channel #puppet ()
[2010/07/03 05:30:39] @ Quit: wilco: Ping timeout: 245 seconds
[2010/07/03 05:41:24] @ Quit: mezgani: Read error: Connection reset by peer
[2010/07/03 05:41:50] @ zorzar joined channel #puppet
[2010/07/03 05:44:45] @ Quit: zorzar_: Ping timeout: 240 seconds
[2010/07/03 05:45:22] @ mezgani joined channel #puppet
[2010/07/03 05:47:15] @ bug joined channel #puppet
[2010/07/03 05:48:16] @ toi joined channel #puppet
[2010/07/03 05:51:00] @ Quit: hggh: Remote host closed the connection
[2010/07/03 05:51:45] @ hggh_ joined channel #puppet
[2010/07/03 05:52:02] @ hggh_ is now known as hggh
[2010/07/03 05:57:27] @ Quit: wilmoore: Remote host closed the connection
[2010/07/03 06:03:29] @ Quit: beata-: Ping timeout: 260 seconds
[2010/07/03 06:16:28] @ guest_ joined channel #puppet
[2010/07/03 06:18:31] @ Quit: guest_: Client Quit
[2010/07/03 06:23:12] @ Quit: RedPepper: Remote host closed the connection
[2010/07/03 06:41:10] @ happymcplaksin joined channel #puppet
[2010/07/03 06:45:25] @ Quit: ceren: Quit: ceren
[2010/07/03 06:48:23] @ Quit: gebi: Read error: Operation timed out
[2010/07/03 06:48:39] @ happymcplaksin left channel #puppet ("ERC Version 5.3 (IRC client for Emacs)")
[2010/07/03 07:09:36] @ gebi joined channel #puppet
[2010/07/03 07:11:35] @ Quit: allsystemsarego: Quit: Leaving
[2010/07/03 07:16:58] @ lak joined channel #puppet
[2010/07/03 07:26:58] @ Quit: choc: Quit: changing servers
[2010/07/03 07:28:04] @ choc joined channel #puppet
[2010/07/03 07:30:04] @ rcrowley joined channel #puppet
[2010/07/03 07:33:49] @ Quit: choc: Max SendQ exceeded
[2010/07/03 07:34:15] @ choc joined channel #puppet
[2010/07/03 07:38:15] @ Quit: choc: Client Quit
[2010/07/03 07:38:29] @ choc joined channel #puppet
[2010/07/03 07:38:37] @ \ask joined channel #puppet
[2010/07/03 07:39:40] @ RedPepper joined channel #puppet
[2010/07/03 07:43:03] @ lwhalen joined channel #puppet
[2010/07/03 07:43:48] @ SpacePope joined channel #puppet
[2010/07/03 07:45:05] <lwhalen> gents, I'm getting a very strange error when trying to apply a new manifest I've written to a test host. The error is "err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "Package[]""
[2010/07/03 07:45:16] <lwhalen> here's the manifest I've written: http://www.pastie.org/1029323
[2010/07/03 07:45:47] <lwhalen> I've checked out the syntax of the manifest with "--parseonly", and that checks out
[2010/07/03 07:46:43] <lwhalen> any ideas as to what I'm doing wrong?
[2010/07/03 07:51:40] <lwhalen> oh, my puppet version is 0.25.4 for both the client and puppetmaster
[2010/07/03 07:52:21] <lwhalen> and running puppetd with --debug --verbose --no-daemonize doesn't show anything particularly enlightening (to me at least) either
[2010/07/03 07:56:12] @ Quit: RedPepper: Remote host closed the connection
[2010/07/03 08:01:34] @ littleidea joined channel #puppet
[2010/07/03 08:09:23] @ RedPepper joined channel #puppet
[2010/07/03 08:10:32] <Volcane> lwhalen: somewhere you have something like require => Package[$somepackage] and the variable is empty
[2010/07/03 08:10:46] <lwhalen> ahhh ok
[2010/07/03 08:11:43] <lwhalen> is default still a protected case statement target in .25?
[2010/07/03 08:12:34] <agaffney> what do you mean?
[2010/07/03 08:12:49] <agaffney> default: is the fallback in a case statement when nothing else matches
[2010/07/03 08:13:02] <lwhalen> I have a case statement for the $operatingsystem fact that only uses 'default'
[2010/07/03 08:13:28] <lwhalen> it's... useless, I know, but I'm anticipating having to use a case statement there at some point in the future
[2010/07/03 08:15:36] <lwhalen> I... don't appear to have any requirements based on Packages in here, actually
[2010/07/03 08:15:48] <lwhalen> I have a requirement for another class
[2010/07/03 08:16:11] <agaffney> is puppet getting grumpy because there's nothing other than 'default'?
[2010/07/03 08:16:22] <agaffney> if so, just add a 'foo': option that will never match
[2010/07/03 08:16:22] <lwhalen> I dont know, hence why I was asking :-p
[2010/07/03 08:16:40] <lwhalen> I just redid the manifest to zap all case statements
[2010/07/03 08:16:49] <agaffney> lwhalen: what error were you seeing?
[2010/07/03 08:17:03] <lwhalen> "err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "Package[]"
[2010/07/03 08:17:59] <lwhalen> here's the manifest: http://www.pastie.org/1029340
[2010/07/03 08:19:31] <agaffney> are you sure it's even referring to that file?
[2010/07/03 08:20:18] <lwhalen> reasonably sure. On my test host, I've removed all references to all other classes
[2010/07/03 08:20:23] <lwhalen> err, all other manifests
[2010/07/03 08:20:34] <lwhalen> so puppetmaster is handing out ONLY this manifest to this client
[2010/07/03 08:20:44] @ Quit: project2501a: Ping timeout: 240 seconds
[2010/07/03 08:21:43] <Volcane> line 43 and 51
[2010/07/03 08:21:47] <Volcane> play spot the difference
[2010/07/03 08:22:10] <lwhalen> ...
[2010/07/03 08:22:17] <lwhalen> <much profanity>
[2010/07/03 08:22:21] <Volcane> heh
[2010/07/03 08:22:30] <lwhalen> pain in the balls. thanks Volcane!
[2010/07/03 08:22:39] <Volcane> file a bug please
[2010/07/03 08:22:47] <lwhalen> for what? PEBKAC/
[2010/07/03 08:22:47] <lwhalen> ?
[2010/07/03 08:22:49] <Volcane> saying puppet should complain better about resources with blank names
[2010/07/03 08:23:02] <Volcane> so the error message isnt so crappy
[2010/07/03 08:23:06] <lwhalen> ahhh ok
[2010/07/03 08:23:08] <lwhalen> will do
[2010/07/03 08:23:09] <Volcane> show your example, and the error you got
[2010/07/03 08:23:11] <Volcane> and ask it to be better
[2010/07/03 08:23:45] <lwhalen> indeed
[2010/07/03 08:23:52] <lwhalen> what's the URL again? trac.puppetlabs.com isn't liking me
[2010/07/03 08:23:58] <Volcane> projects.puppetlabs.com
[2010/07/03 08:31:04] @ Quit: alexs_: Ping timeout: 240 seconds
[2010/07/03 08:31:37] <lwhalen> bug 4138 created, good sir
[2010/07/03 08:32:12] @ Quit: rcrowley: Quit: rcrowley
[2010/07/03 08:33:59] <Volcane> thank you very much
[2010/07/03 08:36:50] @ alexs_ joined channel #puppet
[2010/07/03 08:43:25] @ Quit: RedPepper: Remote host closed the connection
[2010/07/03 08:49:31] @ Quit: lwhalen: Quit: Where'd my controlling terminal go?!?
[2010/07/03 08:49:40] @ Quit: littleidea: Quit: littleidea
[2010/07/03 08:52:46] @ RedPepper joined channel #puppet
[2010/07/03 08:53:45] <jamesturnbull> Volcane: thanks - good usability bug
[2010/07/03 08:54:11] * Volcane moaned about log quality a lot at p'camp, promised I'll open bugs for them :P
[2010/07/03 08:55:20] @ littleidea joined channel #puppet
[2010/07/03 08:57:03] <jamesturnbull> Volcane: heh
[2010/07/03 08:57:07] @ Quit: floess_chris: Ping timeout: 276 seconds
[2010/07/03 08:57:42] @ Quit: alban2: Quit: Leaving.
[2010/07/03 08:59:12] @ Quit: tecto_: Read error: Connection reset by peer
[2010/07/03 08:59:12] <jamesturnbull> Volcane: you use PowerDNS at all?
[2010/07/03 08:59:46] <Volcane> jamesturnbull: ruby-pdns.googlecode.com :P
[2010/07/03 09:00:05] <jamesturnbull> Volcane: ah ha
[2010/07/03 09:00:55] <Volcane> fairly old code, but rock solid, i do lots of queries with it
[2010/07/03 09:01:04] <jamesturnbull> Volcane: thanks - you've just made my research a lot easier ;)
[2010/07/03 09:01:11] <Volcane> hehe
[2010/07/03 09:01:23] <Volcane> that would be the GSLB I'd put docs on
[2010/07/03 09:14:31] @ tecto_ joined channel #puppet
[2010/07/03 09:16:13] @ kaptk2 joined channel #puppet
[2010/07/03 09:16:49] @ kaptk2 left channel #puppet ()
[2010/07/03 09:20:14] @ Quit: lak: Quit: lak
[2010/07/03 09:21:44] @ alban2 joined channel #puppet
[2010/07/03 09:25:21] @ ceren joined channel #puppet
[2010/07/03 09:28:31] @ bjaspan joined channel #puppet
[2010/07/03 09:29:33] @ Quit: bjaspan: Client Quit
[2010/07/03 09:31:56] @ Quit: bug: Quit: bug
[2010/07/03 09:36:59] @ Quit: ceren: Quit: ceren
[2010/07/03 09:46:24] @ gniks joined channel #puppet
[2010/07/03 09:49:33] @ bjaspan joined channel #puppet
[2010/07/03 09:54:51] @ alcy joined channel #puppet
[2010/07/03 10:00:40] @ Quit: nexx: Ping timeout: 248 seconds
[2010/07/03 10:03:28] @ nexx joined channel #puppet
[2010/07/03 10:15:18] @ _lucid joined channel #puppet
[2010/07/03 10:16:51] @ axisys joined channel #puppet
[2010/07/03 10:23:04] @ Quit: Schmidt: Ping timeout: 276 seconds
[2010/07/03 10:25:46] @ Schmidt joined channel #puppet
[2010/07/03 10:28:44] @ Quit: kc7zzv: Read error: Connection reset by peer
[2010/07/03 10:28:56] @ kc7zzv joined channel #puppet
[2010/07/03 10:34:41] @ Quit: gebi: Ping timeout: 265 seconds
[2010/07/03 10:38:12] @ Quit: matti: Quit: 8-X
[2010/07/03 10:38:51] @ Quit: alcy: Ping timeout: 252 seconds
[2010/07/03 10:41:09] @ Quit: bjaspan: Quit: bjaspan
[2010/07/03 10:45:28] @ Alagar joined channel #puppet
[2010/07/03 10:47:07] @ bjaspan joined channel #puppet
[2010/07/03 10:55:16] @ stewartl42 joined channel #puppet
[2010/07/03 10:55:20] @ stewartl42 left channel #puppet ()
[2010/07/03 10:55:36] @ Quit: bjaspan: Quit: bjaspan
[2010/07/03 10:57:24] @ Quit: jaredrhine: Ping timeout: 252 seconds
[2010/07/03 10:59:16] @ floess_chris joined channel #puppet
[2010/07/03 11:01:03] @ alcy joined channel #puppet
[2010/07/03 11:09:01] @ Quit: alban2: Ping timeout: 264 seconds
[2010/07/03 11:11:15] @ Quit: nexx: Ping timeout: 240 seconds
[2010/07/03 11:11:43] @ Quit: alcy:
[2010/07/03 11:11:54] @ nexx joined channel #puppet
[2010/07/03 11:15:56] @ bjaspan joined channel #puppet
[2010/07/03 11:18:38] @ tyll joined channel #puppet
[2010/07/03 11:19:37] @ Quit: nexx: Ping timeout: 276 seconds
[2010/07/03 11:21:04] @ bug joined channel #puppet
[2010/07/03 11:21:12] @ Quit: bjaspan: Quit: bjaspan
[2010/07/03 11:22:20] @ Quit: alhoang: Quit: leaving
[2010/07/03 11:22:33] <agaffney> is it possible to reference a class "dynamically" using the value of a fact?
[2010/07/03 11:23:00] <agaffney> for example, I've got a fact called 'location' with possible values 'foo', 'bar', and 'baz'
[2010/07/03 11:23:36] <agaffney> could I use 'location::$location' to reference the class 'location::foo'?
[2010/07/03 11:24:15] <lisa> try it :)
[2010/07/03 11:24:34] <agaffney> I don't have a dev environment to try it in, and I don't want to break things in my production setup :)
[2010/07/03 11:27:06] <agaffney> http://www.mail-archive.com/puppet-users@googlegroups.com/msg04465.html
[2010/07/03 11:27:07] <lisa> personally i'd make a case statement
[2010/07/03 11:27:13] <agaffney> it looks like it works to some extent
[2010/07/03 11:27:28] <agaffney> well, I'll be reference it all over, so using a case statement gets...messy
[2010/07/03 11:27:39] <agaffney> and the list of possible values grows
[2010/07/03 11:28:11] <lisa> ah
[2010/07/03 11:28:25] <lisa> i thought you were doing something like include foo::$bar
[2010/07/03 11:28:57] <agaffney> well, the 'foo::' is known but $bar is not
[2010/07/03 11:29:34] <agaffney> I think I may just end up with a giant case statement in my 'location' class and skip the subclasses
[2010/07/03 11:29:48] <agaffney> and just do $location::syslog_server
[2010/07/03 11:31:43] * lisa nods
[2010/07/03 11:31:53] <jamesturnbull> agaffney: you can
[2010/07/03 11:32:09] <_lucid> i've downloaded camptocamps monit module ... and i am looking for some quick tips on its install...
[2010/07/03 11:32:19] @ Quit: nareshov: Read error: Connection reset by peer
[2010/07/03 11:32:20] @ Quit: f3ew: Read error: Connection reset by peer
[2010/07/03 11:33:14] @ nareshov joined channel #puppet
[2010/07/03 11:33:37] <agaffney> jamesturnbull: can you elaborate? :P
[2010/07/03 11:34:13] <lisa> that is left as an exercise to the reader
[2010/07/03 11:34:34] * agaffney isn't much for exercise
[2010/07/03 11:35:12] <jamesturnbull> agaffney: you can use location::$location
[2010/07/03 11:35:30] <jamesturnbull> agaffney: $location will just get replaced with the value of the location variable in that scope
[2010/07/03 11:35:56] <agaffney> and if I want to reference a variable inside the location::foo class?
[2010/07/03 11:36:03] @ Quit: MattM: Remote host closed the connection
[2010/07/03 11:36:04] <agaffney> $location::$location::syslog_server ?
[2010/07/03 11:36:34] <agaffney> is that even possible?
[2010/07/03 11:36:51] @ Quit: gniks: Quit: Leaving.
[2010/07/03 11:37:01] * jamesturnbull sinks into variable scoping malaise
[2010/07/03 11:37:26] <jamesturnbull> agaffney: it is possible - can I make a suggestion too about testing?
[2010/07/03 11:37:32] <jamesturnbull> agaffney: you don't need a test environment
[2010/07/03 11:37:33] <agaffney> absolutely
[2010/07/03 11:37:58] <jamesturnbull> agaffney: just create the manifests and run on a VM using the puppet binary
[2010/07/03 11:38:16] <jamesturnbull> agaffney: add a bunch of notice statements to tell you where its up to etc
[2010/07/03 11:38:18] <agaffney> that's still a testing environment :P
[2010/07/03 11:38:28] <jamesturnbull> agaffney: and you can test things like classes, variables, etc
[2010/07/03 11:38:37] <jamesturnbull> agaffney: without messing up your production instance
[2010/07/03 11:38:42] <agaffney> I've done some limited testing like that with 'puppet'
[2010/07/03 11:38:55] <agaffney> but it doesn't do things like import modules and such
[2010/07/03 11:39:02] <jamesturnbull> agaffney: but for "will this value be right if I do blah" that's perfect
[2010/07/03 11:39:10] <jamesturnbull> agaffney: you don't need to import modules
[2010/07/03 11:39:26] <agaffney> for the answer to this particular question, no
[2010/07/03 11:39:31] <jamesturnbull> agaffney: puppet --modulepath=/path/to/your/modules
[2010/07/03 11:39:41] <jamesturnbull> agaffney: and it'll autoload all your modules
[2010/07/03 11:39:46] <agaffney> ahhh
[2010/07/03 11:39:52] <jamesturnbull> heh :)
[2010/07/03 11:40:04] <jamesturnbull> agaffney: then just include them in your test manifests
[2010/07/03 11:40:07] <agaffney> I guess that's only in the [puppetmaster] section of my puppet.conf
[2010/07/03 11:40:15] <agaffney> which is why 'puppet' doesn't do it
[2010/07/03 11:40:16] * jamesturnbull loves "ahhh"
[2010/07/03 11:40:20] <agaffney> heh
[2010/07/03 11:40:20] @ MattM joined channel #puppet
[2010/07/03 11:40:21] <agaffney> indeed
[2010/07/03 11:40:49] @ Quit: _lucid: Ping timeout: 252 seconds
[2010/07/03 11:41:33] <agaffney> jamesturnbull: before I go running down this crazy variable scoping path, can you tell me if $location::$location::syslog_server will actually work? :P
[2010/07/03 11:42:05] <agaffney> where the var is $syslog_server inside location::foo and $location == "foo"
[2010/07/03 11:42:27] <jamesturnbull> agaffney: it should but I'd need to see a bit more of your manifest
[2010/07/03 11:42:32] * jamesturnbull must run also
[2010/07/03 11:42:39] * agaffney plays with it
[2010/07/03 11:42:41] <agaffney> thanks
[2010/07/03 11:48:20] <agaffney> include "location::$location" <-- work
[2010/07/03 11:48:22] <agaffney> s
[2010/07/03 11:48:58] <agaffney> $foo = location::$location::syslog_server <-- syntax error
[2010/07/03 11:49:18] <agaffney> $foo = $location::$location::syslog_server <-- syntax error
[2010/07/03 11:49:51] <agaffney> $foo = "$location::$location::syslog_server" <-- does not yield desired result
[2010/07/03 11:50:32] @ Quit: littleidea: Quit: littleidea
[2010/07/03 11:50:44] @ f3ew joined channel #puppet
[2010/07/03 11:54:44] <agaffney> an even "crazier" idea...can a child class set a variable in the parent class's namespace?
[2010/07/03 11:55:17] <agaffney> class location::foo inherits location { $location::syslog_server = '1.2.3.4' }
[2010/07/03 11:56:24] <agaffney> Cannot assign to variables in other namespaces at ...
[2010/07/03 11:56:28] <agaffney> guess not :P
[2010/07/03 11:58:22] @ Quit: bug: Quit: bug
[2010/07/03 11:59:35] @ Quit: \ask: Remote host closed the connection
[2010/07/03 12:00:26] <agaffney> so I think I've figured out most of what I need
[2010/07/03 12:00:40] <agaffney> the only thing remaining is how to access a variable inside a class that I don't know the name of until runtime
[2010/07/03 12:00:45] @ \ask joined channel #puppet
[2010/07/03 12:06:01] <agaffney> does anyone know if this is actually possible?
[2010/07/03 12:06:40] <lisa> i do not know
[2010/07/03 12:07:59] <agaffney> I'm so close here yet so far :P
[2010/07/03 12:08:02] <agaffney> it's quite annoying
[2010/07/03 12:18:31] @ devdas joined channel #puppet
[2010/07/03 12:19:11] <agaffney> woot!
[2010/07/03 12:19:14] <agaffney> I figured it out
[2010/07/03 12:19:40] @ Bass10 joined channel #puppet
[2010/07/03 12:19:40] <agaffney> $subclass = "location::$location"
[2010/07/03 12:19:43] <agaffney> $syslog_server = inline_template("<%= scope.lookupvar(subclass + '::syslog_server') %>")
[2010/07/03 12:19:56] <agaffney> it's a horrible, horrible hack, but it works
[2010/07/03 12:21:15] @ Quit: Bass10: Max SendQ exceeded
[2010/07/03 12:21:43] <agaffney> http://dpaste.com/214312/ <-- the full test case
[2010/07/03 12:22:06] @ Bass10 joined channel #puppet
[2010/07/03 12:34:39] @ littleidea joined channel #puppet
[2010/07/03 12:35:06] @ dandiep joined channel #puppet
[2010/07/03 12:38:49] @ Quit: littleidea: Client Quit
[2010/07/03 12:40:28] @ kim0 joined channel #puppet
[2010/07/03 12:40:38] <agaffney> whee
[2010/07/03 12:40:45] <agaffney> hurray for simplifying my setup
[2010/07/03 12:41:04] * agaffney starts ripping nasty 7-part if/elsif/end blocks out of his templates
[2010/07/03 12:44:32] <Volcane> agaffney: just use extlookup :P
[2010/07/03 12:45:03] @ dandiep_ joined channel #puppet
[2010/07/03 12:45:21] <kc7zzv> agaffney: I think I remember a better way. It's a syntax that's something like this. ${"varname"}
[2010/07/03 12:45:48] <kc7zzv> In this case, varname can be any string you want. Then you just build the string.
[2010/07/03 12:46:24] <devdas> ick
[2010/07/03 12:47:09] <kc7zzv> agaffney: I still think you should try to do this in a better way though.
[2010/07/03 12:48:06] <agaffney> Volcane: for some reason, I don't like the idea of extlookup, but I couldn't tell you why
[2010/07/03 12:48:37] <agaffney> Volcane: my approach allows setting of default values and overriding per-location
[2010/07/03 12:48:47] <Volcane> agaffney: heh, would be interesting to know. thats exactly what extlookup does though
[2010/07/03 12:49:07] <agaffney> oh?
[2010/07/03 12:49:10] @ Quit: dandiep: Ping timeout: 276 seconds
[2010/07/03 12:49:12] <agaffney> I've never really looked at extlookup
[2010/07/03 12:49:13] <Volcane> $syslogserver = extlookup("syslogserver", "syslog.${fqdn}")
[2010/07/03 12:49:18] <agaffney> just aware of the general concept
[2010/07/03 12:49:29] <Volcane> and then in your data you have data for fqdn, location, datacenter whatever
[2010/07/03 12:49:33] <Volcane> and it resolves against that
[2010/07/03 12:50:02] <Volcane> sorry above example should be: $syslogserver = extlookup("syslogserver", "syslog.${domain}")
[2010/07/03 12:50:05] <agaffney> in my case, I can set a default value for $ldap_uris in location::default and then only override it in 3 of my location::foo subclasses
[2010/07/03 12:50:11] <agaffney> can extlookup do that?
[2010/07/03 12:50:16] <Volcane> yup
[2010/07/03 12:50:33] <agaffney> lame :P
[2010/07/03 12:50:38] <Volcane> you can either hardcode defaults as above, or i have a "common" data file where i tend to put defaults
[2010/07/03 12:50:45] <Volcane> and then just override as needed
[2010/07/03 12:51:41] <Volcane> package{$name: ensure => extlookup("pkg_${name}")} in a define is magic
[2010/07/03 12:51:51] <Volcane> default pkg_screen to absent
[2010/07/03 12:52:02] <Volcane> set it to present for a specific box, datacenter, client etc
[2010/07/03 12:52:07] <Volcane> all by just editing data no code
[2010/07/03 12:52:56] <Volcane> need multi OS crazy manifests with httpd, apache2, etc handling?
[2010/07/03 12:53:05] <agaffney> yeah, yeah, I get the point :)
[2010/07/03 12:53:24] <agaffney> kc7zzv: do you know the exact syntax?
[2010/07/03 12:53:38] <agaffney> because that's what I was trying to figure out before I went with inline_template()
[2010/07/03 12:54:04] <kc7zzv> I think that's the exact syntax, but I have trouble remembering syntax.
[2010/07/03 12:54:12] <Volcane> extlookup("httpd", "httpd", $operatingsystem) <-- now just create a datafile per OS and map httpd to apache2 etc
[2010/07/03 12:54:56] <Volcane> 1 line of code becomes code that supports any amount of operating systems with no case statemtns, if statements etc
[2010/07/03 12:55:34] <agaffney> not all that necessary in my setup
[2010/07/03 12:55:41] <Volcane> nods
[2010/07/03 12:55:56] <agaffney> but I can see its usefulness
[2010/07/03 12:56:32] <kc7zzv> "not all that necessary in my setup" I've heard so many people eat those words a year later.
[2010/07/03 12:56:46] <kc7zzv> Including me.
[2010/07/03 12:56:57] * Volcane makes his modules all configurable with extlookup, if i think i dont need it now, i just make it default to sane things
[2010/07/03 12:57:03] @ dan_ joined channel #puppet
[2010/07/03 12:57:10] <agaffney> kc7zzv: sure, I've done it myself
[2010/07/03 12:57:10] <Volcane> year later, i love that i took the time
[2010/07/03 12:59:59] <kc7zzv> Do people usually put the "package" resources for shared services in trivial classes or make them virtual resources?
[2010/07/03 13:00:15] * Volcane slowly getting rid of all his virtual packages
[2010/07/03 13:00:28] <Volcane> virtual resources in general is epic fail
[2010/07/03 13:00:39] @ Quit: dandiep_: Ping timeout: 245 seconds
[2010/07/03 13:00:42] <Volcane> cos puppet doesnt do sane things with requires wrt them and classes
[2010/07/03 13:01:12] <Volcane> class foo { realize(Package["bar"]) }
[2010/07/03 13:01:19] <Volcane> later on..... require => Class["foo"]
[2010/07/03 13:01:26] <Volcane> package wont be installed when you think it is
[2010/07/03 13:02:20] <kc7zzv> I only realize in a class if something in that class requires the package.
[2010/07/03 13:02:54] <kc7zzv> It's luck though. I didn't actually realize that problem existed.
[2010/07/03 13:03:18] <Volcane> if you were to require => Package["bar"] it would work
[2010/07/03 13:03:23] <Volcane> but you wouldnt want to do that
[2010/07/03 13:03:23] * agaffney once again ponders upgrading his 0.24.8 setup to 0.25.5
[2010/07/03 13:03:41] <agaffney> right now, I'm just doing massive cleanup
[2010/07/03 13:03:51] <kc7zzv> agaffney: Do it if at all possible.
[2010/07/03 13:03:53] <agaffney> getting rid of all the stuff that my ex-co-worker did
[2010/07/03 13:04:12] <agaffney> kc7zzv: I'll do it eventually, but I need to do some testing before I unleash it across 120+ nodes
[2010/07/03 13:04:44] * Volcane has to do it too, 120 etch machines, scary
[2010/07/03 13:04:50] <Volcane> etch, meh
[2010/07/03 13:05:12] <Volcane> even installing more new etch machines, drives me insane
[2010/07/03 13:05:23] <kc7zzv> I assume upgrading the os isn't easy and/or possible?
[2010/07/03 13:05:33] <Volcane> clients too scared their code wont work :P
[2010/07/03 13:05:49] <Volcane> have upgraded things like db boxes etc, but they dont want to do the web farm just yet
[2010/07/03 13:06:01] <agaffney> I'm using CentOS 5.3+ across the board
[2010/07/03 13:06:21] <agaffney> easy to manage
[2010/07/03 13:06:37] <Volcane> yup, also centos everywhere on my clients where i actually get to decicde
[2010/07/03 13:08:11] <Whoop> Psssh, why all the debian hate
[2010/07/03 13:08:13] <Whoop> <3 debian
[2010/07/03 13:08:35] @ dandiep_ joined channel #puppet
[2010/07/03 13:11:17] @ littleidea joined channel #puppet
[2010/07/03 13:12:14] @ Quit: dan_: Ping timeout: 260 seconds
[2010/07/03 13:13:41] @ Quit: littleidea: Client Quit
[2010/07/03 13:18:20] <Volcane> Whoop: etch isnt exactly awesome :P would much rather they were 5
[2010/07/03 13:19:12] <Whoop> Could be much much worse
[2010/07/03 13:19:13] <Whoop> :)
[2010/07/03 13:20:48] <Volcane> kind of, its a tool called mcollective that i write
[2010/07/03 13:20:53] <Volcane> oops, wrong window
[2010/07/03 13:21:21] @ dan_ joined channel #puppet
[2010/07/03 13:24:24] @ Quit: dandiep_: Ping timeout: 240 seconds
[2010/07/03 13:26:06] <Whoop> which is awesome btw
[2010/07/03 13:27:44] @ Quit: mezgani: Ping timeout: 245 seconds
[2010/07/03 13:28:25] * Volcane 's removed 300 nagios checks today wooh
[2010/07/03 13:28:39] <Volcane> shitty virtual machines will be much happier now
[2010/07/03 13:30:31] @ dandiep_ joined channel #puppet
[2010/07/03 13:34:05] @ Quit: dan_: Ping timeout: 240 seconds
[2010/07/03 13:40:23] @ mezgani joined channel #puppet
[2010/07/03 13:42:27] @ dan_ joined channel #puppet
[2010/07/03 13:44:57] @ bug joined channel #puppet
[2010/07/03 13:45:44] @ Quit: dandiep_: Ping timeout: 240 seconds
[2010/07/03 13:52:20] @ Quit: ashp: Ping timeout: 260 seconds
[2010/07/03 13:53:38] @ ashp joined channel #puppet
[2010/07/03 13:53:42] @ dandiep_ joined channel #puppet
[2010/07/03 13:56:47] @ Quit: kc7zzv: Quit: kc7zzv
[2010/07/03 13:58:13] @ Quit: dan_: Ping timeout: 276 seconds
[2010/07/03 14:06:32] @ dan_ joined channel #puppet
[2010/07/03 14:07:25] @ Quit: bug: Quit: bug
[2010/07/03 14:09:03] @ docelic_ joined channel #puppet
[2010/07/03 14:10:09] @ Quit: dandiep_: Ping timeout: 240 seconds
[2010/07/03 14:12:15] @ Quit: docelic__: Ping timeout: 240 seconds
[2010/07/03 14:13:54] @ allsystemsarego joined channel #puppet
[2010/07/03 14:16:31] @ dandiep_ joined channel #puppet
[2010/07/03 14:20:21] @ Quit: dan_: Ping timeout: 252 seconds
[2010/07/03 14:20:26] @ beata- joined channel #puppet
[2010/07/03 14:24:53] @ dan_ joined channel #puppet
[2010/07/03 14:26:55] @ Quit: kim0: Quit: Leaving.
[2010/07/03 14:28:04] @ Quit: dandiep_: Ping timeout: 240 seconds
[2010/07/03 14:32:00] @ Quit: omry|work: Ping timeout: 265 seconds
[2010/07/03 14:35:04] @ dandiep_ joined channel #puppet
[2010/07/03 14:38:45] @ Quit: dan_: Ping timeout: 240 seconds
[2010/07/03 14:42:35] @ dan_ joined channel #puppet
[2010/07/03 14:46:04] @ Quit: dandiep_: Ping timeout: 245 seconds
[2010/07/03 14:51:55] @ Quit: adrian_broher: Quit: Verlassend
[2010/07/03 14:52:47] @ dandiep_ joined channel #puppet
[2010/07/03 14:53:55] @ kolla joined channel #puppet
[2010/07/03 14:56:25] @ Quit: dan_: Ping timeout: 240 seconds
[2010/07/03 15:06:04] @ dan_ joined channel #puppet
[2010/07/03 15:09:20] @ Quit: dandiep_: Ping timeout: 260 seconds
[2010/07/03 15:14:28] @ giskard joined channel #puppet
[2010/07/03 15:15:02] @ dandiep_ joined channel #puppet
[2010/07/03 15:19:22] @ Quit: dan_: Ping timeout: 265 seconds
[2010/07/03 15:19:33] * blkperl likes the new look for the puppet redmine
[2010/07/03 15:26:29] @ Quit: dandiep_: Ping timeout: 245 seconds
[2010/07/03 15:33:32] <gepetto> ::redmine:: Wiki edit: Puppet_Modules (#12) @ http://projects.reductivelabs.com/projects/1/wiki/Puppet_Modules?version=12 (by Jeff McCune)
[2010/07/03 15:39:41] @ Quit: tyll: Quit: leaving
[2010/07/03 15:52:48] @ Quit: floess_chris: Ping timeout: 260 seconds
[2010/07/03 16:09:17] @ Quit: devdas: Remote host closed the connection
[2010/07/03 16:14:17] @ Quit: allsystemsarego: Quit: Leaving
[2010/07/03 16:18:03] @ Quit: Bass10: Quit: Leaving
[2010/07/03 16:20:49] @ littleidea joined channel #puppet
[2010/07/03 16:21:49] @ rcrowley joined channel #puppet
[2010/07/03 16:27:56] @ Quit: rcrowley: Quit: rcrowley
[2010/07/03 16:34:57] @ Quit: mezgani: Ping timeout: 265 seconds
[2010/07/03 16:36:42] @ Quit: jab_doa: Quit: Verlassend
[2010/07/03 16:40:22] @ mroessler joined channel #puppet
[2010/07/03 16:41:10] @ Quit: robinbowes: Quit: Leaving
[2010/07/03 16:44:23] @ marcela joined channel #puppet
[2010/07/03 16:46:57] @ ceren joined channel #puppet
[2010/07/03 16:47:36] @ robinbowes joined channel #puppet
[2010/07/03 16:48:59] @ p3rror joined channel #puppet
[2010/07/03 16:49:10] @ Quit: madduck: Ping timeout: 276 seconds
[2010/07/03 16:50:33] @ Quit: robinbowes: Remote host closed the connection
[2010/07/03 16:50:55] @ bug joined channel #puppet
[2010/07/03 16:51:31] @ madduck joined channel #puppet
[2010/07/03 16:51:31] @ Quit: madduck: Changing host
[2010/07/03 16:51:31] @ madduck joined channel #puppet
[2010/07/03 16:52:17] @ Quit: marcela: Quit: Leaving
[2010/07/03 16:59:25] @ Djelibeybi joined channel #puppet
[2010/07/03 16:59:25] @ Quit: SpacePope: Read error: Connection reset by peer
[2010/07/03 16:59:32] <Djelibeybi> jamesturnbull: ping?
[2010/07/03 17:00:08] @ Quit: p3rror: Read error: Connection reset by peer
[2010/07/03 17:03:49] @ SpacePope joined channel #puppet
[2010/07/03 17:05:22] @ robinbowes joined channel #puppet
[2010/07/03 17:17:41] @ Quit: mroessler: Quit: Leaving
[2010/07/03 17:18:13] @ Quit: Djelibeybi: Quit: Leaving
[2010/07/03 17:21:56] @ Quit: bug: Quit: bug
[2010/07/03 17:33:48] @ p3rror joined channel #puppet
[2010/07/03 17:57:55] @ Quit: littleidea: Quit: littleidea
[2010/07/03 18:05:28] @ littleidea joined channel #puppet
[2010/07/03 18:10:53] @ t0rrentday joined channel #puppet
[2010/07/03 18:11:18] <t0rrentday> 10x Faster than p2p, secure, anon, movies tv music apps all free, http://www.t0rrentday.com now open for registration.
[2010/07/03 18:13:06] @ Quit: t0rrentday: K-Lined
[2010/07/03 18:42:54] @ Quit: littleidea: Quit: littleidea
[2010/07/03 18:43:13] @ ahuman joined channel #puppet
[2010/07/03 18:44:47] @ joe-mac joined channel #puppet
[2010/07/03 18:47:41] @ littleidea joined channel #puppet
[2010/07/03 18:49:00] @ Quit: littleidea: Client Quit
[2010/07/03 18:56:15] @ littleidea joined channel #puppet
[2010/07/03 18:59:56] @ Quit: ceren: Quit: ceren
[2010/07/03 19:00:20] @ Bass10 joined channel #puppet
[2010/07/03 19:02:02] @ Quit: Bass10: Max SendQ exceeded
[2010/07/03 19:02:35] @ Bass10 joined channel #puppet
[2010/07/03 19:10:52] @ Quit: joe-mac: Ping timeout: 276 seconds
[2010/07/03 19:23:54] @ bug joined channel #puppet
[2010/07/03 19:34:58] @ Quit: madduck: Ping timeout: 252 seconds
[2010/07/03 19:35:14] @ madduck joined channel #puppet
[2010/07/03 19:35:14] @ Quit: madduck: Changing host
[2010/07/03 19:35:14] @ madduck joined channel #puppet
[2010/07/03 19:47:41] @ bjaspan joined channel #puppet
[2010/07/03 19:47:56] @ Quit: madduck: Ping timeout: 260 seconds
[2010/07/03 19:49:14] @ madduck joined channel #puppet
[2010/07/03 19:49:14] @ Quit: madduck: Changing host
[2010/07/03 19:49:14] @ madduck joined channel #puppet
[2010/07/03 19:51:31] @ Quit: bjaspan: Client Quit
[2010/07/03 19:52:40] @ Quit: standa: Quit: puff
[2010/07/03 20:05:09] @ bjaspan joined channel #puppet
[2010/07/03 20:05:55] @ Quit: bjaspan: Client Quit
[2010/07/03 20:09:04] @ Quit: Guest75835: Ping timeout: 265 seconds
[2010/07/03 20:13:23] @ raven joined channel #puppet
[2010/07/03 20:49:34] @ bjaspan joined channel #puppet
[2010/07/03 20:57:49] @ Djelibeybi joined channel #puppet
[2010/07/03 21:00:28] @ standa joined channel #puppet
[2010/07/03 21:01:19] @ Quit: Alagar: Ping timeout: 252 seconds
[2010/07/03 21:08:04] @ Quit: bjaspan: Quit: bjaspan
[2010/07/03 21:19:30] @ Quit: Maliuta: Remote host closed the connection
[2010/07/03 21:22:51] @ Quit: littleidea: Quit: littleidea
[2010/07/03 21:32:44] @ Quit: Bass10: Ping timeout: 240 seconds
[2010/07/03 21:42:55] @ project2501a joined channel #puppet
[2010/07/03 21:51:42] @ Quit: ahuman: Remote host closed the connection
[2010/07/03 21:52:51] @ Transformer joined channel #puppet
[2010/07/03 21:56:09] @ Quit: Transformer: Excess Flood
[2010/07/03 22:02:12] @ Transformer joined channel #puppet
[2010/07/03 22:06:09] @ Quit: Transformer: Excess Flood
[2010/07/03 22:06:39] @ Quit: project2501a: Remote host closed the connection
[2010/07/03 22:10:59] @ project2501a joined channel #puppet
[2010/07/03 22:18:24] @ Quit: fbe_: Ping timeout: 265 seconds
[2010/07/03 22:18:27] @ fbe_ joined channel #puppet
[2010/07/03 22:29:04] @ Quit: project2501a: Ping timeout: 240 seconds
[2010/07/03 22:29:19] @ project2501a joined channel #puppet
[2010/07/03 22:54:20] @ ceren joined channel #puppet
[2010/07/03 23:02:39] @ zerd joined channel #puppet
[2010/07/03 23:07:29] @ Quit: ceren: Quit: ceren
[2010/07/03 23:16:56] @ littleidea joined channel #puppet
[2010/07/03 23:19:43] <bdha> Funny building a zone, via Puppet, so a co-worker can test Chef.
[2010/07/03 23:20:52] @ ceren joined channel #puppet
[2010/07/03 23:37:16] @ Quit: \ask: Remote host closed the connection
[2010/07/03 23:46:49] @ Quit: DmosEmp_: Ping timeout: 264 seconds
[2010/07/03 23:48:32] @ alcy joined channel #puppet
[2010/07/03 23:48:44] @ Quit: jason^: Ping timeout: 260 seconds
[2010/07/03 23:49:39] @ jason^ joined channel #puppet
[2010/07/03 23:49:39] @ Quit: jason^: Changing host
[2010/07/03 23:49:39] @ jason^ joined channel #puppet
[2010/07/03 23:53:24] @ alban2 joined channel #puppet

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