Sunday, 2011-11-06

[2011/11/06 00:00:30] @ Log started by gepetto
[2011/11/06 00:00:30] @ Quit: themadcanudist: Quit: Leaving.
[2011/11/06 00:04:48] @ adimania joined channel #puppet
[2011/11/06 00:05:48] @ Quit: bmahe: Quit: Leaving
[2011/11/06 00:10:07] <clusterweb> hey guys, whats this mean :) Could not retrieve catalog from remote server: Could not intern from pson: source did not contain any PSON!
[2011/11/06 00:10:23] <blkperl> wierd
[2011/11/06 00:10:32] <blkperl> means theres a bug in your manifest?
[2011/11/06 00:10:53] @ Quit: adimania: Ping timeout: 240 seconds
[2011/11/06 00:11:14] <clusterweb> blkperl: :) uhm, dunnno, everyone else runs ok
[2011/11/06 00:12:58] @ rcrowley joined channel #puppet
[2011/11/06 00:13:04] @ lpaul7 joined channel #puppet
[2011/11/06 00:13:58] <clusterweb> no errors on server
[2011/11/06 00:14:13] <clusterweb> server thinks it compiled catalog fine
[2011/11/06 00:14:50] <clusterweb> possibly client is outdated, let me up it :)
[2011/11/06 00:19:30] @ Ancient is now known as Ancient|away
[2011/11/06 00:26:36] @ Quit: rcrowley: Quit: Computer has gone to sleep.
[2011/11/06 00:30:03] @ mmoya joined channel #puppet
[2011/11/06 00:31:43] @ Quit: neonflux: Quit: Leaving.
[2011/11/06 00:32:16] @ DJClean joined channel #puppet
[2011/11/06 00:40:29] @ Quit: dezwart: Quit: ZZZzzz...
[2011/11/06 00:40:39] @ dezwart joined channel #puppet
[2011/11/06 00:41:09] @ Quit: hooper: Ping timeout: 276 seconds
[2011/11/06 00:43:59] @ Quit: dezwart: Client Quit
[2011/11/06 00:44:11] @ dezwart joined channel #puppet
[2011/11/06 00:47:07] @ Quit: sdog: Remote host closed the connection
[2011/11/06 00:47:55] @ Quit: frostyno_: Ping timeout: 244 seconds
[2011/11/06 00:48:29] @ frostynova joined channel #puppet
[2011/11/06 00:57:00] @ Quit: langworthy: Quit: langworthy
[2011/11/06 00:57:40] @ p3rror joined channel #puppet
[2011/11/06 00:58:00] @ adimania joined channel #puppet
[2011/11/06 00:58:23] @ Razique joined channel #puppet
[2011/11/06 01:02:31] @ Quit: Razique: Client Quit
[2011/11/06 01:04:29] @ Quit: adimania: Ping timeout: 240 seconds
[2011/11/06 01:09:00] @ bobra joined channel #puppet
[2011/11/06 01:12:59] @ Quit: lpaul7: Ping timeout: 252 seconds
[2011/11/06 01:15:22] @ Quit: DigitalNinja: Read error: Connection reset by peer
[2011/11/06 01:15:30] @ DigitalNinja joined channel #puppet
[2011/11/06 01:16:09] @ Quit: DigitalNinja: Read error: Connection reset by peer
[2011/11/06 01:16:12] @ TheDigitalNinja_ joined channel #puppet
[2011/11/06 01:16:38] @ Quit: TheDigitalNinja_: Read error: Connection reset by peer
[2011/11/06 01:16:49] @ TheDigitalNinja_ joined channel #puppet
[2011/11/06 01:17:28] @ The_Digital_Ninj joined channel #puppet
[2011/11/06 01:17:31] @ Quit: TheDigitalNinja_: Read error: Connection reset by peer
[2011/11/06 01:18:46] @ thenulldevice joined channel #puppet
[2011/11/06 01:22:30] @ Quit: dezwart: Quit: ZZZzzz...
[2011/11/06 01:22:39] @ dezwart joined channel #puppet
[2011/11/06 01:25:13] @ wallblom_ joined channel #puppet
[2011/11/06 01:27:21] @ Quit: gniks: Quit: Leaving.
[2011/11/06 01:27:22] @ Quit: clusterweb: Ping timeout: 265 seconds
[2011/11/06 01:27:22] @ Quit: kesor: Read error: Connection reset by peer
[2011/11/06 01:30:44] @ spl1nt joined channel #puppet
[2011/11/06 01:33:54] <spl1nt> http://www.clamtxt.com/?r=37882 ... mad shit guys lets u send 10 free texts a day anywhere in the world free and anonymous .. if u sign up u get 50 ... i just sent 50 txts to a m8 lol he shit brix
[2011/11/06 01:33:56] @ spl1nt left channel #puppet ()
[2011/11/06 01:37:03] @ jodok joined channel #puppet
[2011/11/06 01:37:03] @ Quit: jodok: Changing host
[2011/11/06 01:37:03] @ jodok joined channel #puppet
[2011/11/06 01:41:41] @ Holocaine joined channel #puppet
[2011/11/06 01:49:01] @ Quit: thenulldevice: Ping timeout: 260 seconds
[2011/11/06 01:53:52] @ jedi4ever joined channel #puppet
[2011/11/06 01:54:20] @ ckauhaus joined channel #puppet
[2011/11/06 01:57:26] @ Apanda_ joined channel #puppet
[2011/11/06 01:59:07] @ Apanda_ left channel #puppet ()
[2011/11/06 01:05:25] @ Quit: JoeJulian: Ping timeout: 252 seconds
[2011/11/06 01:07:12] @ JoeJulian joined channel #puppet
[2011/11/06 01:09:47] @ Quit: dezwart: Quit: ZZZzzz...
[2011/11/06 01:09:58] @ dezwart joined channel #puppet
[2011/11/06 01:12:10] @ Quit: mmoya: Ping timeout: 260 seconds
[2011/11/06 01:14:52] @ Quit: wilmoore: Remote host closed the connection
[2011/11/06 01:15:58] @ Smackware joined channel #puppet
[2011/11/06 01:16:04] @ Quit: jodok: Quit: jodok
[2011/11/06 01:28:08] @ jodok joined channel #puppet
[2011/11/06 01:37:05] @ pjd3 joined channel #puppet
[2011/11/06 01:37:44] @ pjd3 left channel #puppet ()
[2011/11/06 01:39:58] @ pjd3 joined channel #puppet
[2011/11/06 01:40:06] @ pjd3 left channel #puppet ()
[2011/11/06 01:41:41] @ Quit: jodok: Quit: jodok
[2011/11/06 01:49:48] @ Quit: Holocaine:
[2011/11/06 02:02:23] @ verwilst joined channel #puppet
[2011/11/06 02:02:52] @ jhelwig is now known as zz_jhelwig
[2011/11/06 02:02:56] @ Quit: kubicek: Excess Flood
[2011/11/06 02:03:25] @ kubicek joined channel #puppet
[2011/11/06 02:08:01] @ brtl joined channel #puppet
[2011/11/06 02:18:17] @ choonming joined channel #puppet
[2011/11/06 02:26:11] @ tilgovi joined channel #puppet
[2011/11/06 02:26:11] @ Quit: tilgovi: Changing host
[2011/11/06 02:26:11] @ tilgovi joined channel #puppet
[2011/11/06 02:42:39] @ dnjaramba joined channel #puppet
[2011/11/06 02:43:42] @ Quit: dezwart: Quit: ZZZzzz...
[2011/11/06 02:43:52] @ dezwart joined channel #puppet
[2011/11/06 02:52:00] @ jodok joined channel #puppet
[2011/11/06 02:52:01] @ Quit: jodok: Changing host
[2011/11/06 02:52:01] @ jodok joined channel #puppet
[2011/11/06 03:00:00] @ Quit: frostynova: Ping timeout: 248 seconds
[2011/11/06 03:10:35] @ frostynova joined channel #puppet
[2011/11/06 03:14:47] @ sdog joined channel #puppet
[2011/11/06 03:15:21] @ Quit: sdog: Client Quit
[2011/11/06 03:15:24] @ sdog1 joined channel #puppet
[2011/11/06 03:18:53] @ Quit: hal-j: Read error: Connection reset by peer
[2011/11/06 03:18:59] @ hal-j joined channel #puppet
[2011/11/06 03:24:47] @ Quit: dezwart: Quit: ZZZzzz...
[2011/11/06 03:24:56] @ dezwart joined channel #puppet
[2011/11/06 03:25:30] @ Quit: p3rror: Remote host closed the connection
[2011/11/06 03:30:22] @ Quit: sdog1: Read error: Connection reset by peer
[2011/11/06 03:30:38] @ sdog joined channel #puppet
[2011/11/06 03:43:00] @ Quit: matchaw_: Remote host closed the connection
[2011/11/06 03:45:10] @ Quit: sdog: Remote host closed the connection
[2011/11/06 03:46:35] @ Quit: jongrocho: Remote host closed the connection
[2011/11/06 03:52:12] @ Quit: jodok: Quit: jodok
[2011/11/06 03:53:21] @ Quit: hal-j: Ping timeout: 252 seconds
[2011/11/06 03:55:56] @ jodok joined channel #puppet
[2011/11/06 03:55:56] @ Quit: jodok: Changing host
[2011/11/06 03:55:56] @ jodok joined channel #puppet
[2011/11/06 03:58:32] @ Quit: bobra: Ping timeout: 276 seconds
[2011/11/06 04:13:08] @ hal-j joined channel #puppet
[2011/11/06 04:14:29] @ Quit: tilgovi: Ping timeout: 240 seconds
[2011/11/06 04:31:41] @ Quit: dezwart: Quit: ZZZzzz...
[2011/11/06 04:31:52] @ dezwart joined channel #puppet
[2011/11/06 04:40:42] @ Quit: dezwart: Quit: -ENOTTY
[2011/11/06 04:56:54] @ cliff-hm joined channel #puppet
[2011/11/06 04:57:56] @ Quit: bluethundr_: Quit: bluethundr_
[2011/11/06 05:00:55] @ bluethundr_ joined channel #puppet
[2011/11/06 05:15:37] @ jaymurtii joined channel #puppet
[2011/11/06 05:16:34] @ sp33t left channel #puppet ("Leaving")
[2011/11/06 05:16:41] @ sp33t joined channel #puppet
[2011/11/06 05:27:32] @ Quit: bluethundr_: Quit: bluethundr_
[2011/11/06 05:33:57] @ nul0op joined channel #puppet
[2011/11/06 05:35:00] @ Quit: nul0op: Client Quit
[2011/11/06 05:35:07] @ nul0op joined channel #puppet
[2011/11/06 05:55:42] @ Quit: mfournier: Quit: leaving
[2011/11/06 05:56:33] @ mfournier joined channel #puppet
[2011/11/06 06:00:59] @ Quit: justdave: Read error: Connection reset by peer
[2011/11/06 06:06:01] @ justdave joined channel #puppet
[2011/11/06 06:08:45] @ Quit: KaZeR_W: Read error: Connection reset by peer
[2011/11/06 06:10:37] @ KaZeR_W joined channel #puppet
[2011/11/06 06:13:56] @ Quit: verwilst: Quit: Ex-Chat
[2011/11/06 06:19:50] @ Quit: jedi4ever: Quit: jedi4ever
[2011/11/06 06:20:27] @ jimi_c joined channel #puppet
[2011/11/06 06:23:20] @ Spads_ joined channel #puppet
[2011/11/06 06:24:38] @ neonflux joined channel #puppet
[2011/11/06 06:26:29] @ Quit: Spads: Ping timeout: 260 seconds
[2011/11/06 06:45:52] @ Quit: frostynova: Remote host closed the connection
[2011/11/06 07:05:35] @ stphung_ joined channel #puppet
[2011/11/06 07:11:38] @ Quit: machine2:
[2011/11/06 07:12:18] @ FARE-SEARCH_COM joined channel #puppet
[2011/11/06 07:15:31] @ Quit: Wolfspyre: Quit: Leaving.
[2011/11/06 07:16:42] @ Wolfspyre joined channel #puppet
[2011/11/06 07:27:44] @ rcrowley joined channel #puppet
[2011/11/06 07:35:35] @ Razique joined channel #puppet
[2011/11/06 07:42:11] @ kelseyhightower joined channel #puppet
[2011/11/06 07:43:12] <kelseyhightower> EXIT
[2011/11/06 07:43:15] @ Quit: kelseyhightower: Client Quit
[2011/11/06 07:44:09] @ Quit: Razique: Quit: Razique
[2011/11/06 08:03:36] @ Quit: elmo: Ping timeout: 260 seconds
[2011/11/06 08:05:23] @ elmo joined channel #puppet
[2011/11/06 08:08:01] @ lak joined channel #puppet
[2011/11/06 08:08:02] @ Quit: lak: Changing host
[2011/11/06 08:08:02] @ lak joined channel #puppet
[2011/11/06 08:09:33] @ samkottler joined channel #puppet
[2011/11/06 08:16:05] @ artista_frustrad joined channel #puppet
[2011/11/06 08:17:54] @ Quit: Stenbryggen1: Quit: Leaving.
[2011/11/06 08:18:16] @ kelseyhightower joined channel #puppet
[2011/11/06 08:19:50] @ Quit: lak: Quit: Leaving.
[2011/11/06 08:29:27] @ Quit: Spads_: Quit: Reconnecting
[2011/11/06 08:29:44] @ Spads joined channel #puppet
[2011/11/06 08:33:51] <dpash> can I make a variable name from another variable?
[2011/11/06 08:34:10] <dpash> I have this variables:
[2011/11/06 08:34:11] <dpash> disksmart_sda => yes
[2011/11/06 08:34:11] <dpash> disksmart_sdb => yes
[2011/11/06 08:34:24] <dpash> and sda in a variable
[2011/11/06 08:36:44] @ Stenbryggen joined channel #puppet
[2011/11/06 08:38:16] @ Quit: kelseyhightower: Quit: leaving
[2011/11/06 08:39:21] @ Quit: Stenbryggen: Client Quit
[2011/11/06 08:40:05] @ Stenbryggen joined channel #puppet
[2011/11/06 08:44:05] @ Quit: artista_frustrad: Ping timeout: 240 seconds
[2011/11/06 08:49:06] @ Quit: samkottler: Read error: Connection reset by peer
[2011/11/06 08:49:20] @ Quit: kinsel: Ping timeout: 248 seconds
[2011/11/06 08:50:02] @ samkottler joined channel #puppet
[2011/11/06 08:56:55] @ artista_frustrad joined channel #puppet
[2011/11/06 09:07:08] @ Quit: Legooolas: Read error: Operation timed out
[2011/11/06 09:07:39] @ jedi4ever joined channel #puppet
[2011/11/06 09:15:53] @ los3241 joined channel #puppet
[2011/11/06 09:24:15] @ otaku_coder joined channel #puppet
[2011/11/06 09:26:14] <otaku_coder> hi, im building a puppet/cloudformation setup on aws, and need to config db and web/app layers. as the hostnames of each instance can't easily be set, whats the best way to build the node definitions? was thinking based on ec2 instance tags, if its possible
[2011/11/06 09:28:46] @ kinsel joined channel #puppet
[2011/11/06 09:29:28] @ Quit: samkottler: Quit: Leaving.
[2011/11/06 09:35:20] @ Legooolas joined channel #puppet
[2011/11/06 09:43:06] @ newtMcKerr joined channel #puppet
[2011/11/06 09:57:28] @ Quit: toobulkeh: Read error: Connection reset by peer
[2011/11/06 09:57:39] @ toobulkeh joined channel #puppet
[2011/11/06 09:58:00] @ samkottler joined channel #puppet
[2011/11/06 10:02:34] @ Quit: toobulkeh: Read error: Connection reset by peer
[2011/11/06 10:02:43] @ toobulkeh joined channel #puppet
[2011/11/06 10:07:46] @ Quit: wallblom_: Read error: Connection reset by peer
[2011/11/06 10:15:11] @ cwebber-irccloud joined channel #puppet
[2011/11/06 10:17:13] <cwebber-irccloud> working on a preseed for mysql and requesttracker4, any thoughts on how to get rid of the preseed file when I am done? http://projects.puppetlabs.com/projects/1/wiki/Debian_Preseed_Patterns
[2011/11/06 10:18:20] @ Quit: samkottler: Quit: Leaving.
[2011/11/06 10:19:37] @ Moe__ joined channel #puppet
[2011/11/06 10:19:54] <cwebber-irccloud> I feel like there should be a way to do something like ensure => ? { Package[foo].installed == true => absent, default => present }
[2011/11/06 10:22:52] @ p3rror joined channel #puppet
[2011/11/06 10:23:25] @ gniks joined channel #puppet
[2011/11/06 10:26:22] @ Quit: toobulkeh: Ping timeout: 258 seconds
[2011/11/06 10:27:21] @ Quit: otaku_coder: Remote host closed the connection
[2011/11/06 10:29:22] @ toobulkeh joined channel #puppet
[2011/11/06 10:29:50] @ ldlework joined channel #puppet
[2011/11/06 10:32:03] @ samkottler joined channel #puppet
[2011/11/06 10:33:55] @ Razique joined channel #puppet
[2011/11/06 10:36:28] @ sdog joined channel #puppet
[2011/11/06 10:36:35] @ Quit: sdog: Changing host
[2011/11/06 10:36:35] @ sdog joined channel #puppet
[2011/11/06 10:38:09] @ zz_jhelwig is now known as jhelwig
[2011/11/06 10:44:48] <jhelwig> dpash: Fairly sure you can't in the puppet language.
[2011/11/06 10:46:19] <jhelwig> cwebber-irccloud: You could create a custom fact that gets synced down to do the query for whether or not the package is installed, and switch based on that in the manifest.
[2011/11/06 10:46:41] <dpash> jhelwig: oh, well that makes it a little hard to only install a SMART check if the drive supports it
[2011/11/06 10:48:36] <jhelwig> dpash: Custom facts are a pretty powerful tool. You could use facter to dynamically create the variables you're looking for.
[2011/11/06 10:49:07] <dpash> jhelwig: I have a diskdrives fact, which gives me a list of drives
[2011/11/06 10:49:31] <dpash> I am then passing that list in to a define as a array (using split)
[2011/11/06 10:49:54] <dpash> I wanted to check to see if the disksmart_<drive> fact was true or not
[2011/11/06 10:50:15] <jhelwig> If you take a peak at how the ipaddress_${interface_name} facts are created, it should get you what you need to create the disksmart_${drive} facts.
[2011/11/06 10:50:31] <jhelwig> But as far as checking them in a puppet manifest...
[2011/11/06 10:51:00] <jhelwig> Though now it sounds like you already have the facts, and just want to check if they're true?
[2011/11/06 10:51:30] <dpash> yep
[2011/11/06 10:51:50] <jhelwig> I think you can do that, but let me check to make sure. Which version of Puppet?
[2011/11/06 10:51:54] <dpash> I'm using Volcane's diskdrives facts, which get me everything I need
[2011/11/06 10:51:56] @ langworthy joined channel #puppet
[2011/11/06 10:51:57] <dpash> 2.7
[2011/11/06 10:52:12] <jhelwig> 2.7.?
[2011/11/06 10:52:16] <dpash> 6?
[2011/11/06 10:53:44] <dpash> a mix of 2.7.1 and 2.7.6
[2011/11/06 10:58:02] <jhelwig> dpash: Nope, seems I was wrong. I thought that doing ${disksmart_${drive}} would work, but apparently it doesn't work that way.
[2011/11/06 10:58:48] <dpash> yeah, I thought that might work, but obviously not :(
[2011/11/06 10:59:30] <Dominic> you could use an inline template, as you can call scope.lookupvar with a string (which could be cobbled together from the contents of drive)
[2011/11/06 10:59:47] <Dominic> bit nasty though, it'd be nicer to have the syntax jhelwig suggested
[2011/11/06 11:00:13] <jhelwig> dpash: Mind opening up a feature request? http://projects.puppetlabs.com/
[2011/11/06 11:05:30] @ Quit: stphung_: Quit: Leaving
[2011/11/06 11:11:48] @ colon_D left channel #puppet ()
[2011/11/06 11:17:23] @ duerF joined channel #puppet
[2011/11/06 11:18:26] @ Quit: JodieC: Ping timeout: 260 seconds
[2011/11/06 11:19:18] @ JodieC joined channel #puppet
[2011/11/06 11:20:12] <hostdream> hello, I'm trying to troubleshoot this error : Error 400 on SERVER: stack level too deep
[2011/11/06 11:20:23] <hostdream> what can I do to determine what module causes that ?
[2011/11/06 11:21:09] @ los3241 left channel #puppet ()
[2011/11/06 11:21:25] <jhelwig> hostdream: Start the master with the --trace flag.
[2011/11/06 11:21:39] @ colon_D joined channel #puppet
[2011/11/06 11:21:43] <jhelwig> It'll give you the stack-trace of what went wrong.
[2011/11/06 11:21:59] <hostdream> jhelwig : /etc/init.d/puppetmaster --trace ?
[2011/11/06 11:22:07] <hostdream> ha no
[2011/11/06 11:22:14] <hostdream> how can I run it manually already ?
[2011/11/06 11:22:15] <jhelwig> No, the init script won't take the flag.
[2011/11/06 11:22:57] <jhelwig> Depends on what version you're running. For 2.6+: puppet master --trace --no-daemonize
[2011/11/06 11:23:02] <jhelwig> --verbose might help, too.
[2011/11/06 11:23:32] <hostdream> I've 2.7
[2011/11/06 11:23:41] <hostdream> I started it now I will test the module
[2011/11/06 11:23:50] <hostdream> where logs are now ? in messages ?
[2011/11/06 11:23:58] <hostdream> ha no I see on console
[2011/11/06 11:25:03] <hostdream> jhelwig : it seems I've a loop with something using active record
[2011/11/06 11:25:17] <hostdream> but it doesn't show me what module
[2011/11/06 11:25:29] @ Quit: samkottler: Quit: Leaving.
[2011/11/06 11:25:56] <hostdream> even I've an idea which it can be... how can we fix this error jhelwig ? is there something to modify with activerecord 3.1.0 ?
[2011/11/06 11:25:58] <jhelwig> You using exported resources? That's the first thing that comes to mind when I hear active record.
[2011/11/06 11:26:27] <hostdream> yes jhelwig I am
[2011/11/06 11:26:41] <whack> oooh
[2011/11/06 11:26:47] <whack> that's a known bug, dunno if it's fixed
[2011/11/06 11:26:54] <whack> downgrade to activerecord 3.0.9 and it'll work
[2011/11/06 11:26:59] <jhelwig> whack: Which bug?
[2011/11/06 11:27:02] <whack> jhelwig: lemme find it
[2011/11/06 11:27:12] <whack> http://projects.puppetlabs.com/issues/9304
[2011/11/06 11:27:26] <hostdream> I'm testing to downgrade
[2011/11/06 11:27:27] <agaffney> is there any advantage to newer activerecord versions? I'm using 2.3.11 (or thereabouts), and it seems to work fine
[2011/11/06 11:27:36] <whack> agaffney: if it works don't break it ;)
[2011/11/06 11:27:56] <hostdream> whack :
[2011/11/06 11:27:57] <hostdream> gem install activerecord 3.0.9
[2011/11/06 11:27:57] <hostdream> Successfully installed activerecord-3.1.1
[2011/11/06 11:27:57] <hostdream> ERROR: Could not find a valid gem '3.0.9' (>= 0) in any repository
[2011/11/06 11:27:59] <jhelwig> Nope, definitely not fixed yet.
[2011/11/06 11:28:00] <hostdream> is that normal ?
[2011/11/06 11:28:10] <whack> hostdream: gem install activerecord -v 3.0.9
[2011/11/06 11:28:10] @ simNIX joined channel #puppet
[2011/11/06 11:28:12] <agaffney> well, I'll be migrating from CentOS 5.5 to Scientific 6.1, which means an update from ruby 1.8.5 to 1.8.7
[2011/11/06 11:28:16] @ matchaw_ joined channel #puppet
[2011/11/06 11:28:17] <agaffney> which changes the equation a bit
[2011/11/06 11:28:21] <whack> hostdream: need to say -v ;)
[2011/11/06 11:28:33] <hostdream> oops :) thanks
[2011/11/06 11:28:44] <whack> you might also want to uninstall the 3.1.x series you have
[2011/11/06 11:28:53] @ ks_Marian joined channel #puppet
[2011/11/06 11:29:01] <whack> gem uninstall activerecord -v '3.1.1' and same for 3.1.0 if you have it
[2011/11/06 11:29:13] <hostdream> and then I remove the 3.1.1 even there are dependencies with other gems modules whack ?
[2011/11/06 11:29:31] <whack> hostdream: you can try not uninstalling it if you have dependencies elsewhere on it
[2011/11/06 11:29:46] <hostdream> then how can I force the usage of this version ?
[2011/11/06 11:30:02] <whack> not sure you can without poking the4 code
[2011/11/06 11:30:23] <whack> you can add: gem "activerecord", "3.0.9" to the bin/puppet thing and see if that helps
[2011/11/06 11:30:44] <hostdream> I will try to remove it to be sure :P
[2011/11/06 11:30:46] <whack> or maybe edit the gemspec for puppet to require a specific version
[2011/11/06 11:30:53] <whack> I haven't tried either of those solutions, IJ ust downgraded ;)
[2011/11/06 11:31:10] <hostdream> is there an "install" command that downgrade ?
[2011/11/06 11:31:25] <whack> I just remove them with 'gem uninstall ...'
[2011/11/06 11:31:30] <hostdream> ok thx
[2011/11/06 11:32:57] @ savid joined channel #puppet
[2011/11/06 11:35:22] <hostdream> hey thank you whack, it fixed it :)
[2011/11/06 11:37:17] <savid> Does declaring a user resource create the user's home directory, or do I have to explicitly declare the home directory as well?
[2011/11/06 11:43:23] @ Quit: dcsobralWork: Ping timeout: 258 seconds
[2011/11/06 11:44:03] @ tilgovi joined channel #puppet
[2011/11/06 11:44:04] @ Quit: tilgovi: Changing host
[2011/11/06 11:44:04] @ tilgovi joined channel #puppet
[2011/11/06 11:45:21] @ mmoya joined channel #puppet
[2011/11/06 11:45:57] <d3c> I'm looking for a way to share configs between puppet and early bootstrap scripts. e.g. I need to get dhclient.conf onto nodes before puppet runs. afterwards, puppet should manage those files though. I guess I can't access the files via the puppetmaster since this would require signing etc. and I don't wanna keep the files in two places. what can I do?
[2011/11/06 11:46:10] <jhelwig> savid: Depends on whether you set the managehome property, and what you set it to.
[2011/11/06 11:47:59] <rodjek> d3c: why don't you performy your initial puppet run during the install process with kickstart/preseed?
[2011/11/06 11:49:31] <rodjek> or use preseed/kickstart to create your dhclient?
[2011/11/06 11:51:28] @ krish joined channel #puppet
[2011/11/06 11:51:41] @ hooper joined channel #puppet
[2011/11/06 11:52:54] @ Quit: gniks: Quit: Leaving.
[2011/11/06 11:53:29] <d3c> rodjek: I'm on EC2. using Volcane's mcollective server provisioner which enables me to launch instances that are picked up by a central server that will provision those instances. however, when building the image that I launch, I need to use some configs from puppet. see?
[2011/11/06 11:54:14] <rodjek> fucking cloud
[2011/11/06 11:54:33] <rodjek> add your basic dhclient.conf to the image you're provisioning
[2011/11/06 11:56:01] <rodjek> as long as it's sufficient to get networking up to the point you can connect to your puppetmaster, that's all you need
[2011/11/06 11:56:13] @ gniks joined channel #puppet
[2011/11/06 11:56:40] @ Quit: neonflux: Read error: Connection reset by peer
[2011/11/06 11:56:54] @ neonflux joined channel #puppet
[2011/11/06 12:05:14] @ mpdude joined channel #puppet
[2011/11/06 12:06:11] <d3c> rodjek: got it. I just thought maybe there was a nice way to share files between those processes. anyway, building an image isn't something I do every day so I guess I can live with files in multiple locations or copying files manually. thanks
[2011/11/06 12:09:46] @ samrose joined channel #puppet
[2011/11/06 12:16:54] @ Quit: un1x01d: Remote host closed the connection
[2011/11/06 12:17:03] @ Quit: tilgovi: Ping timeout: 245 seconds
[2011/11/06 12:19:15] @ rmckee joined channel #puppet
[2011/11/06 12:20:28] @ Quit: nul0op: Ping timeout: 256 seconds
[2011/11/06 12:22:30] @ nul0op joined channel #puppet
[2011/11/06 12:27:54] @ Quit: jedi4ever: Quit: jedi4ever
[2011/11/06 12:30:09] <krish> hi
[2011/11/06 12:30:30] <krish> why doesnt onlyif => ping -c3 ipaddress work?
[2011/11/06 12:30:53] <krish> says could not evaluate - err: /Stage[main]//Node[x8.ams.linkorb.local]/Xen::Domu_new[testu1]/Exec[xen_domu_create testu1]: Could not evaluate: PING 10.0.0.125 (10.0.0.125) 56(84) bytes of data.
[2011/11/06 12:32:19] @ Quit: tremble: Remote host closed the connection
[2011/11/06 12:32:28] @ Quit: rcrowley: Quit: Computer has gone to sleep.
[2011/11/06 12:32:48] @ tremble joined channel #puppet
[2011/11/06 12:32:49] @ Quit: tremble: Changing host
[2011/11/06 12:32:49] @ tremble joined channel #puppet
[2011/11/06 12:35:24] <haus> did you give a full path for ping?
[2011/11/06 12:37:57] @ cyflea joined channel #puppet
[2011/11/06 12:38:58] <krish> haus: i have path defined
[2011/11/06 12:39:14] <krish> puppet run shows
[2011/11/06 12:39:15] <krish> err: /Stage[main]//Node[x8.ams.linkorb.local]/Xen::Domu_new[testu1]/Exec[xen_domu_create testu1]: Could not evaluate: PING 10.0.0.125 (10.0.0.125) 56(84) bytes of data.
[2011/11/06 12:39:15] <krish> From 10.0.0.78 icmp_seq=2 Destination Host Unreachable
[2011/11/06 12:39:31] @ Quit: davewongillies: Ping timeout: 252 seconds
[2011/11/06 12:39:43] <dpash> I presume I can't default a define parameter to be $name?
[2011/11/06 12:39:54] <dpash> like define foo($bar = $name)
[2011/11/06 12:40:55] <haus> krish: i just did this with no trouble...does it work for you? puppet apply --exec 'node default {exec {"/bin/ls": path => "/bin/ls",onlyif => "/sbin/ping -c3 127.0.0.8",}}'
[2011/11/06 12:42:13] <haus> (you might need to change absolute pathing)
[2011/11/06 12:42:29] @ benjiedmund joined channel #puppet
[2011/11/06 12:42:36] <krish> path isnt the issue here
[2011/11/06 12:42:51] <krish> it does run the command
[2011/11/06 12:42:52] <krish> From 10.0.0.78 icmp_seq=2 Destination Host Unreachable
[2011/11/06 12:42:52] <krish> From 10.0.0.78 icmp_seq=3 Destination Host Unreachable
[2011/11/06 12:42:59] <krish> thats what puppetd -t says
[2011/11/06 12:43:08] <krish> err: /Stage[main]//Node[x8.ams.linkorb.local]/Xen::Domu_new[testu1]/Exec[xen_domu_create testu1]: Could not evaluate: PING 10.0.0.125 (10.0.0.125) 56(84) bytes of data.
[2011/11/06 12:43:09] <krish> From 10.0.0.78 icmp_seq=2 Destination Host Unreachable
[2011/11/06 12:43:09] <krish> From 10.0.0.78 icmp_seq=3 Destination Host Unreachable
[2011/11/06 12:43:18] <krish> oops
[2011/11/06 12:43:20] <krish> darn
[2011/11/06 12:45:17] <haus> can you pastie what the resource looks like?
[2011/11/06 12:46:00] @ Quit: d3c: Quit: leaving
[2011/11/06 12:48:20] @ jsurfer joined channel #puppet
[2011/11/06 12:49:01] <krish> yeah 1 sec
[2011/11/06 12:49:40] @ lak joined channel #puppet
[2011/11/06 12:49:40] @ Quit: lak: Changing host
[2011/11/06 12:49:40] @ lak joined channel #puppet
[2011/11/06 12:49:54] <krish> haus: http://pastie.org/2822121
[2011/11/06 12:52:06] @ Quit: Razique: Quit: Razique
[2011/11/06 12:52:37] @ davewongillies joined channel #puppet
[2011/11/06 12:53:34] <krish> haus: any help? :)
[2011/11/06 12:55:27] <haus> it worked for me, more or less
[2011/11/06 12:56:15] <haus> weird
[2011/11/06 12:56:29] @ jbraeuer joined channel #puppet
[2011/11/06 12:59:12] @ rsnhyperion joined channel #puppet
[2011/11/06 12:59:21] <krish> haus: i tried something
[2011/11/06 12:59:22] <krish> onlyif => "ping -c3 $ipaddress",
[2011/11/06 12:59:25] <krish> and it worked
[2011/11/06 12:59:35] <haus> so it's the ors or the piping
[2011/11/06 12:59:37] @ Quit: rsnhyperion: Read error: Connection reset by peer
[2011/11/06 12:59:40] <krish> but this onlyif => [ "test ! -d /virtual/vm/$vmname || ping -c3 $ipaddress || 'grep $ipaddress /etc/hosts | grep -v $vmname'" ],
[2011/11/06 12:59:40] <haus> or the array wrapper
[2011/11/06 12:59:43] <krish> fails to work
[2011/11/06 12:59:50] @ rsnhyperion joined channel #puppet
[2011/11/06 13:00:05] <whack> krish: define "fails to work"
[2011/11/06 13:00:40] <krish> whack: err: /Stage[main]//Node[x8.mydomain.local]/Xen::Domu_new[testu1]/Exec[xen_domu_create testu1]: Could not evaluate: PING 10.0.0.125 (10.0.0.125) 56(84) bytes of data.
[2011/11/06 13:00:40] <krish> (02:13:07 IST) krish: From 10.0.0.78 icmp_seq=2 Destination Host Unreachable
[2011/11/06 13:00:40] <krish> (02:13:07 IST) krish: From 10.0.0.78 icmp_seq=3 Destination Host Unreachable
[2011/11/06 13:01:00] <krish> "Could not evaluate" ^
[2011/11/06 13:01:49] <whack> well for one, your shell isn't really valid anyway
[2011/11/06 13:02:13] <krish> whack: ?
[2011/11/06 13:02:13] <whack> which is likely unrelated to the failure, but worth noting
[2011/11/06 13:02:20] <whack> ss || 'grep $ipaddre ....'
[2011/11/06 13:02:22] <krish> ok!
[2011/11/06 13:03:04] <krish> hmm i just realised that what i termed as 'worked' isnt what i want
[2011/11/06 13:03:09] <krish> it just didnt throw errors
[2011/11/06 13:03:23] <krish> but my resulting code from the test didnt run
[2011/11/06 13:04:48] @ Quit: The_Digital_Ninj: Ping timeout: 248 seconds
[2011/11/06 13:05:58] <krish> whack: http://pastie.org/2822121
[2011/11/06 13:06:04] <krish> i need the command to run if ping fails
[2011/11/06 13:06:06] <krish> help?
[2011/11/06 13:07:11] <krish> hmm how do i negate a ping test
[2011/11/06 13:07:20] <krish> onlyif => ! ping -c3 ipaddr
[2011/11/06 13:07:23] <krish> can i do that?
[2011/11/06 13:07:29] <krish> or would that be syntax error
[2011/11/06 13:07:31] <whack> you probably want 'unless'
[2011/11/06 13:07:53] <whack> onlyif => 'this command exits true', unless => 'this command exits false'
[2011/11/06 13:08:38] <krish> ok
[2011/11/06 13:08:50] @ Quit: brtl: Quit: Leaving.
[2011/11/06 13:13:26] <whack> alternately, more complex stuff is easier to put in a shell script
[2011/11/06 13:13:35] <krish> whack: whats the best way to run 2 tests in unless
[2011/11/06 13:13:39] <krish> with a or relation
[2011/11/06 13:13:59] <krish> whack: yeah well i guess script could do that :)
[2011/11/06 13:14:23] <whack> hehe
[2011/11/06 13:14:35] <krish> just trying my luck one more time
[2011/11/06 13:14:35] <whack> I generally put anything more complex in a file and onlyif => "/some/path/script.sh"
[2011/11/06 13:14:45] <krish> hmm
[2011/11/06 13:14:46] <krish> good idea
[2011/11/06 13:15:02] <whack> you can still keep it in-line in puppet with file content
[2011/11/06 13:15:14] <whack> file { "Foo": content => " your oneline script"; }
[2011/11/06 13:15:33] <krish> oh nice
[2011/11/06 13:17:10] <krish> whack: looks like this worked - unless => [ "xm list '$vmname' || ping -c3 $ipaddress" ],
[2011/11/06 13:17:54] @ Quit: Moe__: Remote host closed the connection
[2011/11/06 13:18:28] * krish hugs whack
[2011/11/06 13:20:44] @ Djelibeybi joined channel #puppet
[2011/11/06 13:24:24] <jpalmer> QUESTION: is there a way using the "repo" type, to define multiple repos in a single .repo file? for instance, I have a beta, staging, and production repo for work. I'd like to have a "companyname.repo" that includes all three of those repos in it.
[2011/11/06 13:26:35] @ Quit: jbraeuer: Quit: jbraeuer
[2011/11/06 13:26:46] @ Quit: hooper: Ping timeout: 260 seconds
[2011/11/06 13:26:58] @ Quit: erodriguez: Quit: erodriguez
[2011/11/06 13:28:48] <Dominic> jpalmer: the yum repo type? no. Just deploy a file instead.
[2011/11/06 13:30:30] <jpalmer> That defeats the purpose of the 'repo' type ;)
[2011/11/06 13:31:05] <Dominic> not really, wrap it up in a define if you want it to work in a particular way
[2011/11/06 13:32:20] <jpalmer> I'll figure out a workaround. in the meantime, I'll add a feature request for puppet to allow a "reponame" or similar for the repo type. where you can define the name of the repo file it's supposed to go in.
[2011/11/06 13:32:58] @ Quit: ckauhaus: Quit: Leaving.
[2011/11/06 13:34:52] @ Quit: lak: Quit: Leaving.
[2011/11/06 13:39:18] @ Holocaine joined channel #puppet
[2011/11/06 13:39:50] <fenrus02> jpalmer, looked at pulp to do repo management ?
[2011/11/06 13:40:06] <jpalmer> fenrus02: no
[2011/11/06 13:40:46] <jpalmer> but honestly, if puppet has a repo type, then it should probably handle this. I shouldn't need "yet another tool" <tm> to do this one thing.
[2011/11/06 13:40:47] <fenrus02> in theory, it can do what you've listed above. it is part of the "next big thing" from rhat for enterprise management tools. (part of katello)
[2011/11/06 13:41:15] @ Quit: benjiedmund: Remote host closed the connection
[2011/11/06 13:41:40] @ erodriguez joined channel #puppet
[2011/11/06 13:42:14] <whack> jpalmer: realistically speaking, you're asking a low level question of a high level tool
[2011/11/06 13:42:30] <Dominic> jpalmer: I don't think it should, it'll just clutter up the types. We've got loads of other low level details that aren't configurable from a type, why should that be any different?
[2011/11/06 13:42:35] <whack> jpalmer: the implementation of how puppet manages repos shouldn't matter (in general), at that point you can make a custom define or use the file resource
[2011/11/06 13:42:50] <Dominic> if you're going to do anything, write a new provider for it (but I think first the type/provider needs separating for yumrepo).
[2011/11/06 13:45:38] <jpalmer> whack: I guess I just disagree.
[2011/11/06 13:46:39] <jpalmer> whack: the implementation *does* matter. let me give you an example scenario
[2011/11/06 13:46:45] <Volcane> yumrepo has lots of room for improvement
[2011/11/06 13:46:55] <whack> jpalmer: I'm suggesting that abstractions will hide or obstruct implementation details from you
[2011/11/06 13:47:09] <whack> that's why abstractions are useful. There are cases when going lower level matters, yes
[2011/11/06 13:47:25] <Hunner> Volcane: That's one way to put it :P
[2011/11/06 13:49:10] <jpalmer> lets say I install Centos. by default, it hase what? 5 repos in CentOS-Base.repo? several of which are disabled by default. lets say I want to enable one for some reason. with the current implementation, I either have to server CentOS-Base.repo as a "File", use another tool (like augeas maybe?) to maintain it, or use yumrepo to do it, and have *two* entries now for the same repo. the default one included with centos-release (disabled) an
[2011/11/06 13:49:36] <whack> jpalmer: the problem there is you're partially managing an unknown
[2011/11/06 13:49:44] <Volcane> i end up just rm'ing those default repos and redefine what i want
[2011/11/06 13:49:46] <whack> that's the problem with augeas and similar approaches
[2011/11/06 13:49:53] <jpalmer> right.
[2011/11/06 13:49:55] <Volcane> and even thats shit cos the yum repo type shits itself if u just delete files
[2011/11/06 13:50:04] <whack> Volcane: not awesome :(
[2011/11/06 13:50:34] @ Quit: kloeri: Ping timeout: 606 seconds
[2011/11/06 13:50:41] <jpalmer> I'd much rather manage a known. and the "known" should be, I tell puppet that this "yumrepo" entry should add my repo to the CentOS-Base.repo. or whatever.
[2011/11/06 13:50:57] @ benjiedmund joined channel #puppet
[2011/11/06 13:51:02] <Volcane> yeah
[2011/11/06 13:51:09] @ Quit: benjiedmund: Remote host closed the connection
[2011/11/06 13:51:23] <Hunner> yumrepo needs a "target" property like host... it will probably get added when it goes through a code refresh
[2011/11/06 13:51:42] <savid> Hi, I'm getting this weird error: "undefined method `<<' for {}:Hash on web1.example.com". This only happens when I put a "before" metaparameter on a certain resource. Any ideas what's causing this?
[2011/11/06 13:52:54] <jpalmer> It seems like the code it needs, is already in the "cron" type, where it adds the comment which tells puppet which cron entry follows. that same idea could apply to repo files. # Puppet: CentOS-extras.repo (and then the yum repo configured below it.)
[2011/11/06 13:54:16] <Hunner> savid: the 'before' metaparmeters use ruby datastructures behind the scenes, which sounds what's barfing. Do you have a minimal case pastie? (Usually it's a typo somewhere iirc)
[2011/11/06 13:54:21] @ Quit: blentz: Quit: Ex-Chat
[2011/11/06 13:54:43] @ blentz joined channel #puppet
[2011/11/06 13:55:08] <jpalmer> I'll submit the feature request as I originally intended. but, if I get time.. I'll try to polish my ruby-fu, and submit a pull request to puppetlabs, with the patch I envision.
[2011/11/06 13:55:20] <whack> jpalmer: I don't use the cron type for that reason ;)
[2011/11/06 13:55:41] <Volcane> cron type is pure evil too
[2011/11/06 13:55:43] <whack> though I suppose target works now
[2011/11/06 13:55:47] <whack> but still, I Just use files.
[2011/11/06 13:55:58] <jpalmer> whack: but you also want to serve repo files as.. files, so ;)
[2011/11/06 13:56:00] <eric0> theres a metabug for all the cron bugs
[2011/11/06 13:56:48] @ Quit: TREllis: Ping timeout: 256 seconds
[2011/11/06 13:56:59] @ benjiedmund joined channel #puppet
[2011/11/06 13:57:03] <whack> cuz like, environment doesn't work in crontabs with multiple entries
[2011/11/06 13:57:11] <jpalmer> whack: using the file type is fine. but the bottom line is, if nobody submits feature requests/bug requests.. or submits patches, you'll end up using the "File" type forever, when there are much better ways to handle the scenarios.
[2011/11/06 13:57:16] @ Quit: benjiedmund: Remote host closed the connection
[2011/11/06 13:57:19] <whack> jpalmer: indeed
[2011/11/06 13:57:50] <whack> I actually just wrap stuff in custom defines and release those usually as puppet modules, so there's no real loss to me
[2011/11/06 13:58:05] @ Quit: mpdude: Remote host closed the connection
[2011/11/06 13:58:13] <whack> like supervisor, graphite, apache, etc. All stuff puppet won't ever ship with but is trivial to wrap up in a custom define
[2011/11/06 13:58:33] @ Quit: erodriguez: Quit: erodriguez
[2011/11/06 13:58:42] <whack> not suggesting that the repo type doesn't need improvments, though.
[2011/11/06 13:58:45] <jpalmer> true, the loss is to the puppet community as a whole. because basic functionality like this probably shouldn't be a custom define that some people may never stumble across, or waste time re-inventing the wheel. it should be part of the core product. IMO
[2011/11/06 13:59:03] <Volcane> #9293 (this is why i rm .repo files)
[2011/11/06 13:59:04] <gepetto> Volcane: #9293 is http://projects.puppetlabs.com/issues/show/9293 "Puppet - Feature #9293: yum repos should be ensurable.. It has a status of Accepted and is assigned to Kelsey Hightower"
[2011/11/06 13:59:07] <Hunner> jpalmer: Very true
[2011/11/06 13:59:22] <Hunner> jpalmer: Can you say 'cfengine' ;)
[2011/11/06 13:59:40] <Dominic> jpalmer: I'm not sure that's the view of PL. The plan as I understood it was to keep the core product slim and get people to use things like the forge to distribute well-maintained modules for this sort of functionality.
[2011/11/06 13:59:46] <jpalmer> Hunner: I used CFengine for years. it's got it's own big ball'o'hurt. ;)
[2011/11/06 14:00:15] <Volcane> did think there was a bug for the target thing on yumrepo but cant find it
[2011/11/06 14:00:55] <jpalmer> Dominic: modules for external components, sure. a *core* part of puppet, IS the yumrepo type. ans as such, it should allow you to select the target filename.
[2011/11/06 14:01:15] <jpalmer> Volcane: I'm searching before I submit the request
[2011/11/06 14:01:16] <Dominic> at the moment it is, yes
[2011/11/06 14:02:08] <jpalmer> Dominic: PL can decide if they want to rip it out and make it into a module. it's their product. regardless of where it lives, it should have the target option.
[2011/11/06 14:02:22] <jpalmer> and since it currently lives in core, thats where I'll file the feature request.
[2011/11/06 14:02:32] @ Salty joined channel #puppet
[2011/11/06 14:02:42] <Salty> Hey pals
[2011/11/06 14:03:35] @ samkottler joined channel #puppet
[2011/11/06 14:03:49] @ Quit: Arendtsen: Read error: Connection reset by peer
[2011/11/06 14:03:55] @ Arendtsen joined channel #puppet
[2011/11/06 14:04:54] @ Quit: Salty: Client Quit
[2011/11/06 14:05:55] @ skm joined channel #puppet
[2011/11/06 14:06:37] @ Quit: kore: Ping timeout: 240 seconds
[2011/11/06 14:07:19] <jpalmer> Volcane: how do you handle your yum repos now? set the yum.repos.d directory using the "File" type, ensure it's a directory, and use purge? or are you doing something like defining the repo files, and ensure => absent?
[2011/11/06 14:07:34] @ kloeri joined channel #puppet
[2011/11/06 14:07:35] @ kore joined channel #puppet
[2011/11/06 14:08:00] @ lak joined channel #puppet
[2011/11/06 14:08:01] @ Quit: lak: Changing host
[2011/11/06 14:08:01] @ lak joined channel #puppet
[2011/11/06 14:10:35] @ tilgovi joined channel #puppet
[2011/11/06 14:10:36] @ Quit: tilgovi: Changing host
[2011/11/06 14:10:36] @ tilgovi joined channel #puppet
[2011/11/06 14:11:15] <Volcane> i use yumrepo type and various mostly unsatisfactory work around for its legion of bugs
[2011/11/06 14:11:19] @ Quit: samkottler: Quit: Leaving.
[2011/11/06 14:11:37] <Volcane> it actually is better that its a repo per file so you can just remove the file - since yum repos arent ensurable
[2011/11/06 14:11:43] <Volcane> would suck if u had them all in one file
[2011/11/06 14:12:47] @ Quit: kloeri: Read error: Connection reset by peer
[2011/11/06 14:12:48] <jpalmer> I think for now, I'm just going to set a "file" type on /etc/yum.repos.d, and purge it. then define repo's using yumrepo. not ideal, but not a terrible workaround.
[2011/11/06 14:12:54] @ kloeri joined channel #puppet
[2011/11/06 14:13:25] <Volcane> it'll throw errors if u just rm files but yah thats about best u can do
[2011/11/06 14:13:39] @ Quit: localhost: Remote host closed the connection
[2011/11/06 14:14:33] <jpalmer> that gets me past the ensurable issue too. if I no longer define that yumrepo for a host, the purge will remove it
[2011/11/06 14:14:55] @ localhost joined channel #puppet
[2011/11/06 14:17:42] @ TREllis joined channel #puppet
[2011/11/06 14:18:10] @ Quit: simNIX: Quit: Ik ga weg
[2011/11/06 14:18:11] @ Quit: kloeri: Read error: Connection reset by peer
[2011/11/06 14:18:18] @ kloeri joined channel #puppet
[2011/11/06 14:18:19] <hostdream> hello, can anyone help me on this ? I've a simple module that add a yum repo and the baseurl line looks like this : baseurl => "http://autoinstall.test.com/PSA_10.3.1/dist-rpm-$lsbdistid-$lsbmajdistrelease-$architecture/",. My problem is that, at the end I get that on client : baseurl=http://autoinstall.test.com/PSA_10.3.1/dist-rpm-x86_64/. It seems puppet ignored 2 variables on the 3
[2011/11/06 14:18:20] <hostdream> ($lsbdistid and $lsbmajdistrelease). lsb-redhat is well installed and I can see those variable in facter. Anyone has a clue about this ? It was working before I upgrade from 2.6 to 2.7 (client and server)
[2011/11/06 14:18:23] @ dgillies joined channel #puppet
[2011/11/06 14:18:34] @ Quit: TREllis: Client Quit
[2011/11/06 14:18:51] <Volcane> hostdream: "$foo" inserts the value of $foo variable
[2011/11/06 14:19:05] <Volcane> hostdream: if u want a $ in a string you need to escape the $ or use 's
[2011/11/06 14:19:26] @ ianbrandt joined channel #puppet
[2011/11/06 14:19:57] <hostdream> Volcane : what do you mean by "use 's" ?
[2011/11/06 14:20:12] <Volcane> instead of "s
[2011/11/06 14:20:24] @ TREllis joined channel #puppet
[2011/11/06 14:20:24] <Volcane> '$foo' vs "$foo"
[2011/11/06 14:20:49] @ Quit: lak: Quit: Leaving.
[2011/11/06 14:21:18] <hostdream> Volcane : ok so I need to split the string like this ? : baseurl => 'http://autoinstall.test.com/PSA_10.3.1/dist-rpm-'$lsbdistid'-'$lsbmajdistrelease'-'$architecture/' ?
[2011/11/06 14:21:21] <hostdream> is that correct ?
[2011/11/06 14:21:31] <Volcane> no
[2011/11/06 14:21:48] <Volcane> you have "http://.....$somevar......"
[2011/11/06 14:21:49] <hostdream> sorry I'm not expert :) just trying to understand it
[2011/11/06 14:21:51] <hostdream> yep
[2011/11/06 14:22:49] <Volcane> so use ' instead of "
[2011/11/06 14:23:34] <hostdream> Volcane : I already tried that and it just past the variable name as they are in the module in the client's file...
[2011/11/06 14:23:47] @ Quit: kloeri: Read error: Connection reset by peer
[2011/11/06 14:24:10] <Volcane> right
[2011/11/06 14:24:25] <Volcane> sorry didnt read your example properly (you should use pastie)
[2011/11/06 14:24:30] <hostdream> sorry
[2011/11/06 14:24:46] <Volcane> its not ignoring them its replacing them with an empty string probably because they're empty
[2011/11/06 14:25:14] <hostdream> they are not empty when I run "facter" I can well see them... that's what I don't understand
[2011/11/06 14:25:36] <Volcane> oh
[2011/11/06 14:25:41] <Volcane> ${lsbdistid}
[2011/11/06 14:25:48] <Volcane> f'n stupid puppet 2.7
[2011/11/06 14:26:00] <hostdream> ho... let me try that
[2011/11/06 14:26:07] <Volcane> always use ${...} inside strings
[2011/11/06 14:26:54] @ Quit: lwhalen: Quit: Computer has gone to sleep
[2011/11/06 14:27:01] <hostdream> it works Volcane :) thanks
[2011/11/06 14:28:35] <hostdream> jpalmer
[2011/11/06 14:28:39] <hostdream> ^^
[2011/11/06 14:29:11] @ kloeri_ joined channel #puppet
[2011/11/06 14:38:42] @ kloeri_ is now known as kloeri
[2011/11/06 14:39:08] @ henk left channel #puppet ("WeeChat 0.3.4")
[2011/11/06 14:40:16] <ianbrandt> Greetings. I'm looking to take a stab at a patch for Puppet. I'm on OS X and generally use MacPorts for packages, but there are dozen other ways to install numerous different versions of Ruby. Are there any Puppet developers lurking that use OS X, and if so would you mind sharing your preferred method for environment setup, and which versions of ruby, rake, rspec etc. I should be looking to use?
[2011/11/06 14:43:16] <Hunner> ianbrandt: Are you talking about OS X as a dev platform, or from a sysadmin point of view?
[2011/11/06 14:44:44] <ianbrandt> Hunner: Dev platform
[2011/11/06 14:45:01] <Hunner> ianbrandt: for developing patches, git-clone puppet/facter/etc and use the `envpuppet` script in puppet/ext. Use rvm for ruby/gems
[2011/11/06 14:45:09] <ianbrandt> (Though I am working on the MacPort for Puppet, which is related to the patches I want to do.)
[2011/11/06 14:45:31] @ benjiedmund joined channel #puppet
[2011/11/06 14:45:46] @ mosen joined channel #puppet
[2011/11/06 14:46:07] <Hunner> I think that's all you need. Puppet runs nicely from git source clones :)
[2011/11/06 14:48:10] <ianbrandt> Hunner: Great. I'd already cloned, but hadn't noticed the ext/envpuppet script. Between that and the rvm tip I should be good to go. Thanks!
[2011/11/06 14:50:25] @ Quit: Stenbryggen: Quit: Leaving.
[2011/11/06 15:01:12] @ erodriguez joined channel #puppet
[2011/11/06 15:03:40] @ Quit: mmoya: Ping timeout: 256 seconds
[2011/11/06 15:04:14] @ The_Digital_Ninj joined channel #puppet
[2011/11/06 15:08:29] @ Quit: The_Digital_Ninj: Ping timeout: 240 seconds
[2011/11/06 15:17:34] @ lwhalen joined channel #puppet
[2011/11/06 15:21:41] @ ghg joined channel #puppet
[2011/11/06 15:31:49] @ tizzo-afk is now known as tizzo
[2011/11/06 15:37:25] @ Quit: tilgovi: Ping timeout: 255 seconds
[2011/11/06 15:40:28] @ Quit: duerF: Quit: Leaving
[2011/11/06 15:42:03] @ Quit: ghg: Quit: Out of here.
[2011/11/06 15:52:34] @ johnston joined channel #puppet
[2011/11/06 15:52:47] <savid> Argh, I'm having an issue with a git::clone module. I keep getting host_key_verification failed, even though I have /etc/ssh/ssh_known_hosts installed. It even works fine when I repeat the exact command using su. Has anyone had this type of issue before?
[2011/11/06 15:54:13] @ Quit: jodok: Quit: jodok
[2011/11/06 15:54:16] <savid> Is there a way to repeat a command under the exact same environment that puppet would normally execute it in? I'm trying to troubleshoot this issue.
[2011/11/06 15:56:34] @ neonflux1 joined channel #puppet
[2011/11/06 15:58:08] @ Quit: neonflux: Ping timeout: 252 seconds
[2011/11/06 15:58:39] <savid> Nice, the command magically works when wrap it in "su" in the Exec resource. I wish I understood what was different about the environment in which puppet runs exec commands.
[2011/11/06 16:01:16] @ Quit: neonflux1: Ping timeout: 255 seconds
[2011/11/06 16:03:33] <dpash> Volcane: are you still around?
[2011/11/06 16:10:48] <dpash> Volcane: don't worry. I'll talk to you in the morning
[2011/11/06 16:12:21] @ Quit: erodriguez: Quit: erodriguez
[2011/11/06 16:13:17] @ Quit: krish: Ping timeout: 240 seconds
[2011/11/06 16:13:20] @ neonflux joined channel #puppet
[2011/11/06 16:14:14] @ Quit: p3rror: Ping timeout: 244 seconds
[2011/11/06 16:17:34] @ Quit: DJClean: Read error: Operation timed out
[2011/11/06 16:18:06] @ Quit: rsnhyperion: Quit: rsnhyperion
[2011/11/06 16:22:17] <gepetto> ::redmine:: Wiki edit: Puppet_Windows (#56) @ http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Windows?version=56 (by Steve Shipway)
[2011/11/06 16:23:27] @ samkottler joined channel #puppet
[2011/11/06 16:26:22] @ tilgovi joined channel #puppet
[2011/11/06 16:26:22] @ Quit: tilgovi: Changing host
[2011/11/06 16:26:22] @ tilgovi joined channel #puppet
[2011/11/06 16:32:45] @ frostynova joined channel #puppet
[2011/11/06 16:32:53] @ Quit: kermit: Remote host closed the connection
[2011/11/06 16:33:14] @ kermit joined channel #puppet
[2011/11/06 16:36:48] @ trn joined channel #puppet
[2011/11/06 16:39:54] @ erodriguez joined channel #puppet
[2011/11/06 16:43:07] @ Quit: davewongillies: Ping timeout: 255 seconds
[2011/11/06 16:48:13] @ ezmobius joined channel #puppet
[2011/11/06 16:48:50] @ Quit: thoraxe: Remote host closed the connection
[2011/11/06 16:49:11] @ kolla_ joined channel #puppet
[2011/11/06 16:53:59] @ Spads_ joined channel #puppet
[2011/11/06 16:57:20] @ davewongillies joined channel #puppet
[2011/11/06 16:57:54] @ Quit: Spads: Ping timeout: 276 seconds
[2011/11/06 16:59:57] @ Quit: frostynova: Remote host closed the connection
[2011/11/06 17:00:34] @ frostynova joined channel #puppet
[2011/11/06 17:03:47] @ tizzo is now known as tizzo-afk
[2011/11/06 17:06:35] @ Quit: artista_frustrad: Quit: Leaving
[2011/11/06 17:10:28] @ Quit: skm: Ping timeout: 244 seconds
[2011/11/06 17:11:04] @ Quit: ezekiel: Ping timeout: 244 seconds
[2011/11/06 17:11:10] @ ezekiel joined channel #puppet
[2011/11/06 17:11:41] @ skm joined channel #puppet
[2011/11/06 17:19:34] @ rcrowley joined channel #puppet
[2011/11/06 17:22:22] @ Quit: skm: Ping timeout: 244 seconds
[2011/11/06 17:22:26] @ skoom joined channel #puppet
[2011/11/06 17:23:01] @ skoom is now known as skm
[2011/11/06 17:26:52] @ Moe__ joined channel #puppet
[2011/11/06 17:30:06] @ Quit: skm: Ping timeout: 244 seconds
[2011/11/06 17:30:23] @ soh joined channel #puppet
[2011/11/06 17:33:52] @ skm joined channel #puppet
[2011/11/06 17:33:58] @ ezmobius is now known as ezmobius|zoning
[2011/11/06 17:37:01] @ dreamhost joined channel #puppet
[2011/11/06 17:38:43] @ Quit: hostdream: Ping timeout: 252 seconds
[2011/11/06 17:38:53] @ Quit: skm: Ping timeout: 244 seconds
[2011/11/06 17:40:46] @ skm joined channel #puppet
[2011/11/06 17:46:05] @ Quit: nul0op: Ping timeout: 240 seconds
[2011/11/06 18:00:29] @ chadskidmore joined channel #puppet
[2011/11/06 18:05:04] @ ezmobius|zoning is now known as ezmobius|zoning|
[2011/11/06 18:05:38] @ Quit: rcrowley: Quit: Computer has gone to sleep.
[2011/11/06 18:07:16] @ rcrowley joined channel #puppet
[2011/11/06 18:07:48] @ Quit: johnston: Ping timeout: 265 seconds
[2011/11/06 18:08:45] @ Quit: rcrowley: Client Quit
[2011/11/06 18:09:57] @ Quit: benjiedmund: Remote host closed the connection
[2011/11/06 18:10:34] <CrazyGir> hello! I am trying to run puppet (v2.6.3) on OpenBSD, same version as both client and server, and when running puppet agent on a client, I am getting "err: Could not run Puppet configuration client: Could not find user puppet"
[2011/11/06 18:11:15] <CrazyGir> this is with the user config parameter set to _puppet within the [main] block (also tried others), and the system user/group created for puppet as _puppet
[2011/11/06 18:12:15] <CrazyGir> it seems as if this is hard wired into puppet? if I create a user 'puppet' the agent runs successfully
[2011/11/06 18:15:46] @ los3241 joined channel #puppet
[2011/11/06 18:16:05] @ Quit: los3241: Client Quit
[2011/11/06 18:18:33] <semaphore> how did you install puppet?
[2011/11/06 18:19:28] <CrazyGir> using the openbsd package
[2011/11/06 18:19:59] <CrazyGir> I tried 2.7 and ran into issues with chage being expected instead of passwd
[2011/11/06 18:20:10] <CrazyGir> that is an easy work around, if albeit a hack
[2011/11/06 18:20:20] <semaphore> the package should have created the user for you; it's up to you to make sure puppet.conf reflects the correct user
[2011/11/06 18:20:23] <semaphore> iirc
[2011/11/06 18:20:29] <CrazyGir> but I then ran into this issue with the user and so figured I would try the official package first
[2011/11/06 18:20:49] <CrazyGir> semaphore: the user created by the package, and what I have in my config, are both correct
[2011/11/06 18:20:59] <CrazyGir> puppet is not correct
[2011/11/06 18:21:20] <CrazyGir> from /etc/passwd: _puppet:*:580:580:Puppet user:/var/empty:/sbin/nologin
[2011/11/06 18:21:46] <CrazyGir> from /etc/puppet/puppet.conf: user = _puppet
[2011/11/06 18:22:09] <CrazyGir> (under [main], had tried [agent] before)
[2011/11/06 18:22:28] <CrazyGir> creating a user 'puppet' tricks puppet agent into continuing
[2011/11/06 18:22:36] <semaphore> i'm not sure
[2011/11/06 18:22:36] @ sascha_ joined channel #puppet
[2011/11/06 18:23:01] <CrazyGir> and on my master, puppet runs correctly as _puppet: _puppet 24914 0.0 1.6 32736 31624 ?? Ss Fri09PM 0:29.26 /usr/local/bin/ruby18 /usr/local/bin/puppet master
[2011/11/06 18:23:41] <CrazyGir> I previously thought I was doing something wrong, but I am now suspecting a bug
[2011/11/06 18:24:17] @ lpaul7 joined channel #puppet
[2011/11/06 18:25:46] <savid> How do I cause a resource to refresh _before_ my exec resource executes?
[2011/11/06 18:27:39] <savid> That is if I do "notify", does that happen before or after the command executes?
[2011/11/06 18:29:42] @ Quit: soh: Quit: Computer has gone to sleep.
[2011/11/06 18:30:39] @ mitchellh joined channel #puppet
[2011/11/06 18:33:15] <CrazyGir> is it ok to have two different file objects, eg: file {'client-conf': and file {'master-conf': that point to the same location (on the client) - eg: path => '/etc/puppet/puppet.conf', - but have different sources within the module?
[2011/11/06 18:34:59] <sascha_> So I'm pretty much a puppet newb. And a I have a hefty background doing Chef work. I'm trying to figure out how I can iterate in puppet? Is it possible to iterate over a puppet block?
[2011/11/06 18:35:48] <sascha_> In Chef, I'd use an array on the block. But I'm looking at the docs and that doesn't actually look like it will work?
[2011/11/06 18:35:57] <savid> I thought a 775 mode on directories was supposed to translate to 664 for files? Why is that not happening for me?
[2011/11/06 18:37:16] @ Quit: kolla_: Remote host closed the connection
[2011/11/06 18:37:35] <savid> oh, maybe it's the other way around..
[2011/11/06 18:41:04] <whack> sascha_: what kind of data do you have?
[2011/11/06 18:41:18] <whack> since puppet is more declarative, if you had an array of things you wanted to make files of, you could do:
[2011/11/06 18:41:21] <sascha_> I need to do a bunch of file manipulations
[2011/11/06 18:41:22] <whack> file { $array: ...; }
[2011/11/06 18:41:42] <sascha_> I'm writing a jboss automation project basically and the first thing to do with a fresh install of jboss is delete the crap out of everything
[2011/11/06 18:42:04] <whack> so you could have file { ["file1", "file2", "file3"]: ensure => absent; } to delete crap
[2011/11/06 18:42:11] <sascha_> that's what I wanted to know
[2011/11/06 18:42:43] <sascha_> in chef I'd do %w{dir1 dir2 dir3}.eac do….{puppet block}
[2011/11/06 18:42:46] <CrazyGir> sascha_: how are you finding puppet and chef compare?
[2011/11/06 18:42:55] <sascha_> I haven't done enough yet to offer an opinion
[2011/11/06 18:43:01] <CrazyGir> mmm
[2011/11/06 18:43:05] <sascha_> and I spent over a year spending every day writing chef
[2011/11/06 18:43:21] <CrazyGir> I haven't dug deep into chef because of its syntax / style
[2011/11/06 18:43:25] <sascha_> so most of my comparison at the moment consists of figuring out how to do something
[2011/11/06 18:43:33] <sascha_> but I'm still toddling through puppet
[2011/11/06 18:43:39] <CrazyGir> likewise
[2011/11/06 18:43:42] <whack> CrazyGir: I found the resources/cookbook stuff pretty much exactly what the puppet ruby dsl looks like
[2011/11/06 18:43:43] <sascha_> The biggest thing so far is that I feel constrained
[2011/11/06 18:43:45] <sascha_> against my will
[2011/11/06 18:44:11] <whack> sascha_: I think the main difference, and I think I'm quoting @littleidea here, is that chef is more "do" and puppet is more "be"
[2011/11/06 18:44:11] <CrazyGir> in what sort of ways?
[2011/11/06 18:44:22] <sascha_> with Chef, if I didn't know how to do something, I could write some bastardized version of ruby/chef dsl and make it work
[2011/11/06 18:44:33] <CrazyGir> yea, I like the declarative bit over functional
[2011/11/06 18:44:34] <sascha_> but with Puppet, Ihave to go and find out exactly how puppet allows you to do something
[2011/11/06 18:44:51] <CrazyGir> you can write you own hacked crap
[2011/11/06 18:44:53] <whack> sascha_: you can extend puppet with custom types, too
[2011/11/06 18:44:58] <sascha_> but truly, I'm not ready to have an opinion yet
[2011/11/06 18:45:06] * CrazyGir nods
[2011/11/06 18:45:15] <sascha_> once I've actually written the entire jboss/apache/mod_jk library, I'll let you know
[2011/11/06 18:45:20] <CrazyGir> whack: any input on my source / name file question
[2011/11/06 18:45:25] <sascha_> if my head hasn't exploded
[2011/11/06 18:45:26] <CrazyGir> ;)
[2011/11/06 18:45:31] <whack> CrazyGir: what was the question?
[2011/11/06 18:45:33] <whack> sascha_: hah
[2011/11/06 18:45:49] <CrazyGir> I'll be here, and would love to listen to your thoughts
[2011/11/06 18:45:51] <whack> I hate the "I'm a newbie so everything confuses and enrages me" phase :(
[2011/11/06 18:45:56] * whack -- dinner &
[2011/11/06 18:46:02] <CrazyGir> bah
[2011/11/06 18:46:13] <sascha_> it's tough to move past that. I think a couple of solid days of working through things will fix me up a bit
[2011/11/06 18:46:21] <CrazyGir> indeed
[2011/11/06 18:46:25] <sascha_> but I'm still wandering around in the parking lot trying to find the front door
[2011/11/06 18:46:41] <CrazyGir> I'm sometimes still there
[2011/11/06 18:46:58] <sascha_> I made my jboss rpm with fpm and wrote an install module for it with file/dir owners. That's as far as I've gotten
[2011/11/06 18:47:05] @ Quit: skm: Ping timeout: 244 seconds
[2011/11/06 18:47:16] <sascha_> and I've got a fully functional vagrant VM set up to work with the client's infrastructure
[2011/11/06 18:47:32] <sascha_> but haven't yet dug into puppet internals which is where I'm looking tonight
[2011/11/06 18:47:44] <sascha_> peering into the mouth of the beast
[2011/11/06 18:48:22] <CrazyGir> haaave fuuun :)
[2011/11/06 18:48:35] * CrazyGir is fighting with puppet on openbsd :(
[2011/11/06 18:48:44] <sascha_> rh5 here
[2011/11/06 18:49:32] <CrazyGir> I can't go near redhat
[2011/11/06 18:49:36] <CrazyGir> my head would explode
[2011/11/06 18:49:50] @ skm joined channel #puppet
[2011/11/06 18:50:22] @ Quit: Djelibeybi: Quit: Textual IRC Client: http://www.textualapp.com/
[2011/11/06 18:51:27] <sascha_> oh and there, I've found the language guide, which was what I needed
[2011/11/06 18:52:04] @ kelseyhightower joined channel #puppet
[2011/11/06 18:53:36] @ Quit: savid: Quit: Leaving
[2011/11/06 18:55:29] @ Quit: rmckee: Quit: Leaving
[2011/11/06 18:55:59] @ Quit: choonming: Read error: Connection timed out
[2011/11/06 19:00:56] @ bmahe joined channel #puppet
[2011/11/06 19:00:57] @ Quit: bmahe: Changing host
[2011/11/06 19:00:57] @ bmahe joined channel #puppet
[2011/11/06 19:04:08] @ Quit: tilgovi: Ping timeout: 245 seconds
[2011/11/06 19:10:43] @ Quit: samrose: Quit: Ex-Chat
[2011/11/06 19:10:49] <sascha_> nope, still can't do what I want
[2011/11/06 19:11:35] <sascha_> maybe I can skip right to writing custom functions
[2011/11/06 19:12:17] <sascha_> if I do what I want int a puppet module, I can't factor out any of the common denominators with loops and variables;
[2011/11/06 19:14:21] @ sarkis joined channel #puppet
[2011/11/06 19:15:10] @ Quit: optiz0r: Remote host closed the connection
[2011/11/06 19:15:53] <sarkis> hey guys if i install puppet via gem install, do i have to manually create the config for it?
[2011/11/06 19:16:04] <sarkis> and does it need to be in /etc/puppet or can i change that somewhere
[2011/11/06 19:16:53] <sascha_> so here's what was in my head: https://gist.github.com/7bc4d5be56a97b89c95b
[2011/11/06 19:17:00] <sascha_> I'm open to suggestions on how to do something else
[2011/11/06 19:19:46] @ rcrowley joined channel #puppet
[2011/11/06 19:22:05] @ Quit: ldlework: Ping timeout: 240 seconds
[2011/11/06 19:23:11] @ thenulldevice joined channel #puppet
[2011/11/06 19:25:02] @ shadoi joined channel #puppet
[2011/11/06 19:29:38] @ Quit: chadskidmore: Quit: Textual IRC Client: http://www.textualapp.com/
[2011/11/06 19:35:54] @ Quit: Moe__: Remote host closed the connection
[2011/11/06 19:36:06] @ ldlework joined channel #puppet
[2011/11/06 19:42:27] @ Quit: mitchellh: Quit: Computer has gone to sleep
[2011/11/06 19:42:52] <fenrus02> when the puppet-agent and puppet-master are the same host, what does this mean? --> puppet-agent[40853]: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed. This is often because the time is out of sync on the server or client
[2011/11/06 19:44:53] @ Quit: ldlework: Ping timeout: 240 seconds
[2011/11/06 19:50:24] @ Quit: lpaul7: Remote host closed the connection
[2011/11/06 19:52:01] @ tilgovi joined channel #puppet
[2011/11/06 19:52:02] @ Quit: tilgovi: Changing host
[2011/11/06 19:52:02] @ tilgovi joined channel #puppet
[2011/11/06 19:58:29] @ Quit: cliff-hm: Ping timeout: 240 seconds
[2011/11/06 20:12:52] @ mitchellh joined channel #puppet
[2011/11/06 20:12:53] @ Quit: mitchellh: Client Quit
[2011/11/06 20:13:14] @ gaveen joined channel #puppet
[2011/11/06 20:13:14] @ Quit: gaveen: Changing host
[2011/11/06 20:13:14] @ gaveen joined channel #puppet
[2011/11/06 20:13:50] @ mitchellh joined channel #puppet
[2011/11/06 20:14:19] @ choonming joined channel #puppet
[2011/11/06 20:19:32] @ AshishH joined channel #puppet
[2011/11/06 20:20:46] @ adimania joined channel #puppet
[2011/11/06 20:21:38] @ Quit: samkottler: Quit: Leaving.
[2011/11/06 20:23:14] @ bobra joined channel #puppet
[2011/11/06 20:37:30] @ Quit: newtMcKerr: Quit: Leaving.
[2011/11/06 20:47:55] @ soh joined channel #puppet
[2011/11/06 20:48:21] @ newtMcKerr joined channel #puppet
[2011/11/06 20:48:58] @ Quit: newtMcKerr: Client Quit
[2011/11/06 21:05:03] @ Quit: kermit: Quit: Leaving.
[2011/11/06 21:05:22] @ kermit joined channel #puppet
[2011/11/06 21:23:28] @ krish joined channel #puppet
[2011/11/06 21:30:59] @ Quit: lwhalen: Quit: Computer has gone to sleep
[2011/11/06 21:33:48] @ lwhalen joined channel #puppet
[2011/11/06 21:35:25] @ lak joined channel #puppet
[2011/11/06 21:35:34] @ Quit: lak: Changing host
[2011/11/06 21:35:34] @ lak joined channel #puppet
[2011/11/06 21:38:22] @ lak1 joined channel #puppet
[2011/11/06 21:38:23] @ Quit: lak: Read error: Connection reset by peer
[2011/11/06 21:43:02] @ Quit: langworthy: Quit: langworthy
[2011/11/06 21:44:34] <whack> CrazyGir: back if you still need help
[2011/11/06 21:54:36] <whack> sascha_: you too if you're still having issues
[2011/11/06 21:57:27] @ jedi4ever joined channel #puppet
[2011/11/06 21:58:03] @ Quit: jedi4ever: Client Quit
[2011/11/06 21:59:12] @ Quit: jaymurtii: Ping timeout: 248 seconds
[2011/11/06 21:59:46] @ lak joined channel #puppet
[2011/11/06 21:59:47] @ Quit: lak: Changing host
[2011/11/06 21:59:47] @ lak joined channel #puppet
[2011/11/06 22:00:17] @ Quit: lak1: Read error: Connection reset by peer
[2011/11/06 22:00:53] @ Quit: rcrowley: Quit: Computer has gone to sleep.
[2011/11/06 22:03:32] @ Quit: skm: Quit: Computer has gone to sleep.
[2011/11/06 22:03:42] @ Quit: mitchellh: Quit: Computer has gone to sleep
[2011/11/06 22:11:48] @ krish1 joined channel #puppet
[2011/11/06 22:15:17] @ Quit: krish: Ping timeout: 240 seconds
[2011/11/06 22:15:20] @ hooper joined channel #puppet
[2011/11/06 22:16:33] @ pugnacity joined channel #puppet
[2011/11/06 22:22:58] @ riha joined channel #puppet
[2011/11/06 22:24:13] @ Quit: Holocaine: Ping timeout: 240 seconds
[2011/11/06 22:24:16] @ Quit: soh: Quit: Computer has gone to sleep.
[2011/11/06 22:26:02] @ negronjl joined channel #puppet
[2011/11/06 22:26:47] @ Quit: negronjl: Remote host closed the connection
[2011/11/06 22:28:13] @ Quit: shadoi: Quit: Leaving.
[2011/11/06 22:33:47] @ Quit: lak: Quit: Leaving.
[2011/11/06 22:39:10] @ mitchellh joined channel #puppet
[2011/11/06 22:39:34] @ lak joined channel #puppet
[2011/11/06 22:39:35] @ Quit: lak: Changing host
[2011/11/06 22:39:35] @ lak joined channel #puppet
[2011/11/06 22:41:45] @ Quit: lak: Read error: Connection reset by peer
[2011/11/06 22:41:55] @ lak joined channel #puppet
[2011/11/06 22:41:56] @ Quit: lak: Changing host
[2011/11/06 22:41:56] @ lak joined channel #puppet
[2011/11/06 22:42:47] @ jaydg joined channel #puppet
[2011/11/06 22:45:10] @ Quit: ezmobius|zoning|: Remote host closed the connection
[2011/11/06 22:45:33] @ ezmobius joined channel #puppet
[2011/11/06 22:48:25] @ Quit: krish1: Ping timeout: 260 seconds
[2011/11/06 22:48:52] @ jodok joined channel #puppet
[2011/11/06 22:48:52] @ Quit: jodok: Changing host
[2011/11/06 22:48:52] @ jodok joined channel #puppet
[2011/11/06 22:49:40] @ fnodes joined channel #puppet
[2011/11/06 22:50:32] <fnodes> hi
[2011/11/06 22:51:40] @ Quit: fnodes: Client Quit
[2011/11/06 22:54:24] @ Holocaine joined channel #puppet
[2011/11/06 22:55:42] @ Quit: gniks: Quit: Leaving.
[2011/11/06 22:56:47] @ Quit: choonming: Quit: Leaving
[2011/11/06 22:57:23] @ Quit: tremble: Quit: Leaving
[2011/11/06 22:57:48] @ Meier joined channel #puppet
[2011/11/06 22:58:29] @ Quit: dgillies: Remote host closed the connection
[2011/11/06 22:58:54] @ Quit: lak: Quit: Leaving.
[2011/11/06 23:00:00] @ Quit: jaytaph: Quit: jaytaph
[2011/11/06 23:02:37] @ jongrocho joined channel #puppet
[2011/11/06 23:06:54] <sarkis> when running puppet via the gem, what do you need to do to get the puppet folder in place?
[2011/11/06 23:07:21] <sarkis> or specify where puppet/ is..
[2011/11/06 23:09:37] @ krish joined channel #puppet
[2011/11/06 23:09:59] <CrazyGir> whack: oh heya
[2011/11/06 23:10:12] @ Quit: helindbe: Read error: Connection reset by peer
[2011/11/06 23:10:12] <CrazyGir> is it ok to have two different file objects, eg: file {'client-conf': and file {'master-conf': that point to the same location (on the client) - eg: path => '/etc/puppet/puppet.conf', - but have different sources within the module?
[2011/11/06 23:10:59] <whack> CrazyGir: I don't know if that behavior is defined
[2011/11/06 23:11:27] <whack> you shouldn't need to different configs for agent and master - the config file supports sections so you can define master-only settings, etc
[2011/11/06 23:11:45] @ helindbe joined channel #puppet
[2011/11/06 23:17:35] @ ckauhaus joined channel #puppet
[2011/11/06 23:19:27] <CrazyGir> I understand it isn't explicitly necessary
[2011/11/06 23:20:34] <CrazyGir> whack: when I have those two entries, and I run puppet agent, I get an error: err: Could not run Puppet configuration client: Cannot alias File[client-conf] to ["/etc/puppet/puppet.conf"]; resource ["File", ["/etc/puppet/puppet.conf"]] already exists
[2011/11/06 23:21:00] <CrazyGir> bit if I set a different destination for one, it works ok
[2011/11/06 23:21:05] <CrazyGir> *but
[2011/11/06 23:21:27] <whack> so make a conditional that only declares one
[2011/11/06 23:22:48] <CrazyGir> hmmm
[2011/11/06 23:23:02] <CrazyGir> yea, it is trying to do both, I am mistaken here
[2011/11/06 23:23:36] @ jedi4ever joined channel #puppet
[2011/11/06 23:24:27] <CrazyGir> whack: next question I have is about BSD packages and PKG_PATH
[2011/11/06 23:24:45] <CrazyGir> I am getting an error from puppet: change from absent to present failed: You must specify a package source for BSD packages
[2011/11/06 23:25:07] <CrazyGir> I have PKG_PATH set for my user, and running pkg_add as my user works fine
[2011/11/06 23:25:45] <CrazyGir> that is setting/confirming that package source, so I don't quite know why puppet is erroring out, as puppet is simply running pkg_add as my user
[2011/11/06 23:25:59] <CrazyGir> am I overlooking another variable of some sort?
[2011/11/06 23:26:25] <whack> I'vce never used puppet on openbsd so I dunno
[2011/11/06 23:27:25] @ Quit: hooper: Ping timeout: 240 seconds
[2011/11/06 23:27:27] * CrazyGir nods
[2011/11/06 23:30:14] @ Quit: krish: Quit: Leaving.
[2011/11/06 23:30:23] @ krish joined channel #puppet
[2011/11/06 23:32:16] @ DJClean joined channel #puppet
[2011/11/06 23:33:02] @ Quit: jsurfer: Read error: Connection reset by peer
[2011/11/06 23:33:17] @ toi joined channel #puppet
[2011/11/06 23:34:05] @ oatsport1 joined channel #puppet
[2011/11/06 23:35:06] @ Spads joined channel #puppet
[2011/11/06 23:35:45] <krish> hi, is there a built in way to get a uid for a user
[2011/11/06 23:35:49] <krish> or gid for a gorup
[2011/11/06 23:35:52] <krish> *group
[2011/11/06 23:38:24] @ Quit: Spads_: Ping timeout: 248 seconds
[2011/11/06 23:38:27] @ eft joined channel #puppet
[2011/11/06 23:40:29] <CrazyGir> I see, in .../ruby/1.8/puppet/provider/openbsd.rb some interesting stuff
[2011/11/06 23:41:29] <CrazyGir> first, when installing, puppet checks: unless @resource[:source] and then fails with this "You must specify a package source for BSD packages" bit
[2011/11/06 23:41:45] <CrazyGir> using PKG_PATH seems to be below this
[2011/11/06 23:41:58] <CrazyGir> eg: e_vars = { :PKG_PATH => @resource[:source] }
[2011/11/06 23:42:21] <CrazyGir> how is this first one set? @resource[:source]
[2011/11/06 23:43:18] <whack> package { "Foo": source => ...; }
[2011/11/06 23:44:28] @ lkoranda joined channel #puppet
[2011/11/06 23:45:14] <CrazyGir> hrm...
[2011/11/06 23:45:23] <CrazyGir> i don't see why that should be set
[2011/11/06 23:45:32] <CrazyGir> that is the whole point of the PKG_PATH variable
[2011/11/06 23:45:36] <CrazyGir> >.<
[2011/11/06 23:45:39] <whack> ?
[2011/11/06 23:45:53] @ brtl joined channel #puppet
[2011/11/06 23:46:01] <whack> judging from what you're pasting, the package source => foo value is used to set the PKG_PATH environment variable later
[2011/11/06 23:46:16] <whack> maybe pastebin your manifest that isn'tw orking
[2011/11/06 23:46:17] <CrazyGir> I should not need to specify a source, that is the point of the PKG_PATH varioable
[2011/11/06 23:46:30] <whack> I'm confused.
[2011/11/06 23:46:37] <whack> source sets PKG_PATH
[2011/11/06 23:46:52] <whack> if you know a default you want to use, you can set that with Package { source => "default source" }
[2011/11/06 23:46:59] <CrazyGir> it _should_ also be set by/for the user
[2011/11/06 23:47:03] <CrazyGir> eg in my .profile
[2011/11/06 23:47:06] <whack> remember puppet is an abstraction layer.
[2011/11/06 23:47:19] <whack> so any implementation details like "I need to set PKG_PATH" are going to be abstracted away
[2011/11/06 23:47:34] <CrazyGir> PKG_PATH is something pkg_add depends on
[2011/11/06 23:47:43] <whack> maybe I'm not being clear :(
[2011/11/06 23:47:48] <whack> you *must* set source in your packages
[2011/11/06 23:47:55] <CrazyGir> puppet should be calling pkg_add and entrusting that PKG_PATH has been taken care of
[2011/11/06 23:48:06] <whack> you're misunderstanding what puppet is for
[2011/11/06 23:48:15] <whack> it abstracts away from implementation details like PKG_PATH
[2011/11/06 23:48:18] <CrazyGir> I understanding that it must be set, but not why
[2011/11/06 23:48:29] @ Quit: flamboz: Quit: Leaving
[2011/11/06 23:48:37] <CrazyGir> why should i not be able to set it myself, and have that as a system wide default?
[2011/11/06 23:48:56] <whack> CrazyGir: you can set a default *in* puppet
[2011/11/06 23:48:57] <CrazyGir> else can I set a "default" in puppet, to be user by _all_ packages?
[2011/11/06 23:49:01] <CrazyGir> hah
[2011/11/06 23:49:12] <CrazyGir> how would that be done?
[2011/11/06 23:49:23] <whack> puppet is supposed to be all encompasing. If you had to set PKG_PATH outside of puppet, puppet would fail as a tool.
[2011/11/06 23:49:48] <CrazyGir> some stuff needs to be done before puppet works..
[2011/11/06 23:50:04] <whack> like setting PKG_PATH?
[2011/11/06 23:50:05] <CrazyGir> you have to set sources.list in debian...
[2011/11/06 23:50:12] <CrazyGir> yea, that seems reasonable to me..
[2011/11/06 23:50:16] <whack> CrazyGir: you can set that with puppet, in puppet.
[2011/11/06 23:50:25] <CrazyGir> you can, but must you?
[2011/11/06 23:50:28] <whack> CrazyGir: Package { source => "whatever you normally set PKG_PATH to" }
[2011/11/06 23:50:36] <whack> CrazyGir: must you? I think you still misunderstand puppet ;)
[2011/11/06 23:50:40] <CrazyGir> hah
[2011/11/06 23:50:41] <CrazyGir> :)
[2011/11/06 23:50:46] <whack> I would *hate* to have bootstrapping things be outside puppet
[2011/11/06 23:50:52] <whack> some things are, but those are rare edge cases for me
[2011/11/06 23:51:00] <CrazyGir> you have to install puppet to begin with!
[2011/11/06 23:51:01] <whack> if I need a deb or yum repo, I make puppet put it in place.
[2011/11/06 23:51:07] <CrazyGir> PKG_PATH is needed for that anyway..
[2011/11/06 23:51:17] <whack> I think you're getting hung up on meaningless details
[2011/11/06 23:51:21] <CrazyGir> Package { source => "whatever you normally set PKG_PATH to" } <--- is this how to set it for ALL packages?
[2011/11/06 23:51:26] <whack> yes
[2011/11/06 23:51:32] <whack> you put that in your site.pp and it sets defaults
[2011/11/06 23:51:38] <whack> Package { <default values> }
[2011/11/06 23:51:38] * CrazyGir nods
[2011/11/06 23:51:48] <whack> package { "foo": .... whatever; } will inherit the defaults you set
[2011/11/06 23:53:01] * CrazyGir nods
[2011/11/06 23:53:08] <CrazyGir> fantastic
[2011/11/06 23:53:12] <whack> works?
[2011/11/06 23:53:16] <CrazyGir> indeed
[2011/11/06 23:53:38] <CrazyGir> I've some cleanup now with package names differing between debian / openbsd :)
[2011/11/06 23:53:41] <whack> cool, sorry for the confusion :)
[2011/11/06 23:53:51] @ Quit: mitchellh: Quit: ZOMG BYE
[2011/11/06 23:54:01] <whack> CrazyGir: to answer your 'deb repo' thing, I generally have this:
[2011/11/06 23:54:09] <CrazyGir> except, this is confusing: notice: /Stage[main]/Base/Package[ufw]/ensure: created
[2011/11/06 23:54:18] <CrazyGir> there is no ufw package in openbsd :P
[2011/11/06 23:54:24] <whack> puppet creates a repo with a file resource, which notifies an exec that does 'apt-get update' and is required by all Package resources.
[2011/11/06 23:54:32] <fragfutter> CrazyGir: but you aliased it
[2011/11/06 23:54:34] <CrazyGir> nifty
[2011/11/06 23:54:49] <CrazyGir> fragfutter: how do you mean?
[2011/11/06 23:55:14] <fragfutter> ufw is the $namevar, but you specified an alias in the resource definition.
[2011/11/06 23:56:10] <CrazyGir> package { ['htop', 'wget', 'man', 'vim', 'nmap', 'tcpdump', 'ufw',]:
[2011/11/06 23:56:22] <whack> CrazyGir: possible that there's a bug in the openbsd package provider
[2011/11/06 23:56:37] <whack> CrazyGir: does any random string that's not a real pacakge work?
[2011/11/06 23:56:53] <CrazyGir> from what I am seeing, yea
[2011/11/06 23:56:58] <CrazyGir> htop and ufw are not packages
[2011/11/06 23:57:15] <CrazyGir> I have others too, but those are in my package resource noted above
[2011/11/06 23:57:31] <whack> try something like
[2011/11/06 23:58:00] <whack> puppet apply -e 'package { "fizzleboots": source => "whatever $PKG_PATH is", ensure => present; }'

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