Tuesday, 2010-01-05

[2010/01/05 00:04:37] @ Log started by gepetto_
[2010/01/05 00:04:37] @ bjaspan joined channel #puppet
[2010/01/05 00:09:03] @ Quit: jcape: Read error: 104 (Connection reset by peer)
[2010/01/05 00:09:04] @ jcape1 joined channel #puppet
[2010/01/05 00:09:06] @ scylla joined channel #puppet
[2010/01/05 00:19:24] <flyingparchment> is it possible to use stored configs without rails? it looks like it's basically impossible to build an OS native package for rails without a lot of work
[2010/01/05 00:24:49] <joe-mac1> flyingparchment: no, not possible.
[2010/01/05 00:24:54] <joe-mac1> what OS?
[2010/01/05 00:24:58] <flyingparchment> solaris
[2010/01/05 00:25:13] <joe-mac1> i would guess there is a package for that from sun freeware or something
[2010/01/05 00:25:27] <flyingparchment> i don't use sunfreeware
[2010/01/05 00:25:34] <flyingparchment> we have a local package repository
[2010/01/05 00:26:00] <flyingparchment> i see the debian people had the same problem with gems, but couldn't convince the ruby people that it's a problem at all
[2010/01/05 00:28:14] <joe-mac1> well, the debian people have lots of problems :-P
[2010/01/05 00:29:02] <flyingparchment> the problem is with ruby... unlike every other scripting language, there's no way to install modules except via 'gem' (as far as i can see)
[2010/01/05 00:30:25] <joe-mac1> i am not so sure the problem is with ruby
[2010/01/05 00:30:51] <flyingparchment> well, s/ruby/ruby module developers/
[2010/01/05 00:32:03] <joe-mac1> you can just copy the code in place as long as there aren't shared objects or something
[2010/01/05 00:32:10] @ kolla joined channel #puppet
[2010/01/05 00:32:28] <flyingparchment> that's what i did with facter... rails looks more complicated, but i guess it's worth a try
[2010/01/05 00:34:49] @ Quit: lilmatt: Client Quit
[2010/01/05 00:35:17] <joe-mac1> flyingparchment: yea, people bundle rails with their apps so i am guessing it is all ruby.. i am just a consumer of the software i don't really know a lot about the internals
[2010/01/05 00:51:22] @ nevyn_ joined channel #puppet
[2010/01/05 00:52:20] @ Quit: lak:
[2010/01/05 00:56:15] @ lak joined channel #puppet
[2010/01/05 01:03:24] @ Quit: nevyn: Read error: 101 (Network is unreachable)
[2010/01/05 01:03:45] <gepetto_> ::trac:: Frequently Asked Questions edited @ http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions?version=71
[2010/01/05 01:07:01] @ Quit: Djelibeybi: "Leaving"
[2010/01/05 01:11:47] @ PaulWay[w] left channel #puppet ("I must go, there are too many tangrams on this channel.")
[2010/01/05 01:13:08] @ Quit: crdant: "Leaving."
[2010/01/05 01:14:13] @ Quit: lak:
[2010/01/05 01:16:12] @ crdant joined channel #puppet
[2010/01/05 01:22:06] @ Quit: joe-mac1: Client Quit
[2010/01/05 01:25:09] @ Quit: ezmobius: Remote closed the connection
[2010/01/05 01:26:51] @ Quit: pting: "Ex-Chat"
[2010/01/05 01:30:30] <gepetto_> ::trac:: Downloading Puppet edited @ http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet?version=98
[2010/01/05 01:38:54] <gepetto_> ::trac:: Development/Code Names edited @ http://reductivelabs.com/trac/puppet/wiki/Development/CodeNames?version=23
[2010/01/05 01:38:54] <gepetto_> ::trac:: Installation Guide edited @ http://reductivelabs.com/trac/puppet/wiki/InstallationGuide?version=49
[2010/01/05 01:41:40] @ shake-n-bake joined channel #puppet
[2010/01/05 01:45:21] @ Quit: Demosthenes: Read error: 110 (Connection timed out)
[2010/01/05 01:47:11] @ Quit: kolla: Remote closed the connection
[2010/01/05 01:47:24] @ Quit: jcape1: Read error: 110 (Connection timed out)
[2010/01/05 01:50:42] @ Mode +o jamesturnbull by ChanServ
[2010/01/05 01:50:49] @ jamesturnbull set topic "Puppet 0.25.2 released - http://tinyurl.com/puppet0252 | Log bugs and feature requests at http://tinyurl.com/46ryk7"
[2010/01/05 01:50:58] @ Mode -o jamesturnbull by ChanServ
[2010/01/05 01:54:29] @ jcape joined channel #puppet
[2010/01/05 01:56:08] @ nakano is now known as nakano_
[2010/01/05 01:56:31] @ Quit: crdant: "Leaving."
[2010/01/05 01:57:27] @ Quit: shake-n-bake:
[2010/01/05 01:58:28] @ lak joined channel #puppet
[2010/01/05 01:58:31] @ littleidea joined channel #puppet
[2010/01/05 02:03:03] @ hy is now known as _silver
[2010/01/05 02:13:11] @ _silver is now known as hy
[2010/01/05 02:29:59] @ kolla joined channel #puppet
[2010/01/05 02:31:35] @ Quit: Bass10: Connection timed out
[2010/01/05 02:31:53] @ Djelibeybi joined channel #puppet
[2010/01/05 02:45:27] @ Ramonster joined channel #puppet
[2010/01/05 02:57:07] @ Quit: f3ew: "You can /quit any time you like, but you can never leave"
[2010/01/05 02:57:32] @ danielbln joined channel #puppet
[2010/01/05 03:00:17] @ f3ew joined channel #puppet
[2010/01/05 03:01:07] @ Quit: jes5: "Leaving."
[2010/01/05 03:03:07] @ francois1 joined channel #puppet
[2010/01/05 03:03:30] @ pacalm joined channel #puppet
[2010/01/05 03:05:11] @ giskard joined channel #puppet
[2010/01/05 03:05:51] @ friendly12345 joined channel #puppet
[2010/01/05 03:11:09] @ nevyn_ is now known as nevyn
[2010/01/05 03:14:47] @ Volcane` is now known as Volcane
[2010/01/05 03:18:44] @ chris- joined channel #puppet
[2010/01/05 03:19:15] <flyingparchment> what am i doing wrong here? http://dpaste.com/141235/
[2010/01/05 03:19:58] @ hexasoft joined channel #puppet
[2010/01/05 03:20:31] @ Quit: Boltsky: Nick collision from services.
[2010/01/05 03:20:37] @ chris- is now known as Boltsky
[2010/01/05 03:25:57] @ Quit: Djelibeybi: "Leaving"
[2010/01/05 03:31:34] @ Quit: nmi: "This computer has gone to sleep"
[2010/01/05 03:35:08] @ Quit: giskard: Remote closed the connection
[2010/01/05 03:40:15] @ Djelibeybi joined channel #puppet
[2010/01/05 03:40:20] @ tim|macbook joined channel #puppet
[2010/01/05 03:41:14] <Volcane> warning: Package NetworkManager found in both yum and yum; skipping the yum version
[2010/01/05 03:41:21] <Volcane> meh wtf is that all about, first time i saw that
[2010/01/05 03:41:40] <Volcane> thats from ralsh package foo
[2010/01/05 03:48:37] @ Quit: tim|macbook:
[2010/01/05 03:51:37] @ tim|macbook joined channel #puppet
[2010/01/05 03:53:57] @ artista_frustrad joined channel #puppet
[2010/01/05 03:55:34] @ Quit: Eghie: Read error: 110 (Connection timed out)
[2010/01/05 03:56:22] @ Eghie joined channel #puppet
[2010/01/05 03:58:03] @ giskard joined channel #puppet
[2010/01/05 03:58:41] @ Robbie_ joined channel #puppet
[2010/01/05 04:05:38] @ Quit: littleidea:
[2010/01/05 04:09:42] @ Quit: lak:
[2010/01/05 04:10:44] @ MattyM joined channel #puppet
[2010/01/05 04:12:46] @ Quit: artista_frustrad: Read error: 110 (Connection timed out)
[2010/01/05 04:18:05] @ fluxdude joined channel #puppet
[2010/01/05 04:25:51] @ Quit: Eghie: Read error: 110 (Connection timed out)
[2010/01/05 04:28:22] @ artista_frustrad joined channel #puppet
[2010/01/05 04:29:33] @ LapTop006 joined channel #puppet
[2010/01/05 04:35:54] @ barn joined channel #puppet
[2010/01/05 04:36:17] @ ricky joined channel #puppet
[2010/01/05 04:40:53] @ Eghie joined channel #puppet
[2010/01/05 04:46:55] @ Quit: artista_frustrad: Read error: 110 (Connection timed out)
[2010/01/05 04:52:29] @ Robbie__ joined channel #puppet
[2010/01/05 04:54:04] <gepetto_> ::trac:: Downloading Puppet edited @ http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet?version=99
[2010/01/05 04:58:09] @ Quit: friendly12345: "Leaving."
[2010/01/05 04:59:12] @ skiold joined channel #puppet
[2010/01/05 04:59:53] <gepetto_> ::trac:: Development/Code Names edited @ http://reductivelabs.com/trac/puppet/wiki/Development/CodeNames?version=24
[2010/01/05 04:59:53] <gepetto_> ::trac:: Release Notes edited @ http://reductivelabs.com/trac/puppet/wiki/ReleaseNotes?version=52
[2010/01/05 05:01:04] @ ffrank joined channel #puppet
[2010/01/05 05:01:18] @ tripoux_ joined channel #puppet
[2010/01/05 05:02:06] <ffrank> hi. i've wrapped file { } in a define. i'm doing some maintenance, and suddenly puppet wants to set lots of files' groups to an unassigned gid. what the hell? puppetd 0.24.5, master 0.25
[2010/01/05 05:03:18] @ Quit: tripoux: Read error: 60 (Operation timed out)
[2010/01/05 05:03:27] @ tripoux_ is now known as tripoux
[2010/01/05 05:03:48] * Volcane hopes ffrank isnt expecting an answer, since no useful information like logs or code was given
[2010/01/05 05:04:37] <ffrank> ahem
[2010/01/05 05:05:50] <jamesturnbull> tmz: ping
[2010/01/05 05:06:03] <jamesturnbull> gepetto_: help
[2010/01/05 05:06:03] <gepetto_> jamesturnbull: help topics: 10 core modules: auth, basics, config, filters, httputil, irclog, remote, unicode, userdata, wordlist; 8 plugins: debug, hudson, redmineurls, rss, seen, shortenurls, time, tracurls (help <topic> for more info)
[2010/01/05 05:06:14] @ poison joined channel #puppet
[2010/01/05 05:07:51] @ Quit: Robbie_: Read error: 113 (No route to host)
[2010/01/05 05:08:59] <ffrank> Volcane: http://pastie.org/767221, slightly altered to protect the innocent. don't even ask about indentation ;( it's ugly but i don't see why it's broken so badly
[2010/01/05 05:10:21] @ Log started by gepetto
[2010/01/05 05:10:21] @ Joined channel #puppet
[2010/01/05 05:10:21] @ Topic is "Puppet 0.25.2 released - http://tinyurl.com/puppet0252 | Log bugs and feature requests at http://tinyurl.com/46ryk7"
[2010/01/05 05:10:21] @ Topic set by jamesturnbull on Tue Jan 05 01:50:49 -0500 2010
[2010/01/05 05:10:33] @ Mode +tnc by calvino.freenode.net
[2010/01/05 05:10:50] <jamesturnbull> gepetto: help
[2010/01/05 05:10:50] <gepetto> jamesturnbull: help topics: 10 core modules: auth, basics, config, filters, httputil, irclog, remote, unicode, userdata, wordlist; 8 plugins: debug, hudson, redmineurls, rss, seen, shortenurls, time, tracurls; 80 plugins ignored: use help ignored plugins to see why (help <topic> for more info)
[2010/01/05 05:10:54] <jamesturnbull> gepetto: seen lak
[2010/01/05 05:10:54] <gepetto> jamesturnbull: lak was last seen 1 hour, 1 minute and 12 seconds ago, quitting IRC ()
[2010/01/05 05:10:54] <kjetilho> ffrank: does that code on its own exhibit the problem?
[2010/01/05 05:11:11] <Volcane> if u specify no user/group/mode it takes it from what it is at the source location
[2010/01/05 05:11:21] <ffrank> kjetilho: pretty much.
[2010/01/05 05:11:22] <jamesturnbull> wiki:ReleaseNotes
[2010/01/05 05:11:24] <gepetto> jamesturnbull: wiki: wiki:ReleaseNotes is http://reductivelabs.com/trac/puppet/wiki/ReleaseNotes
[2010/01/05 05:11:24] <kjetilho> ah, of course
[2010/01/05 05:12:02] <Volcane> so its better to default to root/root/xxx than all the mad undef stuff
[2010/01/05 05:12:48] <ffrank> Volcane: that's what it used to do, but i thought file {} behaved differently
[2010/01/05 05:13:07] <Volcane> whats the ownership of the file at souce?
[2010/01/05 05:13:09] <Volcane> source
[2010/01/05 05:13:21] <ffrank> Volcane: gid 2006 indeed
[2010/01/05 05:13:24] <ffrank> damnit
[2010/01/05 05:13:33] <Volcane> :)
[2010/01/05 05:14:14] <ffrank> right, now i remember. when i added this define, it used to default to root, and i'd strip all owner => root and group => root statements from my manifests. *facepalm*
[2010/01/05 05:14:49] <ffrank> thanks for bringing my lame mind up to speed
[2010/01/05 05:14:56] <Volcane> ffrank: also here's a much saner approach to all those if statements: http://pastie.org/767225
[2010/01/05 05:15:23] <Volcane> then u dont need any else's
[2010/01/05 05:15:32] <ffrank> i like it - thanks
[2010/01/05 05:16:06] <kjetilho> Volcane: can't those defaults leak outside the define?
[2010/01/05 05:16:13] <Volcane> nah dont think so
[2010/01/05 05:16:32] <Volcane> but u cold do File[$name] { .. } if u really worry about it
[2010/01/05 05:16:48] <kjetilho> ok. I've been bitten on such defaults in a class, modifying the super and/or sub-classes
[2010/01/05 05:16:57] <Volcane> afaik defaults respect scope like variables would
[2010/01/05 05:19:20] <ffrank> just checked the defaults thing - no apparent leakage: http://pastie.org/767228
[2010/01/05 05:19:51] @ Quit: Djelibeybi: Read error: 113 (No route to host)
[2010/01/05 05:20:02] <ffrank> why does the File[$name] work? i thought that was for subclasses only
[2010/01/05 05:20:16] <Volcane> sme sntax for setting defaults
[2010/01/05 05:20:49] <Volcane> or am i going mad? let me test
[2010/01/05 05:20:54] <ffrank> so the [$name] is ignored?
[2010/01/05 05:20:59] <ffrank> it does work alright
[2010/01/05 05:21:06] <kjetilho> ffrank: it only works if you don't change any settings.
[2010/01/05 05:21:14] <Volcane> yeah thats it
[2010/01/05 05:21:46] <Volcane> so in your final file dont specify anything u set with the defaults
[2010/01/05 05:22:40] <ffrank> ah, so the [$name] is a sort of safeguard against collisions?
[2010/01/05 05:23:07] <Volcane> kjetilho was asking if the default - which without a name would apply to all files - would somehow escape the define and affect other files
[2010/01/05 05:23:25] <Volcane> i said it shouldnt but if you worry you can restrict the default to affecting only the specific resource with the [$name]
[2010/01/05 05:24:11] <kjetilho> ffrank: thanks for checking the leakage worry, btw :)
[2010/01/05 05:25:02] <ffrank> np
[2010/01/05 05:26:53] @ Quit: nexx: "Lost terminal"
[2010/01/05 05:30:34] @ Quit: nasrat: Remote closed the connection
[2010/01/05 05:30:54] @ Djelibeybi joined channel #puppet
[2010/01/05 05:32:59] @ marcoecc joined channel #puppet
[2010/01/05 05:36:01] <ffrank> hmm. "if $var != undef" does not work as expected, i take it?
[2010/01/05 05:36:52] * ffrank goes for '' instead
[2010/01/05 05:39:51] <Volcane> if !$var
[2010/01/05 05:40:13] @ Djeli joined channel #puppet
[2010/01/05 05:40:23] <ffrank> no, $var could be false, and i want that accepted
[2010/01/05 05:41:37] <kjetilho> ffrank: indeed, there is talk about changing the behaviour of undef (so it can be differentiated better), but it won't appear in 0.25.x I think.
[2010/01/05 05:42:13] <Volcane> well i think if's behaviour has changed wrt to just if $var then
[2010/01/05 05:42:23] <Volcane> cos in the past it used to check if its set or not nothing to do with value
[2010/01/05 05:42:33] <ffrank> yes, but as empty string has been mentioned as a work-around on the list, i think it's a safe pick atm...
[2010/01/05 05:42:38] <Volcane> now its set/unset and boolean
[2010/01/05 05:42:38] <Volcane> that sux
[2010/01/05 05:43:20] <ffrank> Volcane: that's what i read. but ! also respecting boolean values is in accord with the rule of least surprise
[2010/01/05 05:43:29] <Volcane> yeah
[2010/01/05 05:43:38] <Volcane> unless u already have code that worked in the past :P
[2010/01/05 05:44:37] <ffrank> yeah, downwards incompatibility is a bitter pill. but sometimes it has to be taken to avoid unhealthy stagnation i guess
[2010/01/05 05:48:01] @ Quit: tripoux: Read error: 104 (Connection reset by peer)
[2010/01/05 05:52:16] @ Quit: Djeli: "Leaving"
[2010/01/05 05:55:13] @ Djeli joined channel #puppet
[2010/01/05 05:57:06] @ Quit: Djelibeybi: Read error: 113 (No route to host)
[2010/01/05 06:01:32] @ Quit: Robbie__: Remote closed the connection
[2010/01/05 06:01:54] @ Robbie_ joined channel #puppet
[2010/01/05 06:02:11] @ Quit: Juzzy: Read error: 113 (No route to host)
[2010/01/05 06:02:32] @ Juzzy joined channel #puppet
[2010/01/05 06:04:17] <bzrk> hi all, i sometimes have very high memory comsumption when i run the puppet client daemonized. as far as i am aware, running it non-daemonized as a cronjob should yield the same results as running daemonized. is that correct or am i missing something?
[2010/01/05 06:04:23] @ nasrat joined channel #puppet
[2010/01/05 06:05:53] <Volcane> there's lots of leaks things might well be better from cron
[2010/01/05 06:06:29] <Volcane> leaks in ruby, leaks in puppet, leaks in everything. at least on the puppet side there's serious effort to improve matters
[2010/01/05 06:07:09] <bzrk> yes, it has improved already but on some machines the daemon still goes rampaging over the memory sometimes :(
[2010/01/05 06:07:45] <bzrk> thanks Volcane i will setup a test to see how it goes
[2010/01/05 06:08:01] <Volcane> am a v.happy cron user
[2010/01/05 06:08:31] <Volcane> gone from always some painful daemon needing a kick to it all just working forever
[2010/01/05 06:08:51] <bzrk> nice, thats very encouraging
[2010/01/05 06:08:52] <Volcane> with the plus of being able to kicking off --one-time jobs whnever i feel like it which the daemon prevents
[2010/01/05 06:09:03] <bzrk> true
[2010/01/05 06:12:14] @ yure joined channel #puppet
[2010/01/05 06:12:22] @ Quit: Robbie_: Remote closed the connection
[2010/01/05 06:12:26] @ Quit: hexasoft: "Leaving."
[2010/01/05 06:12:38] @ Robbie_ joined channel #puppet
[2010/01/05 06:16:26] @ Quit: alexine_dsouza: Read error: 104 (Connection reset by peer)
[2010/01/05 06:25:04] @ Quit: Djeli: "Leaving"
[2010/01/05 06:31:25] @ Djelibeybi joined channel #puppet
[2010/01/05 06:34:13] <kjetilho> Volcane: the daemon doesn't prevent it any more than the cron does
[2010/01/05 06:34:35] @ Rejo left channel #puppet ()
[2010/01/05 06:34:42] <kjetilho> Volcane: ie. --one-time will only abort when it's already doing a run
[2010/01/05 06:36:01] <Volcane> wrong
[2010/01/05 06:36:06] <Volcane> Jan 5 11:35:20 nephilim puppetd[23990]: Finished catalog run in 9.59 seconds
[2010/01/05 06:36:14] <Volcane> then run --onetime
[2010/01/05 06:36:14] <Volcane> Could not prepare for execution: Could not create PID file: /var/run/puppet/puppetd.pid
[2010/01/05 06:36:33] <Volcane> something else probably needs setting to make it work
[2010/01/05 06:37:12] <kjetilho> oh, I thought --onetime was synonomous with -t
[2010/01/05 06:37:22] <kjetilho> I use -t
[2010/01/05 06:38:00] <Volcane> i kick off background ones with mcollective with --onetime
[2010/01/05 06:38:05] <Volcane> if by hand i use --test too
[2010/01/05 06:39:29] <ffrank> but isn't test just onetime+verbose+nocache+nocacheonfail?
[2010/01/05 06:40:01] <Volcane> i think its the --noaemonize or whatever it is that makes it work
[2010/01/05 06:40:56] <ffrank> the manpage is probably not quite accurate
[2010/01/05 06:50:47] <Volcane> and ofcourse i need it to run in background onetime so the daemon running prevents me from doing what i want
[2010/01/05 06:53:31] <fluxdude> what happens if you have a manifests/somename.pp and a modules/somename/manifests/init.pp
[2010/01/05 06:53:35] <fluxdude> which one will be used?
[2010/01/05 06:53:43] <fluxdude> is there a priority or preference?
[2010/01/05 06:54:53] <Volcane> if both makes class somename
[2010/01/05 06:54:57] <Volcane> it will merge them into one
[2010/01/05 06:55:08] <Volcane> afaik
[2010/01/05 06:57:58] @ Quit: giskard: Read error: 104 (Connection reset by peer)
[2010/01/05 06:59:54] <fluxdude> ew
[2010/01/05 07:00:13] <fluxdude> I think I'd prefer if there was a strict option to make it complain/fail
[2010/01/05 07:00:41] @ giskard joined channel #puppet
[2010/01/05 07:00:55] @ Quit: scylla: "Connection timed out"
[2010/01/05 07:03:14] <mark> is there anywhere a public demo available of the reports puppet can generate?
[2010/01/05 07:03:42] @ Quit: whaley: "Leaving..."
[2010/01/05 07:04:22] <Volcane> on its own it doesnt make pretty reports, it just sends data
[2010/01/05 07:04:34] <Volcane> theforeman.org or reductive labs dashboard can show them nicely
[2010/01/05 07:04:45] <mark> thanks
[2010/01/05 07:05:18] @ Quit: jcape: Read error: 60 (Operation timed out)
[2010/01/05 07:05:52] @ jcape joined channel #puppet
[2010/01/05 07:07:13] @ Quit: Djelibeybi: "Leaving"
[2010/01/05 07:08:39] @ jimmij1 joined channel #puppet
[2010/01/05 07:09:06] @ Quit: jimmij: Read error: 54 (Connection reset by peer)
[2010/01/05 07:11:58] <mark> how do they compare? :)
[2010/01/05 07:12:33] <Volcane> foreman's an older project and has more features atm
[2010/01/05 07:12:42] <Volcane> other one is from the same ppl who make puppet
[2010/01/05 07:12:47] <Volcane> similar end goals
[2010/01/05 07:13:11] <Volcane> ones backed by a company, one isnt, thats the kind of things u should look at
[2010/01/05 07:13:33] <mark> yeah... puppet dashboard may be the more mature solution on the long run, but it's hard to tell
[2010/01/05 07:13:55] <z00dax> dsch04: ping
[2010/01/05 07:16:11] @ Quit: ffrank: "leaving"
[2010/01/05 07:25:05] @ res joined channel #puppet
[2010/01/05 07:25:17] <res> hello
[2010/01/05 07:25:33] @ res is now known as Guest90481
[2010/01/05 07:25:43] <Guest90481> I'm new to Puppet - can anyone give me a hand with something ?
[2010/01/05 07:26:46] <Guest90481> i have the following class :
[2010/01/05 07:26:47] <Guest90481> class base_rpms {
[2010/01/05 07:26:47] <Guest90481> package { jdk-1_5_0_17-linux-amd64:
[2010/01/05 07:26:47] <Guest90481> source => 'http://ks.paymo.net/all/jdk-1_5_0_17-linux-i586.rpm',
[2010/01/05 07:26:47] <Guest90481> ensure => present,
[2010/01/05 07:26:47] <Guest90481> provider => rpm
[2010/01/05 07:26:48] <Guest90481> }
[2010/01/05 07:26:50] <Guest90481> }
[2010/01/05 07:27:32] <Guest90481> i want to make it machine architecture independent, ie, the i586 could be x86_64 etc, depending on the architecture of the local puppet client
[2010/01/05 07:28:10] <Guest90481> is it possible to use the environment variable : HOSTTYPE as a variable in my puppet recipe ?
[2010/01/05 07:28:13] <FiXion> Guest90481: you could use $architecture instead of the i586/amd64 part
[2010/01/05 07:28:24] <FiXion> Guest90481: you can use facter variables.
[2010/01/05 07:28:50] <Guest90481> FiXion : i got a bit confused how facter fitted into Puppet
[2010/01/05 07:29:13] <Guest90481> FiXion : is there a list of these built in variables somewhere ?
[2010/01/05 07:31:56] <Guest90481> sorry to ask yet another question, but is there a way to be smart about the RPM source I install.
[2010/01/05 07:31:57] <FiXion> Guest90481: run facter on commandline (with -p - to have puppet specific variables shown as well on newer versions of facter)
[2010/01/05 07:32:19] <Guest90481> For example, assuming puppet is running on a i686 machine ...
[2010/01/05 07:32:20] <FiXion> Guest90481: don't install from physical mirrors. use yum as your provider and setup a yum repository for your packages. it's dead simple
[2010/01/05 07:32:34] <FiXion> as you'd setup an apt mirror for debian-based hosts
[2010/01/05 07:32:56] <Guest90481> i guess if i use yum, it solves all of these architecture issues.
[2010/01/05 07:33:14] @ Quit: erm_: Read error: 110 (Connection timed out)
[2010/01/05 07:39:43] @ erm_ joined channel #puppet
[2010/01/05 07:40:34] @ Quit: yure: Remote closed the connection
[2010/01/05 07:45:17] @ Quit: Eghie: Read error: 60 (Operation timed out)
[2010/01/05 07:57:55] <fluxdude> am I right in that when using modules, the directory name of the module doesn't matter except for the fileserver mount for sourcing?
[2010/01/05 07:58:39] <Volcane> module directoryname == modulename
[2010/01/05 07:59:04] @ Bass10 joined channel #puppet
[2010/01/05 08:00:50] @ Eghie joined channel #puppet
[2010/01/05 08:09:19] @ whaley joined channel #puppet
[2010/01/05 08:11:28] <danielbln> what would be the best way to handle a new client's hostname?
[2010/01/05 08:11:33] @ vzctl__ joined channel #puppet
[2010/01/05 08:11:43] <danielbln> delete the cert on client and master and re-auth?
[2010/01/05 08:11:52] <danielbln> or is there something quicker?
[2010/01/05 08:13:13] <fluxdude> in a template, can I conditionally add something based on the host operating system?
[2010/01/05 08:13:35] <fluxdude> I want to detect if there is an interface with the x.x.x.x/24 network and if so add a nameserver in to the /etc/resolv.conf
[2010/01/05 08:16:08] <Volcane> fluxdude: all teh facts are available and there are facts for ips etc
[2010/01/05 08:17:38] <fluxdude> ah yes you are correct, will try that, forgot about ip facts, was thinking ruby interface detection inside erb template I am using
[2010/01/05 08:17:46] <fluxdude> thanks for the reminder putting me back on the right track
[2010/01/05 08:19:47] @ shug joined channel #puppet
[2010/01/05 08:20:04] @ qwebirc10338 joined channel #puppet
[2010/01/05 08:20:37] @ Quit: qwebirc10338: Client Quit
[2010/01/05 08:26:54] @ Quit: vzctl_: Read error: 110 (Connection timed out)
[2010/01/05 08:28:41] @ Quit: mellen: "ZNC by prozac - http://znc.sourceforge.net"
[2010/01/05 08:29:43] @ mellen joined channel #puppet
[2010/01/05 08:30:52] @ Quit: jcape: Read error: 110 (Connection timed out)
[2010/01/05 08:30:53] @ Quit: mellen: Client Quit
[2010/01/05 08:31:57] <tim|macbook> ok, this is totally off-topic, but I think I'm going crazy here... /[A-Z]+/ should match one or more capital letters, right?
[2010/01/05 08:32:18] <flyingparchment> tim|macbook: depends what kind of regexp you're using. in the kind that supports +, yes
[2010/01/05 08:32:49] <tim|macbook> sed supports it, right?
[2010/01/05 08:33:01] <kjetilho> tim|macbook: depends on your version of sed
[2010/01/05 08:33:15] <flyingparchment> tim|macbook: standard sed doesn't
[2010/01/05 08:33:55] <tim|macbook> hm
[2010/01/05 08:34:19] <tim|macbook> ah ok, indeed...
[2010/01/05 08:34:59] <tim|macbook> sed -E does, ok, got it now, thx
[2010/01/05 08:35:07] @ PsychoSid joined channel #puppet
[2010/01/05 08:35:10] <agaffney> GNU sed supports \+
[2010/01/05 08:35:34] <agaffney> as goes GNU grep without -e
[2010/01/05 08:36:12] <kjetilho> or even \{1,\}
[2010/01/05 08:37:06] @ mellen joined channel #puppet
[2010/01/05 08:37:33] <FiXion> + = extended regular expressions afaik
[2010/01/05 08:37:39] <FiXion> and pcre as well
[2010/01/05 08:37:51] <FiXion> which is what -E (to several gnu tools) enables
[2010/01/05 08:38:24] <agaffney> yep
[2010/01/05 08:38:47] @ Quit: erm_: Read error: 110 (Connection timed out)
[2010/01/05 08:38:55] @ Quit: shug: "Leaving"
[2010/01/05 08:39:44] <tim|macbook> ok, another question, same subject... should /[^\],]+/ match "R"?
[2010/01/05 08:40:17] <tim|macbook> it doesn't, but i can't seem to find why...
[2010/01/05 08:40:30] <PsychoSid> Any ideas on this it's driving me nuts
[2010/01/05 08:40:31] <PsychoSid> Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `interp' for #<Puppet::Parser::Scope:0x2b1c60007998> at /etc/puppet/development/modules/auth/manifests/init.pp
[2010/01/05 08:40:39] <agaffney> it should match anything that doesn't contain a ] or a ,
[2010/01/05 08:40:49] <flyingparchment> tim|macbook: [^],]
[2010/01/05 08:40:50] <PsychoSid> I have changed all my interp to parser in my customs types etc
[2010/01/05 08:41:00] <flyingparchment> tim|macbook: if you putthe ] firsty ou don't need to escape it, and if you do it won't work
[2010/01/05 08:41:14] <tim|macbook> ah!
[2010/01/05 08:41:16] <tim|macbook> so that's it
[2010/01/05 08:41:20] <agaffney> although, if you're using sed without -E, \] is the equivelant to just ] in pcre, and watch out for backslashes with shell escaping
[2010/01/05 08:41:28] <tim|macbook> much appreciated, been searching for that for a few hours now :/
[2010/01/05 08:42:02] <agaffney> phips: try restarting puppetmasterd...sometimes it caches one version and won't let go
[2010/01/05 08:42:39] @ erm_ joined channel #puppet
[2010/01/05 08:47:53] <fluxdude> I've tried creating two lists and then merging them in a single variable. One problem I have is that, that is if one of the lists is empty, I end up with a blank variable in my list
[2010/01/05 08:47:57] <fluxdude> is there any way to avoid this?
[2010/01/05 08:49:34] <fluxdude> what I am trying to do is construct 2 lists and then merge the two lists in to 1 list
[2010/01/05 08:49:40] <ohadlevy> fluxdude: in puppet or ruby?
[2010/01/05 08:49:47] @ giskard_ joined channel #puppet
[2010/01/05 08:49:50] <fluxdude> make 2 arrays, then create an array with the contents of the 2 arrays
[2010/01/05 08:49:52] <fluxdude> in puppet
[2010/01/05 08:50:08] <ohadlevy> how do you merge them? using a defnie?
[2010/01/05 08:50:09] <ohadlevy> define
[2010/01/05 08:50:18] <fluxdude> I have no idea, that's why I'm asking!
[2010/01/05 08:50:20] <fluxdude> ;-)
[2010/01/05 08:50:25] <fluxdude> I've tried various syntaxes
[2010/01/05 08:50:33] <fluxdude> nothing has worked properly yet
[2010/01/05 08:50:53] <fluxdude> $myarray = [ $myarray_1, $myarray2 ]
[2010/01/05 08:50:57] <fluxdude> works sort of
[2010/01/05 08:51:08] <fluxdude> but if either array is empty, I get a blank item in my array
[2010/01/05 08:51:29] <fluxdude> and also the items of the 2 arrays so not come out to individual items inside the merged array
[2010/01/05 08:51:40] <fluxdude> instead I end up with 2 items, a blob of each array
[2010/01/05 08:52:12] <ohadlevy> fluxdude, you might want to write a simple puppet funtction
[2010/01/05 08:52:38] <fluxdude> ok will have to look that up
[2010/01/05 08:53:20] <Volcane> inline_template("<%= arr1.concat(arr2) %>")
[2010/01/05 08:53:44] <ohadlevy> volcane: yeah, that would be shorter
[2010/01/05 08:54:05] <ohadlevy> maybe add compact
[2010/01/05 08:54:14] <Volcane> yeah to avoid dupes
[2010/01/05 08:55:05] <Volcane> oh wait, what does compact do?
[2010/01/05 08:55:13] <ohadlevy> remove nils
[2010/01/05 08:55:23] <ohadlevy> for dupes just do uniq
[2010/01/05 08:55:29] <Volcane> ah
[2010/01/05 08:55:35] <Volcane> yeah confused compact
[2010/01/05 08:58:09] @ Quit: bjaspan:
[2010/01/05 09:02:56] @ jcape joined channel #puppet
[2010/01/05 09:05:24] @ jab_doa joined channel #puppet
[2010/01/05 09:07:16] @ lazzurs_ is now known as lazzurs
[2010/01/05 09:09:03] @ kaptk2 joined channel #puppet
[2010/01/05 09:11:37] @ Quit: giskard: Read error: 110 (Connection timed out)
[2010/01/05 09:12:47] @ malraid joined channel #puppet
[2010/01/05 09:14:42] @ cwebber joined channel #puppet
[2010/01/05 09:22:01] @ themurph joined channel #puppet
[2010/01/05 09:22:18] @ PsychoSid1 joined channel #puppet
[2010/01/05 09:27:11] @ PsychoSid2 joined channel #puppet
[2010/01/05 09:28:48] @ bjaspan joined channel #puppet
[2010/01/05 09:30:03] @ Quit: PsychoSid: Read error: 60 (Operation timed out)
[2010/01/05 09:37:46] @ nar joined channel #puppet
[2010/01/05 09:38:16] <nar> Can anyone tell me how puppetd is executed? Is it a cron task? If so, under what user is it executed? Thanks.
[2010/01/05 09:39:08] <ashp> Hmm, I've never done this and I don't really know anyone else to ask: can I resize an LVM volume that has an ext3 filesystem and have the ext3 filesystem autoexpand in size?
[2010/01/05 09:39:28] <ashp> I discovered someone made a 9.7G swap partition on a machine with only 20G of disk space, so I'm trying to recover most of that space.
[2010/01/05 09:40:08] <duritong> nar: puppetd usually runs as a daemon
[2010/01/05 09:40:25] <duritong> nar: and as it should do every system change you like it to do it runs usually as root
[2010/01/05 09:40:30] <FiXion> ashp: do you want to make the partitio smaller or larger?
[2010/01/05 09:40:38] @ rocket joined channel #puppet
[2010/01/05 09:40:43] <FiXion> if smaller -you need to minimize the filesystem first
[2010/01/05 09:40:50] <ashp> FiXion: I want to make /dev/mapper/VolGroup00-LogVol00 bigger
[2010/01/05 09:41:04] <nar> duritong: ok, some servers just don't seem to run it until I log in and manually execute puppetd, any suggestion how to troubleshoot this?
[2010/01/05 09:41:14] <ashp> it's currently 11G and I want to expand it by adding all free space
[2010/01/05 09:41:21] <FiXion> ohh
[2010/01/05 09:41:25] <nar> duritong: I have a lot of servers so manual check is impossible
[2010/01/05 09:41:26] <FiXion> then just expand the lvm disk
[2010/01/05 09:41:27] <duritong> nar: what kind of server and what kind of version?
[2010/01/05 09:41:32] <FiXion> and run resize2fs on the device afterwards
[2010/01/05 09:41:39] <duritong> nar: not every package starts the daemon by default
[2010/01/05 09:41:39] <nar> duritong: debian lenny
[2010/01/05 09:41:47] <ashp> FiXion: ah, but it has to be done in single user or something if I have to resize the fs?
[2010/01/05 09:41:48] <FiXion> all while online
[2010/01/05 09:41:51] <ashp> i mean this isn't zfs so i'm lost :)
[2010/01/05 09:41:54] <duritong> nar: hmm dunno about debian lenny
[2010/01/05 09:41:55] <ashp> oh, ok, i didn't know that
[2010/01/05 09:42:04] <FiXion> ashp: no. you can do it while everything runs
[2010/01/05 09:42:07] <duritong> nar: but you should check your deployment process
[2010/01/05 09:42:20] <nar> duritong: would you know what logs I could review to see why it may have failed?
[2010/01/05 09:42:38] <FiXion> unless you have REALLY old distribution..
[2010/01/05 09:42:51] <FiXion> online "enlarge" of ext3 has been there for a while
[2010/01/05 09:42:55] <duritong> nar: /var/log/messages or whatever is set as logdestination
[2010/01/05 09:43:07] <ashp> this is rhel 5.4 so it should be fine
[2010/01/05 09:43:12] <nar> duritong: got it, in puppet.conf
[2010/01/05 09:43:12] <rocket> Are any devs in here this morning? .. I am trying to work on creating a new type and have some design questions
[2010/01/05 09:43:19] <ashp> the only 'lvm' type stuff i've used is zfs, so i wasn't sure how it worked
[2010/01/05 09:44:02] @ diranged joined channel #puppet
[2010/01/05 09:44:06] <FiXion> ashp: see man lvresize
[2010/01/05 09:44:11] <FiXion> or just google for an example
[2010/01/05 09:44:12] <diranged> hmmm puppetd has gone nuts on a few of my systems and has hundreds of files held open
[2010/01/05 09:44:13] <FiXion> it's easy
[2010/01/05 09:44:17] @ bug joined channel #puppet
[2010/01/05 09:44:23] <ashp> yeah, i'm googling now, just wanted to check the docs didn't lie
[2010/01/05 09:44:24] <hggh> http://pastebin.ca/1738825 this code installs only version 2.3.4 but not 2.3.2. What's wrong?
[2010/01/05 09:44:51] <FiXion> ashp: remember to check date of guides. things has changed in this respect
[2010/01/05 09:45:03] <FiXion> man pages are normally the most certain way to know what works on your os :)
[2010/01/05 09:45:10] <FiXion> and lvresize is very easy
[2010/01/05 09:45:12] <diranged> http://www.pastie.org/767459
[2010/01/05 09:45:16] <FiXion> do an lvdisplay first
[2010/01/05 09:45:23] <FiXion> or vgdisplay that is
[2010/01/05 09:45:28] <FiXion> to see how many free extents you have
[2010/01/05 09:45:37] <FiXion> and then just lvresize +free_extents on that lv
[2010/01/05 09:45:48] <FiXion> and then resize filesystem afterwards to use the new space
[2010/01/05 09:46:09] @ Quit: PsychoSid1: Read error: 110 (Connection timed out)
[2010/01/05 09:47:27] @ Quit: bjaspan:
[2010/01/05 09:47:49] <nar> duritong: hmm, /var/log/puppet is empty
[2010/01/05 09:48:39] @ bjaspan joined channel #puppet
[2010/01/05 09:51:29] <duritong> nar: look into /var/log/messages then
[2010/01/05 09:51:40] <ashp> FiXion: it looks easy, i'm just waiting for permission to run a esx snapshot first in case i break it :)
[2010/01/05 09:52:17] <nar> duritong: ok, /var/log/daemon.log shows it all, i can see when I manually ran puppetd this morning, but other than that, puppetd hasn't run automatically for a few days
[2010/01/05 09:52:28] <ashp> all I need is lvresize -l 100%FREE or something and i'm done
[2010/01/05 09:52:34] <duritong> nar: well did you start the daemon?
[2010/01/05 09:52:45] <duritong> nar: you might want to manage that as well with puppet
[2010/01/05 09:52:56] <duritong> so it is started after you run it manually
[2010/01/05 09:53:33] <nar> duritong: i assumed when i installed puppet, the daemon was started, when i run "puppetd", does that mean it's started, or it's just run once?
[2010/01/05 09:54:14] @ Quit: M-: "This computer has gone to sleep"
[2010/01/05 09:54:54] <duritong> nar: I would start the daemon with the service script
[2010/01/05 09:55:08] <duritong> nar: but just puppetd might start it as well
[2010/01/05 09:55:16] <duritong> but it looks like your daemon exits somehow
[2010/01/05 09:55:24] <duritong> which is something you should find in the logs
[2010/01/05 09:55:31] <duritong> or maybe you configured it to run just once?
[2010/01/05 09:55:46] <nar> well, I just ran /etc/init.d/puppet start and it started
[2010/01/05 09:55:51] <nar> I guess it wasn't running after all
[2010/01/05 09:55:58] <duritong> looks like
[2010/01/05 09:56:05] @ pjsz joined channel #puppet
[2010/01/05 09:57:55] @ pjsz left channel #puppet ()
[2010/01/05 09:59:05] @ mboyd joined channel #puppet
[2010/01/05 09:59:16] @ Quit: kolla: Remote closed the connection
[2010/01/05 10:06:00] @ brothers joined channel #puppet
[2010/01/05 10:06:19] @ Quit: MattyM: "ta ta"
[2010/01/05 10:07:04] @ Quit: londo_: Read error: 60 (Operation timed out)
[2010/01/05 10:07:11] <FiXion> ashp: lvresize doesn't expand the filesystem
[2010/01/05 10:07:58] <ashp> no, that's the resize2fs bit
[2010/01/05 10:08:05] <ashp> i just wanted a lazy way to say 'all available space' :)
[2010/01/05 10:08:26] <hacim> can you pass the $name var into a define?
[2010/01/05 10:08:43] <hacim> I would think so, but for some reason its coming out empty
[2010/01/05 10:09:31] <FiXion> ashp: imho lazy way is just to see extents in vgdisplay..
[2010/01/05 10:10:25] <ashp> well, this works pretty nice
[2010/01/05 10:10:32] <ashp> I had no real lvm experience prior to this
[2010/01/05 10:10:44] <ashp> i avoided it and used freebsd/zfs if I needed to meddle with volume management :)
[2010/01/05 10:16:19] @ dsch04 is now known as robin
[2010/01/05 10:16:48] @ robin is now known as Guest20764
[2010/01/05 10:16:53] @ Guest20764 is now known as dsch04
[2010/01/05 10:16:59] @ dsch04 is now known as robinbowes
[2010/01/05 10:18:08] @ pjsz joined channel #puppet
[2010/01/05 10:18:26] @ Quit: londo: Remote closed the connection
[2010/01/05 10:18:44] @ pjsz left channel #puppet ()
[2010/01/05 10:22:37] @ shake-n-bake joined channel #puppet
[2010/01/05 10:24:36] @ Quit: shake-n-bake: Client Quit
[2010/01/05 10:25:52] @ londo_ joined channel #puppet
[2010/01/05 10:27:04] <fluxdude> I wrote a custom function for puppet to use and put it in modules/modulename/plugins/puppet/parser/functions/function_name.rb but when I call it in my modules/nodulename/manifests/init.pp I get
[2010/01/05 10:27:12] <fluxdude> Unknown function function_name at ....
[2010/01/05 10:27:40] <hacim> i have this: "$nagios_cfgdir/${nagios2_host_name}_${name}_service.cfg":
[2010/01/05 10:27:54] <fluxdude> using 0.24.8
[2010/01/05 10:27:54] <hacim> but the ${name} var is empty
[2010/01/05 10:27:56] @ londo joined channel #puppet
[2010/01/05 10:28:07] <Guest90481> hello, is there any way to force puppet to ignore rpm dependancies in a package definition.
[2010/01/05 10:28:11] <Guest90481> class base_rpms {
[2010/01/05 10:28:11] <Guest90481> package { jdk: ensure => latest }
[2010/01/05 10:28:11] <Guest90481> package { nagios-plugins: ensure => latest }
[2010/01/05 10:28:11] <Guest90481> }
[2010/01/05 10:28:27] <fluxdude> Guest90481: do an exec and call rpm yourself?
[2010/01/05 10:28:30] <Volcane> no, and thats the sane thing to do
[2010/01/05 10:28:33] <Guest90481> and when the client runs, i get : Missing Dependency: perl(Net::SNMP) is needed by package nagios-plugins-1.4.13-1.i386 (boku_repo)
[2010/01/05 10:28:46] <Volcane> Guest90481: also, pls do not post code here, paste into pastie.org and then give us a link
[2010/01/05 10:29:00] <Guest90481> Volcane - sorry, my appologies
[2010/01/05 10:29:14] <kjetilho> Guest90481: you need to specify the dependencies yourself in Puppet code
[2010/01/05 10:29:16] <Volcane> Guest90481: so why dont you give it that package so it installs it?
[2010/01/05 10:29:19] <kjetilho> ... or use yum, of course
[2010/01/05 10:29:19] <fluxdude> Volcane: have you used custom functions?
[2010/01/05 10:29:24] <fluxdude> where did you keep them?
[2010/01/05 10:29:32] @ labrown joined channel #puppet
[2010/01/05 10:29:37] <Volcane> fluxdude: yes but i put them into the server rpm
[2010/01/05 10:29:37] <fluxdude> I want to keep my with the module it is for but I cannot seem to get it to be found
[2010/01/05 10:30:00] <Volcane> fluxdude: docs suggest what you're doing will work but i recall not getting it going either
[2010/01/05 10:30:21] <fluxdude> that's my problem... I have followed those docs and it's not working
[2010/01/05 10:30:27] <fluxdude> all the other tests seem to work
[2010/01/05 10:30:35] <fluxdude> but not the calling of the function from the manifest
[2010/01/05 10:30:49] <Volcane> nod, i just put them in the ruby libdir on the master
[2010/01/05 10:31:03] @ ShiNboi joined channel #puppet
[2010/01/05 10:34:57] @ littleidea joined channel #puppet
[2010/01/05 10:35:19] @ littleidea left channel #puppet ()
[2010/01/05 10:37:11] <fluxdude> got it working
[2010/01/05 10:37:24] <fluxdude> silly error function.rb was owned by root and not puppet
[2010/01/05 10:37:30] <fluxdude> works now now
[2010/01/05 10:38:45] <Volcane> so not readable by puppet you mean?
[2010/01/05 10:39:49] <fluxdude> yeah
[2010/01/05 10:40:09] <Volcane> kewl maybe I'll try it out again so i can stop adding it into my master rpms
[2010/01/05 10:42:17] @ pjsz joined channel #puppet
[2010/01/05 10:42:39] @ Quit: pjsz: Client Quit
[2010/01/05 10:44:53] @ Quit: flakrat: "Leaving"
[2010/01/05 10:45:16] @ Quit: bjaspan:
[2010/01/05 10:47:21] @ bjaspan joined channel #puppet
[2010/01/05 10:47:46] @ jmarki joined channel #puppet
[2010/01/05 10:48:47] @ pedr joined channel #puppet
[2010/01/05 10:49:31] <pedr> how do i create a file for each user in a array
[2010/01/05 10:50:47] @ Quit: tim|macbook:
[2010/01/05 10:51:01] <pedr> can i use forloops in manifests somehow?
[2010/01/05 10:51:21] <Volcane> depends on exactly what u need
[2010/01/05 10:52:34] <pedr> i have my users in a variable, and i would like to create a .bashrc file in /home/user for all those users
[2010/01/05 10:52:55] <Volcane> the only way then is to make a define
[2010/01/05 10:53:12] <pedr> what is a define?
[2010/01/05 10:53:36] <Volcane> http://pastie.org/767530
[2010/01/05 10:53:40] @ Quit: skiold:
[2010/01/05 10:53:58] <Volcane> notice how inside the define $name is a variable that has the current array member in it
[2010/01/05 10:54:16] <pedr> what is ${name}
[2010/01/05 10:54:22] <pedr> ah
[2010/01/05 10:54:49] <pedr> could you explain bashrc{$list_of_users: }
[2010/01/05 10:55:00] <diranged> anyone konw whats up with these 'can't identify protocol' open files that puppetd opens?
[2010/01/05 10:56:07] <Volcane> pedr: $list_of_users is an array like ["john", "jack", "jill"]
[2010/01/05 10:57:34] <pedr> how does that connect to ${name}
[2010/01/05 10:57:53] <pedr> oh and what is the : in the end?
[2010/01/05 10:57:59] @ jmarki left channel #puppet ("Leaving")
[2010/01/05 10:58:04] <pedr> sorry for my questions :)
[2010/01/05 10:58:17] <Volcane> its the same as file{"/foo": }
[2010/01/05 10:59:04] @ pjsz joined channel #puppet
[2010/01/05 10:59:33] <pedr> ok i got the : but i dont understand how ${name} inherits the list of users
[2010/01/05 10:59:34] @ gpled joined channel #puppet
[2010/01/05 11:00:04] <Volcane> thats how puppet loops
[2010/01/05 11:00:19] <Volcane> if u put in an array as a resource name
[2010/01/05 11:00:26] <Volcane> it will make 1 x resource for each member in the array
[2010/01/05 11:00:35] <Volcane> and $name is a special var for the resource name
[2010/01/05 11:00:35] <gpled> i have this in two different modules: file { "/usr/local/src": ensure => directory }
[2010/01/05 11:00:44] <gpled> and get this error: Could not retrieve catalog: Puppet::Parser::AST::Resource failed with error ArgumentError: Duplicate definition:
[2010/01/05 11:00:55] <pedr> Volcane: ah its a special var? ok i will look it up, thank you :)
[2010/01/05 11:01:11] <gpled> how should i deal with this?
[2010/01/05 11:01:26] <Volcane> make a common module
[2010/01/05 11:01:29] <Volcane> and include it in both
[2010/01/05 11:01:34] <Volcane> or virtual resources
[2010/01/05 11:02:40] <gpled> can i give an: alias => to each module to fix things?
[2010/01/05 11:03:10] <gpled> never used alias with file {}
[2010/01/05 11:03:13] <Volcane> you cant manage /usr/local/src twice
[2010/01/05 11:03:49] <gpled> k, understand it now
[2010/01/05 11:05:10] <gpled> in my module file structure, where do you like to place common modules?
[2010/01/05 11:05:37] <Volcane> in a module called common
[2010/01/05 11:06:05] <gpled> one init.pp for all common?
[2010/01/05 11:06:47] <Volcane> i have things like common::linux and common::client_name and common::monitoring
[2010/01/05 11:07:42] @ Quit: jcape: Read error: 110 (Connection timed out)
[2010/01/05 11:08:31] @ Quit: PsychoSid2: "Leaving."
[2010/01/05 11:10:19] <Volcane> enable it lets see
[2010/01/05 11:10:25] <Volcane> ignore that
[2010/01/05 11:11:06] @ rmiller4pi8 joined channel #puppet
[2010/01/05 11:12:28] @ Quit: nar: Read error: 60 (Operation timed out)
[2010/01/05 11:12:53] @ Quit: rmiller4pi8: Client Quit
[2010/01/05 11:13:18] <fluxdude> I'm having trouble with the function I wrote... it doesn't seem to change the results any more...
[2010/01/05 11:13:27] <fluxdude> I do a few operations on a couple of arrays
[2010/01/05 11:13:34] <fluxdude> then I do return newarray
[2010/01/05 11:16:52] @ jcape joined channel #puppet
[2010/01/05 11:18:04] <hggh> I having problems to install more than one rails version. I use this http://pastebin.ca/1738825 but only version 2.3.4 will be installed
[2010/01/05 11:18:17] @ lak joined channel #puppet
[2010/01/05 11:18:24] @ nar joined channel #puppet
[2010/01/05 11:18:53] <hggh> I have also tried ensure => [ "2.3.4" , "2.3.2" ] but this also does not work. any hints?
[2010/01/05 11:20:17] @ crdant joined channel #puppet
[2010/01/05 11:20:57] <Volcane> u cant ask puppet to take 1 resource and have it in 2 states
[2010/01/05 11:21:52] <hggh> so it is not possible to install different rails version with package {}?
[2010/01/05 11:22:03] @ Quit: crdant: Client Quit
[2010/01/05 11:24:19] @ kolla joined channel #puppet
[2010/01/05 11:27:48] <joe-mac> what package manager allows for that?
[2010/01/05 11:28:18] <fluxdude> what's not clear in the puppet doc on writing functions is how to determine what is returned from an rvalue function
[2010/01/05 11:28:34] <fluxdude> I assume that it is done via return something at the end of the function
[2010/01/05 11:29:00] <fluxdude> although this seems to work before when I wasn't using return and the last line of the func was working on the thing I wanted returned, an implicit return...
[2010/01/05 11:29:09] <fluxdude> (where have I seen that before... vbs I think)
[2010/01/05 11:29:46] <Volcane> fluxdude: its a ruby thing, the return value of the last statement in your code gets returned
[2010/01/05 11:29:47] <kjetilho> joe-mac: RPM allows multiple versions of packages to be installed simultaneously, notably used for "kernel"
[2010/01/05 11:29:55] <Volcane> fluxdude: in the abense of a specific return foo
[2010/01/05 11:30:04] <joe-mac> kjetilho: forgot about that!
[2010/01/05 11:30:12] <fluxdude> that's what I thought
[2010/01/05 11:30:28] <fluxdude> but it's not returning what I expect right now which is really irritating as I can't see why not
[2010/01/05 11:30:37] <fluxdude> I'll paste the code, just a min
[2010/01/05 11:31:04] <Volcane> add Puppet.notice("The value i am returning is #{foo}") type of lines in your function and see
[2010/01/05 11:31:08] @ Quit: mqr_:
[2010/01/05 11:31:10] <gpled> Volcane: when working with common modules, they have to be called from nodes.pp ?
[2010/01/05 11:31:18] @ Quit: lak:
[2010/01/05 11:31:36] <Volcane> gpled: theres nothing special about them, tey're just modules
[2010/01/05 11:32:35] @ rmiller4pi8 joined channel #puppet
[2010/01/05 11:34:29] <gpled> i made a module called common, then then included it in two other modules. it still gets the error of saying Duplicate definition
[2010/01/05 11:34:33] @ Quit: pacalm:
[2010/01/05 11:35:06] <Volcane> put your duplicate definition into a class - once only, in one place
[2010/01/05 11:35:09] <Volcane> then just include it many times
[2010/01/05 11:35:17] <Volcane> you can include as many times as you want
[2010/01/05 11:36:15] @ Quit: bug:
[2010/01/05 11:37:06] @ tripoux joined channel #puppet
[2010/01/05 11:38:04] @ jcape1 joined channel #puppet
[2010/01/05 11:39:14] @ Quit: pneff: "ZNC - http://znc.sourceforge.net"
[2010/01/05 11:42:21] <ashp> Hmm, I really need a cleverer way to deal with this.
[2010/01/05 11:42:35] <ashp> I have a host{} for 'puppet' that relies on a fact to determine what address to use (as it depends on what subnet you're on)
[2010/01/05 11:42:45] <ashp> but when I _change_ a hosts ip address it has the fact cached at the start of the run
[2010/01/05 11:42:54] <ashp> so nothing I do allows the host entry to update at the same time as the ip changes
[2010/01/05 11:43:02] <fluxdude> Volcane: no notice was generated on the puppet client or the puppetmaster
[2010/01/05 11:43:17] @ Quit: Ramonster: Client Quit
[2010/01/05 11:51:17] @ Quit: pjsz:
[2010/01/05 11:51:58] @ lak joined channel #puppet
[2010/01/05 11:52:57] <fluxdude> i am confused, is it using my function or not.
[2010/01/05 11:53:10] @ Quit: ShiNboi: Read error: 60 (Operation timed out)
[2010/01/05 11:53:14] <fluxdude> do I need to restart the puppetmaster or something for it to update my function
[2010/01/05 11:53:44] <Volcane> probably
[2010/01/05 11:58:26] @ Demosthenes joined channel #puppet
[2010/01/05 11:59:28] @ Quit: jcape: Read error: 110 (Connection timed out)
[2010/01/05 12:00:01] @ Quit: Guest90481: Read error: 60 (Operation timed out)
[2010/01/05 12:02:45] @ GGD joined channel #puppet
[2010/01/05 12:04:42] <fluxdude> restarting the puppetmaster seems to have done the trick
[2010/01/05 12:04:57] <fluxdude> in getting the function to update
[2010/01/05 12:05:25] <fluxdude> except the puppetmaster has suddenly got so slow I can't test it
[2010/01/05 12:07:51] @ Quit: londo_: Read error: 60 (Operation timed out)
[2010/01/05 12:09:34] @ jcape joined channel #puppet
[2010/01/05 12:09:47] @ ShiNboi joined channel #puppet
[2010/01/05 12:09:58] @ overflowpt joined channel #puppet
[2010/01/05 12:09:59] @ londo_ joined channel #puppet
[2010/01/05 12:10:19] <overflowpt> hello.. does anyone know where i can find facter recipes ?
[2010/01/05 12:11:32] @ Quit: danielbln: "Leaving."
[2010/01/05 12:14:41] @ Quit: londo_: Read error: 60 (Operation timed out)
[2010/01/05 12:16:04] @ bitfield joined channel #puppet
[2010/01/05 12:16:37] @ nigelk joined channel #puppet
[2010/01/05 12:17:17] @ Quit: jcape1: Read error: 110 (Connection timed out)
[2010/01/05 12:18:16] @ Quit: Robbie_: Remote closed the connection
[2010/01/05 12:18:48] @ Quit: lak:
[2010/01/05 12:19:19] @ jmarki-eek joined channel #puppet
[2010/01/05 12:20:10] @ bug joined channel #puppet
[2010/01/05 12:20:12] @ londo_ joined channel #puppet
[2010/01/05 12:20:56] @ nar_ joined channel #puppet
[2010/01/05 12:21:00] * overflowpt is away: (10 minute autoaway) [BX-MsgLog Off]
[2010/01/05 12:22:57] * overflowpt is back from the dead. Gone 1 minute 56 seconds
[2010/01/05 12:23:38] <robinbowes> ohadlevy: yt?
[2010/01/05 12:23:51] <pedr> when i use ${user} i get No such file or directory /home/pedr
[2010/01/05 12:23:56] <pedr> /test
[2010/01/05 12:24:04] <pedr> but that folder does exist
[2010/01/05 12:24:06] @ shadoi joined channel #puppet
[2010/01/05 12:24:17] <pedr> file i mean
[2010/01/05 12:24:52] <pedr> perhaps its not returning a array hmm
[2010/01/05 12:25:41] <Volcane> overflowpt: please turn of your noisy /away fnction
[2010/01/05 12:26:58] @ mqr joined channel #puppet
[2010/01/05 12:29:17] @ Quit: nar: Read error: 110 (Connection timed out)
[2010/01/05 12:29:17] @ nar_ is now known as nar
[2010/01/05 12:30:27] @ Quit: ShiNboi: Client Quit
[2010/01/05 12:30:43] <overflowpt> ok
[2010/01/05 12:30:50] @ Quit: overflowpt: "overflowpt has no reason"
[2010/01/05 12:33:01] <pedr> yeah cool works if i create a array, so i just need to somehow convert a string to a array :) thanks Volcane i got it almost working thanks to you
[2010/01/05 12:33:19] <pedr> ill go looking in the forum
[2010/01/05 12:33:22] @ lak joined channel #puppet
[2010/01/05 12:34:12] <Volcane> [$string] but it should work with an array too
[2010/01/05 12:34:21] <Volcane> i mean should work with a string too
[2010/01/05 12:35:13] @ mqr_ joined channel #puppet
[2010/01/05 12:35:37] @ mqr__ joined channel #puppet
[2010/01/05 12:35:39] @ Quit: mqr: Read error: 104 (Connection reset by peer)
[2010/01/05 12:38:30] @ Quit: lak:
[2010/01/05 12:39:04] @ toi joined channel #puppet
[2010/01/05 12:39:04] @ Guest90481 joined channel #puppet
[2010/01/05 12:39:15] @ Quit: Boltsky:
[2010/01/05 12:39:16] @ Quit: jcape: "Leaving."
[2010/01/05 12:39:23] @ jcape joined channel #puppet
[2010/01/05 12:39:28] @ tecto joined channel #puppet
[2010/01/05 12:40:34] @ Quit: mqr__: Read error: 104 (Connection reset by peer)
[2010/01/05 12:41:03] @ mqr joined channel #puppet
[2010/01/05 12:41:12] @ Quit: poison: Remote closed the connection
[2010/01/05 12:42:14] @ Quit: cwebber:
[2010/01/05 12:43:19] @ cwebber joined channel #puppet
[2010/01/05 12:43:22] @ Quit: jcape: Client Quit
[2010/01/05 12:45:29] @ tomjmalone joined channel #puppet
[2010/01/05 12:50:16] @ jcape1 joined channel #puppet
[2010/01/05 12:52:33] @ mqr__ joined channel #puppet
[2010/01/05 12:52:34] @ Quit: mqr: Read error: 104 (Connection reset by peer)
[2010/01/05 12:52:58] @ Quit: jcape1: Client Quit
[2010/01/05 12:53:12] @ jcape1 joined channel #puppet
[2010/01/05 12:55:14] @ Quit: mqr_: Read error: 110 (Connection timed out)
[2010/01/05 12:56:55] @ Quit: bug:
[2010/01/05 12:59:29] @ Quit: giskard_: Remote closed the connection
[2010/01/05 12:59:45] @ Quit: gpled: "Ex-Chat"
[2010/01/05 12:59:48] @ mqr joined channel #puppet
[2010/01/05 12:59:50] @ Quit: pedr: "Page closed"
[2010/01/05 13:00:18] @ Quit: marcoecc: Remote closed the connection
[2010/01/05 13:00:33] @ mqr_ joined channel #puppet
[2010/01/05 13:01:02] @ Quit: mqr__: Read error: 104 (Connection reset by peer)
[2010/01/05 13:01:57] @ Boltsky joined channel #puppet
[2010/01/05 13:04:08] @ kambiz` is now known as kambiz
[2010/01/05 13:05:54] <jamesturnbull> tmz: barely
[2010/01/05 13:06:09] @ Quit: mqr_: Read error: 54 (Connection reset by peer)
[2010/01/05 13:06:13] <tmz> jamesturnbull: Heh, understandable.
[2010/01/05 13:06:22] @ bobbyz joined channel #puppet
[2010/01/05 13:07:03] @ mqr_ joined channel #puppet
[2010/01/05 13:08:36] @ Quit: jaredrhine: Read error: 110 (Connection timed out)
[2010/01/05 13:10:05] @ rhulsker joined channel #puppet
[2010/01/05 13:11:20] @ Quit: Guest90481: Read error: 60 (Operation timed out)
[2010/01/05 13:12:08] @ danielbln joined channel #puppet
[2010/01/05 13:16:06] @ Quit: mqr_: Read error: 104 (Connection reset by peer)
[2010/01/05 13:16:39] @ Quit: cwebber:
[2010/01/05 13:17:31] @ lak joined channel #puppet
[2010/01/05 13:19:14] @ Quit: mqr: Read error: 110 (Connection timed out)
[2010/01/05 13:19:39] @ mqr joined channel #puppet
[2010/01/05 13:20:57] @ Quit: lak: Client Quit
[2010/01/05 13:22:49] @ lilmatt joined channel #puppet
[2010/01/05 13:24:04] @ lak joined channel #puppet
[2010/01/05 13:25:53] @ mqr_ joined channel #puppet
[2010/01/05 13:26:59] @ Quit: mqr: Read error: 54 (Connection reset by peer)
[2010/01/05 13:33:58] @ windowsrefund joined channel #puppet
[2010/01/05 13:34:36] <windowsrefund> require => Apache2::vhost[$name]
[2010/01/05 13:34:38] <windowsrefund> is that legal?
[2010/01/05 13:35:46] <joe-mac> windowsrefund: you need to capitalize the v in vhost
[2010/01/05 13:36:00] <windowsrefund> oh
[2010/01/05 13:36:19] <windowsrefund> I'll try that
[2010/01/05 13:36:20] <windowsrefund> thanks
[2010/01/05 13:36:45] <joe-mac> np
[2010/01/05 13:39:23] @ Quit: fluxdude: Read error: 110 (Connection timed out)
[2010/01/05 13:41:05] <rhulsker> im having trouble distributing custom facts to my clients. i have followed the instructions for Plugins In Modules but it does not seem to work and I am not getting any errors.
[2010/01/05 13:41:10] @ jes5 joined channel #puppet
[2010/01/05 13:41:19] @ giskard joined channel #puppet
[2010/01/05 13:42:19] @ pting joined channel #puppet
[2010/01/05 13:42:37] @ mqr joined channel #puppet
[2010/01/05 13:43:52] @ jaredrhine joined channel #puppet
[2010/01/05 13:44:52] @ Quit: windowsrefund: "leaving"
[2010/01/05 13:45:36] <jmeeuwen> uch
[2010/01/05 13:45:43] @ Quit: nar:
[2010/01/05 13:45:50] <jmeeuwen> i've been making way too much trouble over this trailing slash thing it seeems
[2010/01/05 13:46:28] <gepetto> ::trac:: Release Notes edited @ http://reductivelabs.com/trac/puppet/wiki/ReleaseNotes?version=53
[2010/01/05 13:47:24] @ Quit: mqr_: Read error: 110 (Connection timed out)
[2010/01/05 13:49:03] @ Quit: explody: Read error: 104 (Connection reset by peer)
[2010/01/05 13:49:53] @ shake-n-bake joined channel #puppet
[2010/01/05 13:51:49] @ cwebber joined channel #puppet
[2010/01/05 13:52:23] @ Quit: jaredrhine: Read error: 60 (Operation timed out)
[2010/01/05 13:53:19] <rhulsker> i created a "custom" module with an empty "custom" class, does there actually need to be anything in there?
[2010/01/05 13:53:19] <gepetto> ::trac:: Road Map edited @ http://reductivelabs.com/trac/puppet/wiki/RoadMap?version=9
[2010/01/05 13:56:25] @ agagag joined channel #puppet
[2010/01/05 13:59:57] @ mindless joined channel #puppet
[2010/01/05 14:00:35] @ Quit: mindless: Read error: 54 (Connection reset by peer)
[2010/01/05 14:02:00] @ LinuxCode joined channel #puppet
[2010/01/05 14:04:39] @ happymcplaksin joined channel #puppet
[2010/01/05 14:04:57] @ Quit: shake-n-bake:
[2010/01/05 14:06:10] @ happymcplaksin left channel #puppet ("ERC Version 5.3 (IRC client for Emacs)")
[2010/01/05 14:07:23] @ jaredrhine joined channel #puppet
[2010/01/05 14:08:24] @ Quit: mikerowehl: Read error: 104 (Connection reset by peer)
[2010/01/05 14:08:45] @ mikerowehl joined channel #puppet
[2010/01/05 14:09:53] @ Quit: giskard: Remote closed the connection
[2010/01/05 14:13:27] @ shake-n-bake joined channel #puppet
[2010/01/05 14:13:45] @ Guest90481 joined channel #puppet
[2010/01/05 14:19:22] @ Quit: rhulsker: "Leaving"
[2010/01/05 14:19:45] @ Quit: shake-n-bake:
[2010/01/05 14:20:52] @ Quit: LinuxCode: "Connection Closed"
[2010/01/05 14:22:09] @ rhulsker joined channel #puppet
[2010/01/05 14:24:13] <jb> anyone here using dashboard yet?
[2010/01/05 14:30:38] @ rhulsker left channel #puppet ()
[2010/01/05 14:32:19] @ rhulsker joined channel #puppet
[2010/01/05 14:32:48] @ Quit: rhulsker: Client Quit
[2010/01/05 14:33:02] @ rhulsker joined channel #puppet
[2010/01/05 14:33:10] @ skiold joined channel #puppet
[2010/01/05 14:38:01] <jb> hrm, I wonder how foreman handles classes with the same names in different environments?
[2010/01/05 14:40:06] <Volcane> its irrelevant isnt it?
[2010/01/05 14:40:35] <jb> well, foreman asks you to define the class(es) for a host
[2010/01/05 14:40:44] <jb> i wonder if it does that based on the environment that you select?
[2010/01/05 14:41:14] <jb> right now, I have modulepath pointed directly to one module
[2010/01/05 14:41:16] <jb> err, environment
[2010/01/05 14:41:16] <Volcane> so u want different sets of classes for a node depending on environment?
[2010/01/05 14:41:40] <jb> well, if I have a "test" class, and that class differs amongst environments..
[2010/01/05 14:41:41] @ Quit: nigelk:
[2010/01/05 14:41:54] <Volcane> thats a master setup, an a node setup
[2010/01/05 14:42:03] <Volcane> it doesnt change anything to foreman
[2010/01/05 14:42:12] <Volcane> unless i am not following u
[2010/01/05 14:42:17] <jb> hm
[2010/01/05 14:42:21] <jb> ok, so say I add a node to foreman
[2010/01/05 14:42:30] <jb> foreman asks me which classes I would like to apply to that node
[2010/01/05 14:42:33] @ Quit: alban2: Read error: 113 (No route to host)
[2010/01/05 14:42:34] <fsweetser> foreman does have a list of which classes are in a given environment
[2010/01/05 14:42:39] <jb> ok
[2010/01/05 14:42:51] <Volcane> oh u mean the list of classes it presents
[2010/01/05 14:42:53] <Volcane> right
[2010/01/05 14:42:53] <fsweetser> I *think* that it just uses that to filter out which classes can be applied to a given host, though
[2010/01/05 14:42:54] <jb> yes
[2010/01/05 14:43:06] <Volcane> not sure
[2010/01/05 14:43:55] @ pedr joined channel #puppet
[2010/01/05 14:44:09] <pedr> hmm ok so my issue was a simple line break
[2010/01/05 14:44:10] <pedr> hah
[2010/01/05 14:44:12] <pedr> :/
[2010/01/05 14:44:24] <pedr> how do i 'chomp' in puppet?
[2010/01/05 14:44:56] <pedr> guess its my function i need to chomp, so i guess i should go read some ruby documentation
[2010/01/05 14:45:27] <Volcane> string.chomp!
[2010/01/05 14:45:33] <jb> fsweetser: are you using foreman in a multi-environment?
[2010/01/05 14:45:33] <Volcane> in ruby
[2010/01/05 14:45:41] <jb> multi-environment environment :)
[2010/01/05 14:45:46] <fsweetser> jb: no, I just have production right now
[2010/01/05 14:46:36] <jb> right now, I have ":modulepath: /etc/puppet/manifests/fcprod/modules/
[2010/01/05 14:46:49] <jb> where fcprod = environment..
[2010/01/05 14:48:00] @ giskard joined channel #puppet
[2010/01/05 14:48:24] <jb> guess i change that to just /etc/puppet/manifests, and hopefully it will recurse
[2010/01/05 14:48:57] @ Quit: lak:
[2010/01/05 14:49:51] @ lak joined channel #puppet
[2010/01/05 14:51:11] <fsweetser> jb: if you can catch ohadlevy when he's around, he can give you a more authoratative answer
[2010/01/05 14:52:16] <jb> yeah, i'll wait til tonight
[2010/01/05 14:52:34] <jb> i really want to start using dashboard.. but, its just too alpha at this point
[2010/01/05 14:52:48] <jb> i don't think it should be hard to later switch to it though, if I even want..
[2010/01/05 14:54:14] @ zahna joined channel #puppet
[2010/01/05 14:56:00] <fsweetser> haven't played with dashboard yet, but I've been pretty happy with foreman
[2010/01/05 14:56:18] <jb> yeah im happy too
[2010/01/05 14:56:21] @ flakrat joined channel #puppet
[2010/01/05 14:56:30] <jb> are you using storeconfigs?
[2010/01/05 14:56:35] <fsweetser> yep
[2010/01/05 15:00:04] @ Quit: Boltsky:
[2010/01/05 15:02:26] @ Quit: lak:
[2010/01/05 15:02:42] @ Quit: Volcane: Read error: 113 (No route to host)
[2010/01/05 15:03:05] @ Quit: jcape1: Read error: 60 (Operation timed out)
[2010/01/05 15:04:01] @ nigelk joined channel #puppet
[2010/01/05 15:04:57] @ Quit: diranged: Read error: 110 (Connection timed out)
[2010/01/05 15:07:22] <jb> fsweetser: fyi, it does not filter the class selection based on environment
[2010/01/05 15:07:28] <jb> so, i'll ping ohad about it
[2010/01/05 15:07:41] @ Volcane joined channel #puppet
[2010/01/05 15:08:06] <jb> 0.25.2 out btw :)
[2010/01/05 15:08:46] @ Volcane pinged #puppet
[2010/01/05 15:08:50] <Volcane> arg
[2010/01/05 15:08:54] @ Quit: Guest90481:
[2010/01/05 15:08:57] <Volcane> sorry about the mass ping, finger trouble
[2010/01/05 15:10:54] @ fugit_ joined channel #puppet
[2010/01/05 15:20:33] @ jcape joined channel #puppet
[2010/01/05 15:23:07] @ specsmu joined channel #puppet
[2010/01/05 15:23:30] <specsmu> hey, anyone willing to help with a ssl problem? I set up a puppet server and a client, and they are refusing to talk to each other, even though I can find no reason for it
[2010/01/05 15:23:54] <specsmu> the dates are correct, I started puppetmaster and the key signed just fine, but it's unable to verify the certificate
[2010/01/05 15:25:00] <specsmu> I would think it would have something to do with the server itself being under puppet, but I set up another server like that and it works just fine
[2010/01/05 15:27:37] <Volcane> well after randomly guessig what the errors and setup of your site is, we have to conclude that we dont know the anwer
[2010/01/05 15:27:55] @ Quit: giskard: Remote closed the connection
[2010/01/05 15:27:56] @ Quit: fugit: Read error: 110 (Connection timed out)
[2010/01/05 15:28:35] <specsmu> the setup is as follows... one master server running the entire datacenter. Uses passenger, all servers under it work just fine
[2010/01/05 15:28:54] <specsmu> another puppetmaster set up under it. stock puppet install, just did a yum install and started puppetmasterd
[2010/01/05 15:29:26] <specsmu> the client is just a stock puppet install with the server pointing to the second puppet server... again a very generic config that works just fine on all of the other servers
[2010/01/05 15:29:56] <specsmu> I would think it'd have something to do with the cert chain being self-signed, except it works on other servers...
[2010/01/05 15:30:07] <specsmu> wondering if I should just blow away the entire puppet install
[2010/01/05 15:33:02] <specsmu> hmm, only happening on the fileserver.
[2010/01/05 15:33:10] <Volcane> so much typing, zero useful info
[2010/01/05 15:33:13] <Volcane> like error messages
[2010/01/05 15:33:35] <specsmu> err: /File[/var/lib/puppet/lib]: Failed to generate additional resources d
[2010/01/05 15:33:35] <specsmu> uring transaction: Certificates were not trusted: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
[2010/01/05 15:34:04] <Volcane> you probably have pluginsync enabled and you probably use a non standard hostname for the server
[2010/01/05 15:34:19] <specsmu> pluginsync is enabled...
[2010/01/05 15:39:57] @ nakano_ is now known as nakano
[2010/01/05 15:40:38] @ fluxdude joined channel #puppet
[2010/01/05 15:46:04] <specsmu> is there a higher level debug than just -debug?
[2010/01/05 15:46:35] <eric0> if there is a real ruby-level error --trace will show it
[2010/01/05 15:46:55] <Volcane> i mentioned 2 things earlier, u only said about pluginsync
[2010/01/05 15:47:06] <Volcane> and you're not showing us full run outputs or anything
[2010/01/05 15:47:14] <Volcane> its not really helping us to help you
[2010/01/05 15:47:19] <specsmu> I don't think I'm using a nonstandard server name. I can pastebin a full run output...
[2010/01/05 15:47:48] <specsmu> I have checked the certs, they all use the fqdn
[2010/01/05 15:50:04] <specsmu> http://pastebin.ca/1739257
[2010/01/05 15:50:13] <specsmu> I added the puppet.conf to the end for good measure
[2010/01/05 15:50:53] <Volcane> "....and you probably use a non standard hostname for the server"
[2010/01/05 15:51:22] <specsmu> ok, I don't get your point.
[2010/01/05 15:51:42] <specsmu> sorry
[2010/01/05 15:52:11] <specsmu> <--- caffeine deprived and a bit fuzzy, so sorry
[2010/01/05 15:52:34] <Volcane> so if u choose a weird name in server
[2010/01/05 15:52:43] <Volcane> u also have to adjust the master for the same certificate name
[2010/01/05 15:53:48] <eric0> puppets a lot happier when it talks to a puppetmaster named 'puppet' , and if the host running puppetmsterd is not actually named 'puppet' you should add that as a subjectAltName in the server's certificate -- that is what line 54 means "consider using certname config option"
[2010/01/05 15:54:18] <Volcane> eric0: by default the cert has 'puppet', 'puppet.domain' and fqdn in it on the master
[2010/01/05 15:55:41] <eric0> oh, so...what else could be missing? different `hostname` vs ip->name mapping for the interface it's serving requests on, i guess?
[2010/01/05 15:56:18] <specsmu> I fixed that in /etc/hosts
[2010/01/05 15:57:14] <specsmu> it's actually an identical config to servers that have worked
[2010/01/05 15:57:21] <specsmu> which is what's making me go hmm
[2010/01/05 15:59:09] @ Quit: bjaspan:
[2010/01/05 16:00:41] <specsmu> ooo. there's a difference.
[2010/01/05 16:00:47] @ Quit: skiold:
[2010/01/05 16:00:57] <specsmu> ca.pem is signed by the server on top of the chain, not self-signed
[2010/01/05 16:01:04] @ bjaspan joined channel #puppet
[2010/01/05 16:01:59] @ giskard joined channel #puppet
[2010/01/05 16:03:33] <specsmu> yeah ok I think I see what it is now
[2010/01/05 16:03:52] <specsmu> you can't have a server running puppet and running under a *different* puppet at the same time
[2010/01/05 16:04:00] <jb> i have a wrapper class, that includes a different class depending on $productname: http://pastie.org/767991
[2010/01/05 16:04:26] <jb> it seems to be using the default value for the case, even though $productname = PowerEdge 1750.. am I doing this incorrectly?
[2010/01/05 16:05:05] <specsmu> is productname a fact?
[2010/01/05 16:05:20] <jb> yes, productname => PowerEdge 1750
[2010/01/05 16:05:25] <specsmu> did you chomp the fact?
[2010/01/05 16:05:43] <specsmu> if you don't, it returns with a trailing newline
[2010/01/05 16:05:52] <fsweetser> not just a trailing newline
[2010/01/05 16:06:00] <jb> hrm, no..
[2010/01/05 16:06:01] <Volcane> add some notice() statements and print the value of the fact to be sure
[2010/01/05 16:06:06] <fsweetser> I ran into this, and found that it was more like "PowerEdge 1750 "
[2010/01/05 16:06:22] <specsmu> yeah, and it's an exact match
[2010/01/05 16:06:27] <Volcane> notice("Productname: '${productname}'")
[2010/01/05 16:06:33] <jb> one sec.
[2010/01/05 16:08:13] <specsmu> so are there docs anywhere on how to run puppetmaster on a server that's running puppet itself, with different key sets?
[2010/01/05 16:08:42] <jb> hrm, its not printing the notice
[2010/01/05 16:09:56] <Volcane> add it above the case?
[2010/01/05 16:10:44] @ Quit: jcape: Read error: 110 (Connection timed out)
[2010/01/05 16:10:55] <jb> it is
[2010/01/05 16:11:40] <fsweetser> specsmu: you could have different certdir in the [puppet] and [puppetmaster] sections of the config file
[2010/01/05 16:11:47] <fsweetser> that might work
[2010/01/05 16:11:56] <jb> http://pastie.org/768002
[2010/01/05 16:12:03] <Volcane> jb: you checked the masters logs right?
[2010/01/05 16:12:24] <specsmu> is your operating system centos? :)
[2010/01/05 16:12:30] <jb> oh wow.
[2010/01/05 16:12:36] <jb> hah, it's in the logs.
[2010/01/05 16:12:38] <jb> sorry :)
[2010/01/05 16:12:47] <jb> and you were right: (Scope(Class[omsa])) Productname: 'PowerEdge 1750 '
[2010/01/05 16:13:16] <Volcane> probably worth filing a bug for that to chop off white space at the end of those facts
[2010/01/05 16:13:35] <jb> ok, so the temporary solution is to manually add the extra spaces?
[2010/01/05 16:13:40] <jb> or to chomp it myself?
[2010/01/05 16:13:45] <specsmu> no, chop them off in your fact
[2010/01/05 16:13:59] <Volcane> i assum ethese are the standard facter facts
[2010/01/05 16:14:03] <jb> yes they are
[2010/01/05 16:14:05] <jb> not custom
[2010/01/05 16:14:23] @ jcape joined channel #puppet
[2010/01/05 16:15:12] <jb> so, add the extra spaces to my manifest for now?
[2010/01/05 16:17:17] <fsweetser> jb: are you using 0.25?
[2010/01/05 16:17:21] <jb> yes
[2010/01/05 16:17:49] <fsweetser> I use this line in my manifests to strip the extra whitespaces
[2010/01/05 16:17:52] <fsweetser> $strippedname = regsubst($productname, '\s+$', '')
[2010/01/05 16:18:30] <jb> ok, thanks..
[2010/01/05 16:18:34] <jb> i'll also create a facter issue
[2010/01/05 16:18:37] <fsweetser> no prob
[2010/01/05 16:20:02] <jb> that did it :)
[2010/01/05 16:20:58] @ verwilst_ joined channel #puppet
[2010/01/05 16:21:08] <specsmu> well, I guess I'll try to figure it out from here
[2010/01/05 16:21:18] <specsmu> thanks for your help and sorry I was a little fuzzed out :)
[2010/01/05 16:22:03] @ Quit: specsmu: "leaving"
[2010/01/05 16:24:20] @ lak joined channel #puppet
[2010/01/05 16:24:41] @ alban2 joined channel #puppet
[2010/01/05 16:25:11] @ Djelibeybi joined channel #puppet
[2010/01/05 16:25:33] @ bug joined channel #puppet
[2010/01/05 16:29:20] @ martin2929195 joined channel #puppet
[2010/01/05 16:40:08] @ mdp_ joined channel #puppet
[2010/01/05 16:40:53] @ ezmobius joined channel #puppet
[2010/01/05 16:40:57] @ lero joined channel #puppet
[2010/01/05 16:46:07] @ poison joined channel #puppet
[2010/01/05 16:46:12] @ Quit: toi: "Ex-Chat"
[2010/01/05 16:49:31] @ Quit: labrown: "Leaving"
[2010/01/05 16:51:08] @ Quit: nigelk:
[2010/01/05 16:53:20] @ vorlon2261 joined channel #puppet
[2010/01/05 16:53:54] <mdp_> I have a quick external node question.
[2010/01/05 16:54:19] <mdp_> I'm building an external node generator for http://opennetadmin.com and have a few validation items
[2010/01/05 16:54:50] <mdp_> is it a requirement to have "environment", "class", and "parameters"?
[2010/01/05 16:55:15] <mdp_> I assume I can just have environment only returned with no class/parms and any defaults for puppet would apply
[2010/01/05 16:57:28] @ Quit: lero: Read error: 104 (Connection reset by peer)
[2010/01/05 16:57:52] @ nigelk joined channel #puppet
[2010/01/05 16:58:24] @ giskard_ joined channel #puppet
[2010/01/05 17:00:06] @ Quit: giskard: Read error: 60 (Operation timed out)
[2010/01/05 17:00:35] @ lero joined channel #puppet
[2010/01/05 17:01:20] @ zahna left channel #puppet ()
[2010/01/05 17:09:02] @ Quit: bug:
[2010/01/05 17:13:58] @ herlo joined channel #puppet
[2010/01/05 17:18:13] <herlo> hey all, I have an interesting question about puppet.
[2010/01/05 17:18:36] <herlo> Normally, when I initialize a new node, I ask puppet to connect to a particular server to send the signing cert
[2010/01/05 17:18:44] <herlo> puppetd -v --server=my.server.example.com
[2010/01/05 17:19:19] <herlo> and then on the server, I do
[2010/01/05 17:19:22] <herlo> puppetca --list
[2010/01/05 17:19:28] <herlo> and it gives me the new node
[2010/01/05 17:19:54] <herlo> but I've just installed puppet 0.25 on a client (my server uses 0.24.8)
[2010/01/05 17:20:14] <herlo> and when I run the same commands, the node does not appear on my server
[2010/01/05 17:20:18] <herlo> any reason for this??
[2010/01/05 17:20:24] <vorlon2261> herlo - I don't think 0.25 clients can connect to 0.24...
[2010/01/05 17:20:41] <ricky> The rule is usually to update the server first, I think :-)
[2010/01/05 17:20:57] <vorlon2261> Yeah... I updated the masters first...
[2010/01/05 17:21:27] <herlo> hrm...
[2010/01/05 17:21:35] <herlo> okay, that answers my question
[2010/01/05 17:21:38] <herlo> thanks guys
[2010/01/05 17:25:08] <rhulsker> anyone here have any luck using the zenoss puppet module?
[2010/01/05 17:29:57] @ [newbie] joined channel #puppet
[2010/01/05 17:31:24] @ incommon_ike joined channel #puppet
[2010/01/05 17:31:51] @ Quit: fluxdude: Read error: 113 (No route to host)
[2010/01/05 17:32:25] @ M- joined channel #puppet
[2010/01/05 17:33:28] <incommon_ike> suggestions on the following error when running puppet in passenger: Permission denied - /var/lib/puppet/ssl/ca/ca_key.pem
[2010/01/05 17:33:31] @ Quit: tomjmalone:
[2010/01/05 17:34:15] <vorlon2261> incommon_ike: Your Apache server needs to be able to read your ca keys...
[2010/01/05 17:34:22] <vorlon2261> What user are you running apache as?
[2010/01/05 17:34:22] <incommon_ike> I seem to be in a recursive loop. Chmoding and chgrping don't do much as puppet tries to reset the permissions but can't when running in apache
[2010/01/05 17:34:26] <incommon_ike> apache
[2010/01/05 17:34:38] <vorlon2261> Usually adding it to the puppet group will do the job... Depends on requirements...
[2010/01/05 17:35:41] @ Quit: themurph: Read error: 60 (Operation timed out)
[2010/01/05 17:36:29] <incommon_ike> alright. let me try that. thx
[2010/01/05 17:37:19] @ Quit: danielbln: "Leaving."
[2010/01/05 17:38:50] @ quit (seeya)
[2010/01/05 17:40:01] @ Joined channel #puppet
[2010/01/05 17:40:01] @ Topic is "Puppet 0.25.2 released - http://tinyurl.com/puppet0252 | Log bugs and feature requests at http://tinyurl.com/46ryk7"
[2010/01/05 17:40:01] @ Topic set by jamesturnbull on Tue Jan 05 01:50:49 -0500 2010
[2010/01/05 17:40:21] @ Mode +tnc by niven.freenode.net
[2010/01/05 17:41:14] <incommon_ike> so puppet is part of the apache group and I get the same error.
[2010/01/05 17:41:38] <vorlon2261> Other way around... Apache as part of the puppet group.
[2010/01/05 17:41:39] <incommon_ike> I also set an acl on the ssl dir to allow puppet and apache to rwx
[2010/01/05 17:41:44] <vorlon2261> Its apache that is complaining, isn't it?
[2010/01/05 17:42:05] <incommon_ike> oh. let me try that..
[2010/01/05 17:42:24] <joe-mac> i hope you're not going to keep the permissions rw for apache once yuop fix that
[2010/01/05 17:42:25] <vorlon2261> Problem is that the apache user needs to be able to read those files to start...
[2010/01/05 17:42:41] <vorlon2261> joe-mac: Puppet will sort that out - don't worry about it..
[2010/01/05 17:43:36] <joe-mac> how will puppet modify ACL's?
[2010/01/05 17:43:54] <joe-mac> it generates file resources for stuff like that, but file resources are ignorant of facls
[2010/01/05 17:43:58] <vorlon2261> Puppet manages the permissions on the files in the ssl directory, will set those back to normal...
[2010/01/05 17:44:30] @ jaimeg joined channel #puppet
[2010/01/05 17:44:44] <jaimeg> Hello Everyone.
[2010/01/05 17:44:50] <vorlon2261> joe-mac: I suspect all that was done was a simple chmod...
[2010/01/05 17:45:48] <joe-mac> true, i don't usually use the term acl in that case, probabnly just me misunderstanding himt hen
[2010/01/05 17:45:49] @ nmi joined channel #puppet
[2010/01/05 17:46:32] <vorlon2261> Neither do I, but I'm assuming that since the basic permissions aren't what he's expecting that he's changing those...
[2010/01/05 17:47:37] <incommon_ike> vorlon2261: yeah still no success. puppet belongs to both apache and puppet. and apache belongs to both puppet and apache
[2010/01/05 17:47:49] <incommon_ike> I've even tried running apache as puppet
[2010/01/05 17:48:18] <joe-mac> incommon_ike: the apache user probably can't cd to /var/lib/puppet/ssl
[2010/01/05 17:48:48] <joe-mac> here's an easy test: sudo/su to www-data and then type cd /var/lib/puppet/ssl
[2010/01/05 17:48:57] <vorlon2261> incommon_ike: You set User puppet and Group puppet in httpd.conf?
[2010/01/05 17:49:16] <incommon_ike> vorlon: yes
[2010/01/05 17:49:41] <incommon_ike> joe-mac: RHEL so it would be apache, but I'll try
[2010/01/05 17:49:51] <joe-mac> o i c
[2010/01/05 17:50:08] <joe-mac> but if you set user and group likely it's nto the issue...
[2010/01/05 17:50:25] <vorlon2261> OK... Can you do an ls -l /var/lib/puppet/ssl/ca/ca_key.pem ?
[2010/01/05 17:50:27] <joe-mac> however you might get that even if the directory is missing -x for some reason
[2010/01/05 17:51:22] <incommon_ike> vorlon: 660 on that file
[2010/01/05 17:51:40] <vorlon2261> owner and group are both puppet?
[2010/01/05 17:51:44] <incommon_ike> yes
[2010/01/05 17:51:56] <vorlon2261> OK... Now the directory its in... /var/lib/puppet/ssl/ca
[2010/01/05 17:52:39] <vorlon2261> On my box its drwxrwx--- 5 puppet puppet 512 Jan 5 13:14 .
[2010/01/05 17:52:45] <incommon_ike> 770, puppet:puppet
[2010/01/05 17:53:17] <vorlon2261> OK... Next one... /var/lib/puppet/ssl - should be 771 puppet:root ?
[2010/01/05 17:54:07] <incommon_ike> yep
[2010/01/05 17:54:10] @ Quit: [newbie]: Read error: 113 (No route to host)
[2010/01/05 17:54:49] <vorlon2261> OK... I'm really not sure why you aren't able to see the certificate as the puppet user...
[2010/01/05 17:55:22] <incommon_ike> i've run the puppetmaster daemon first to verify things and it seems to work. it's the puppet in passenger that's giving me fits
[2010/01/05 17:55:46] <joe-mac> who are you running puppet as?
[2010/01/05 17:56:04] @ paxos joined channel #puppet
[2010/01/05 17:56:12] <incommon_ike> puppet as a daemon process.
[2010/01/05 17:56:18] <vorlon2261> Did you follow the directions as per http://reductivelabs.com/trac/puppet/wiki/UsingPassenger
[2010/01/05 17:56:22] <vorlon2261> ?
[2010/01/05 17:56:46] <incommon_ike> yep. and modified them slightly for .25.1. using the config.ru from the source branch
[2010/01/05 17:56:57] <vorlon2261> Cool...
[2010/01/05 17:57:31] <incommon_ike> is there a way to get more logging going?
[2010/01/05 17:57:41] <vorlon2261> Ahhh... Found an interesting note there: Whatever you do, make sure your config.ru file is owned by the puppet user! Passenger will setuid to that user.
[2010/01/05 17:57:53] <vorlon2261> Who owns the config.ru file?
[2010/01/05 17:58:12] @ tessier joined channel #puppet
[2010/01/05 17:58:14] <incommon_ike> sigh...apache
[2010/01/05 17:58:17] <tessier> Hello puppetmeisters
[2010/01/05 17:58:30] * tessier is once again taking a run at setting up puppet
[2010/01/05 17:58:35] <vorlon2261> chown puppet:puppet config.ru?
[2010/01/05 17:59:12] <incommon_ike> yep. did that and it looks like it worked. Guess I should've read the fine print. Sigh
[2010/01/05 17:59:17] <incommon_ike> thanks alot.
[2010/01/05 17:59:18] <vorlon2261> heh...
[2010/01/05 17:59:22] @ Quit: giskard_: Remote closed the connection
[2010/01/05 18:00:33] @ Quit: lak:
[2010/01/05 18:00:49] <incommon_ike> alright ... now i can go home for the day. thanks again
[2010/01/05 18:01:13] <vorlon2261> Lucky bugger - I've just started.......
[2010/01/05 18:02:33] <jaimeg> Question: If i make a change to a puppet client file. How long will it be before the puppet master reverts the changes?
[2010/01/05 18:03:03] <vorlon2261> jaimeg: Depends on your config... If you don't set a schedule, it will change it at the next puppet run on each host...
[2010/01/05 18:03:24] <jaimeg> what is the default schedule time?
[2010/01/05 18:03:40] <vorlon2261> 30 minutes, but you can change that in puppet.conf
[2010/01/05 18:04:19] <vorlon2261> Config item is "runinterval" i think...
[2010/01/05 18:04:27] <vorlon2261> Set to number of seconds between runs...
[2010/01/05 18:05:02] <jaimeg> ty
[2010/01/05 18:05:51] @ Quit: incommon_ike:
[2010/01/05 18:06:08] @ WALoeIII joined channel #puppet
[2010/01/05 18:06:44] @ tomjmalone joined channel #puppet
[2010/01/05 18:17:23] @ madduck__ joined channel #puppet
[2010/01/05 18:17:31] @ Quit: madduck|afk: Read error: 113 (No route to host)
[2010/01/05 18:19:29] @ madduck__ is now known as madduck|afk
[2010/01/05 18:20:21] @ lak joined channel #puppet
[2010/01/05 18:20:35] @ Quit: tomjmalone:
[2010/01/05 18:28:59] @ Quit: bjaspan:
[2010/01/05 18:33:58] @ sebas891 left channel #puppet ()
[2010/01/05 18:34:59] @ Quit: rmiller4pi8: Read error: 60 (Operation timed out)
[2010/01/05 18:35:00] @ tecto_ joined channel #puppet
[2010/01/05 18:35:10] @ Quit: tecto_: Client Quit
[2010/01/05 18:35:26] @ madduck|afk is now known as madduck__
[2010/01/05 18:35:34] @ madduck__ is now known as madduck|afk
[2010/01/05 18:35:59] @ Quit: nmi: "Leaving"
[2010/01/05 18:36:17] @ nmi joined channel #puppet
[2010/01/05 18:36:27] @ Quit: brothers:
[2010/01/05 18:42:47] @ Quit: kaptk2: "Leaving."
[2010/01/05 18:43:18] <flyingparchment> is there a shorter way to write this? http://dpaste.com/141503/
[2010/01/05 18:44:20] <vorlon2261> I think (and i
[2010/01/05 18:44:24] <vorlon2261> 'm not sure)
[2010/01/05 18:44:31] <vorlon2261> You can write it as:
[2010/01/05 18:44:46] <vorlon2261> tspkg { "a", "b", "c": prefix => "SUNW" }
[2010/01/05 18:45:32] <flyingparchment> thanks
[2010/01/05 18:46:15] @ explody joined channel #puppet
[2010/01/05 18:48:19] @ joe-mac left channel #puppet ()
[2010/01/05 18:49:58] <flyingparchment> looks like it needs to be ["a", "b", "c"]:
[2010/01/05 18:50:11] <nmi> hey guys, got a question about the filename of the report yamls.
[2010/01/05 18:50:38] <nmi> they should be the timestamp of when the report is created
[2010/01/05 18:50:45] <vorlon2261> flyingparchment: So its something like tspkg{ ["a", "b", "c"]: prefix=> "SUNW" }?
[2010/01/05 18:50:54] <flyingparchment> vorlon2261: yep
[2010/01/05 18:51:03] <nmi> but looks like it doesn't consider the timezone
[2010/01/05 18:51:06] <vorlon2261> I was close :)
[2010/01/05 18:51:14] @ Quit: pedr: "Page closed"
[2010/01/05 18:51:17] <vorlon2261> nmi: You don't want it to...
[2010/01/05 18:51:39] @ Quit: tecto: Read error: 113 (No route to host)
[2010/01/05 18:52:13] <vorlon2261> nmi: You may have hosts in multiple timezones...
[2010/01/05 18:52:15] <nmi> apparently "puppet-dashboard" reads the filename, instead of the actual time in the report
[2010/01/05 18:52:21] <nmi> ic
[2010/01/05 18:53:40] <nmi> so you reckon I just stay away from puppet-dashboard since its stupid? :-)
[2010/01/05 18:53:57] <vorlon2261> heh... Its fairly new... I haven't set it up yet...
[2010/01/05 18:55:49] <nmi> vorlon2261: fair enough, is there any alternative app/project that do same thing, I mean monitering stuff
[2010/01/05 18:56:05] @ Quit: bobbyz: Read error: 110 (Connection timed out)
[2010/01/05 18:56:08] <vorlon2261> Nothing thats stable yet that I know of...
[2010/01/05 18:56:09] <nmi> thanks anyway
[2010/01/05 18:56:14] <nmi> ic
[2010/01/05 18:56:16] <vorlon2261> Tho Foreman is getting there apparently...
[2010/01/05 18:56:37] <vorlon2261> http://www.theforeman.org/
[2010/01/05 18:56:49] <nmi> cool~, I'll take a look at it. cheers buddy
[2010/01/05 18:57:08] <vorlon2261> But I think that acts a bit differently... Its more lifecycle management...
[2010/01/05 18:57:19] <vorlon2261> May not suit what you are wanting...
[2010/01/05 18:58:39] <nmi> nevermind, will have a look anyway. :p
[2010/01/05 18:59:27] @ bjaspan joined channel #puppet
[2010/01/05 19:01:34] <vorlon2261> Has anyone set up LDAP external nodes?
[2010/01/05 19:05:36] @ Quit: rhulsker:
[2010/01/05 19:08:17] @ Quit: nigelk:
[2010/01/05 19:09:52] @ Quit: jab_doa: "Verlassend"
[2010/01/05 19:16:06] @ pedr joined channel #puppet
[2010/01/05 19:16:44] @ Quit: lilmatt:
[2010/01/05 19:17:37] <pedr> i have a var $users which contains user1,user2,user3 im trying to use define and /home/${name}/ but i end up with /home/user1,user2,user3
[2010/01/05 19:18:04] <pedr> Volcane said it should work with strings, so im not sure why its not
[2010/01/05 19:19:54] @ Quit: verwilst_: "Ex-Chat"
[2010/01/05 19:20:00] <vorlon2261> pedr, its a straight strings substitution thats happening there...
[2010/01/05 19:20:31] <pedr> vorlon2261: im not sure i understand (i dont know ruby, and i am new to puppet but im learning ;)
[2010/01/05 19:20:43] <vorlon2261> You done any scripting before?
[2010/01/05 19:20:50] <pedr> a little bash
[2010/01/05 19:20:53] <vorlon2261> Its not just a ruby thing...
[2010/01/05 19:20:57] <vorlon2261> OK... Basically its like:
[2010/01/05 19:20:58] <pedr> ok
[2010/01/05 19:21:03] <vorlon2261> A=a,b,c
[2010/01/05 19:21:07] <vorlon2261> echo $A
[2010/01/05 19:21:15] <vorlon2261> Will print a,b,c, right?
[2010/01/05 19:21:28] <pedr> i dont think so A="a,b,c"
[2010/01/05 19:21:29] <pedr> would
[2010/01/05 19:21:38] <vorlon2261> True...
[2010/01/05 19:21:42] <flyingparchment> no, both would
[2010/01/05 19:21:44] <vorlon2261> But basically thats whats happening...
[2010/01/05 19:21:50] <pedr> flyingparchment: ok
[2010/01/05 19:22:26] <pedr> flyingparchment: confirmed :)
[2010/01/05 19:22:26] <vorlon2261> Its just a string... You will need some way of translating it into an array, I would guess...
[2010/01/05 19:22:39] <vorlon2261> I'm not sure how you would do it...
[2010/01/05 19:22:42] <pedr> vorlon2261: yeah i thought so too, but Volcane said today that it was not nesscary
[2010/01/05 19:22:55] <vorlon2261> Actually, I saw something the other day...
[2010/01/05 19:22:56] <vorlon2261> One sec...
[2010/01/05 19:23:05] <pedr> $A.gsub!(/[\[\]]/,'').split(/\s*,\s*/)
[2010/01/05 19:23:32] <pedr> can i write ruby in puppet manifests somehow?
[2010/01/05 19:24:07] <vorlon2261> http://reductivelabs.com/trac/puppet/wiki/LDAPNodes - Look at the section there named "Using Arrays with LDAP"... The concept would be the same, I think...
[2010/01/05 19:24:37] <pedr> ok thanks
[2010/01/05 19:25:07] <vorlon2261> Don't know if you will be able to use that directly... may require some rework...
[2010/01/05 19:25:13] <vorlon2261> Hopefully a good starting point tho...
[2010/01/05 19:25:18] <pedr> ok
[2010/01/05 19:30:40] @ Quit: jmarki-eek: Remote closed the connection
[2010/01/05 19:34:17] @ jmarki joined channel #puppet
[2010/01/05 19:35:49] @ Quit: jmarki: Remote closed the connection
[2010/01/05 19:36:51] @ jmarki joined channel #puppet
[2010/01/05 19:39:45] @ bug joined channel #puppet
[2010/01/05 19:40:56] @ Quit: jaredrhine: Read error: 60 (Operation timed out)
[2010/01/05 19:45:23] @ _elmata_ joined channel #puppet
[2010/01/05 19:46:39] <pedr> vorlon2261: this was alot better: http://www.techotopia.com/index.php/Ruby_String_Conversions
[2010/01/05 19:46:41] <pedr> but thanks :)
[2010/01/05 19:47:05] <vorlon2261> cool
[2010/01/05 19:47:25] @ Quit: ezmobius: Remote closed the connection
[2010/01/05 19:51:09] @ Quit: RageLink: Read error: 60 (Operation timed out)
[2010/01/05 19:54:58] <pedr> hmm seems a bit buggy perhaps, ill test it a bit more
[2010/01/05 19:56:08] @ LinuxCode joined channel #puppet
[2010/01/05 19:56:38] @ Quit: erm_: Read error: 110 (Connection timed out)
[2010/01/05 19:57:17] <LinuxCode> god, tidy is winding me up
[2010/01/05 19:57:23] @ Quit: cwebber:
[2010/01/05 19:57:43] <vorlon2261> I've pretty much decided to skip tidy - have hit some nasty bugs...
[2010/01/05 19:57:50] <vorlon2261> Memory leaks, for example...
[2010/01/05 19:58:25] <LinuxCode> I want tit to remove all files in that dir
[2010/01/05 19:58:29] <LinuxCode> yet it does not
[2010/01/05 19:58:44] <vorlon2261> got a pastie of your code?
[2010/01/05 19:58:48] <LinuxCode> yes sec
[2010/01/05 20:00:20] <LinuxCode> http://fpaste.org/owRA/
[2010/01/05 20:00:25] <LinuxCode> pasted the one define twice
[2010/01/05 20:00:34] <LinuxCode> ignore that please
[2010/01/05 20:01:23] <LinuxCode> something else I find very annoying is that it appears the stuff isnt getting evaluated top to bottom
[2010/01/05 20:01:52] <vorlon2261> So basically you want it to wipe that directory before recreating it with the info you want...
[2010/01/05 20:01:58] <LinuxCode> indeed
[2010/01/05 20:02:12] <vorlon2261> The order isn't linear...
[2010/01/05 20:02:22] <vorlon2261> You will need to use before and requires to put in place an order...
[2010/01/05 20:02:29] @ Quit: lak:
[2010/01/05 20:02:33] <LinuxCode> yes so much I figured out
[2010/01/05 20:02:34] <vorlon2261> Otherwise its on a first come, first served basis...
[2010/01/05 20:03:00] <LinuxCode> but how do I do that with definitions
[2010/01/05 20:03:19] <vorlon2261> You can put the requires into each item in the define...
[2010/01/05 20:04:13] <LinuxCode> k let me add a require for etc/test-iptables
[2010/01/05 20:04:19] <LinuxCode> in each define
[2010/01/05 20:05:28] <vorlon2261> Try this: http://fpaste.org/QDaD/
[2010/01/05 20:05:45] <vorlon2261> All I've done is put in a requires for each object on the directory...
[2010/01/05 20:06:03] <vorlon2261> Something you might find useful - enable graphs on your client...
[2010/01/05 20:06:12] <LinuxCode> yah I just implemented that too
[2010/01/05 20:06:30] <LinuxCode> let me do a run
[2010/01/05 20:06:35] <vorlon2261> graph = true
[2010/01/05 20:06:45] <vorlon2261> (in puppet.conf)
[2010/01/05 20:07:05] <vorlon2261> Creates a graph showing your dependencies in dot format...
[2010/01/05 20:07:23] <LinuxCode> it still doesnt seem to remove the files ;-|
[2010/01/05 20:07:25] <vorlon2261> (note, dot = Linux dot, not Microsoft Word template)
[2010/01/05 20:07:33] <LinuxCode> I made a change earlier and that doesnt appear in the file
[2010/01/05 20:07:39] <vorlon2261> Can you pastie the log messages?
[2010/01/05 20:07:57] <LinuxCode> ohh wait, just checked that again
[2010/01/05 20:08:02] <LinuxCode> now it bitches about deps
[2010/01/05 20:08:05] <LinuxCode> deps cycle
[2010/01/05 20:08:15] <vorlon2261> Bugger... Got a circular link somewhere...
[2010/01/05 20:08:26] <LinuxCode> grrrrr
[2010/01/05 20:08:31] * LinuxCode hits puppet over the head
[2010/01/05 20:08:38] <LinuxCode> trying to be smarter than me
[2010/01/05 20:08:38] <vorlon2261> Just saw another problem...
[2010/01/05 20:08:50] <vorlon2261> Need tidy { "/etc/test-iptables":
[2010/01/05 20:08:53] <vorlon2261> Need the full path......
[2010/01/05 20:09:08] <vorlon2261> (Line 2)
[2010/01/05 20:09:10] <LinuxCode> path => "/etc/test-iptables", <---- even with a path
[2010/01/05 20:09:19] <LinuxCode> ?
[2010/01/05 20:09:26] <vorlon2261> One sec... Will check...
[2010/01/05 20:09:34] <LinuxCode> I checked James' book
[2010/01/05 20:09:55] <vorlon2261> Ah yeah... Can specify path...
[2010/01/05 20:09:55] @ Quit: Djelibeybi: "Leaving"
[2010/01/05 20:09:59] <vorlon2261> Didn't know that one :)
[2010/01/05 20:10:07] <vorlon2261> I always just do it in the title...
[2010/01/05 20:10:19] <LinuxCode> let me enable graph
[2010/01/05 20:10:49] <LinuxCode> well, tbh I just changed that as I was just trying stuff as I was losing it...
[2010/01/05 20:10:55] <LinuxCode> try anything before suicide haha
[2010/01/05 20:10:57] <LinuxCode> ;-p
[2010/01/05 20:12:22] <LinuxCode> where are the .dot files kept ?
[2010/01/05 20:13:13] <LinuxCode> meh graphviz is an x app
[2010/01/05 20:13:14] @ Quit: mqr:
[2010/01/05 20:13:42] <LinuxCode> we dont have OmniGraffle in fedora hmmm
[2010/01/05 20:13:43] <LinuxCode> ;-|
[2010/01/05 20:13:52] @ Quit: jes5: "Leaving."
[2010/01/05 20:14:06] <vorlon2261> There is Graphviz if you are running on Windoze
[2010/01/05 20:14:26] <vorlon2261> It will convert them to jpg's...
[2010/01/05 20:14:38] * LinuxCode doesnt do windos
[2010/01/05 20:14:41] <LinuxCode> windows
[2010/01/05 20:14:48] <LinuxCode> cant even write it out haha
[2010/01/05 20:15:02] <vorlon2261> :)
[2010/01/05 20:15:06] <vorlon2261> There is this: http://linux.die.net/man/1/graph-easy
[2010/01/05 20:15:20] <vorlon2261> Might be able to convert it to a png or jpeg...
[2010/01/05 20:16:22] <vorlon2261> Can you pastie the recursive log error message?
[2010/01/05 20:16:36] @ nigelk joined channel #puppet
[2010/01/05 20:16:58] * vorlon2261 is forced to do winoze... Corporate standards... Yay...
[2010/01/05 20:17:27] <LinuxCode> sec
[2010/01/05 20:18:06] <LinuxCode> http://fpaste.org/0AZm/
[2010/01/05 20:18:22] <LinuxCode> it appears that you cant make a dep for one than more resource
[2010/01/05 20:19:09] <vorlon2261> Yes you can...
[2010/01/05 20:19:28] <LinuxCode> hmm so then this is very weird indeed
[2010/01/05 20:19:45] @ Quit: alfism: "http://opensolaris.com/"
[2010/01/05 20:19:46] <vorlon2261> The tidy has an implicit depend on the directory its tidying...
[2010/01/05 20:19:49] <vorlon2261> Bugger
[2010/01/05 20:20:00] <LinuxCode> I only did that as a reference point
[2010/01/05 20:20:19] <LinuxCode> it obviousl has to know where it should stand in the dep "queue"
[2010/01/05 20:20:34] @ lak joined channel #puppet
[2010/01/05 20:20:39] <LinuxCode> maybe running tidy after notify Exec would be better
[2010/01/05 20:20:46] <LinuxCode> then it would be cleaned up on the next run
[2010/01/05 20:21:00] <vorlon2261> Maybe replace the tidy with: exec { "cleanup": command => "/usr/bin/rm -Rf /etc/test-iptables", before => File["/etc/test-iptables}
[2010/01/05 20:21:02] <vorlon2261> What do you think?
[2010/01/05 20:21:17] <LinuxCode> sure that would be possible
[2010/01/05 20:21:27] <LinuxCode> but, dmanit, puppet should do this!
[2010/01/05 20:21:31] <LinuxCode> rofl
[2010/01/05 20:21:36] * LinuxCode waves fist at puppet
[2010/01/05 20:21:41] <vorlon2261> Just curious - you want these to be rerun every single time puppet runs?
[2010/01/05 20:21:50] <LinuxCode> yes
[2010/01/05 20:21:53] <vorlon2261> OK...
[2010/01/05 20:21:58] <vorlon2261> Just checking :)
[2010/01/05 20:22:03] <LinuxCode> as some rules might change a little
[2010/01/05 20:22:14] <vorlon2261> And yes, you can clean out the files after execution...
[2010/01/05 20:22:16] <LinuxCode> and each file has one rule which gets concatted together
[2010/01/05 20:22:34] <vorlon2261> So doing the tidy as requiring Exec["processiptables"]
[2010/01/05 20:23:58] <LinuxCode> another weird issue I have is that it only creates my assembled file after a second run, so thats another dep issue
[2010/01/05 20:24:46] <LinuxCode> ok at least it now seems to ahve removed files
[2010/01/05 20:24:56] <LinuxCode> as the file that is to be assembled has been changed
[2010/01/05 20:26:22] <LinuxCode> I guess now I have to tell EXec to run on each define
[2010/01/05 20:26:37] <LinuxCode> ugly but, otherwise it wont create the assembled file
[2010/01/05 20:27:16] @ GGD_ joined channel #puppet
[2010/01/05 20:27:30] <vorlon2261> Hrmm...
[2010/01/05 20:27:35] <vorlon2261> Not the neatest solution...
[2010/01/05 20:27:51] <LinuxCode> well, the issue is, I need a reference point
[2010/01/05 20:27:57] <LinuxCode> Exec needs to run last
[2010/01/05 20:28:25] <vorlon2261> Which exec - processiptables?
[2010/01/05 20:28:30] <LinuxCode> yes
[2010/01/05 20:28:57] <vorlon2261> Ahh... I had this problem a while back...
[2010/01/05 20:29:06] @ Quit: lak:
[2010/01/05 20:29:10] <vorlon2261> Can you pastie your current code? I will update with how I fixed this last time...
[2010/01/05 20:29:13] <LinuxCode> then you understand my current dilemma ;-D
[2010/01/05 20:29:32] <LinuxCode> with all the requires I put in
[2010/01/05 20:29:33] <LinuxCode> ?
[2010/01/05 20:29:39] <vorlon2261> As it currently stands...
[2010/01/05 20:29:49] <LinuxCode> sec
[2010/01/05 20:29:56] <vorlon2261> The trick is to use before in the defines...
[2010/01/05 20:30:43] <LinuxCode> http://fpaste.org/rhK4/
[2010/01/05 20:30:55] <eric0> what is the problem you're trying to solve? if you find yourself squirreled away in dependency hell its time to step back and wonder if "UR DOIN IT RONG" as they say
[2010/01/05 20:31:49] <LinuxCode> eric0, look at the paste and find out
[2010/01/05 20:31:53] <LinuxCode> ;-]
[2010/01/05 20:32:04] * LinuxCode laid his cards bare for anyone to see
[2010/01/05 20:32:30] <vorlon2261> Have a look at this: http://fpaste.org/WzLz/
[2010/01/05 20:32:34] <vorlon2261> Might work for you...
[2010/01/05 20:32:39] <LinuxCode> vorlon2261, ta, will do now
[2010/01/05 20:32:53] @ Quit: GGD: Read error: 60 (Operation timed out)
[2010/01/05 20:32:54] <vorlon2261> Basically its putting in each of the defines a before => Exec[processiptables]
[2010/01/05 20:33:12] <vorlon2261> That way they happen before the script is run.
[2010/01/05 20:33:24] <LinuxCode> yeh, that makes sense
[2010/01/05 20:33:27] <vorlon2261> You can't use require to go in the opposite direction here, unfortunately...
[2010/01/05 20:33:50] <eric0> i see a bunch of puppet stanzas but it looks like some crazy hack and doesn't describe your goals
[2010/01/05 20:34:02] <vorlon2261> eric0: Yes... But in this case the main issue is the order Puppet is choosing to do stuff...
[2010/01/05 20:34:43] <vorlon2261> eric0: Basically he's trying to get a bunch of iptables rules run each time Puppet runs - am I right LinuxCode?
[2010/01/05 20:35:11] <vorlon2261> eric0: And they are generated by templates (which could theoretically change at any time...)
[2010/01/05 20:36:02] @ Quit: omry|work: Read error: 110 (Connection timed out)
[2010/01/05 20:36:24] <vorlon2261> eric0: The problem initially was that it wasn't clearing out the old set before doing the new set...
[2010/01/05 20:36:50] <vorlon2261> eric0: (And yes, it needs to do that so that if he changes the number of rules files that the old ones are cleaned out correctly...)
[2010/01/05 20:37:17] <LinuxCode> vorlon2261, well it be nice if I could use tidies "tracking" ability, but I just want this to work
[2010/01/05 20:37:40] <LinuxCode> vorlon2261, if you create new rules its fine
[2010/01/05 20:37:41] <vorlon2261> Tidy introduces a memory leak... Especially if its managing a lot of files...
[2010/01/05 20:37:46] <LinuxCode> replacing an old one wasnt
[2010/01/05 20:37:54] <LinuxCode> replaced
[2010/01/05 20:38:09] <vorlon2261> I used to have Tidy managing my puppet reports - I don't anymore after I was running puppet daemons that had allocated themselves 900Mb of RAM...
[2010/01/05 20:38:12] <LinuxCode> awesome this works
[2010/01/05 20:38:36] <LinuxCode> vorlon2261, thanks mate, I was about to tear my hair out
[2010/01/05 20:38:48] <LinuxCode> I just needed to see how it should be done
[2010/01/05 20:38:57] <LinuxCode> if you know what I mean
[2010/01/05 20:38:58] <vorlon2261> LinuxCode: No worries... Defines can make dependencies a little but crazy...
[2010/01/05 20:39:06] <LinuxCode> see puppets "logic in process"
[2010/01/05 20:39:26] <vorlon2261> LinuxCode: Not sure what you have done is how is "should be done", but since its working and doing what you need................
[2010/01/05 20:39:29] <LinuxCode> vorlon2261, I always assumed one could do something like
[2010/01/05 20:39:40] <LinuxCode> before => Define["blah"]
[2010/01/05 20:39:52] <LinuxCode> but defines arent a resource as far as I gathered
[2010/01/05 20:40:08] <vorlon2261> Unfortunately not... Its all on the individual object... And defines aren't actually objects...
[2010/01/05 20:40:18] <LinuxCode> yeh
[2010/01/05 20:40:24] <vorlon2261> They are more akin to #define in C...
[2010/01/05 20:40:31] <vorlon2261> But with substitution in place...
[2010/01/05 20:40:35] <LinuxCode> vorlon2261, "should be done", care to elaborate mate ?
[2010/01/05 20:40:55] * LinuxCode is always open for better suggestions
[2010/01/05 20:41:05] @ joe-mac joined channel #puppet
[2010/01/05 20:41:13] <vorlon2261> Uhhh... The "puppet way"(tm) is to set up objects for the IPtables rules themselves...
[2010/01/05 20:41:29] <vorlon2261> So that you do iptablerule{ thisrule: blah => blah }
[2010/01/05 20:41:33] <LinuxCode> ohh so native ruby code
[2010/01/05 20:41:39] <LinuxCode> yeah
[2010/01/05 20:41:44] <vorlon2261> That or more granular defines...
[2010/01/05 20:41:46] * LinuxCode isnt into ruby though
[2010/01/05 20:41:49] <LinuxCode> ;-p
[2010/01/05 20:42:05] @ Ned_ joined channel #puppet
[2010/01/05 20:42:06] <vorlon2261> Personally, I'm more into using Puppet to build config files...
[2010/01/05 20:42:10] <LinuxCode> pitty puppet isnt written in python
[2010/01/05 20:42:16] <vorlon2261> But the direction is definately heading more object based...
[2010/01/05 20:42:25] <LinuxCode> vorlon2261, yeah, that is what it should be used for...
[2010/01/05 20:42:26] <vorlon2261> LinuxCode: Ugh... Can't stand Python...
[2010/01/05 20:42:32] <Ned_> is there any way to "bulk-require" packages?, specifying each one invididually means an apt run per package, which is slow :-(
[2010/01/05 20:42:36] <LinuxCode> Im basically building a iptables files for iptables-save
[2010/01/05 20:42:58] <vorlon2261> Ned: package { ['a', 'b', 'c']: ensure => installed }
[2010/01/05 20:42:59] <vorlon2261> I think...
[2010/01/05 20:43:15] <Ned_> vorlon2261: and it'll be smart enough to install them in one apt run ?
[2010/01/05 20:43:17] <vorlon2261> Ahh...
[2010/01/05 20:43:25] <vorlon2261> Ned_: Doubt it...
[2010/01/05 20:43:27] <Ned_> I suspect not :-(
[2010/01/05 20:43:28] <Ned_> yeah
[2010/01/05 20:43:39] <LinuxCode> wow, that is kind of ....stupid
[2010/01/05 20:43:51] * LinuxCode would expect standard package manager behaviour there
[2010/01/05 20:43:54] <vorlon2261> It creates a seperate object for each package...
[2010/01/05 20:44:08] <LinuxCode> yum install "a" "b" "c" etc.. as example
[2010/01/05 20:44:19] <LinuxCode> vorlon2261, wow ;-|
[2010/01/05 20:44:31] <vorlon2261> LinuxCode: Nah... If you look at the internals, it basically creates an object for each package and treats it seperately...
[2010/01/05 20:44:32] @ Djelibeybi joined channel #puppet
[2010/01/05 20:44:38] <vorlon2261> Which is sllowwwwwwww... in this case...
[2010/01/05 20:44:42] <LinuxCode> yeh
[2010/01/05 20:44:52] <LinuxCode> but then, Ned_ how often are you going to install packages
[2010/01/05 20:44:54] <LinuxCode> ;-D
[2010/01/05 20:45:17] <LinuxCode> once after each new install ;-p
[2010/01/05 20:45:39] <LinuxCode> vorlon2261, anyway mate, I really appreciate your pointers
[2010/01/05 20:45:48] <kjetilho> it will vary for each provider, but I think they yum provider is clever enough
[2010/01/05 20:46:02] <kjetilho> s/they/the/
[2010/01/05 20:46:06] <LinuxCode> kjetilho, I havent played with the yum provider yet
[2010/01/05 20:46:10] <LinuxCode> so I cant tell
[2010/01/05 20:46:14] <vorlon2261> kjetilho: Even if its in seperate objects?
[2010/01/05 20:46:28] <vorlon2261> I think (and am not sure) that it is only told about one package at a time...
[2010/01/05 20:46:32] <LinuxCode> actually I lied, of course I used it
[2010/01/05 20:46:39] <LinuxCode> Package {}
[2010/01/05 20:46:43] <LinuxCode> doh!
[2010/01/05 20:46:44] <ohadlevy> jb:pong
[2010/01/05 20:46:44] <vorlon2261> Obviously dependencies are handled by Yum...
[2010/01/05 20:47:16] <kjetilho> vorlon2261: the list of objects which need updating is known
[2010/01/05 20:47:31] <kjetilho> so it is at least possible
[2010/01/05 20:47:49] <vorlon2261> kjetilho: OK... So if the provider is intelligent enough........
[2010/01/05 20:48:12] <vorlon2261> (Has only been working with the Solaris package provider, which is not intelligent at all........)
[2010/01/05 20:48:43] <LinuxCode> now I had another module which didnt do what I wanted it to do in puppet with a tidy
[2010/01/05 20:48:53] * LinuxCode ponders to see what it was
[2010/01/05 20:51:47] @ jaredrhine joined channel #puppet
[2010/01/05 20:59:42] @ pjsz joined channel #puppet
[2010/01/05 21:02:35] @ Quit: lero: Remote closed the connection
[2010/01/05 21:07:50] @ Quit: jmarki: Remote closed the connection
[2010/01/05 21:12:47] @ joe-mac left channel #puppet ()
[2010/01/05 21:13:05] @ Quit: bug:
[2010/01/05 21:15:03] <LinuxCode> exec { "TSIG-$name": <--- why do I somehow think this wont work
[2010/01/05 21:15:15] <LinuxCode> in terms of a require/before
[2010/01/05 21:15:21] @ alexine_dsouza joined channel #puppet
[2010/01/05 21:17:29] <Djelibeybi> LinuxCode: exec { "TSIG-${name}":
[2010/01/05 21:18:04] <LinuxCode> so it gets evaluated before being clled right ?
[2010/01/05 21:18:10] <Djelibeybi> Yup
[2010/01/05 21:18:38] * LinuxCode opens another terminal and does a trial
[2010/01/05 21:20:55] <ohadlevy> Djelibeybi: you are a kvm expert right? :)
[2010/01/05 21:21:05] <Djelibeybi> ohadlevy: no, Xen.
[2010/01/05 21:21:13] <Djelibeybi> And hardly an expert, either. :)
[2010/01/05 21:21:22] @ lilmatt joined channel #puppet
[2010/01/05 21:21:23] <ohadlevy> Djelibeybi: :)
[2010/01/05 21:21:56] <ohadlevy> I just had some issues with pxe boot on kvm - seems to be a bug..
[2010/01/05 21:22:38] <Djelibeybi> Using pygrub or pypxeboot?
[2010/01/05 21:22:38] @ Quit: jimmij1: Read error: 60 (Operation timed out)
[2010/01/05 21:23:10] <ohadlevy> Djelibeybi: hmm.. it seems to be a problem with the actual pxe bios
[2010/01/05 21:23:32] <Djelibeybi> ohadlevy: which is software emulated, usually by pypxeboot
[2010/01/05 21:23:42] <Djelibeybi> You're trying to PXE boot a VM, yes?
[2010/01/05 21:24:01] <ohadlevy> it PXE boot fine, but it also wipes out the bios info at the same stage
[2010/01/05 21:24:18] <ohadlevy> so if you want to pxeboot first, then fall back to local disk (or that pxelinux redirect you to local boot) it will fail
[2010/01/05 21:25:12] <Djelibeybi> Yeah, that happens on Xen as well
[2010/01/05 21:25:19] <ohadlevy> ah
[2010/01/05 21:25:20] <Djelibeybi> It's a problem with pypxeboot, AFAIK
[2010/01/05 21:25:45] <jb> ohadlevy: sup..
[2010/01/05 21:25:49] <jb> sorry about that dupe feature :)
[2010/01/05 21:25:59] <ohadlevy> Djelibeybi: I found this - https://bugzilla.redhat.com/show_bug.cgi?id=472236
[2010/01/05 21:26:13] @ scylla joined channel #puppet
[2010/01/05 21:26:15] <ohadlevy> jb: no worries ;)
[2010/01/05 21:26:27] <ohadlevy> jb: just happy to know you are still using it :-P
[2010/01/05 21:27:18] <jb> ohadlevy: did #147 make sense?
[2010/01/05 21:27:19] <gepetto> jb: ohadlevy: #147 is http://projects.reductivelabs.com/issues/show/147 "Puppet - Bug #147: freebsd pkg_info parser breaks on certain package names - ReductiveLabs.com"
[2010/01/05 21:27:29] <jb> not that 147 :)
[2010/01/05 21:27:48] <ohadlevy> jb: yeah, all the plumbing is already there, just need to redo the whole edit page
[2010/01/05 21:27:55] <jb> ahh ok
[2010/01/05 21:28:24] <ohadlevy> each class is assoicated with an env already, if its important to you, I could probably hack something quick
[2010/01/05 21:28:48] <ohadlevy> jb: you might find the email reporting per environment interesting as well
[2010/01/05 21:29:31] <jb> ohadlevy: it will be important for me in the near future
[2010/01/05 21:29:36] <jb> but not immediatley :)
[2010/01/05 21:29:51] <ohadlevy> jb: I'll look into it - no time like the present ;)
[2010/01/05 21:30:10] @ erm_ joined channel #puppet
[2010/01/05 21:30:56] @ jes5 joined channel #puppet
[2010/01/05 21:30:56] <jb> :P
[2010/01/05 21:31:30] <ohadlevy> jb: puppet dashboard does seem nice too doesnt it?
[2010/01/05 21:31:59] <jb> yeah, im looking at it
[2010/01/05 21:32:04] <jb> its just -way- too alpha right now
[2010/01/05 21:32:38] <jb> not really useful at the moment.. it's very promising though
[2010/01/05 21:32:55] <ohadlevy> what would be the main difference in your opinion?
[2010/01/05 21:33:08] <jb> well, foreman has the whole lifecycle deal going on
[2010/01/05 21:33:32] <jb> from build to puppetization
[2010/01/05 21:33:45] <jb> (if thats even a word :)
[2010/01/05 21:34:35] <jb> the only thing I currently have dashboard doing is receiving reports
[2010/01/05 21:34:56] @ jimmij joined channel #puppet
[2010/01/05 21:36:27] @ cwebber joined channel #puppet
[2010/01/05 21:36:34] @ Quit: lilmatt: Client Quit
[2010/01/05 21:37:07] <ohadlevy> jb: I'm not sure I understood - but thanks ;)
[2010/01/05 21:50:54] @ Quit: jaredrhine: Read error: 110 (Connection timed out)
[2010/01/05 21:51:33] @ Quit: WALoeIII: "Bai."
[2010/01/05 21:51:40] <ohadlevy> jb: it will require some more, this one specifically because of this bit of JS around it
[2010/01/05 21:55:17] @ jaredrhine joined channel #puppet
[2010/01/05 21:56:57] <jb> ah
[2010/01/05 21:57:23] <ohadlevy> jb: I'm already adding this to the partition tables and media etc
[2010/01/05 21:57:28] <jb> ohadlevy: well, foreman does system provisioning
[2010/01/05 21:57:37] <jb> i don't think thats on the dashboard plan..
[2010/01/05 21:58:17] <ohadlevy> jb: true, but is it a "problem" e.g. I'm sure you are not using all of the features of every software
[2010/01/05 21:58:39] <jb> oh no, i don't see that as a problem
[2010/01/05 21:58:42] <jb> i just don't use that part of foreman
[2010/01/05 21:58:45] <jb> not a big deal for me
[2010/01/05 22:01:48] @ Quit: LinuxCode: "Connection Closed"
[2010/01/05 22:15:27] @ Quit: cwebber:
[2010/01/05 22:24:22] @ Quit: jes5: "Leaving."
[2010/01/05 22:24:31] @ rmiller4pi8 joined channel #puppet
[2010/01/05 22:24:33] @ Quit: erm_: Read error: 110 (Connection timed out)
[2010/01/05 22:25:37] @ Quit: whaley: Remote closed the connection
[2010/01/05 22:27:00] @ Quit: martin2929195: Remote closed the connection
[2010/01/05 22:28:06] @ lero joined channel #puppet
[2010/01/05 22:35:46] <nigelk> ohadlevy: things are a bit flat out here since I got back from holidays (oh they seem so far away right now) so I'm not responding to your updates on my foreman bug reports sorry
[2010/01/05 22:35:51] <nigelk> won't happen for a week or so
[2010/01/05 22:36:07] <ohadlevy> nigelk: no worries - I just got back from NZ myself
[2010/01/05 22:36:18] <nigelk> nice time of year to be there
[2010/01/05 22:36:29] <ohadlevy> yeah, was really nice vacation
[2010/01/05 22:36:45] @ erm_ joined channel #puppet
[2010/01/05 22:37:15] <ohadlevy> about that bug, I'm guessing that the memory facts are the cause of it - I'll create a patch for that
[2010/01/05 22:38:25] <ohadlevy> nigelk: did you activate reports in your test? if you did, with how many nodes?
[2010/01/05 22:38:41] <nigelk> I only tested about 100 nodes reporting I think
[2010/01/05 22:38:55] <nigelk> but I imported many many thousands of yaml files :)
[2010/01/05 22:39:24] <ohadlevy> I've tested with all I've got ;) but wondering how would the performance be with 20k clients
[2010/01/05 22:39:33] @ mqr joined channel #puppet
[2010/01/05 22:39:38] <ohadlevy> but I'm guessing that you dont have reports every 30 minutes anyway..
[2010/01/05 22:39:55] <nigelk> I think I pulled in at least 20k yaml files, but yeah, absolutely not doing 30 min runs :)
[2010/01/05 22:40:37] <ohadlevy> nigelk: I just finishing adding some fact base / environment based reporting, maybe it would be useful for you
[2010/01/05 22:40:38] @ Quit: zipkid: Remote closed the connection
[2010/01/05 22:40:53] <ohadlevy> e.g. send a summary email to all hosts that have a certain fact
[2010/01/05 22:41:03] <ohadlevy> s/to/of
[2010/01/05 22:41:04] <nigelk> i haven't even had a chance to test 0.25.2 and see whether you can specify environments as a fact yet...
[2010/01/05 22:41:08] <nigelk> way behind on my puppet work
[2010/01/05 22:41:12] @ Quit: pjsz:
[2010/01/05 22:41:24] <ohadlevy> nigelk: i think that the bug was not included
[2010/01/05 22:41:31] <nigelk> yeah, I think it wasn't
[2010/01/05 22:41:48] <nigelk> expecting to switch my puppet runs to something like
[2010/01/05 22:42:16] <nigelk> puppetd --foo --environment $(facter -p | grep environment | sed/....)
[2010/01/05 22:42:28] @ Quit: Djelibeybi: "Leaving"
[2010/01/05 22:42:46] <ohadlevy> yeah - kind of sucks
[2010/01/05 22:43:19] <nigelk> it's going to mean we can't short-cut testing with just 'puppetd -t' anymore
[2010/01/05 22:43:30] <nigelk> which sucks even more as I'm sure someone will forget and cause issues
[2010/01/05 22:43:43] <ohadlevy> change the deb to have puppetd and puppetd.real
[2010/01/05 22:43:54] <ohadlevy> suckable
[2010/01/05 22:44:28] <nigelk> yeah
[2010/01/05 22:44:44] <nigelk> even more frustrating given I'm the one building the debian debs anyway :)
[2010/01/05 22:51:46] <ohadlevy> nigelk: i guess that the foreman dashboard was not so useful if you dont have 30 minutes run... I'll make the runinterval configurable
[2010/01/05 22:51:57] <nigelk> heh. that was true
[2010/01/05 22:52:03] @ vorlon2261 left channel #puppet ()
[2010/01/05 22:52:08] @ Quit: shadoi: "Leaving."
[2010/01/05 22:52:14] <nigelk> I also had some odd issues with reports that included errors
[2010/01/05 22:52:30] <nigelk> but I can't remember if they were pointing to puppet bugs or foreman bugs
[2010/01/05 22:53:59] <ohadlevy> nigelk: older version of puppet (0.24-5) has some different structure for the reports
[2010/01/05 22:54:13] <nigelk> 0.24.8 would have been the oldest version I used
[2010/01/05 22:54:52] <ohadlevy> since 0.1-3 there are a lot of safe guards of how to avoid reports error - I'm not sure from which version you've tried, but in if you come up with any error let me know
[2010/01/05 22:57:02] <nigelk> oh no, I meant reports for a run that should have contained errors, chattr'ing files etc
[2010/01/05 22:57:22] <ohadlevy> and they were not flagged as errors?
[2010/01/05 22:57:28] <nigelk> i can't remember whether I found the errors weren't reported or whether foreman didn't flag them
[2010/01/05 22:57:32] <nigelk> so I should stop bugging you :)
[2010/01/05 22:58:20] <ohadlevy> :)
[2010/01/05 22:58:51] <ohadlevy> jb: still around?
[2010/01/05 22:59:00] <ohadlevy> jb: I have a question about the puppetun feature that you asked
[2010/01/05 23:08:02] @ Quit: jcape: Read error: 110 (Connection timed out)
[2010/01/05 23:09:47] @ pedr0 joined channel #puppet
[2010/01/05 23:10:38] @ Quit: pedr: Ping timeout: 180 seconds
[2010/01/05 23:12:23] <jb> ohadlevy: yeah, sorry..
[2010/01/05 23:12:45] @ Quit: nigelk:
[2010/01/05 23:12:51] @ M-- joined channel #puppet
[2010/01/05 23:12:53] <ohadlevy> jb: so in order to puppetrun to work, we just need to add a sudo entry?
[2010/01/05 23:13:03] <ohadlevy> and execute - sudo puppetrun hostname?
[2010/01/05 23:13:37] <jb> good question, I need to look into that
[2010/01/05 23:13:44] <jb> ive never actually used puppetrun
[2010/01/05 23:14:52] <ohadlevy> ah - just created the ticket then? ;)
[2010/01/05 23:15:03] <jb> ah, it needs to run as root to get access to the SSL certs
[2010/01/05 23:15:22] <jb> well, when I created the ticket, I was simply looking for a way to force a puppet run on a specific host
[2010/01/05 23:15:38] <jb> and in the small amount of research that I did, puppetrun seemed to be the way to do that
[2010/01/05 23:15:47] @ jcape joined channel #puppet
[2010/01/05 23:17:05] <ohadlevy> jb: I dont mind adding it if its useful
[2010/01/05 23:17:06] @ Quit: jcape: Read error: 104 (Connection reset by peer)
[2010/01/05 23:17:20] <jb> i think that would be a useful feature
[2010/01/05 23:17:42] <jb> i think it may be as simple as a sudo entry and a GUI mod
[2010/01/05 23:17:57] <jb> i'll do some research tomorrow and make and edit the issue
[2010/01/05 23:18:54] <jb> and then capturing output and displaying it of course..
[2010/01/05 23:25:35] <ohadlevy> jb: the output should be visible via the reports
[2010/01/05 23:29:45] @ Quit: M-: Read error: 110 (Connection timed out)
[2010/01/05 23:30:07] @ Quit: pedr0: Read error: 110 (Connection timed out)
[2010/01/05 23:32:32] @ Quit: bgupta:
[2010/01/05 23:33:28] @ cwebber joined channel #puppet
[2010/01/05 23:37:32] <jb> ohadlevy: ah yes, true
[2010/01/05 23:39:19] @ Quit: mqr:
[2010/01/05 23:52:28] @ jes5 joined channel #puppet
[2010/01/05 23:53:15] @ mqr joined channel #puppet

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