Friday, 2010-02-19

[2010/02/19 00:00:06] @ Log started by gepetto
[2010/02/19 00:00:06] @ Quit: teyo: Quit: teyo
[2010/02/19 00:02:30] @ artista_frustrad joined channel #puppet
[2010/02/19 00:03:15] @ jfreeman joined channel #puppet
[2010/02/19 00:05:34] @ teyo joined channel #puppet
[2010/02/19 00:08:11] @ Quit: tjoe: Quit: leaving
[2010/02/19 00:10:51] @ Quit: axisys: Quit: leaving
[2010/02/19 00:11:10] @ axisys joined channel #puppet
[2010/02/19 00:12:40] @ Quit: \ask: Remote host closed the connection
[2010/02/19 00:13:03] @ jes5 joined channel #puppet
[2010/02/19 00:14:04] @ Quit: jes5: Client Quit
[2010/02/19 00:15:14] @ lak joined channel #puppet
[2010/02/19 00:28:57] @ tjoe joined channel #puppet
[2010/02/19 00:32:12] @ littleidea joined channel #puppet
[2010/02/19 00:36:25] @ Quit: Bass10: Ping timeout: 264 seconds
[2010/02/19 00:40:29] @ Quit: swygue: Read error: Operation timed out
[2010/02/19 00:45:42] @ Quit: lak: Ping timeout: 256 seconds
[2010/02/19 00:48:53] @ Quit: blahdeblah: Ping timeout: 240 seconds
[2010/02/19 00:59:55] @ blahdeblah joined channel #puppet
[2010/02/19 01:03:33] @ Quit: brothers: Quit: brothers
[2010/02/19 01:06:02] @ swygue joined channel #puppet
[2010/02/19 01:06:05] @ mqr joined channel #puppet
[2010/02/19 01:10:48] @ Quit: skiold: Quit: skiold
[2010/02/19 01:14:05] @ Quit: swygue: Ping timeout: 260 seconds
[2010/02/19 01:28:09] @ ckauhaus joined channel #puppet
[2010/02/19 01:30:43] @ PaulWay[w] left channel #puppet ("I must go, there are too many tangrams on this channel.")
[2010/02/19 01:31:20] @ swygue joined channel #puppet
[2010/02/19 01:31:50] @ Quit: ckauhaus: Client Quit
[2010/02/19 01:34:46] @ ckauhaus joined channel #puppet
[2010/02/19 01:39:44] @ ppickfor joined channel #puppet
[2010/02/19 01:43:24] @ Quit: ckauhaus: Ping timeout: 252 seconds
[2010/02/19 01:48:25] @ Quit: jmslagle: Ping timeout: 264 seconds
[2010/02/19 01:54:26] @ ckauhaus joined channel #puppet
[2010/02/19 01:59:04] @ Quit: Djelibeybi: Quit: Leaving
[2010/02/19 02:07:13] @ Quit: jfreeman: Remote host closed the connection
[2010/02/19 02:07:41] @ Quit: ppickfor: Ping timeout: 265 seconds
[2010/02/19 02:18:36] @ Quit: alban2: Ping timeout: 252 seconds
[2010/02/19 02:23:34] @ ppickfor joined channel #puppet
[2010/02/19 02:27:33] <RedPepper> hmm
[2010/02/19 02:27:59] <RedPepper> how can i avoid Duplicate definitons
[2010/02/19 02:28:13] <RedPepper> i do not get the point in my script
[2010/02/19 02:29:44] <RedPepper> http://privatepaste.com/5bfdd8b44f and http://privatepaste.com/60e2be4917
[2010/02/19 02:30:11] <RedPepper> Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: Authorized-keys[root] is already defined in file /etc/puppet/manifests/nodes.pp at line 5; cannot redefine at /etc/puppet/manifests/nodes.pp:6 on node is the exact error i got
[2010/02/19 02:33:05] @ Quit: ppickfor: Ping timeout: 246 seconds
[2010/02/19 02:35:22] <nico> RedPepper: http://pastie.org/832337 then your definition is unique (of course you have to modify your define)
[2010/02/19 02:35:30] <RedPepper> ok
[2010/02/19 02:35:32] @ Quit: blahdeblah: Ping timeout: 246 seconds
[2010/02/19 02:35:35] <RedPepper> please advise
[2010/02/19 02:35:44] <RedPepper> i am out of ideas
[2010/02/19 02:36:12] <RedPepper> ah ok
[2010/02/19 02:36:13] <RedPepper> is see
[2010/02/19 02:37:18] @ ppickfor joined channel #puppet
[2010/02/19 02:37:20] <nico> I don't have time to see for your define, but your problem is simple, the $name var of a define has to be unique (home / winpc). in your first try you had used a var so it was duplicate
[2010/02/19 02:38:26] <RedPepper> yeah
[2010/02/19 02:38:37] <RedPepper> now i ran in another duplicate
[2010/02/19 02:38:39] <RedPepper> of the User
[2010/02/19 02:39:14] <RedPepper> Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: User[root] is already defined in file /etc/puppet/modules/sshkeys/manifests/init.pp at line 12; cannot redefine at /etc/puppet/modules/sshkeys/manifests/init.pp:12 on node
[2010/02/19 02:40:01] @ Quit: ckauhaus: Quit: Leaving.
[2010/02/19 02:40:29] <nico> RedPepper: use virtual resources for user, and then realize them
[2010/02/19 02:40:37] <RedPepper> ah okay
[2010/02/19 02:40:45] <nico> RedPepper: I suggest that you read jamesturnbull's book
[2010/02/19 02:41:09] <RedPepper> can u give me a link to an ebook or amazon probably ?
[2010/02/19 02:41:32] <nico> http://www.amazon.com/Pulling-Strings-Puppet-Configuration-Management/dp/1590599780
[2010/02/19 02:41:52] <RedPepper> thanks a lot
[2010/02/19 02:46:43] @ mfournier joined channel #puppet
[2010/02/19 02:47:20] @ jfreeman joined channel #puppet
[2010/02/19 02:48:46] @ Quit: kolla: Ping timeout: 268 seconds
[2010/02/19 02:51:39] @ scroogie joined channel #puppet
[2010/02/19 02:52:07] @ pacalm joined channel #puppet
[2010/02/19 02:53:04] <scroogie> hi
[2010/02/19 02:54:32] <scroogie> I always receive the error "Failed to generate additional resources using 'eval_generate': Error 400 on SERVER: private method `gsub' called for nil:NilClass" when I try to use "recurse" on a file resource. The puppetmaster is a SL4.8 with ruby 1.8.1. Is it possible that the version does not meet some requirements?
[2010/02/19 03:00:08] @ ckauhaus joined channel #puppet
[2010/02/19 03:01:00] @ shug joined channel #puppet
[2010/02/19 03:05:59] @ mvn071 joined channel #puppet
[2010/02/19 03:11:54] @ zipkid joined channel #puppet
[2010/02/19 03:12:05] @ blahdeblah joined channel #puppet
[2010/02/19 03:16:23] <scroogie> with --verbose I don't get any additional message
[2010/02/19 03:16:36] <scroogie> on the puppetmaster its just "private method `gsub' called for nil:NilClass"
[2010/02/19 03:20:29] @ Quit: jfreeman: Ping timeout: 260 seconds
[2010/02/19 03:21:15] @ Quit: giskard: Remote host closed the connection
[2010/02/19 03:21:45] @ jfreeman joined channel #puppet
[2010/02/19 03:22:57] @ Quit: mdp_: Ping timeout: 252 seconds
[2010/02/19 03:23:16] @ mdp_ joined channel #puppet
[2010/02/19 03:28:16] <Sjampoo> What is the best method to debug manifests / classes?
[2010/02/19 03:28:31] <Sjampoo> Currently i just edit the files, restart puppet and closely watch daemon.log
[2010/02/19 03:28:59] <Sjampoo> I could explicitly run 'puppet <manifest>' but this would execute the manifest on possibly the wrong machine
[2010/02/19 03:29:07] <Sjampoo> Any pointers?
[2010/02/19 03:30:36] <RedPepper> you can use -d or -v for more output
[2010/02/19 03:30:48] <tim|imac> and --tags to only apply part of the manifest
[2010/02/19 03:30:58] <Sjampoo> RedPepper: but that would execute the manifest right?
[2010/02/19 03:31:06] <RedPepper> yeah
[2010/02/19 03:31:35] <tim|imac> Sjampoo: but you need a test vm anyway :) very hard to develop puppet manifests (more obtrusive ones) on a production environment :)
[2010/02/19 03:31:42] @ Spruit_elf joined channel #puppet
[2010/02/19 03:32:19] <Sjampoo> so i would need to clone a vm for every node i want to make changes too?
[2010/02/19 03:33:00] <tim|imac> you need to test your changes :) another thing you can try, but this only catches some cases, is running with --noop
[2010/02/19 03:33:25] @ Quit: Spruit_elf: Client Quit
[2010/02/19 03:33:28] <tim|imac> but you need to test your changes anyway and you don't test on a production machine, so you'll need that vm anyway, imho
[2010/02/19 03:34:12] <Sjampoo> tim|imac: Hmm i think noop will help me
[2010/02/19 03:34:29] <tim|imac> in larger setups, you can usually get away with simply trying it on one of the production machines... others will take over if things fail horribly
[2010/02/19 03:34:41] <tim|imac> I don't know how large your setup is, though :)
[2010/02/19 03:34:44] <Sjampoo> --noop isn't listed when specifying puppet --help
[2010/02/19 03:35:30] <scroogie> I always have a whole test machine that isn't in the production environment :P
[2010/02/19 03:35:33] <scroogie> i know, what a waste
[2010/02/19 03:35:54] <tim|imac> Sjampoo: make a bug report about it! but the man pages are underloved with puppet, better check docs.reductivelabs.com
[2010/02/19 03:36:10] <tim|imac> scroogie: i don't consider it a waste
[2010/02/19 03:36:15] @ Quit: jfreeman: Ping timeout: 256 seconds
[2010/02/19 03:36:31] <tim|imac> testing is underrated, most of the times, while it's so darn important
[2010/02/19 03:37:08] <scroogie> RedPepper: does "-d" exist?
[2010/02/19 03:37:12] <tim|imac> s/while/even though/
[2010/02/19 03:37:19] <scroogie> yeah, tim, true.
[2010/02/19 03:37:24] <Sjampoo> tim|imac: I agree, but right now i am experimenting. Nasty syntax errors really slow me down. All i want to know is if the syntax is right. It seems that 'puppet --noop --verbose <filename>' works for that
[2010/02/19 03:37:26] <RedPepper> yeah scroogie
[2010/02/19 03:37:30] <tim|imac> i think he means --debug
[2010/02/19 03:37:35] <RedPepper> yep
[2010/02/19 03:37:40] <RedPepper> it is the short version
[2010/02/19 03:37:59] <tim|imac> Sjampoo: ah, indeed, that's much faster than trying to apply it every time too :)
[2010/02/19 03:38:12] <tim|imac> didn't know there was a short version for debug :) i always type the long one
[2010/02/19 03:38:30] <RedPepper> v is the short version of verbose also
[2010/02/19 03:38:43] <tim|imac> why is someone on twitter telling me i should switch to puppet after i just tweeted i was doing awesome stuff with puppet? kinda beats the purpose...
[2010/02/19 03:38:46] <RedPepper> gnah i did not get the point with virtual ressources
[2010/02/19 03:39:02] <tim|imac> s/switch to puppet/switch to chef/
[2010/02/19 03:39:16] <tim|imac> need more coffee, apparantly
[2010/02/19 03:39:33] <scroogie> mhm
[2010/02/19 03:39:38] <RedPepper> yeah good idea
[2010/02/19 03:39:41] <scroogie> debug and verbose still only give me "private method `gsub' called for nil:NilClass"
[2010/02/19 03:39:44] <scroogie> :(
[2010/02/19 03:39:50] <scroogie> is "recurse" not supported on some configurations?
[2010/02/19 03:39:55] <tim|imac> scroogie: which version are you running?
[2010/02/19 03:40:09] <scroogie> puppet-server-0.25.4-1.el4.x86_64
[2010/02/19 03:40:20] <tim|imac> hm... I don't have that error :/
[2010/02/19 03:40:27] <tim|imac> and I use recurse a lot
[2010/02/19 03:40:40] <scroogie> mhm
[2010/02/19 03:40:48] <scroogie> do you also use the vanilla ruby?
[2010/02/19 03:41:00] <scroogie> 1.8.1-7 that is for me
[2010/02/19 03:41:32] <tim|imac> 1.8.7.72-3lenny1
[2010/02/19 03:41:36] <scroogie> mhm
[2010/02/19 03:41:43] <scroogie> perhaps I need to try upgrading my ruby
[2010/02/19 03:41:54] <scroogie> what bugs me is that I dont get file/line of the source file
[2010/02/19 03:42:32] <tim|imac> I think that's because it's a ruby error, not a puppet error... try adding --trace
[2010/02/19 03:44:17] <scroogie> phew, a lot to read ;)
[2010/02/19 03:44:19] <scroogie> wait a sec
[2010/02/19 03:45:10] <Sjampoo> Hrm, the first character of a class name may not be uppercase?
[2010/02/19 03:46:10] <tim|imac> Sjampoo: if you start uppercase, you're telling puppet you're referencing a instantiated resource
[2010/02/19 03:46:18] <Sjampoo> oh yeah DOH!
[2010/02/19 03:46:23] @ jfreeman joined channel #puppet
[2010/02/19 03:46:56] <Sjampoo> but still, i would put that in the Language Tutorial on the wiki
[2010/02/19 03:47:58] <Sjampoo> fe, in Python its common to start classes with an upper case character
[2010/02/19 03:49:12] <RedPepper> tim|imac have you some time to look at a definiton ?
[2010/02/19 03:49:17] <RedPepper> i need some help
[2010/02/19 03:49:52] <tim|imac> just paste it somewhere and I'll take a look
[2010/02/19 03:50:25] <RedPepper> http://privatepaste.com/fb7ad44292
[2010/02/19 03:50:28] @ kolla joined channel #puppet
[2010/02/19 03:50:31] <RedPepper> this is my definiton
[2010/02/19 03:50:47] <RedPepper> and i have duplicate error on the instantiated User part
[2010/02/19 03:51:21] <RedPepper> nico has said i can use virtual resources to avoid it
[2010/02/19 03:51:44] <RedPepper> but i haven't got the point how this virtual resources work
[2010/02/19 03:52:04] <tim|imac> RedPepper: you're missing an s in ensure in the virtual resource
[2010/02/19 03:52:24] <RedPepper> ah
[2010/02/19 03:52:25] <tim|imac> or no, you garbled the word :)
[2010/02/19 03:52:31] @ kolla_ joined channel #puppet
[2010/02/19 03:52:33] @ Quit: kolla: Remote host closed the connection
[2010/02/19 03:52:42] @ Quit: kolla_: Remote host closed the connection
[2010/02/19 03:52:47] <RedPepper> typo >-<
[2010/02/19 03:52:52] @ kolla joined channel #puppet
[2010/02/19 03:53:13] <tim|imac> also, I cannot find where you realize the virtual resource?
[2010/02/19 03:53:22] <RedPepper> yeah that is my problem
[2010/02/19 03:53:39] @ danielbln joined channel #puppet
[2010/02/19 03:53:42] @ giskard joined channel #puppet
[2010/02/19 03:53:45] <RedPepper> where can i do that and avoid the duplicate
[2010/02/19 03:54:14] <tim|imac> you can realize a resource as often as you like
[2010/02/19 03:54:32] <RedPepper> ok i thought to do that before the line call
[2010/02/19 03:56:10] @ scroogie_ joined channel #puppet
[2010/02/19 03:57:17] <RedPepper> here is the call of the definiton
[2010/02/19 03:57:17] <RedPepper> http://privatepaste.com/623464fe11
[2010/02/19 03:57:49] @ Spruit_elf joined channel #puppet
[2010/02/19 04:00:14] @ Sjampoo left channel #puppet ()
[2010/02/19 04:00:22] @ Quit: scroogie: Ping timeout: 252 seconds
[2010/02/19 04:00:55] <tim|imac> RedPepper: but you're still not realizing the resource anywhere, are you?
[2010/02/19 04:01:25] <RedPepper> i realize it before i require it
[2010/02/19 04:01:35] <RedPepper> realize User[$user]
[2010/02/19 04:02:49] <tim|imac> ok
[2010/02/19 04:03:06] * tim|imac still checking, but also talking to someone else in another screen, so a bit slow, sorry
[2010/02/19 04:03:17] <RedPepper> no problem ;)
[2010/02/19 04:03:22] <tim|imac> can you paste the error too?
[2010/02/19 04:03:25] <RedPepper> yeah
[2010/02/19 04:04:04] <RedPepper> http://privatepaste.com/07eef723f9
[2010/02/19 04:04:26] <tim|imac> ah found it
[2010/02/19 04:04:43] <RedPepper> ok share the knowlege ;)
[2010/02/19 04:04:47] <tim|imac> there's no need to use virtual resources here like this... it could help you, but not if you implement it like this
[2010/02/19 04:04:49] <scroogie_> mhm
[2010/02/19 04:04:50] <tim|imac> better is:
[2010/02/19 04:04:56] <scroogie_> i can't do anything to figure out that error
[2010/02/19 04:05:08] <tim|imac> if ! define(User[$name]) { user { $name: ensure => present } }
[2010/02/19 04:05:29] <tim|imac> if ! defined(User etc.
[2010/02/19 04:05:36] <tim|imac> the second d is important ;-)
[2010/02/19 04:05:50] <scroogie_> ah
[2010/02/19 04:05:51] <scroogie_> i found something
[2010/02/19 04:06:07] <scroogie_> it calls "/production/file_metadatas/modules/glite32wn/siteinfo.d?recurse=true&&&links=manage" on the puppet master
[2010/02/19 04:06:14] <scroogie_> see the two empty parameters?
[2010/02/19 04:06:18] @ Quit: ppickfor: Ping timeout: 260 seconds
[2010/02/19 04:06:18] <scroogie_> what could that be?
[2010/02/19 04:07:05] <tim|imac> i think that's fairly normal, the way the REST request is build
[2010/02/19 04:07:09] @ verwilst joined channel #puppet
[2010/02/19 04:07:16] <scroogie_> mhm
[2010/02/19 04:07:18] @ Quit: Spruit_elf: Quit: Spruit_elf
[2010/02/19 04:07:40] <tim|imac> should give you an error at least, it's a valid request
[2010/02/19 04:07:43] <tim|imac> shouldn't!
[2010/02/19 04:07:51] <tim|imac> argh... why am I mistyping so much today?
[2010/02/19 04:07:58] <tim|imac> more coffee.
[2010/02/19 04:08:04] <scroogie_> hehe
[2010/02/19 04:08:24] <scroogie_> but a missing or empty variable would fit my nilClass error message
[2010/02/19 04:09:02] <tim|imac> true
[2010/02/19 04:10:31] <RedPepper> hmm
[2010/02/19 04:11:45] <RedPepper> now i got another error
[2010/02/19 04:11:47] <RedPepper> Could not parse for environment production: Syntax error at 'define'; expected '}' at /etc/puppet/modules/sshkeys/manifests/init.pp:6
[2010/02/19 04:12:25] <RedPepper> http://privatepaste.com/37d769171c is the new definiton
[2010/02/19 04:12:29] @ blahdeblah1 joined channel #puppet
[2010/02/19 04:12:33] @ Robbie_ joined channel #puppet
[2010/02/19 04:13:00] @ Quit: blahdeblah: Ping timeout: 252 seconds
[2010/02/19 04:13:03] <scroogie_> if I'd know which parameters these are, i could try specifying them
[2010/02/19 04:13:05] <scroogie_> :/
[2010/02/19 04:13:18] @ Quit: blahdeblah1: Client Quit
[2010/02/19 04:13:59] @ Quit: Robbie_: Read error: No route to host
[2010/02/19 04:14:31] @ Robbie_ joined channel #puppet
[2010/02/19 04:14:53] <RedPepper> tim|imac any suggestions what i have done wrong ?
[2010/02/19 04:16:44] @ alban2 joined channel #puppet
[2010/02/19 04:27:46] <scroogie_> how come i don't get a real ruby tracedump although I have trace enabled
[2010/02/19 04:30:44] <tim|imac> RedPepper: ok, back, taking a look now
[2010/02/19 04:30:57] <RedPepper> i think i got the error
[2010/02/19 04:31:00] <RedPepper> working on it
[2010/02/19 04:31:06] <tim|imac> it's defined
[2010/02/19 04:31:09] <tim|imac> with the ending d
[2010/02/19 04:31:32] <tim|imac> remove line 3 :)
[2010/02/19 04:31:57] <tim|imac> you have the same line twice, first time without the d
[2010/02/19 04:32:01] <tim|imac> according to your paste
[2010/02/19 04:32:19] <tim|imac> RedPepper: ^^
[2010/02/19 04:32:21] @ Quit: swygue: Ping timeout: 260 seconds
[2010/02/19 04:32:24] <RedPepper> k
[2010/02/19 04:33:28] <RedPepper> Invalid argument of type Array to 'defined' at /etc/puppet/modules/sshkeys/manifests/init.pp:6 on node
[2010/02/19 04:34:02] <tim|imac> can you paste me the first 10 lines again?
[2010/02/19 04:34:20] <RedPepper> w8
[2010/02/19 04:35:02] <RedPepper> http://privatepaste.com/d1d1a8c1ca
[2010/02/19 04:36:27] <scroogie_> ok, one of the parameters was recurselimit
[2010/02/19 04:36:31] <scroogie_> one missing still
[2010/02/19 04:36:33] <scroogie_> ;)
[2010/02/19 04:38:15] <tim|imac> heh
[2010/02/19 04:38:27] <tim|imac> remove the line after the if ! defined :)
[2010/02/19 04:38:36] <tim|imac> you only want it defined if it's not yet defined
[2010/02/19 04:38:44] @ Quit: jfreeman: Read error: Connection reset by peer
[2010/02/19 04:38:47] <tim|imac> so you kind of break that construct if you define it anyway after that :)
[2010/02/19 04:40:19] <RedPepper> the line is now if ! defined
[2010/02/19 04:40:39] <tim|imac> huh?
[2010/02/19 04:40:56] <RedPepper> or what you mean
[2010/02/19 04:41:05] <RedPepper> i am totally confused now
[2010/02/19 04:41:08] <tim|imac> http://privatepaste.com/495536f6ab
[2010/02/19 04:41:56] @ warreng joined channel #puppet
[2010/02/19 04:42:32] <RedPepper> ok
[2010/02/19 04:42:35] <tim|imac> or http://privatepaste.com/a459aa9c0c if you think it's easier to read :)
[2010/02/19 04:42:38] <tim|imac> but same content
[2010/02/19 04:43:20] <scroogie_> HA!
[2010/02/19 04:43:21] <scroogie_> it works!
[2010/02/19 04:43:34] <scroogie_> when I set the "recurselimit" and "ignore" parameters, it works
[2010/02/19 04:43:38] <scroogie_> that must be a bug surely
[2010/02/19 04:44:23] <RedPepper> actually puppet now complains about the array arguments
[2010/02/19 04:44:26] <RedPepper> Invalid argument of type Array to 'defined' at
[2010/02/19 04:44:46] <tim|imac> which version of puppet are you running?
[2010/02/19 04:45:00] <scroogie_> where is the puppet bugtracker?
[2010/02/19 04:45:12] <RedPepper> puppet --version
[2010/02/19 04:45:12] <RedPepper> 0.24.8
[2010/02/19 04:45:13] <tim|imac> scroogie_: project.reductivelabs.com
[2010/02/19 04:45:45] <RedPepper> the newer ones are masked
[2010/02/19 04:45:49] @ Quit: alban2: Quit: Leaving.
[2010/02/19 04:45:57] <tim|imac> RedPepper: ah found it... you pass it an array... hm... that's fairly bothersome
[2010/02/19 04:46:03] <tim|imac> let me think about a proper solution
[2010/02/19 04:46:22] * RedPepper gives tim|imac another cup of coffee
[2010/02/19 04:46:23] <RedPepper> ;)
[2010/02/19 04:46:38] <tim|imac> what you really want is to turn things around a bit, make the array the name of the resource
[2010/02/19 04:46:46] <tim|imac> because that way you can loop through it
[2010/02/19 04:47:24] @ swygue joined channel #puppet
[2010/02/19 04:48:00] <RedPepper> i thought puppet cannot use loops ?
[2010/02/19 04:48:02] <tim|imac> actually, you wrote your entire definition in a way that you expect it to automagically loop through the $user variable
[2010/02/19 04:48:12] <RedPepper> yeah
[2010/02/19 04:48:27] <RedPepper> i also thought it for the filename variable
[2010/02/19 04:48:39] <RedPepper> but this doesn't work either
[2010/02/19 04:49:06] <tim|imac> hm... that's going to be a bit of work to rewrite, though
[2010/02/19 04:49:20] <tim|imac> lines like $remotedir = "/home/${user}/.ssh" won't work either
[2010/02/19 04:49:25] <tim|imac> because $user is an array
[2010/02/19 04:49:32] <RedPepper> yeah
[2010/02/19 04:49:39] <RedPepper> i thought it
[2010/02/19 04:50:36] <tim|imac> if you rewrite your definition so it's called like so: authorized-keys { $key_users : place => "home", ensure => present; }
[2010/02/19 04:50:48] <RedPepper> ok no problem
[2010/02/19 04:50:50] <tim|imac> then puppet will create a new authorized-keys resource for each item of the array
[2010/02/19 04:51:03] <tim|imac> it only works for the namevar, not for any parameter
[2010/02/19 04:51:21] <RedPepper> okay
[2010/02/19 04:51:29] <RedPepper> i thought of it earlier
[2010/02/19 04:51:34] <tim|imac> actually, you can easily do s/$user/$name/g in your recipe
[2010/02/19 04:51:40] <tim|imac> euh
[2010/02/19 04:51:48] <tim|imac> start with s/$name/$place/g
[2010/02/19 04:51:54] <tim|imac> then s/$user/$name/g
[2010/02/19 04:52:01] <tim|imac> and I think you'll be 99% done
[2010/02/19 04:52:27] <tim|imac> more coffee.
[2010/02/19 04:55:29] <RedPepper> changed
[2010/02/19 04:56:21] <RedPepper> looks now http://privatepaste.com/6fe4422d2d
[2010/02/19 04:59:24] <tim|imac> first line, the define is incorrect
[2010/02/19 04:59:29] <tim|imac> $name is always defined as the name
[2010/02/19 04:59:34] <tim|imac> change it in $place
[2010/02/19 04:59:46] <tim|imac> you don't have to tell it explicitly that it'll get a $name :)
[2010/02/19 05:00:08] <tim|imac> so define authorized-keys($place, $ensure=present) {
[2010/02/19 05:00:31] @ Quit: swygue: Quit: Ex-Chat
[2010/02/19 05:00:47] <tim|imac> also s/${user}/${name}/g
[2010/02/19 05:01:35] <RedPepper> done
[2010/02/19 05:08:13] @ mattwynne joined channel #puppet
[2010/02/19 05:11:55] @ alban2 joined channel #puppet
[2010/02/19 05:12:39] <tim|imac> RedPepper: should work now?
[2010/02/19 05:12:46] <RedPepper> w8
[2010/02/19 05:14:21] <RedPepper> Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: Authorized-keys[root]
[2010/02/19 05:14:39] <tim|imac> argh
[2010/02/19 05:14:40] <tim|imac> of course
[2010/02/19 05:14:44] <tim|imac> you have two locations
[2010/02/19 05:14:45] <tim|imac> but
[2010/02/19 05:14:59] <tim|imac> if you remove one (for testing only, just comment it out) it works, right?
[2010/02/19 05:15:29] <RedPepper> Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition: User[home] is already defined in file /etc/puppet/modules/sshkeys/manifests/init.pp at line 7; cannot redefine at /etc/puppet/modules/sshkeys/manifests/init.pp:7 on node asgard.redpeppercluster.de
[2010/02/19 05:17:57] <tim|imac> you replace one occurrance incorrect :)
[2010/02/19 05:18:04] <tim|imac> User[$name]
[2010/02/19 05:18:22] @ Quit: maxagaz: Read error: No route to host
[2010/02/19 05:18:29] <tim|imac> RedPepper: you sound a bit new to this all, isn't this recipe a bit complicated to start out with?
[2010/02/19 05:18:42] <RedPepper> yeah
[2010/02/19 05:18:43] * tim|imac is going to have to leave you hanging soon... work awaits here
[2010/02/19 05:18:49] <RedPepper> me too
[2010/02/19 05:19:03] <RedPepper> i think i would make it easier with only one user
[2010/02/19 05:19:09] <RedPepper> i can trim it down
[2010/02/19 05:19:21] <RedPepper> only have systems where either the user root exists and used
[2010/02/19 05:19:23] @ Quit: warreng: Quit: warreng
[2010/02/19 05:19:24] <RedPepper> or a sudo user
[2010/02/19 05:19:31] <tim|imac> not that I don't want to help you, but I really need to continue here... I'd start with trimming it down, indeed, and working upwards from there
[2010/02/19 05:19:41] <RedPepper> yeah
[2010/02/19 05:19:46] <RedPepper> you helped me so much
[2010/02/19 05:19:56] <RedPepper> so i am very thankful
[2010/02/19 05:20:09] * RedPepper hopes that is the correct word ^^
[2010/02/19 05:20:21] <tim|imac> ok then, good luck with it :) and keep asking in here, there's bound to be someone else in here soon who doesn't mind helping you :) #puppet is like that
[2010/02/19 05:20:31] <RedPepper> yeah ;)
[2010/02/19 05:20:44] <RedPepper> and i really like puppet with each code line i wrote
[2010/02/19 05:20:56] <tim|imac> und jetz, an die arbeit :)
[2010/02/19 05:20:56] @ Quit: biertie: Quit: I'm off :)
[2010/02/19 05:21:02] <RedPepper> verdammt
[2010/02/19 05:21:03] @ biertie joined channel #puppet
[2010/02/19 05:21:08] <RedPepper> du sprichst ja deutsch :p
[2010/02/19 05:21:27] @ maxagaz joined channel #puppet
[2010/02/19 05:21:27] <tim|imac> hehehe yeah, I'm dutch, we tend to be polyglots ;-)
[2010/02/19 05:21:38] <RedPepper> hehe
[2010/02/19 05:21:48] <RedPepper> but thanks a lot
[2010/02/19 05:22:08] <RedPepper> i have learned so much with this debugging stuff
[2010/02/19 05:22:27] @ warreng joined channel #puppet
[2010/02/19 05:22:34] @ warreng left channel #puppet ()
[2010/02/19 05:25:32] @ jfreeman joined channel #puppet
[2010/02/19 05:27:48] @ MattyM joined channel #puppet
[2010/02/19 05:36:11] @ Quit: teyo: Quit: teyo
[2010/02/19 05:39:22] <zeroXten> any idea what the following error means? "err: Could not retrieve catalog from remote server: undefined method `closed?' for nil:NilClass"? cheers
[2010/02/19 05:41:45] @ Quit: xerxas: Quit: Leaving.
[2010/02/19 05:44:03] <soren> zeroXten: I hit that a few days ago. It turned out to be because it couldn't reach the server or something like that.
[2010/02/19 05:45:25] <soren> soren: I think the fix (for me, but that may not make sense in your environment) was to add "puppet" as an alias to my localhost (this was for a small test setup) in /etc/hosts
[2010/02/19 05:45:37] <soren> Wow, I just wrote to myself. I haven't done that in years.
[2010/02/19 05:45:46] <soren> zeroXten: ^^ was for you.
[2010/02/19 05:46:57] <zeroXten> hehe
[2010/02/19 05:46:58] <zeroXten> ;)
[2010/02/19 05:47:17] <zeroXten> thanks, but i do believe my host can be reached... it has managed to get a certificate
[2010/02/19 05:48:18] * zeroXten turns on debugging
[2010/02/19 05:51:30] <zeroXten> well, that didn't helpe
[2010/02/19 05:51:32] <zeroXten> -e
[2010/02/19 05:54:33] @ odyi_ joined channel #puppet
[2010/02/19 05:54:47] @ Spruit_elf joined channel #puppet
[2010/02/19 05:55:42] @ Quit: odyi: Read error: Connection reset by peer
[2010/02/19 05:56:29] <zeroXten> i'm guessing its some TLS stuff which is breaking
[2010/02/19 05:59:29] @ ohadlevy joined channel #puppet
[2010/02/19 05:59:40] <RedPepper> tim|imac
[2010/02/19 05:59:45] <RedPepper> i got the error
[2010/02/19 06:00:10] <RedPepper> you cannot use a Array inside a resource
[2010/02/19 06:00:27] <scroogie_> zeroXten: have you checked what the puppetmaster logs?
[2010/02/19 06:00:41] @ Quit: jfreeman: Read error: Connection reset by peer
[2010/02/19 06:00:45] <RedPepper> what i mean is that $user isn't allowed to be an Array in User[$user]
[2010/02/19 06:01:35] <ohadlevy> RedPepper: use it with a define
[2010/02/19 06:02:30] <RedPepper> u mean i redefine user ?
[2010/02/19 06:02:40] @ Quit: p3rror: Read error: Operation timed out
[2010/02/19 06:02:53] @ p3rror joined channel #puppet
[2010/02/19 06:03:00] <ohadlevy> RedPepper: something like http://gist.github.com/113362
[2010/02/19 06:03:10] @ Quit: Spruit_elf: Quit: Spruit_elf
[2010/02/19 06:03:49] @ xerxas joined channel #puppet
[2010/02/19 06:04:24] @ Quit: p3rror: Read error: Operation timed out
[2010/02/19 06:05:24] <zeroXten> scroogie_: hmmm, are they going to differ from the debug output? I'll take a look
[2010/02/19 06:06:22] <zeroXten> ahh, interesting
[2010/02/19 06:10:14] <scroogie_> apparently it did
[2010/02/19 06:10:55] <zeroXten> yeah
[2010/02/19 06:19:48] @ skiold joined channel #puppet
[2010/02/19 06:20:26] <zeroXten> right, time to wipe the slate clean
[2010/02/19 06:25:11] @ RedPepper is now known as zz_RedPepper
[2010/02/19 06:26:59] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/02/19 06:32:13] <sts> does anybody know whether there is a version of concatenated_file.pp working for puppet on debian/lenny?
[2010/02/19 06:33:49] <sts> in the HEAD revision, it's already using a puppet function not implemented in 0.24.5 (regsubst) instead of the old GLOB one.
[2010/02/19 06:34:34] <Volcane> where's this concatenated_file.pp?
[2010/02/19 06:35:51] <sts> Volcane: it's part of David Schmitt's puppet-common module: http://git.black.co.at/?p=module-common;a=tree;f=manifests/defines
[2010/02/19 06:36:19] <Volcane> ah that one, kewl
[2010/02/19 06:36:35] <Volcane> well its a revision system, surely you can just go back in time and get one that wroks?
[2010/02/19 06:37:31] <sts> yeah, i was looking for someone who can tell me which one works best ,-)
[2010/02/19 06:38:52] <tim|imac> sts: I'd advise you to upgrade puppet on your lenny hosts, it's worth it
[2010/02/19 06:39:04] * Volcane has his own which will still work, but I'll also use regex soon in it
[2010/02/19 06:39:06] <sts> tim|imac: to which version/package?
[2010/02/19 06:39:10] <Volcane> but yes, dont run old puppets
[2010/02/19 06:39:34] <tim|imac> at the very least 0.24.8, but 0.25.4 is working great on Lenny for us
[2010/02/19 06:39:47] <sts> i didn't miss a feature in the stable package until i came to concatenated file
[2010/02/19 06:39:51] <tim|imac> it's in the unstable repo from Debian, but don't let that scare you
[2010/02/19 06:40:03] <tim|imac> there are also a lot of performance improvements
[2010/02/19 06:40:53] <sts> i don't really like to use backports unless it's really needed.
[2010/02/19 06:42:28] <sts> tim|imac: unstable? not testing?
[2010/02/19 06:42:47] <tim|imac> that's for you to decide, of course :) but puppet is still in heavy development, each iteration is getting better in almost all things compared to the last
[2010/02/19 06:43:06] <tim|imac> testing is ok, too, unstable has some additional fixes, but you're probably not running into those problems
[2010/02/19 06:43:13] <tim|imac> the one in backports is fine too, btw
[2010/02/19 06:46:21] <sts> is it ok, to run puppetmaster from backports and the puppet clients from lenny?
[2010/02/19 06:46:45] <sts> just until i have everything upgraded.
[2010/02/19 06:47:59] <tim|imac> yeah
[2010/02/19 06:48:03] <tim|imac> just not the other way around :)
[2010/02/19 06:48:25] <tim|imac> newer puppetmasters are backwards compatible with clients, newer clients and older puppetmasters break, generally
[2010/02/19 06:48:39] <tim|imac> in my experience, not sure if this is by design
[2010/02/19 06:53:22] @ p3rror joined channel #puppet
[2010/02/19 06:59:08] @ inveratulo joined channel #puppet
[2010/02/19 06:59:18] @ Quit: skiold: Quit: skiold
[2010/02/19 07:00:45] @ mezgani joined channel #puppet
[2010/02/19 07:01:10] @ Quit: mezgani: Remote host closed the connection
[2010/02/19 07:01:21] @ lanky joined channel #puppet
[2010/02/19 07:01:41] @ Quit: p3rror: Quit: Quitte
[2010/02/19 07:01:45] @ Quit: mfournier: Ping timeout: 260 seconds
[2010/02/19 07:02:09] @ p3rror joined channel #puppet
[2010/02/19 07:03:16] @ Quit: ckauhaus: Read error: Operation timed out
[2010/02/19 07:07:30] @ ckauhaus joined channel #puppet
[2010/02/19 07:14:12] @ Quit: tim|imac: Read error: Operation timed out
[2010/02/19 07:14:26] @ twisla_ joined channel #puppet
[2010/02/19 07:14:43] @ Quit: nakano: Read error: Operation timed out
[2010/02/19 07:14:47] @ nakano_ joined channel #puppet
[2010/02/19 07:15:04] @ skiold joined channel #puppet
[2010/02/19 07:15:11] @ tim|imac joined channel #puppet
[2010/02/19 07:15:18] @ Quit: vzctl_: Read error: Operation timed out
[2010/02/19 07:15:36] @ Quit: twisla: Read error: Connection reset by peer
[2010/02/19 07:16:31] @ Quit: sparagos_away: Ping timeout: 240 seconds
[2010/02/19 07:16:34] @ sparagos_away joined channel #puppet
[2010/02/19 07:16:51] @ vzctl_ joined channel #puppet
[2010/02/19 07:27:53] @ twisla_ is now known as twisla
[2010/02/19 07:29:25] @ francois joined channel #puppet
[2010/02/19 07:34:43] @ Quit: shug: Quit: Leaving
[2010/02/19 07:36:06] <scroogie_> do you guys use passenger or mongrel?
[2010/02/19 07:36:38] @ lucky__ joined channel #puppet
[2010/02/19 07:36:53] @ lucky__ left channel #puppet ()
[2010/02/19 07:37:12] @ Quit: mattwynne: Remote host closed the connection
[2010/02/19 07:41:36] @ Quit: ckauhaus: Read error: Operation timed out
[2010/02/19 07:46:33] @ Pupeno joined channel #puppet
[2010/02/19 07:46:38] <Pupeno> Hello.
[2010/02/19 07:47:07] <Pupeno> How can I recursively have permissions 644 for files and 755 for dirs?
[2010/02/19 07:47:59] <kjetilho> Pupeno: Puppet will automatically add x for directories
[2010/02/19 07:48:08] <Pupeno> kjetilho: awesome!
[2010/02/19 07:50:02] @ brothers joined channel #puppet
[2010/02/19 07:50:37] @ bug joined channel #puppet
[2010/02/19 07:52:44] @ jab_doa joined channel #puppet
[2010/02/19 07:54:06] @ Quit: pacalm: Ping timeout: 252 seconds
[2010/02/19 07:57:17] @ pacalm joined channel #puppet
[2010/02/19 07:58:13] @ drebs joined channel #puppet
[2010/02/19 07:58:57] <drebs> hello, we have an nginx + mongrel setup, and we're having the following problem:
[2010/02/19 07:58:59] <drebs> puppetd[9325]: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol
[2010/02/19 07:59:04] <drebs> but that's just on some nodes..
[2010/02/19 08:06:58] <masterzen> drebs: looks like the server didn't reply with SSL traffic
[2010/02/19 08:08:03] @ mattwynne joined channel #puppet
[2010/02/19 08:08:09] <sts> is there a way to install one untrusted package (debian-backports-keyring) without allowing to install untrusted packages in general?
[2010/02/19 08:10:08] <j00bar> is there a way to create dependencies between configuration atoms? make sure that a package is installed before an exec is run, make sure a file is in place before an exec is run, etc?
[2010/02/19 08:10:33] <mark> j00bar: require => File[etc];
[2010/02/19 08:11:03] <j00bar> mark: tQ. what about multiple -- would that be require => [ File[foo], Package[bar] ] ?
[2010/02/19 08:11:10] <mark> yes
[2010/02/19 08:11:20] <j00bar> fan friggin tastic.
[2010/02/19 08:11:38] @ Quit: xerxas: Ping timeout: 265 seconds
[2010/02/19 08:17:28] @ xerxas joined channel #puppet
[2010/02/19 08:20:50] <tim|imac> sts: we simply import the key that the package is signed with
[2010/02/19 08:24:55] @ Quit: vinci: Ping timeout: 252 seconds
[2010/02/19 08:25:10] @ Quit: f3ew: Read error: Connection reset by peer
[2010/02/19 08:25:17] @ Spruit_elf joined channel #puppet
[2010/02/19 08:25:26] <sts> tim|imac: already fixed that with' before =>'
[2010/02/19 08:28:44] @ lak joined channel #puppet
[2010/02/19 08:30:06] <sts> tim|imac: and are you using backports per default (so priority of ALL backports) or are you just pinning puppet + dependencies to a higher version?
[2010/02/19 08:30:56] <tim|imac> we just pin puppet, puppet-common en puppetmaster to a higher version
[2010/02/19 08:30:59] <tim|imac> and facter
[2010/02/19 08:32:39] <sts> tim|imac: could you paste me the pins somewhere? ;-)
[2010/02/19 08:34:38] <tim|imac> http://pastie.org/832654
[2010/02/19 08:35:12] <sts> thank you
[2010/02/19 08:38:06] <scroogie_> can a package depend on a package (for the installation order)?
[2010/02/19 08:38:36] <agaffney> yes
[2010/02/19 08:38:59] <tim|imac> scroogie_: doesn't your package manager handle that kind of ordering?
[2010/02/19 08:39:06] @ Quit: himynameisthor: Ping timeout: 240 seconds
[2010/02/19 08:39:09] @ himynameisthor joined channel #puppet
[2010/02/19 08:39:39] <scroogie_> tim|imac: it's no actual package dependency, it's just broken
[2010/02/19 08:39:45] @ f3ew joined channel #puppet
[2010/02/19 08:39:48] <tim|imac> heh ok
[2010/02/19 08:39:50] <scroogie_> its in the OFED distribution
[2010/02/19 08:39:51] <scroogie_> http://www.openfabrics.org/builds/ofed-1.5/release/
[2010/02/19 08:40:02] <scroogie_> i should just rebuild that RPM manually
[2010/02/19 08:40:05] <scroogie_> but I'm too lazy :P
[2010/02/19 08:43:14] <j00bar> are all of the facts reported by facter available to an .erb template?
[2010/02/19 08:46:35] <kjetilho> yes
[2010/02/19 08:47:21] <j00bar> tQ -- sorry if i splattered any n00bsauce on ya.
[2010/02/19 08:57:18] @ Quit: brothers: Quit: brothers
[2010/02/19 08:57:23] <scroogie_> mhm
[2010/02/19 08:57:48] <scroogie_> how would I start a service if a specific kernel module is not loaded?
[2010/02/19 08:59:51] @ lak_ joined channel #puppet
[2010/02/19 09:00:27] @ Quit: skiold: Quit: skiold
[2010/02/19 09:00:40] @ Quit: lak: Ping timeout: 272 seconds
[2010/02/19 09:00:40] @ lak_ is now known as lak
[2010/02/19 09:02:04] <scroogie_> iow, should the status command return 0 / -1 ?
[2010/02/19 09:02:25] @ Quit: bug: Quit: bug
[2010/02/19 09:04:42] @ Quit: afletcher_: Quit: afletcher_
[2010/02/19 09:05:07] @ elementai joined channel #puppet
[2010/02/19 09:05:12] @ zz_RedPepper is now known as RedPepper
[2010/02/19 09:07:03] <tim|imac> scroogie_: if you're refering to an exitcode of an lsb compatible initscript, those should never be negative :)
[2010/02/19 09:07:15] <gepetto> ::trac:: w2ld7y6fgg6qgk5 created @ http://reductivelabs.com/trac/puppet/wiki/w2ld7y6fgg6qgk5?version=1
[2010/02/19 09:07:18] <tim|imac> s/compatible/compliant/
[2010/02/19 09:07:53] <RedPepper> tim|imac, i finnaly made a version i am satisfied with
[2010/02/19 09:07:57] <jamesturnbull> damn spammers
[2010/02/19 09:08:33] <tim|imac> RedPepper: good :D
[2010/02/19 09:08:53] <RedPepper> it is not as good as i intended to do with Arrays
[2010/02/19 09:08:56] <scroogie_> ah, i see
[2010/02/19 09:08:57] <RedPepper> but however it works
[2010/02/19 09:08:58] <RedPepper> :D
[2010/02/19 09:09:28] <scroogie_> so i need to write a command into Package { status => } that returns the correct return code
[2010/02/19 09:10:03] <scroogie_> so that is just bash?
[2010/02/19 09:10:27] <RedPepper> if you only need lsb compatible init scripts yes
[2010/02/19 09:10:45] <RedPepper> gentoo for example have extended them in a very good manner
[2010/02/19 09:10:55] @ TREllis joined channel #puppet
[2010/02/19 09:13:54] @ Quit: lak: Ping timeout: 248 seconds
[2010/02/19 09:14:41] @ Quit: elementai: Quit: Lost terminal
[2010/02/19 09:16:00] @ vinci joined channel #puppet
[2010/02/19 09:16:00] <gepetto> ::trac:: Whos Using Puppet edited @ http://reductivelabs.com/trac/puppet/wiki/WhosUsingPuppet?version=184
[2010/02/19 09:16:50] @ jmccune joined channel #puppet
[2010/02/19 09:20:49] <jmccune> Good morning
[2010/02/19 09:21:53] @ Quit: j00bar: Quit: j00bar
[2010/02/19 09:21:59] <jmccune> I've been looking for a puppetmaster vmware appliance and there don't seem to be any published online.
[2010/02/19 09:22:18] <jmccune> Anyone have any insights as to if one exists?
[2010/02/19 09:25:07] @ tripoux joined channel #puppet
[2010/02/19 09:26:51] @ Quit: pacalm: Quit: pacalm
[2010/02/19 09:28:09] @ cliff-hm joined channel #puppet
[2010/02/19 09:35:09] @ Quit: Pupeno: Quit: Pupeno
[2010/02/19 09:39:41] @ pacalm joined channel #puppet
[2010/02/19 09:42:21] @ Quit: TREllis: Quit: leaving
[2010/02/19 09:43:11] @ afletcher joined channel #puppet
[2010/02/19 09:44:30] @ TREllis joined channel #puppet
[2010/02/19 09:54:30] <sts> how do i escape a string in puppet? eg so i can write "$FW" without using $FW as variable?
[2010/02/19 09:55:23] @ Bass10 joined channel #puppet
[2010/02/19 09:56:16] @ bobbyz joined channel #puppet
[2010/02/19 09:56:40] <ohadlevy> ${FW}
[2010/02/19 09:56:57] @ bug joined channel #puppet
[2010/02/19 09:57:00] @ mpdehaan_ joined channel #puppet
[2010/02/19 09:57:16] <Volcane> ohadlevy: surely not?
[2010/02/19 09:57:30] <ohadlevy> volcane: hmm... maybe I didnt understand the question
[2010/02/19 09:57:31] <Volcane> ohadlevy: \$FW or '$FW'?
[2010/02/19 09:57:36] <Volcane> yeh :)
[2010/02/19 09:57:40] <ohadlevy> ah,
[2010/02/19 09:57:48] <ohadlevy> oops
[2010/02/19 09:58:11] <sts> oh, ok. i dind't expect it to be standard. :)
[2010/02/19 09:59:27] <doubleukay> guys, does the subscribe metaparam have an implicit require on the resource? e.g. if I subscribe => File[foo], do I still need to require => File[foo] ?
[2010/02/19 09:59:47] <sts> doubleukay: no you don't
[2010/02/19 10:00:00] <doubleukay> ok, thanks
[2010/02/19 10:00:02] <sts> doubleukay: just had a issue where i noticed this.
[2010/02/19 10:00:12] <doubleukay> this would make my manifests cleaner..
[2010/02/19 10:05:15] @ ckauhaus joined channel #puppet
[2010/02/19 10:10:07] @ brothers joined channel #puppet
[2010/02/19 10:11:33] @ Quit: giskard: Remote host closed the connection
[2010/02/19 10:13:24] @ jY joined channel #puppet
[2010/02/19 10:13:29] @ Quit: ohadlevy: Ping timeout: 256 seconds
[2010/02/19 10:13:41] @ Quit: ckauhaus: Ping timeout: 246 seconds
[2010/02/19 10:15:01] <tim|imac> is defined still dependend on the execution order? eg. I cannot rely on it, really?
[2010/02/19 10:15:38] @ lazzurs joined channel #puppet
[2010/02/19 10:16:02] @ Quit: Spruit_elf: Quit: Spruit_elf
[2010/02/19 10:17:07] <lazzurs> Hello all
[2010/02/19 10:17:31] <lazzurs> I have been looking at the performance of puppetmasterd and noticed it spends a lot of time doing this (from strace)
[2010/02/19 10:17:35] <lazzurs> sigprocmask(SIG_BLOCK, NULL, []) = 0
[2010/02/19 10:18:11] <lazzurs> now according to this link that should be because it is trying to register the signal handlers in the event loop http://www.mindbucket.com/2009/02/24/ruby-daemons-verifying-good-behavior/
[2010/02/19 10:18:41] <lazzurs> however from having had a quick look at the code (daemon.rb) it does not appear to be doing that
[2010/02/19 10:19:05] <lazzurs> so I was wondering if anyone had a sec to tell me where my very limited understanding of ruby has went wrong
[2010/02/19 10:19:13] <Volcane> its probably mongrel/webrick/rack that does it though?
[2010/02/19 10:19:25] <Volcane> since puppet relies on those for the networking etc
[2010/02/19 10:19:30] <lazzurs> ahhh
[2010/02/19 10:19:37] <lazzurs> that makes much more sense
[2010/02/19 10:19:48] <Volcane> it doesnt impilment its own webserver, instead use those
[2010/02/19 10:20:19] <lazzurs> indeed, I am using mongrel
[2010/02/19 10:20:38] <lazzurs> sounds like if it is mongrel causing that then maybe the puppet developers would do a better job of writing their own server
[2010/02/19 10:20:58] <Volcane> well I am also just guessing :)
[2010/02/19 10:21:16] <lazzurs> I am currently running with mongrel behind nginx. nginx I like however I am willing to change if that is not the current best practice
[2010/02/19 10:21:26] <lazzurs> Volcane: indeed, I will had a look in a sec to make sure
[2010/02/19 10:21:32] <lazzurs> s/had/have
[2010/02/19 10:23:14] @ Quit: errr: Read error: Connection reset by peer
[2010/02/19 10:24:13] @ skiold joined channel #puppet
[2010/02/19 10:24:22] <lazzurs> does anyone have any opinion on the performance any of the other ways of running puppetmaster than mongrel/nginx?
[2010/02/19 10:24:58] <barn> apache/passenger is good
[2010/02/19 10:25:21] <barn> I couldn't get nginx/passenger working when I tried, but I didn't try for very long
[2010/02/19 10:25:52] <barn> I was trying to package it, but gave up as the custom modules bit was a bit messy
[2010/02/19 10:25:59] <Volcane> lazzurs: how many machines are you trying to serve?
[2010/02/19 10:27:15] <lazzurs> Volcane: ~50 but the server has a slow CPU and I am doing manual parellel runs rather than letting puppetd run on the clients
[2010/02/19 10:27:30] <Volcane> 50 in parallel?
[2010/02/19 10:27:33] <lazzurs> but not parellel runs of all systems at once, maybe about 5-10 at a time
[2010/02/19 10:27:38] <Volcane> ok :)
[2010/02/19 10:27:45] <Volcane> mongrel/nginx should do fine
[2010/02/19 10:28:10] @ teyo joined channel #puppet
[2010/02/19 10:28:21] <sts> damnit. http://projects.reductivelabs.com/issues/2901
[2010/02/19 10:28:58] * Volcane 's avoiding passenger for puppet cos its such a mess of specific versions and black magic
[2010/02/19 10:29:01] <Volcane> mongrel just work
[2010/02/19 10:29:06] <Volcane> thats more important in my case
[2010/02/19 10:29:07] <jb> i use passenger 2.2.2 just fine
[2010/02/19 10:29:07] <jb> :P
[2010/02/19 10:29:11] <lazzurs> Volcane: maybe if it was not an AMD Athlon 1.2Ghz then it would but sadly on this hardware it is killing it. Compiling the catalog is taking +2500 seconds
[2010/02/19 10:29:19] <Volcane> hah
[2010/02/19 10:29:25] @ ccaum joined channel #puppet
[2010/02/19 10:29:29] <Volcane> thats funny :P
[2010/02/19 10:29:47] <lazzurs> Volcane: it is something, not sure funny is the word I would use
[2010/02/19 10:30:02] <sts> i'm using mongrel too
[2010/02/19 10:30:30] <lazzurs> I guess the other answer is to fix the signal handling in mongrel if it is doing it badly
[2010/02/19 10:31:28] @ Quit: bug: Quit: bug
[2010/02/19 10:33:00] @ Quit: alban2: Quit: Leaving.
[2010/02/19 10:34:07] @ alban2 joined channel #puppet
[2010/02/19 10:34:27] <sts> well, i thought 0.25.1 is working. :)
[2010/02/19 10:35:34] @ giskard joined channel #puppet
[2010/02/19 10:36:11] @ Quit: alban2: Client Quit
[2010/02/19 10:36:56] @ alban2 joined channel #puppet
[2010/02/19 10:37:14] <scroogie_> can i do a onlyif => package is not installed?
[2010/02/19 10:39:29] <Volcane> on an exec?
[2010/02/19 10:41:12] <scroogie_> on an augeas
[2010/02/19 10:41:35] <scroogie_> the damn infiniband packages are killing me
[2010/02/19 10:41:55] <Volcane> ah not sure, but i am guessing you can do whatever you want as long as it returns 0 and 1
[2010/02/19 10:42:01] <Volcane> but never used the augeas type
[2010/02/19 10:42:29] <lazzurs> scroogie_: the way I do that is with unless => 'rpmquery $package_name'
[2010/02/19 10:42:45] @ Quit: alban2: Quit: Leaving.
[2010/02/19 10:42:56] <lazzurs> of course swap rpmquery with $package_manager_of_choice
[2010/02/19 10:42:57] @ ckauhaus joined channel #puppet
[2010/02/19 10:45:00] @ swygue joined channel #puppet
[2010/02/19 10:46:05] @ Quit: ckauhaus: Client Quit
[2010/02/19 10:47:25] @ bug joined channel #puppet
[2010/02/19 10:47:51] <scroogie_> thx
[2010/02/19 10:48:58] <fred> running 'facter': "virtual => physical", "productname => VirtualBox" - am I misunderstanding something, or is that a bug?
[2010/02/19 10:49:04] <lazzurs> Volcane: hmm, not sure it is the signal handling in mongrel, just commented it all out, restarted puppetmaster and still it is sitting spending most of the time on the above syscall
[2010/02/19 10:49:38] @ eshamow joined channel #puppet
[2010/02/19 10:49:40] @ alban2 joined channel #puppet
[2010/02/19 10:51:01] <fred> also, 'uniqueid' gives the same results on two different virtualbox images (different UUIDs in dmidecode)
[2010/02/19 10:52:04] <Volcane> this 0.24.8 really is very fast
[2010/02/19 10:52:05] <Volcane> notice: Finished catalog run in -3248.54 seconds
[2010/02/19 10:52:13] <Volcane> it gives me back my time rather than take it
[2010/02/19 10:52:14] <Volcane> sigh
[2010/02/19 10:52:30] <doubleukay> lol
[2010/02/19 10:52:30] <SyTonnerre> Volcane, maybe it ran ntpd? ;)
[2010/02/19 10:52:30] <lazzurs> lol, nice
[2010/02/19 10:53:59] <Volcane> its these vmware machines
[2010/02/19 10:54:01] <Volcane> hate++
[2010/02/19 10:54:08] <SyTonnerre> Volcane, ah
[2010/02/19 10:54:49] <SyTonnerre> Didn't know the time can actually go backwards on them
[2010/02/19 10:55:20] <Volcane> i suspect $client crons ntpdate on them or something
[2010/02/19 10:55:27] <Volcane> havnt checked, just know they suck
[2010/02/19 10:55:36] <Volcane> causes lots of interesting things with my middleware too
[2010/02/19 10:55:38] <SyTonnerre> Volcane, I've only had that on a number of Via boards so far that the time was actually jumping back and forth like mad
[2010/02/19 10:57:18] <Volcane> on its own vmware wont step your clock back yeah
[2010/02/19 10:57:26] <Volcane> but dont discount stupid people doing stupid things
[2010/02/19 10:59:08] <SyTonnerre> I don't, they're very precious
[2010/02/19 11:02:04] @ Quit: alban2: Quit: Leaving.
[2010/02/19 11:02:35] @ rcrowley joined channel #puppet
[2010/02/19 11:03:04] @ Spruit_elf joined channel #puppet
[2010/02/19 11:03:49] @ Quit: Spruit_elf: Client Quit
[2010/02/19 11:04:35] @ Quit: pacalm: Quit: pacalm
[2010/02/19 11:05:16] @ cwebber joined channel #puppet
[2010/02/19 11:08:47] @ alban2 joined channel #puppet
[2010/02/19 11:14:34] @ jcape joined channel #puppet
[2010/02/19 11:14:41] @ Quit: giskard: Remote host closed the connection
[2010/02/19 11:15:23] @ Quit: mvn071: Quit: Leaving
[2010/02/19 11:16:04] @ Quit: littleidea: Read error: Connection reset by peer
[2010/02/19 11:19:34] <scroogie_> its so awesome seeing a recipe finally work O_o
[2010/02/19 11:25:11] @ lak joined channel #puppet
[2010/02/19 11:26:25] @ Quit: Robbie_: Remote host closed the connection
[2010/02/19 11:32:02] @ nigelk joined channel #puppet
[2010/02/19 11:32:09] @ kaptk2 joined channel #puppet
[2010/02/19 11:32:41] @ Quit: vinci: Ping timeout: 265 seconds
[2010/02/19 11:33:40] <inveratulo> Volcane: we had similar issues with an older unpatch ESX infrastructure server,... vm times were drifting by the hours, but only when someone logged into the shell. if no on logged in it never drifted
[2010/02/19 11:33:55] @ vinci joined channel #puppet
[2010/02/19 11:36:32] @ labrown joined channel #puppet
[2010/02/19 11:37:40] @ qwebirc83894 joined channel #puppet
[2010/02/19 11:38:06] @ Quit: qwebirc83894: Client Quit
[2010/02/19 11:40:32] @ alfism joined channel #puppet
[2010/02/19 11:45:16] @ Quit: danielbln: Quit: Leaving.
[2010/02/19 11:56:47] @ lilmatt joined channel #puppet
[2010/02/19 12:00:09] @ Quit: alban2: Quit: Leaving.
[2010/02/19 12:00:12] @ Quit: vinci: Ping timeout: 252 seconds
[2010/02/19 12:06:33] @ Quit: lanky: Remote host closed the connection
[2010/02/19 12:07:24] @ paxos joined channel #puppet
[2010/02/19 12:08:40] @ Quit: xerxas: Ping timeout: 256 seconds
[2010/02/19 12:10:19] @ Quit: MattyM: Quit: ta ta
[2010/02/19 12:10:37] @ Quit: lak: Ping timeout: 264 seconds
[2010/02/19 12:10:39] @ benkevan joined channel #puppet
[2010/02/19 12:14:05] @ xerxas joined channel #puppet
[2010/02/19 12:20:20] @ ppickfor joined channel #puppet
[2010/02/19 12:21:28] @ Quit: lutter: Quit: Leaving.
[2010/02/19 12:22:29] @ RSpacePope joined channel #puppet
[2010/02/19 12:22:48] @ lutter joined channel #puppet
[2010/02/19 12:23:21] @ danbeck joined channel #puppet
[2010/02/19 12:25:22] <danbeck> Hi guys. Got a quick question about module autoloading. So, I have a module with a class nameed foo defined in manifests/init.pp and a subclass called foo::bar in a file named bar.pp. Puppet autoloads the foo::bar class just fine, but if I created foo::bar::client and foo::bar::server class in the same bar.pp file, puppet can not find the class.
[2010/02/19 12:25:39] <danbeck> I can put foo::bar::client in the init.pp file and things are fine (as they should be)
[2010/02/19 12:25:52] <danbeck> Is there some additional file name magic I need to use here? Having trouble finding this info in the docs.
[2010/02/19 12:26:20] <jmccune> danbeck: You could have the module init.pp import *.pp
[2010/02/19 12:26:34] <jmccune> Which will make sure the class is loaded and defined
[2010/02/19 12:26:46] @ Quit: TREllis: Quit: leaving
[2010/02/19 12:26:51] @ Quit: Eghie: Quit: I'm sailing away
[2010/02/19 12:26:51] <danbeck> yes, I saw that in the docs and figured I would use it as a last resort. I'd rather follow normal best practices though, instead of always loading every module.
[2010/02/19 12:27:25] <jmccune> danbeck: I'm a fan of only using subclasses to override specific behavior
[2010/02/19 12:27:45] <jmccune> I've found having client / server subclasses isn't ideal in the long run.
[2010/02/19 12:28:28] <danbeck> The client and server versions of this particular package "mini-qmail" are vastly different configuration wise.
[2010/02/19 12:28:36] @ TREllis joined channel #puppet
[2010/02/19 12:28:42] <danbeck> They share a common config file location and package installation name though.
[2010/02/19 12:28:49] <danbeck> Other than that, there is nothign to override. They are just different.
[2010/02/19 12:28:51] @ thrain][ joined channel #puppet
[2010/02/19 12:29:11] @ Quit: Boney: Read error: Operation timed out
[2010/02/19 12:30:50] @ Boney joined channel #puppet
[2010/02/19 12:30:51] <danbeck> i the end it's just module organisation. I guess I could put everything in init.pp and be done with it.
[2010/02/19 12:31:12] <danbeck> they could be just easily called bar_client and bar_server.
[2010/02/19 12:31:51] @ Quit: joe-mac: Ping timeout: 252 seconds
[2010/02/19 12:34:27] @ Quit: jason^_: Quit: Lost terminal
[2010/02/19 12:34:39] @ vinci joined channel #puppet
[2010/02/19 12:34:54] @ jason^ joined channel #puppet
[2010/02/19 12:36:25] @ Quit: tmz: Ping timeout: 264 seconds
[2010/02/19 12:36:47] @ cperl joined channel #puppet
[2010/02/19 12:38:56] @ Quit: jaredrhine: Ping timeout: 268 seconds
[2010/02/19 12:44:59] @ shenson joined channel #puppet
[2010/02/19 12:45:22] <cperl> I have a question about using exec and file resources together. basically the logic i want is to run command A, if that succeeds, then do nothing. If it fails, then grab a temporary file from the puppetmaster and run command B referencing that file.
[2010/02/19 12:45:45] <cperl> I know i can use exec with onlyif/unless and require a file resource, but this leaves my temp file on the server
[2010/02/19 12:46:02] @ tmz joined channel #puppet
[2010/02/19 12:46:12] <cperl> anyway to get around that or should i just deal with leaving a temporary file behind?
[2010/02/19 12:47:08] <jbooth> exec { "command b": ... unless => "command a" } ? I guess that doesn't deal with the file you need.
[2010/02/19 12:47:39] <danbeck> So, I ended up using import "*" Thanks for the help jmccune.
[2010/02/19 12:47:44] @ fzzzt joined channel #puppet
[2010/02/19 12:47:47] <danbeck> in the end, it was just easier than reworking it all.
[2010/02/19 12:47:48] <danbeck> =)
[2010/02/19 12:48:02] <cperl> right, so then in that exec i am currently doing require => File["tmpfile"], but that makes the file permanent
[2010/02/19 12:48:21] <cperl> I just need it for one execution of command b
[2010/02/19 12:48:31] @ Quit: jcape: Ping timeout: 245 seconds
[2010/02/19 12:49:00] <fzzzt> Does anyone know if Puppet ever has a complete graph of all nodes and resource relationships?
[2010/02/19 12:49:02] @ Quit: thrain][: Quit: Lost terminal
[2010/02/19 12:49:32] <fzzzt> Since it compiles configs on demand, I'm guessing not
[2010/02/19 12:50:00] @ agagag joined channel #puppet
[2010/02/19 12:50:20] <Volcane> fzzzt: it doesnt really have inter node relationships atm, but you could probably construct it from a stored config database - but the nodes would be independant really
[2010/02/19 12:50:47] <jbooth> cperl: you can do scary magic with ensure=>absent on the file that requires command b potentially.
[2010/02/19 12:50:54] @ Quit: lutter: Quit: Leaving.
[2010/02/19 12:51:15] <jbooth> cperl: I used to do that to do a file.d/ build structure that only existed long enough to build the file, then nuked the whole .d structure.
[2010/02/19 12:51:40] <fzzzt> Volcane: I mean the node<->resource relationship, e.g. "what uses this file" or "what files does this node use"
[2010/02/19 12:52:05] <Volcane> 'what uses this file' is hard - but probably in the stored config database easyish
[2010/02/19 12:52:10] <Volcane> whats on a node is easy
[2010/02/19 12:52:21] @ lutter joined channel #puppet
[2010/02/19 12:52:33] <Volcane> I have some old script for 0.24.x that can tell you exactly whats on a node http://www.devco.net/archives/2009/07/30/what_does_puppet_manage_on_a_node.php
[2010/02/19 12:52:34] * jbooth really wishes that system created types were a little less ... free form.
[2010/02/19 12:52:39] <fzzzt> i need to make a script to determine the former, and was hoping there would be a starting point
[2010/02/19 12:53:20] <cperl> jbooth: hmm, interesting thought, i think that would work
[2010/02/19 12:54:13] <jbooth> cperl: Really what you're asking for is a negative require, which might be handy to add but also throws the question about puppet being deterministic somewhat out the window.
[2010/02/19 12:54:54] @ joe-mac joined channel #puppet
[2010/02/19 12:55:40] <fzzzt> hmm I don't have a localconfig.yaml
[2010/02/19 12:56:27] @ Quit: benkevan: Remote host closed the connection
[2010/02/19 12:57:00] @ Quit: lilmatt: Quit: lilmatt
[2010/02/19 13:00:41] <cperl> jbooth: assuming i added another file with ensure=>absent and required command b, then wouldn't puppet grab the file, do the command stuff, and then delete the file every time? Just seems worse off than just leaving the file behind...
[2010/02/19 13:01:19] @ Quit: danbeck: Quit: danbeck
[2010/02/19 13:02:15] <jbooth> cperl: it would, but if you don't want to leave a mess...
[2010/02/19 13:02:21] @ danbeck joined channel #puppet
[2010/02/19 13:02:28] <cperl> jbooth: lol, fair enough i suppose
[2010/02/19 13:03:11] @ ohadlevy joined channel #puppet
[2010/02/19 13:05:28] @ Quit: vinci: Ping timeout: 252 seconds
[2010/02/19 13:06:32] @ vinci joined channel #puppet
[2010/02/19 13:10:28] @ mvn071 joined channel #puppet
[2010/02/19 13:10:36] @ Quit: ohadlevy: Ping timeout: 245 seconds
[2010/02/19 13:12:44] @ Quit: danbeck: Ping timeout: 272 seconds
[2010/02/19 13:15:14] @ jcape joined channel #puppet
[2010/02/19 13:15:51] @ lak joined channel #puppet
[2010/02/19 13:22:44] @ thrain][ joined channel #puppet
[2010/02/19 13:25:19] @ Quit: cperl: Quit: leaving
[2010/02/19 13:27:16] @ lilmatt joined channel #puppet
[2010/02/19 13:30:12] @ Quit: bug: Quit: bug
[2010/02/19 13:32:12] @ Quit: thrain][: Quit: leaving
[2010/02/19 13:32:16] @ Quit: jcape: Ping timeout: 245 seconds
[2010/02/19 13:33:59] @ rcrowley_ joined channel #puppet
[2010/02/19 13:34:48] @ Quit: cwebber: Quit: cwebber
[2010/02/19 13:37:26] @ Quit: rcrowley: Ping timeout: 272 seconds
[2010/02/19 13:37:26] @ rcrowley_ is now known as rcrowley
[2010/02/19 13:39:01] @ jaredrhine joined channel #puppet
[2010/02/19 13:40:24] @ jes5 joined channel #puppet
[2010/02/19 13:41:07] @ glaw joined channel #puppet
[2010/02/19 13:43:50] @ Quit: nareshov: Remote host closed the connection
[2010/02/19 13:46:39] @ jcape joined channel #puppet
[2010/02/19 13:47:25] @ giskard joined channel #puppet
[2010/02/19 13:49:04] @ Quit: glaw: Quit: Leaving.
[2010/02/19 13:49:37] @ Quit: rcrowley: Quit: rcrowley
[2010/02/19 13:50:04] @ glaw joined channel #puppet
[2010/02/19 13:51:24] @ Quit: giskard: Remote host closed the connection
[2010/02/19 13:51:36] @ glaw left channel #puppet ()
[2010/02/19 13:52:36] @ glaw joined channel #puppet
[2010/02/19 13:53:16] @ Quit: xerxas: Quit: Leaving.
[2010/02/19 13:53:55] @ _Lemon_ joined channel #puppet
[2010/02/19 13:54:33] @ Wh00p is now known as Whoop
[2010/02/19 13:54:46] @ Quit: Whoop: Changing host
[2010/02/19 13:54:46] @ Whoop joined channel #puppet
[2010/02/19 13:57:00] @ Quit: teyo: Quit: teyo
[2010/02/19 13:58:09] <_Lemon_> Hello all, I am trying to set up foreman on my only puppet master and I'm running the command "rake puppet:import:hosts_and_facts RAILS_ENV=production" but it's giving this error: Could not find table 'hosts'
[2010/02/19 13:58:21] <_Lemon_> What am I doing horribly wrong? (I'm not using storedconfigs)
[2010/02/19 14:00:05] <joe-mac> do you have tyo create the db first/ idk ohadlevy is not around i think it is bedtime for him
[2010/02/19 14:01:06] @ Quit: glaw: Ping timeout: 240 seconds
[2010/02/19 14:02:39] @ Quit: lutter: Read error: Operation timed out
[2010/02/19 14:02:56] <_Lemon_> Oh, I'm an idiot, I missed this command: "RAILS_ENV=production rake db:migrate"
[2010/02/19 14:04:06] @ cwebber joined channel #puppet
[2010/02/19 14:05:21] @ gwar99991 joined channel #puppet
[2010/02/19 14:05:30] <_Lemon_> Thanks though!
[2010/02/19 14:16:41] @ Quit: skiold: Quit: skiold
[2010/02/19 14:18:13] @ cruxeternus joined channel #puppet
[2010/02/19 14:20:24] @ tonyskapunk joined channel #puppet
[2010/02/19 14:20:44] @ lutter joined channel #puppet
[2010/02/19 14:21:38] @ Alagar joined channel #puppet
[2010/02/19 14:21:38] @ Quit: Alagar: Excess Flood
[2010/02/19 14:27:01] @ Quit: mattwynne: Remote host closed the connection
[2010/02/19 14:29:57] @ Alagar joined channel #puppet
[2010/02/19 14:29:58] @ Quit: Alagar: Excess Flood
[2010/02/19 14:31:26] @ Quit: kaptk2: Ping timeout: 245 seconds
[2010/02/19 14:33:43] @ Alagar joined channel #puppet
[2010/02/19 14:35:58] @ Quit: labrown: Quit: Leaving
[2010/02/19 14:38:42] @ gpurrenhage joined channel #puppet
[2010/02/19 14:38:51] @ Quit: lutter: Quit: Leaving.
[2010/02/19 14:44:14] @ tomthebomb joined channel #puppet
[2010/02/19 14:44:24] @ Quit: lak: Quit: lak
[2010/02/19 14:45:19] <tomthebomb> is the behavior of puppetd such that the cache is designed to expire 30 minutes after the last checkin?
[2010/02/19 14:45:40] <tomthebomb> i'm seeing a problem where the cache expires, and the puppetd client refuses to use the cache because of that
[2010/02/19 14:45:41] @ ahasenack joined channel #puppet
[2010/02/19 14:49:12] @ LinuxCode joined channel #puppet
[2010/02/19 14:49:20] @ xerxas joined channel #puppet
[2010/02/19 14:52:27] @ autowidget joined channel #puppet
[2010/02/19 14:53:34] @ Quit: Desdic: Ping timeout: 256 seconds
[2010/02/19 14:54:30] <ccaum> tomthebomb: Why is that a problem? Don't you want the client requesting a new one from the puppetmaster if it's been too long?
[2010/02/19 14:54:45] <tomthebomb> well, we had an issue where the Puppetmaster went down overnight
[2010/02/19 14:54:57] <ccaum> tomthebomb: Oh sorry. i misread
[2010/02/19 14:55:22] <tomthebomb> and it would have been nice if the puppetd clients continued to use their caches like i thought they would
[2010/02/19 14:55:22] <ccaum> tomthebomb: no I didn't :)
[2010/02/19 14:55:42] @ teyo joined channel #puppet
[2010/02/19 14:55:52] @ gpurrenhage_ joined channel #puppet
[2010/02/19 14:56:05] <ccaum> I think there you wouldn't want to run on cache anyway. If it doesn't know what it's state is supposed to be and what it thinks it's supposed to be is too old, you probably don't want it doing anything till your puppetmaster comes back up
[2010/02/19 14:56:48] <tomthebomb> there isn't any way around it, is there?
[2010/02/19 14:57:03] @ Quit: gpurrenhage_: Client Quit
[2010/02/19 14:57:08] <ccaum> Not that I know of. Give me a sec, I'll dig
[2010/02/19 14:57:09] <tomthebomb> we're using puppet as kind of a synchronized cron system for our servers to execute a couple arbitrary tasks
[2010/02/19 14:57:25] <tomthebomb> and it'd be nice if those tasks continued to execute as scheduled even if the puppetmaster was dead
[2010/02/19 14:57:37] <ccaum> Perhaps you should use puppet to just manage cron
[2010/02/19 14:57:48] <joe-mac> or run puppet on standalone manifests from cron
[2010/02/19 14:58:08] <joe-mac> you know that you can apply a manifest as long as it requires no edxternal file sources with just puppet file.pp?
[2010/02/19 14:59:09] @ Quit: gpurrenhage: Ping timeout: 260 seconds
[2010/02/19 14:59:31] @ Desdic joined channel #puppet
[2010/02/19 14:59:38] <tomthebomb> ccaum: that certainly is an idea.
[2010/02/19 15:00:21] <tomthebomb> i'm currently using it to schedule exec resources, and it's working fine for that, other than when the puppetmaster isn't working anymore :)
[2010/02/19 15:00:37] <ccaum> I don't think is what you want. It will use the cache if the compile fails, but I don't think it will if it can't contact the puppetmaster. usecacheonfailure = true
[2010/02/19 15:00:41] @ jfreeman joined channel #puppet
[2010/02/19 15:01:06] @ Quit: jfreeman: Remote host closed the connection
[2010/02/19 15:02:01] <ccaum> tomthebomb: Yeah, sounds like you're reinventing cron with a much more complicated nature making it prone to problems and complexity. Puppet will set up your cron jobs for you. Use the cron resource type.
[2010/02/19 15:02:26] <ccaum> http://docs.reductivelabs.com/references/stable/type.html#cron
[2010/02/19 15:02:31] @ Quit: fzzzt: Read error: Connection reset by peer
[2010/02/19 15:03:35] <tomthebomb> huh, interesting, thanks for the tip ccaum
[2010/02/19 15:03:47] @ tomthebomb is now known as twiedenbein
[2010/02/19 15:03:51] <ccaum> any time
[2010/02/19 15:05:41] @ twiedenbein is now known as tomthebomb
[2010/02/19 15:05:41] @ fzzzt joined channel #puppet
[2010/02/19 15:05:55] @ tomthebomb is now known as twiedenbein
[2010/02/19 15:10:26] @ gpurrenhage joined channel #puppet
[2010/02/19 15:14:37] @ Quit: drebs: Quit: leaving
[2010/02/19 15:21:36] @ mattwynne joined channel #puppet
[2010/02/19 15:23:02] @ ohadlevy joined channel #puppet
[2010/02/19 15:24:09] @ gpurrenhage_ joined channel #puppet
[2010/02/19 15:25:38] @ Quit: gpurrenhage_: Client Quit
[2010/02/19 15:25:59] @ kaptk2 joined channel #puppet
[2010/02/19 15:26:42] @ Quit: gpurrenhage: Ping timeout: 248 seconds
[2010/02/19 15:31:12] <fzzzt> Hmmm it appears Exec's whose onlyif isn't satisfied don't even get created
[2010/02/19 15:33:41] <joe-mac> ... isn't that the point?
[2010/02/19 15:34:29] @ Quit: ohadlevy: Ping timeout: 240 seconds
[2010/02/19 15:35:20] @ Quit: shenson: Quit: /me taps out
[2010/02/19 15:35:55] @ KarlHungus left channel #puppet ()
[2010/02/19 15:37:04] @ vizzord joined channel #puppet
[2010/02/19 15:37:49] @ ohadlevy joined channel #puppet
[2010/02/19 15:38:04] @ Quit: ahasenack: Quit: Leaving
[2010/02/19 15:38:22] @ Demosthenes joined channel #puppet
[2010/02/19 15:38:30] @ gpurrenhage joined channel #puppet
[2010/02/19 15:41:37] @ Quit: afletcher: Quit: afletcher
[2010/02/19 15:47:50] <gwar99991> hello all... we define most of our users in a single file and realize them as necessary in other modules. One thing I'm trying to figure out.... I need to define 2 users with the same names but different attributes (homedir, uid, etc). If I alias them uniquely but assign them the same "name" that seems to result in a duplicate error. Is there a way around this?
[2010/02/19 15:47:57] @ Quit: gpurrenhage: Remote host closed the connection
[2010/02/19 15:48:16] @ gpurrenhage joined channel #puppet
[2010/02/19 15:49:33] <ccaum> gwar99991: The only way I've found a way around this is to create the virtual user in a class and overwrite the parameters in a subclass
[2010/02/19 15:50:28] <gwar99991> ccaum: ahhh, ok, thanks, I might give that a shot.
[2010/02/19 15:54:18] @ hacim joined channel #puppet
[2010/02/19 16:00:19] @ Quit: vizzord: Quit: see you
[2010/02/19 16:03:44] @ Quit: swygue: Quit: Ex-Chat
[2010/02/19 16:05:39] @ Quit: p3rror: Remote host closed the connection
[2010/02/19 16:05:56] @ p3rror joined channel #puppet
[2010/02/19 16:10:05] @ ahasenack joined channel #puppet
[2010/02/19 16:13:07] @ Quit: p3rror: Read error: Operation timed out
[2010/02/19 16:17:14] @ Quit: TREllis: Ping timeout: 252 seconds
[2010/02/19 16:18:34] @ lutter joined channel #puppet
[2010/02/19 16:22:06] @ labrown joined channel #puppet
[2010/02/19 16:23:20] @ Quit: jcape: Remote host closed the connection
[2010/02/19 16:25:22] @ Quit: twiedenbein: Quit: twiedenbein
[2010/02/19 16:26:50] @ jcape joined channel #puppet
[2010/02/19 16:29:07] @ Quit: lilmatt: Quit: lilmatt
[2010/02/19 16:29:43] @ jcape left channel #puppet ()
[2010/02/19 16:29:59] @ jcape joined channel #puppet
[2010/02/19 16:30:17] @ ohadlevy left channel #puppet ("Leaving.")
[2010/02/19 16:30:21] @ Quit: mattwynne: Remote host closed the connection
[2010/02/19 16:31:17] @ scroogie__ joined channel #puppet
[2010/02/19 16:31:53] @ Quit: docelic__: Ping timeout: 265 seconds
[2010/02/19 16:31:58] @ p3rror joined channel #puppet
[2010/02/19 16:33:47] @ Quit: nevyn: Ping timeout: 246 seconds
[2010/02/19 16:35:00] @ Quit: scroogie_: Ping timeout: 256 seconds
[2010/02/19 16:35:48] @ nevyn joined channel #puppet
[2010/02/19 16:40:36] @ ckrough left channel #puppet ()
[2010/02/19 16:45:46] @ docelic__ joined channel #puppet
[2010/02/19 16:47:59] @ Pirate_Hunter joined channel #puppet
[2010/02/19 16:56:28] @ Quit: gpurrenhage: Ping timeout: 252 seconds
[2010/02/19 16:57:42] @ Quit: labrown: Quit: Leaving
[2010/02/19 16:59:30] @ afletcher_ joined channel #puppet
[2010/02/19 17:03:25] @ Quit: jcape: Ping timeout: 264 seconds
[2010/02/19 17:07:16] @ Quit: kolla: Remote host closed the connection
[2010/02/19 17:07:41] @ stewartl421 joined channel #puppet
[2010/02/19 17:08:06] @ Quit: xcrracer_: Remote host closed the connection
[2010/02/19 17:08:10] @ DrHouseMD is now known as HouseAway
[2010/02/19 17:10:18] @ Quit: nDuff: Remote host closed the connection
[2010/02/19 17:10:52] @ Quit: Demosthenes: Ping timeout: 272 seconds
[2010/02/19 17:12:01] @ mattwynne joined channel #puppet
[2010/02/19 17:13:55] @ Quit: ahasenack: Quit: Leaving
[2010/02/19 17:14:54] @ Quit: alfism: Quit: http://opensolaris.com/
[2010/02/19 17:15:25] <zirpu> /c
[2010/02/19 17:15:31] <zirpu> bah. ignore that.
[2010/02/19 17:17:32] @ Quit: mvn071: Remote host closed the connection
[2010/02/19 17:20:26] <elasticdog> are class contents executed in the order that they're specified?
[2010/02/19 17:22:48] @ Quit: mattwynne: Remote host closed the connection
[2010/02/19 17:23:06] <ccaum> elasticdog: No
[2010/02/19 17:23:36] <ccaum> If resources have a relationship, you must specify them.
[2010/02/19 17:23:49] <ccaum> This seems weird at first, but it's actually an asset
[2010/02/19 17:30:58] @ Quit: p3rror: Read error: Operation timed out
[2010/02/19 17:31:24] <jbooth> nigelk and masterzen: If you see this, refactoring the firewall is working well for me. So far at least. Now the question is can I start doing some advanced stuff and still have it work.
[2010/02/19 17:33:21] @ WALoeIII joined channel #puppet
[2010/02/19 17:33:49] @ Quit: nexx: Quit: quit
[2010/02/19 17:34:02] @ kolla joined channel #puppet
[2010/02/19 17:39:52] @ lilmatt joined channel #puppet
[2010/02/19 17:39:57] <nigelk> jbooth: woot!
[2010/02/19 17:41:19] <elasticdog> ccaum: are there other relationships aside from subscribe and notify? I just want to make sure a package is installed before writing the config file...stuff like that
[2010/02/19 17:43:10] <nigelk> elasticdog: look at before and require
[2010/02/19 17:43:43] @ francois left channel #puppet ()
[2010/02/19 17:44:32] @ p3rror joined channel #puppet
[2010/02/19 17:44:42] <elasticdog> nigelk: ahhh...before would be awesome. is there a page with those meta relationships, I've read a bunch but never seen one listing them
[2010/02/19 17:45:30] <elasticdog> nigelk: never mind...found it: http://docs.reductivelabs.com/references/stable/metaparameter.html
[2010/02/19 17:45:35] <nigelk> yep :)
[2010/02/19 17:45:36] @ Quit: jmccune: Ping timeout: 245 seconds
[2010/02/19 17:45:42] <nigelk> so my rule of thumb with before/require etc
[2010/02/19 17:45:57] <nigelk> is within a class you can do individual requires/befores for resources
[2010/02/19 17:46:08] <nigelk> but inter-class stuff should require/before a whole other class
[2010/02/19 17:46:14] <nigelk> it makes dependency tracking much simpler
[2010/02/19 17:46:24] <elasticdog> that makes sense
[2010/02/19 17:46:38] <nigelk> require => Class["foo"] is much simpler to sort out
[2010/02/19 17:46:46] <elasticdog> I'll have to go through and update some of my subscribes...they probably make more sense as other meta-declarations
[2010/02/19 17:46:53] <elasticdog> thanks for the suggestion!
[2010/02/19 17:47:01] <nigelk> no problem
[2010/02/19 17:50:59] @ fzzzt left channel #puppet ()
[2010/02/19 17:51:26] @ bug joined channel #puppet
[2010/02/19 17:52:21] @ gebi joined channel #puppet
[2010/02/19 17:54:31] @ benkevan joined channel #puppet
[2010/02/19 17:58:23] @ Quit: jaredrhine: Ping timeout: 268 seconds
[2010/02/19 17:59:28] @ rcrowley joined channel #puppet
[2010/02/19 18:00:11] @ jaredrhine joined channel #puppet
[2010/02/19 18:00:51] <elasticdog> nigelk: do you go so far as to explicitly require packages in service declarations?
[2010/02/19 18:01:10] <nigelk> If it's absolutely required, yes.
[2010/02/19 18:01:18] <nigelk> but in reality, we have lots of meta-packages
[2010/02/19 18:01:56] <elasticdog> like saying package postfix is a requirement to making sure the postfix service is running
[2010/02/19 18:01:57] @ RedPepper is now known as zz_RedPepper
[2010/02/19 18:03:52] <nigelk> yep
[2010/02/19 18:03:52] @ Quit: jaredrhine: Read error: Connection reset by peer
[2010/02/19 18:04:07] <nigelk> but we tend to have classes that set up the relevant stuff, so it's more a case of requiring the whole class
[2010/02/19 18:04:45] <elasticdog> sounds good...I haven't had that bite me yet, but it does make sense to be explicit
[2010/02/19 18:05:17] <Volcane> elasticdog: i wrote about it here http://www.devco.net/archives/2009/09/28/simple_puppet_module_structure.php
[2010/02/19 18:06:23] <Volcane> totally the only way to stay sane
[2010/02/19 18:06:32] <Volcane> dealing with classes and not resources
[2010/02/19 18:10:32] @ jaredrhine joined channel #puppet
[2010/02/19 18:16:00] @ Quit: kaptk2: Remote host closed the connection
[2010/02/19 18:16:46] @ happymcplaksin joined channel #puppet
[2010/02/19 18:20:52] @ Spruit_elf joined channel #puppet
[2010/02/19 18:26:00] @ ccaum left channel #puppet ()
[2010/02/19 18:38:15] @ happymcplaksin left channel #puppet ("ERC Version 5.3 (IRC client for Emacs)")
[2010/02/19 18:38:45] @ mattwynne joined channel #puppet
[2010/02/19 18:39:10] @ Quit: brothers: Quit: brothers
[2010/02/19 18:44:24] @ Quit: bobbyz: Read error: Operation timed out
[2010/02/19 19:02:20] @ Quit: _Lemon_: Ping timeout: 272 seconds
[2010/02/19 19:06:06] @ Quit: bug: Quit: bug
[2010/02/19 19:08:21] @ swygue joined channel #puppet
[2010/02/19 19:08:38] @ Quit: Spruit_elf: Quit: Spruit_elf
[2010/02/19 19:13:19] @ Quit: nigelk: Quit: nigelk
[2010/02/19 19:13:39] @ Quit: eshamow: Quit: eshamow
[2010/02/19 19:25:02] @ Quit: autowidget: Quit: autowidget
[2010/02/19 19:27:28] @ Quit: benkevan: Remote host closed the connection
[2010/02/19 19:28:21] @ Quit: zirpu: Ping timeout: 260 seconds
[2010/02/19 19:30:37] @ Quit: mattwynne: Remote host closed the connection
[2010/02/19 19:40:12] @ Quit: agaffney: Read error: Operation timed out
[2010/02/19 19:41:06] @ Quit: tonyskapunk: Ping timeout: 252 seconds
[2010/02/19 19:43:08] @ agaffney joined channel #puppet
[2010/02/19 19:45:40] @ qwebirc45374 joined channel #puppet
[2010/02/19 19:45:56] <qwebirc45374> man
[2010/02/19 19:46:11] @ Quit: qwebirc45374: Client Quit
[2010/02/19 19:47:22] @ Quit: Pirate_Hunter: Quit: Oh nO! wHo pUlleD ThE pLUg?
[2010/02/19 19:55:42] @ \ask joined channel #puppet
[2010/02/19 19:56:26] @ Quit: biertie: Ping timeout: 246 seconds
[2010/02/19 19:58:35] @ brothers joined channel #puppet
[2010/02/19 19:58:56] @ bodepd joined channel #puppet
[2010/02/19 19:59:15] @ Quit: cwebber: Quit: cwebber
[2010/02/19 19:59:24] @ bodepd left channel #puppet ()
[2010/02/19 20:02:05] @ Quit: jab_doa: Quit: Verlassend
[2010/02/19 20:07:14] @ Quit: gebi: Read error: Operation timed out
[2010/02/19 20:12:28] @ Quit: ajf-: Read error: Operation timed out
[2010/02/19 20:22:32] @ Quit: teyo: Quit: teyo
[2010/02/19 20:28:57] @ biertie joined channel #puppet
[2010/02/19 20:29:57] @ Quit: brothers: Remote host closed the connection
[2010/02/19 20:30:28] @ brothers joined channel #puppet
[2010/02/19 20:46:19] @ Quit: paxos: Quit: paxos
[2010/02/19 20:47:31] @ Quit: \ask: Remote host closed the connection
[2010/02/19 20:50:16] @ Wandrewvious joined channel #puppet
[2010/02/19 20:50:25] @ Quit: Wandrewvious: Client Quit
[2010/02/19 20:52:28] @ jcape joined channel #puppet
[2010/02/19 20:52:36] @ jcape left channel #puppet ()
[2010/02/19 20:53:42] @ Quit: WALoeIII: Ping timeout: 252 seconds
[2010/02/19 20:53:54] @ jes51 joined channel #puppet
[2010/02/19 20:56:37] @ Quit: jes5: Ping timeout: 268 seconds
[2010/02/19 21:01:04] @ Quit: mpdehaan_: Quit: Leaving
[2010/02/19 21:03:30] @ Quit: ahuman: Remote host closed the connection
[2010/02/19 21:08:15] <hacim> bgupta: do you know i can join the puppet-nyc group without having a google account?
[2010/02/19 21:10:52] <hacim> aha! http://groups.google.com/group/GroupName/boxsubscribe?email=myid
[2010/02/19 21:17:37] @ littleidea joined channel #puppet
[2010/02/19 21:20:45] @ WALoeIII joined channel #puppet
[2010/02/19 21:21:27] @ Quit: WALoeIII: Client Quit
[2010/02/19 21:27:30] @ Quit: jes51: Quit: Leaving.
[2010/02/19 21:28:04] @ Quit: Alagar: Ping timeout: 268 seconds
[2010/02/19 21:39:11] @ doubleukay_ joined channel #puppet
[2010/02/19 21:41:06] @ Quit: doubleukay: Ping timeout: 248 seconds
[2010/02/19 21:45:17] @ bug joined channel #puppet
[2010/02/19 21:46:51] @ joe-mac left channel #puppet ()
[2010/02/19 21:54:11] @ gaveen joined channel #puppet
[2010/02/19 21:57:45] @ Quit: jaredrhine: Ping timeout: 260 seconds
[2010/02/19 21:57:54] @ \ask joined channel #puppet
[2010/02/19 22:02:36] @ Quit: \ask: Ping timeout: 268 seconds
[2010/02/19 22:03:28] @ Quit: bug: Quit: bug
[2010/02/19 22:09:22] @ Quit: LinuxCode: Quit: Connection Closed
[2010/02/19 22:11:23] @ bodepd joined channel #puppet
[2010/02/19 22:14:25] @ bug joined channel #puppet
[2010/02/19 22:16:51] @ webx joined channel #puppet
[2010/02/19 22:17:54] @ bodepd left channel #puppet ()
[2010/02/19 22:18:02] <webx> do any of you have vim configured to do a --parseonly check on the syntax ? I'd be interested in figuring out how to get that added
[2010/02/19 22:19:49] @ scroogie joined channel #puppet
[2010/02/19 22:20:43] @ Quit: jason^: Write error: Broken pipe
[2010/02/19 22:20:43] @ Quit: dan__t: Write error: Broken pipe
[2010/02/19 22:21:00] @ dan__t joined channel #puppet
[2010/02/19 22:25:12] @ Quit: scroogie__: Ping timeout: 265 seconds
[2010/02/19 22:26:02] @ jason^ joined channel #puppet
[2010/02/19 22:30:31] @ teyo joined channel #puppet
[2010/02/19 22:34:50] @ Quit: rcrowley: Quit: rcrowley
[2010/02/19 22:36:01] @ Quit: ashp: Ping timeout: 245 seconds
[2010/02/19 22:38:34] @ ashp joined channel #puppet
[2010/02/19 22:40:21] @ keb0x80 joined channel #puppet
[2010/02/19 22:47:43] @ Quit: artista_frustrad: Ping timeout: 256 seconds
[2010/02/19 22:49:08] @ keb0x80 left channel #puppet ()
[2010/02/19 22:50:01] @ jaredrhine joined channel #puppet
[2010/02/19 22:52:39] @ Quit: brothers: Quit: brothers
[2010/02/19 22:58:58] @ bodepd joined channel #puppet
[2010/02/19 22:59:34] @ bodepd left channel #puppet ()
[2010/02/19 22:59:45] @ artista_frustrad joined channel #puppet
[2010/02/19 23:04:37] @ Quit: artista_frustrad: Ping timeout: 264 seconds
[2010/02/19 23:11:40] @ Quit: rodjek: Ping timeout: 256 seconds
[2010/02/19 23:24:32] @ Demosthenes joined channel #puppet
[2010/02/19 23:28:35] @ maxagaz_ joined channel #puppet
[2010/02/19 23:31:02] @ Quit: maxagaz_: Client Quit
[2010/02/19 23:41:42] @ twiedenbein joined channel #puppet
[2010/02/19 23:41:51] @ Quit: twiedenbein: Client Quit

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