Sunday, 2010-07-04

[2010/07/04 00:00:00] @ Log started by gepetto
[2010/07/04 00:00:00] @ floess_chris joined channel #puppet
[2010/07/04 00:02:35] @ Quit: Djelibeybi: Quit: Leaving
[2010/07/04 00:18:26] @ allsystemsarego joined channel #puppet
[2010/07/04 00:24:03] @ Quit: QtPlatypus: Ping timeout: 240 seconds
[2010/07/04 00:24:35] @ Quit: alcy: Ping timeout: 252 seconds
[2010/07/04 00:25:57] @ QtPlatypus joined channel #puppet
[2010/07/04 00:37:28] @ Quit: littleidea: Quit: littleidea
[2010/07/04 00:44:46] @ chiggsy joined channel #puppet
[2010/07/04 01:18:12] @ Quit: floess_chris: Ping timeout: 265 seconds
[2010/07/04 01:34:18] @ tuf joined channel #puppet
[2010/07/04 01:34:49] @ itguru joined channel #puppet
[2010/07/04 01:42:55] @ DmosEmp_ joined channel #puppet
[2010/07/04 01:48:15] @ Quit: DmosEmp_: Read error: Connection reset by peer
[2010/07/04 01:56:42] @ chiggsy left channel #puppet ()
[2010/07/04 02:10:49] @ floess_chris joined channel #puppet
[2010/07/04 02:13:10] @ Quit: floess_chris: Client Quit
[2010/07/04 02:17:52] @ alcy joined channel #puppet
[2010/07/04 02:22:34] @ devdas joined channel #puppet
[2010/07/04 02:42:33] @ Quit: ceren: Quit: ceren
[2010/07/04 02:43:56] @ Quit: alcy: Quit: Page closed
[2010/07/04 02:57:59] @ ceren joined channel #puppet
[2010/07/04 03:22:33] @ ckauhaus joined channel #puppet
[2010/07/04 03:30:25] @ Quit: ckauhaus: Read error: Operation timed out
[2010/07/04 03:46:15] @ DmosEmp_ joined channel #puppet
[2010/07/04 03:46:58] @ Quit: DmosEmp_: Read error: Connection reset by peer
[2010/07/04 03:47:36] @ DmosEmp_ joined channel #puppet
[2010/07/04 04:19:45] @ Quit: Filbert: Ping timeout: 240 seconds
[2010/07/04 04:20:10] @ Bass10 joined channel #puppet
[2010/07/04 04:24:02] @ Quit: ptman: Read error: Operation timed out
[2010/07/04 04:29:01] @ gebi joined channel #puppet
[2010/07/04 04:35:25] @ Quit: benoit_: Ping timeout: 264 seconds
[2010/07/04 04:41:56] @ _lucid joined channel #puppet
[2010/07/04 04:56:57] @ Quit: Bass10: Ping timeout: 240 seconds
[2010/07/04 04:57:47] @ yannL joined channel #puppet
[2010/07/04 05:04:15] @ Bass10 joined channel #puppet
[2010/07/04 05:07:49] @ Quit: Bass10: Read error: Connection reset by peer
[2010/07/04 05:16:42] @ Quit: allsystemsarego: Quit: Leaving
[2010/07/04 05:21:52] @ Quit: alban2: Quit: Leaving.
[2010/07/04 05:25:36] @ Quit: giskard: Remote host closed the connection
[2010/07/04 05:42:09] @ zorzar_ joined channel #puppet
[2010/07/04 05:45:14] @ Quit: zorzar: Ping timeout: 245 seconds
[2010/07/04 05:45:36] @ ckauhaus joined channel #puppet
[2010/07/04 05:51:47] @ adrian_broher joined channel #puppet
[2010/07/04 05:56:30] @ Quit: ckauhaus: Ping timeout: 252 seconds
[2010/07/04 05:56:55] @ ptman joined channel #puppet
[2010/07/04 05:58:10] @ Quit: raven: Disconnected by services
[2010/07/04 05:58:24] @ raven_ joined channel #puppet
[2010/07/04 06:03:51] @ ckauhaus joined channel #puppet
[2010/07/04 06:04:33] @ alban2 joined channel #puppet
[2010/07/04 06:10:12] @ Quit: ceren: Quit: ceren
[2010/07/04 06:14:53] @ bjaspan joined channel #puppet
[2010/07/04 06:23:06] @ alcy joined channel #puppet
[2010/07/04 06:24:45] @ Quit: masterzen: Ping timeout: 240 seconds
[2010/07/04 06:24:49] @ Quit: alcy: Client Quit
[2010/07/04 06:32:12] @ masterzen joined channel #puppet
[2010/07/04 06:54:47] @ giskard joined channel #puppet
[2010/07/04 07:13:07] @ jab_doa joined channel #puppet
[2010/07/04 07:26:06] @ ceren joined channel #puppet
[2010/07/04 07:33:03] @ docelic__ joined channel #puppet
[2010/07/04 07:33:34] @ Quit: docelic_: Ping timeout: 245 seconds
[2010/07/04 07:53:00] @ artista_frustrad joined channel #puppet
[2010/07/04 07:55:54] @ artista-frustrad joined channel #puppet
[2010/07/04 07:57:54] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/07/04 08:00:12] @ Quit: ckauhaus: Read error: Operation timed out
[2010/07/04 08:03:28] @ ckauhaus joined channel #puppet
[2010/07/04 08:37:10] @ Quit: nevyn: Ping timeout: 260 seconds
[2010/07/04 08:38:34] @ nevyn joined channel #puppet
[2010/07/04 08:51:17] @ littleidea joined channel #puppet
[2010/07/04 08:53:48] @ Quit: ckauhaus: Read error: Operation timed out
[2010/07/04 08:57:30] @ Quit: littleidea: Quit: littleidea
[2010/07/04 09:04:16] @ Quit: tecto_: Quit: tecto_
[2010/07/04 09:09:24] @ nexx joined channel #puppet
[2010/07/04 09:18:36] @ littleidea joined channel #puppet
[2010/07/04 09:24:41] @ dandiep joined channel #puppet
[2010/07/04 09:25:57] @ Quit: bjaspan: Quit: bjaspan
[2010/07/04 09:48:09] @ Quit: dandiep: Ping timeout: 245 seconds
[2010/07/04 10:06:28] @ ckauhaus joined channel #puppet
[2010/07/04 10:11:09] @ dandiep joined channel #puppet
[2010/07/04 10:19:24] @ Quit: ckauhaus: Ping timeout: 252 seconds
[2010/07/04 10:21:17] @ ckauhaus joined channel #puppet
[2010/07/04 10:29:08] @ rcrowley joined channel #puppet
[2010/07/04 10:34:27] @ jari_ joined channel #puppet
[2010/07/04 10:36:58] @ jari_ left channel #puppet ()
[2010/07/04 10:41:57] @ Quit: ckauhaus: Ping timeout: 252 seconds
[2010/07/04 10:54:38] @ Quit: littleidea: Quit: littleidea
[2010/07/04 10:55:25] @ Quit: devdas: Ping timeout: 260 seconds
[2010/07/04 10:59:17] @ littleidea joined channel #puppet
[2010/07/04 11:07:38] @ Alagar joined channel #puppet
[2010/07/04 11:10:27] @ Quit: littleidea: Quit: littleidea
[2010/07/04 11:20:14] @ Quit: tim|mac: Quit: Coyote finally caught me
[2010/07/04 11:21:40] @ littleidea joined channel #puppet
[2010/07/04 11:27:22] <_lucid> looking at foreman.org... one of the reqs is puppet .... i wonder if its puppet the gem?
[2010/07/04 11:27:41] @ Quit: Alagar: Quit: Leaving.
[2010/07/04 11:28:08] @ jmd_ joined channel #puppet
[2010/07/04 11:28:31] @ Quit: jmd_: Client Quit
[2010/07/04 11:28:38] @ tim|mac joined channel #puppet
[2010/07/04 11:32:19] <jamesturnbull> _lucid: the gem, the package, whatever - foreman just needs to find the library
[2010/07/04 11:35:32] @ cmvelo joined channel #puppet
[2010/07/04 11:38:35] @ cmvelo_ joined channel #puppet
[2010/07/04 11:39:16] @ Quit: cmvelo_: Client Quit
[2010/07/04 11:39:42] <cmvelo> any easy way to change the default puppet client query time from 30 mins to something else?
[2010/07/04 11:39:51] <cmvelo> thxinadvance
[2010/07/04 11:41:42] <jamesturnbull> cmvelo: yes - http://docs.reductivelabs.com/references/stable/configuration.html
[2010/07/04 11:42:32] <jamesturnbull> cmvelo: runinterval
[2010/07/04 11:45:06] <cmvelo> jamesturnbull - Many Thanks!
[2010/07/04 11:48:29] @ Quit: giskard: Remote host closed the connection
[2010/07/04 11:59:31] @ Quit: rcrowley: Ping timeout: 252 seconds
[2010/07/04 12:00:00] @ gniks joined channel #puppet
[2010/07/04 12:03:07] @ Quit: ceren: Quit: ceren
[2010/07/04 12:07:42] @ Filbert joined channel #puppet
[2010/07/04 12:08:21] @ ceren joined channel #puppet
[2010/07/04 12:13:09] @ Quit: ceren: Ping timeout: 260 seconds
[2010/07/04 12:14:00] @ joe-mac joined channel #puppet
[2010/07/04 12:17:51] @ mezgani joined channel #puppet
[2010/07/04 12:20:46] @ Quit: mezgani: Client Quit
[2010/07/04 12:24:47] @ sHaggY_caT joined channel #puppet
[2010/07/04 12:29:21] @ macfly joined channel #puppet
[2010/07/04 12:30:25] <sHaggY_caT> Hi all! I don't undestand, how i may add to this code: http://github.com/camptocamp/puppet-mysql/blob/master/lib/puppet/provider/mysql_database/mysql.rb my custom parametr (skill of programming of ruby ~nearly 2 days)
[2010/07/04 12:31:55] <sHaggY_caT> Is some hardly for my, becouse this code has not simple structure (with provider, classes, and anothers). I read puppet documentation http://docs.reductivelabs.com/guides/complete_resource_example.html, and one small book of ruby( :)) )
[2010/07/04 12:32:16] <sHaggY_caT> But don't understand, how i may :( please help me
[2010/07/04 12:33:35] @ ckauhaus joined channel #puppet
[2010/07/04 12:38:40] <sHaggY_caT> may i set in puppet code variables, and get it in ruby custom fact/class/provider with @variable?
[2010/07/04 12:44:19] @ OpenMedia joined channel #puppet
[2010/07/04 12:49:36] @ Quit: joe-mac: Read error: Operation timed out
[2010/07/04 12:51:41] @ [diablo] joined channel #puppet
[2010/07/04 12:51:49] <[diablo]> good evening #puppet
[2010/07/04 12:52:12] <[diablo]> I am trying puppet out, and have a puppet-master running and some puppets
[2010/07/04 12:53:01] <sHaggY_caT> [diablo]: hi. And...?
[2010/07/04 12:53:18] <[diablo]> I am lost as to how I can on a puppet what variables are available to me, for example (obviously I know what the puppet is running) how do I find out the $operatingsystem
[2010/07/04 12:53:31] <[diablo]> hi sHaggY_caT ... nice nick LOL
[2010/07/04 12:53:34] <agaffney> [diablo]: run 'facter'
[2010/07/04 12:53:42] <[diablo]> ah ok
[2010/07/04 12:53:46] <[diablo]> thank you agaffney
[2010/07/04 12:54:04] <agaffney> [diablo]: anything that facter shows will be available within puppet
[2010/07/04 12:54:16] <[diablo]> sweet
[2010/07/04 12:54:51] <sHaggY_caT> [diablo]: some facts avaible after install some tools, f.e., lsbrelease after install lsb-release meta package
[2010/07/04 12:54:55] <[diablo]> agaffney, sorry but I find the docs to puppet dance around ... a little difficult to follow thru
[2010/07/04 12:55:27] <agaffney> the documentation on puppetlabs.com is decent
[2010/07/04 12:55:28] <[diablo]> so, can the puppet-master get this info?
[2010/07/04 12:55:35] <agaffney> start at the introduction and just keep going
[2010/07/04 12:55:47] <sHaggY_caT> [diablo]: yes
[2010/07/04 12:56:02] <agaffney> yes, the puppet client will send all the "facts" from facter to the puppetmaster when it asks for its configuration
[2010/07/04 12:56:20] <sHaggY_caT> it's get this info, and, you may use facts in your manifests, modules, classess, and another code
[2010/07/04 12:56:30] <[diablo]> nice
[2010/07/04 12:56:51] <sHaggY_caT> [diablo]: globally. Also, you may write your custom facts on ruby )
[2010/07/04 12:57:01] <[diablo]> ok, what is the key tool for this please (on the puppet-master) for getting puppet info
[2010/07/04 12:57:39] <agaffney> huh?
[2010/07/04 12:57:44] <agaffney> what do you mean?
[2010/07/04 12:57:53] <[diablo]> sorry, ok well...
[2010/07/04 12:58:02] <[diablo]> for example say I have a puppet on ldap.example.com
[2010/07/04 12:58:04] <sHaggY_caT> [diablo]: use puppet code
[2010/07/04 12:58:27] <sHaggY_caT> and, inline templates
[2010/07/04 12:58:43] <[diablo]> and I on my puppet-master, I would like to find say just one piece of info about the puppet
[2010/07/04 12:58:53] <[diablo]> eg, the kernel
[2010/07/04 12:58:58] <[diablo]> what version it is
[2010/07/04 12:59:07] <sHaggY_caT> [diablo]: http://docs.reductivelabs.com/guides/templating.html
[2010/07/04 12:59:09] <[diablo]> can I run a command on the puppet-master to retrieve it
[2010/07/04 12:59:28] <agaffney> [diablo]: if you're talking about outside of puppet itself, you can parse the files in /var/lib/puppet/yaml/facts/ on the puppet master
[2010/07/04 12:59:32] <agaffney> it's just yaml
[2010/07/04 12:59:36] <agaffney> there's no built-in command for it
[2010/07/04 12:59:40] <[diablo]> ah ok thanks
[2010/07/04 13:00:15] <sHaggY_caT> [diablo]: may be, puppet dushboard make this
[2010/07/04 13:00:30] <[diablo]> ah got you
[2010/07/04 13:00:32] <[diablo]> thanks guys
[2010/07/04 13:00:41] <sHaggY_caT> (i don't see it, this is web face)
[2010/07/04 13:00:50] <[diablo]> sorry I have to run to my son... bbiam
[2010/07/04 13:01:00] <sHaggY_caT> [diablo]: i'm gerl :)
[2010/07/04 13:02:53] @ \ask joined channel #puppet
[2010/07/04 13:06:51] <[diablo]> sHaggY_caT, pardon?
[2010/07/04 13:09:11] <Tonnerre> [diablo], I suppose what sHaggY_caT was trying to tell you is that «son» is inadequate
[2010/07/04 13:09:17] <sHaggY_caT> [diablo]: you say "guys", and i'm fix it. forget it
[2010/07/04 13:10:03] <[diablo]> Tonnerre, erm, I have a son.. nearly 2 years lol
[2010/07/04 13:10:59] <Tonnerre> [diablo], amazing
[2010/07/04 13:11:17] <jamesturnbull> [diablo]: you can try my book - http://tinyurl.com/pupbook - too that might help
[2010/07/04 13:11:38] <[diablo]> hi jamesturnbull actually... was thinking of getting it
[2010/07/04 13:12:00] <sHaggY_caT> anybody may try help to fix custom provider? I have small skill of ruby (read book about ruby today), and don't understand, how i may add parametr to custom provider.
[2010/07/04 13:12:31] <[diablo]> jamesturnbull, your in australia right?
[2010/07/04 13:12:31] <jamesturnbull> sHaggY_caT: can you pastie your code and the error you're getting?
[2010/07/04 13:12:37] <jamesturnbull> [diablo]: portland, oregon
[2010/07/04 13:12:39] <sHaggY_caT> http://github.com/camptocamp/puppet-mysql/blob/master/lib/puppet/provider/mysql_database/mysql.rb I read puppet documentation http://docs.reductivelabs.com/guides/complete_resource_example.html
[2010/07/04 13:12:43] <jamesturnbull> [diablo]: Australian though
[2010/07/04 13:13:11] <jamesturnbull> sHaggY_caT: what's your issue with it?
[2010/07/04 13:13:13] <[diablo]> jamesturnbull, ah ok... a mate of my (a python guy called Chaitan) ... I am sure he once mentioned your name
[2010/07/04 13:13:16] <sHaggY_caT> jamesturnbull: just sec, i paste my different for this code
[2010/07/04 13:13:28] <sHaggY_caT> *changes
[2010/07/04 13:14:18] <[diablo]> jamesturnbull, he is also Australian
[2010/07/04 13:15:40] <jamesturnbull> [diablo]: I know a bunch o Python people - Anthony Baxter, Garth Kidd, etc etc ... had dinner with Guido too :)
[2010/07/04 13:16:04] <[diablo]> :-)
[2010/07/04 13:16:08] <Tonnerre> Python: programming the way Guido indented it.
[2010/07/04 13:16:21] <jamesturnbull> Tonnerre: lol
[2010/07/04 13:16:30] <[diablo]> jamesturnbull, "Dear America, I am not from insertcountryhere" SUPERB mate, spot on
[2010/07/04 13:16:42] <sHaggY_caT> jamesturnbull: http://paste.org.ru/?oxnub5
[2010/07/04 13:17:26] <[diablo]> you can't beat australian humor ....
[2010/07/04 13:18:32] <sHaggY_caT> jamesturnbull: i try add parametr in def's in provider file, also, i add it in custom class file.
[2010/07/04 13:18:39] <Tonnerre> [diablo], you mean like electing Kevin Rudd?
[2010/07/04 13:18:54] <Tonnerre> [diablo], oh, sorry, I forgot, electing is not the right way to put it
[2010/07/04 13:19:01] <[diablo]> :-)
[2010/07/04 13:19:25] <sHaggY_caT> and, try some another hoodoo's :)
[2010/07/04 13:23:36] <lisa> [diablo]: yes you can, with a cricket bat.
[2010/07/04 13:23:44] <lisa> although the cops complain ;)
[2010/07/04 13:26:28] <sHaggY_caT> [diablo]: you may get about user location with irc whois (you may get user IP DNS PTR) :) it's not info _from_ but it's info _where_ (now locate) :)
[2010/07/04 13:26:58] @ Quit: ckauhaus: Ping timeout: 252 seconds
[2010/07/04 13:27:12] <sHaggY_caT> also, is irc ping :)
[2010/07/04 13:29:56] <_lucid> jamesturnbull: just needs to find the lib... gem or pkg install.. got it.. ty
[2010/07/04 13:30:49] <sHaggY_caT> jamesturnbull: if you here, i don't understand, may i use global puppet vars with @var in custom provider, or i need get it in each def in it's first line
[2010/07/04 13:32:02] <sHaggY_caT> _lucid: if another don't take to you answer, what issue? You try install puppet?
[2010/07/04 13:32:13] <sHaggY_caT> _lucid: what's OS?
[2010/07/04 13:33:32] <_lucid> sHaggY_caT: jamesT answered my question several hours ago. that was my thank you response.
[2010/07/04 13:34:01] <_lucid> kinda late... i know.
[2010/07/04 13:40:41] @ Quit: bug: Quit: bug
[2010/07/04 13:41:42] @ bodepd joined channel #puppet
[2010/07/04 13:42:48] @ bug joined channel #puppet
[2010/07/04 13:43:46] <bodepd> Volcane: you around?
[2010/07/04 13:44:34] <_lucid> i just loaded a new server with puppetmaster and i get the following when running facter --version... http://pastie.org/1030414
[2010/07/04 13:44:58] @ ceren joined channel #puppet
[2010/07/04 13:45:16] <Volcane> yeah
[2010/07/04 13:47:19] @ devdas joined channel #puppet
[2010/07/04 13:47:27] <sHaggY_caT> _lucid: whats versions of puppet and puppet master servers?
[2010/07/04 13:49:17] @ Quit: toi: Ping timeout: 260 seconds
[2010/07/04 13:50:23] <sHaggY_caT> Volcane: do you may try answer from some quations about custom type/provider? I read today :)) one book about puppet, and, some hours ago, about ruby blocks, and, i'm not understand some things
[2010/07/04 13:51:25] <sHaggY_caT> it's issue of very small skill of ruby, i don't understand some lang constructions (or understand, but not know some things)
[2010/07/04 13:51:43] @ rcrowley joined channel #puppet
[2010/07/04 13:53:42] @ QuackNL joined channel #puppet
[2010/07/04 13:54:38] <sHaggY_caT> I try use this code:http://github.com/camptocamp/puppet-mysql and it's my diff's of original code: http://paste.org.ru/?c5xsdw i try add parametr mrootpw
[2010/07/04 13:55:26] <sHaggY_caT> And, i get error: http://paste.org.ru/?61af0s
[2010/07/04 13:55:26] @ eday joined channel #puppet
[2010/07/04 13:56:02] <sHaggY_caT> variable don't get by def's in custom provider. Where i'm wrong?
[2010/07/04 13:57:08] @ eday left channel #puppet ()
[2010/07/04 14:01:30] <sHaggY_caT> s/one book about puppet/first book about ruby/
[2010/07/04 14:07:50] @ Quit: bug: Quit: bug
[2010/07/04 14:08:25] @ Quit: ashp: Ping timeout: 260 seconds
[2010/07/04 14:08:29] @ ashp joined channel #puppet
[2010/07/04 14:09:09] <sHaggY_caT> ask my quation in group: http://groups.google.com/group/puppet-users/browse_thread/thread/e051d55f2ec9620f if anybody want try, help in mail list, or here, it's 'll be best
[2010/07/04 14:12:10] <bodepd> $mrootpw - its prob the dollar sign.
[2010/07/04 14:12:13] <bodepd> still reading...
[2010/07/04 14:13:33] <bodepd> dollar sign means global in ruby. where do you expect that variable to some from?
[2010/07/04 14:13:37] <bodepd> it need to be set in the type.
[2010/07/04 14:13:48] @ Quit: nexx: Quit: quit
[2010/07/04 14:14:13] <sHaggY_caT> bodepd: thank you for answer,
[2010/07/04 14:14:22] <bodepd> is that clear?
[2010/07/04 14:15:01] @ Quit: gebi: Ping timeout: 264 seconds
[2010/07/04 14:15:17] <bodepd> should be @resource[:rootpw]
[2010/07/04 14:15:23] <bodepd> and you need to type code:
[2010/07/04 14:15:47] <bodepd> newparam(:rootpw)
[2010/07/04 14:15:51] <sHaggY_caT> i want use mysql root pw inside node {} bracets. Node use define of rootpw (it's not hardly for me, i use puppet some mounths, and understand), and it's use custom type of ruby to puppet,
[2010/07/04 14:16:00] @ Quit: goraxe: Ping timeout: 276 seconds
[2010/07/04 14:16:20] <sHaggY_caT> bodepd: oh, i try use @rootpw, but it's not work ::)))
[2010/07/04 14:16:28] <bodepd> the only way to pass variables is as attributes.
[2010/07/04 14:16:56] <cmvelo> using puppet-25.5-1: Node regex doesn't seem to be working as expected: node /puppet\w+path2/ doesn't match puppet-upgrade-path2.path2.dev - have read through the Puppet Language Tutorial
[2010/07/04 14:16:58] <bodepd> it has to be mysql_user{'bob': rootpw=>$mrootpw}
[2010/07/04 14:17:12] <sHaggY_caT> am i need define this in custom type, or i may use it in all of places of code (inside ruby def's too)?
[2010/07/04 14:17:34] <bodepd> yes, you need to use the function newparam to create the parameter
[2010/07/04 14:17:42] <bodepd> this would be in the type code.
[2010/07/04 14:18:34] @ fbe_ is now known as fbe
[2010/07/04 14:19:34] @ fbe is now known as fbeu
[2010/07/04 14:19:43] <sHaggY_caT> bodepd: sorry, i'm some misunderstanding:
[2010/07/04 14:20:22] <bodepd> sHaggY_caT: http://pastie.org/1030454
[2010/07/04 14:20:44] <sHaggY_caT> i'm need (1) use global var in puppet manifest (2) use var in custom type newproperty(:mrootpw) do <...>, and in provider?
[2010/07/04 14:20:54] <sHaggY_caT> bodepd: just sec
[2010/07/04 14:21:25] <bodepd> the only way to pass variables from puppet to a type is by assigning an attribute.
[2010/07/04 14:22:17] <sHaggY_caT> but in provider i may use @resource[:rootpw] without another new parametr?
[2010/07/04 14:22:27] @ Quit: adrian_broher: Quit: Verlassend
[2010/07/04 14:22:30] <sHaggY_caT> simple inside code?
[2010/07/04 14:22:44] <bodepd> http://pastie.org/1030459
[2010/07/04 14:22:50] <sHaggY_caT> becouse @resource[:var] is globbaly var to ruby?
[2010/07/04 14:23:08] <bodepd> where do you see @resource[:var]?
[2010/07/04 14:24:31] <bodepd> http://pastie.org/1030461
[2010/07/04 14:24:43] <bodepd> you need to do all 3 of those things.
[2010/07/04 14:25:05] <sHaggY_caT> bodepd: thank you very much :)
[2010/07/04 14:25:10] <bodepd> 1. specify that the type accepts the parameter (its not a property, but a parameter)
[2010/07/04 14:25:21] <bodepd> 2. assign the parameter the value in the resource declaration
[2010/07/04 14:25:29] @ fredden joined channel #puppet
[2010/07/04 14:25:34] <bodepd> 3. access it as @resource[:param] in the provider
[2010/07/04 14:25:46] <bodepd> its always those three things with types/providers
[2010/07/04 14:26:16] <bodepd> sHaggY_caT: you're welcome! I hope that clear, good luck with the ruby code.
[2010/07/04 14:27:00] <sHaggY_caT> bodepd: thank you very much
[2010/07/04 14:27:12] <sHaggY_caT> i need go out, by-by
[2010/07/04 14:27:16] <bodepd> bye
[2010/07/04 14:29:39] @ Quit: sHaggY_caT: Remote host closed the connection
[2010/07/04 14:48:59] @ santoroj joined channel #puppet
[2010/07/04 14:52:35] @ santoroj left channel #puppet ()
[2010/07/04 15:01:52] @ Quit: espent: Read error: Connection reset by peer
[2010/07/04 15:06:22] @ Quit: [diablo]: Quit: Leaving
[2010/07/04 15:13:47] @ Quit: devdas: Remote host closed the connection
[2010/07/04 15:17:20] @ Quit: macfly: Ping timeout: 260 seconds
[2010/07/04 15:22:58] @ rodnet joined channel #puppet
[2010/07/04 15:24:14] @ macfly joined channel #puppet
[2010/07/04 15:26:02] @ Quit: fbeu: Quit: Leaving
[2010/07/04 15:27:15] @ Quit: bodepd: Quit: bodepd
[2010/07/04 15:27:59] @ Djelibeybi joined channel #puppet
[2010/07/04 15:32:30] @ Quit: rodnet: Quit: rodnet
[2010/07/04 15:33:17] @ Quit: yannL: Remote host closed the connection
[2010/07/04 15:33:52] @ freshtonic joined channel #puppet
[2010/07/04 15:36:49] @ Quit: Bevo: Read error: Connection reset by peer
[2010/07/04 15:37:50] @ Bevo joined channel #puppet
[2010/07/04 15:41:28] @ Quit: itguru: Ping timeout: 248 seconds
[2010/07/04 15:45:38] @ bodepd joined channel #puppet
[2010/07/04 15:49:47] @ bjaspan joined channel #puppet
[2010/07/04 15:54:38] @ itguru joined channel #puppet
[2010/07/04 16:01:03] @ Quit: jab_doa: Quit: Verlassend
[2010/07/04 16:04:36] @ Quit: bjaspan: Quit: bjaspan
[2010/07/04 16:06:53] @ Quit: rcrowley: Quit: rcrowley
[2010/07/04 16:12:42] @ bjaspan joined channel #puppet
[2010/07/04 16:16:18] @ Quit: bjaspan: Client Quit
[2010/07/04 16:21:45] @ Quit: mikepea: Ping timeout: 240 seconds
[2010/07/04 16:27:04] @ rmayr joined channel #puppet
[2010/07/04 16:36:45] @ Quit: p3rror: Ping timeout: 240 seconds
[2010/07/04 16:38:31] @ Quit: rmayr: Ping timeout: 276 seconds
[2010/07/04 16:50:49] @ p3rror joined channel #puppet
[2010/07/04 16:53:58] @ bjaspan joined channel #puppet
[2010/07/04 16:55:46] @ Quit: bjaspan: Client Quit
[2010/07/04 17:04:23] @ Quit: itguru: Remote host closed the connection
[2010/07/04 17:06:13] @ Quit: p3rror: Ping timeout: 260 seconds
[2010/07/04 17:11:31] @ Quit: Djelibeybi: Quit: Leaving
[2010/07/04 17:19:20] @ muckraker joined channel #puppet
[2010/07/04 17:30:08] @ joe-mac joined channel #puppet
[2010/07/04 17:40:12] <muckraker> I'm trying to deploy one of two files, depending on whether or not user xyz exists on the puppet client. Is there a way to do this without hacking together some sort of custom fact?
[2010/07/04 17:41:00] <Tonnerre> Only if the user is defined in Puppet
[2010/07/04 17:41:25] @ Quit: joe-mac: Ping timeout: 264 seconds
[2010/07/04 17:41:51] <muckraker> is it possible to define the user without specifying whether or not it should be created or removed?
[2010/07/04 17:42:22] <Tonnerre> If you don't specify that, you cannot check it, so you would not get what you want
[2010/07/04 17:42:22] <muckraker> I don't want to alter the account, I just want a different file if the account exists.
[2010/07/04 17:43:07] <muckraker> I see. Thanks Tonnerre.
[2010/07/04 17:44:40] <Tonnerre> Wait, there's something
[2010/07/04 17:44:59] <Tonnerre> You can exec { "getent passwd youruser": } and depend on the result of that getent
[2010/07/04 17:45:11] <Tonnerre> That's extremely awful but might work
[2010/07/04 17:45:33] <Tonnerre> (But you're better off with a custom fact)
[2010/07/04 17:46:11] <muckraker> Great, thanks.
[2010/07/04 17:53:12] @ Quit: bodepd: Quit: bodepd
[2010/07/04 17:54:06] @ kc7zzv joined channel #puppet
[2010/07/04 17:56:04] <kc7zzv> I'm looking into setting up a second puppetmaster, but I want to use the original as the ca and report server. I'm calling the one with the ca the master, and the new one the slave. Can I just change ca_server and report_server on the slave and it will forward everything, or do I need to change that on the clients too?
[2010/07/04 17:56:41] <kc7zzv> Also, is there a way to tell the puppetmaster to send a default config if the client doesn't have a valid certificate?
[2010/07/04 18:05:28] @ bodepd joined channel #puppet
[2010/07/04 18:15:43] @ bjaspan joined channel #puppet
[2010/07/04 18:17:59] <agaffney> kc7zzv: that kind of defeats the purpose of using the certificates
[2010/07/04 18:19:36] <kc7zzv> agaffney: How so? I know why you don't want to give out most configs to random people, but I was thinking that it would be helpful to give out a bootstrap environment before puppet is able to authenticate.
[2010/07/04 18:20:29] <kc7zzv> You would just not put anything sensitive in the bootstrap config. Also, I probably just used "environment" incorrectly.
[2010/07/04 18:20:48] @ Quit: bjaspan: Quit: bjaspan
[2010/07/04 18:29:45] @ PaulWay[w] joined channel #puppet
[2010/07/04 18:30:00] <PaulWay[w]> Hi all!
[2010/07/04 18:30:20] <PaulWay[w]> I've got a define for a standard file include and I want to have an optional require section.
[2010/07/04 18:31:09] <PaulWay[w]> Can I do "define multifile ($requires = []) { file { $name: require => $requires, } }"?
[2010/07/04 18:31:37] <PaulWay[w]> And have the default require nothing else,
[2010/07/04 18:32:30] <PaulWay[w]> But if the user wants to say e.g. "multifile { '/etc/foo.conf', requires => Package['foo'], }" then that file would require the foo package?
[2010/07/04 18:32:35] <PaulWay[w]> Is that making sense at all?
[2010/07/04 18:33:29] @ p3rror joined channel #puppet
[2010/07/04 18:44:16] <kc7zzv> PaulWay[w]: That might work. If that doesn't work, you can always do it using an "if" statement.
[2010/07/04 18:58:46] <PaulWay[w]> kc7zzv: how would that work then?
[2010/07/04 18:59:15] <PaulWay[w]> I'm getting an error from this definition but I think it's not related to that require.
[2010/07/04 18:59:39] <PaulWay[w]> I'm getting "Failed to retrieve current state of resource: Error 400 on SERVER: Not authorized to call find on /file_metadata/..."
[2010/07/04 19:07:55] @ ceren_ joined channel #puppet
[2010/07/04 19:08:05] <kc7zzv> PaulWay[w]: I can't help you much with the error. Try this in your define:
[2010/07/04 19:08:29] <kc7zzv> define multifile ($requires = undef ) { file { $name: require => $requires, } }
[2010/07/04 19:08:49] <kc7zzv> That might fix work for your original question.
[2010/07/04 19:11:39] @ Quit: ceren: Ping timeout: 265 seconds
[2010/07/04 19:13:19] <kc7zzv> PaulWay[w]: Nope. That didn't work. I made a mistake in my test.
[2010/07/04 19:14:09] @ Quit: ceren_: Ping timeout: 240 seconds
[2010/07/04 19:21:38] <kc7zzv> PaulWay[w]: This works http://pastie.org/private/rucazsfhhnbiqw0qt8lpua
[2010/07/04 19:22:06] @ Quit: axisys: Quit: Lost terminal
[2010/07/04 19:22:19] <PaulWay[w]> I've got multifile { $requires = [] } - that seems to work just as well.
[2010/07/04 19:22:22] <PaulWay[w]> Thanks for that kc7zzv
[2010/07/04 19:22:49] <kc7zzv> Strange. That didn't work for me. I guess I had a typo.
[2010/07/04 19:28:32] <PaulWay[w]> Well, that's the cut-down version - the full thing looks like http://fpaste.org/XBde/
[2010/07/04 19:35:21] @ pinoyskull joined channel #puppet
[2010/07/04 19:37:26] @ Quit: bodepd: Quit: bodepd
[2010/07/04 19:48:33] @ MarkN joined channel #puppet
[2010/07/04 19:49:05] @ MarkN left channel #puppet ()
[2010/07/04 19:55:52] @ Quit: p3rror: Ping timeout: 265 seconds
[2010/07/04 19:56:56] @ Quit: kc7zzv: Quit: kc7zzv
[2010/07/04 20:01:45] @ Quit: pinoyskull: Ping timeout: 240 seconds
[2010/07/04 20:06:18] @ Quit: dandiep: Ping timeout: 260 seconds
[2010/07/04 20:09:18] @ kc7zzv joined channel #puppet
[2010/07/04 20:15:52] @ pinoyskull joined channel #puppet
[2010/07/04 20:18:06] @ ivanoats joined channel #puppet
[2010/07/04 20:21:08] <_lucid> is there a history/repository of this irc?
[2010/07/04 20:29:18] @ alcy joined channel #puppet
[2010/07/04 20:46:17] @ bjaspan joined channel #puppet
[2010/07/04 20:46:34] @ Quit: bjaspan: Client Quit
[2010/07/04 20:47:19] @ bjaspan joined channel #puppet
[2010/07/04 20:51:38] @ Quit: OpenMedia: Quit: Leaving.
[2010/07/04 20:55:38] <kc7zzv> _lucid: A link to the history is on the IRC page. http://projects.puppetlabs.com/projects/puppet/wiki/IRC_Channel
[2010/07/04 21:03:27] @ Quit: ivanoats: Remote host closed the connection
[2010/07/04 21:09:19] @ Quit: bjaspan: Quit: bjaspan
[2010/07/04 21:10:47] @ ceren joined channel #puppet
[2010/07/04 21:10:55] @ Quit: ceren: Client Quit
[2010/07/04 21:27:48] @ giskard joined channel #puppet
[2010/07/04 21:28:01] @ joe-mac joined channel #puppet
[2010/07/04 21:28:10] <eric0> man, what have i done? my sandbox puppetmaster says this when a client on localhost connects: err: You cannot save facts to the code store; it is only used for getting facts from Facter
[2010/07/04 21:28:43] <joe-mac> you must have saved some facts in the code store
[2010/07/04 21:28:45] <joe-mac> :-D
[2010/07/04 21:31:57] @ bug joined channel #puppet
[2010/07/04 21:41:20] <alcy> Folks, trying to get Passenger run. Query is, what should be the DoecumentRoot ? From the git repo, its /etc/puppet/rack/ but that doesn't exist on my sys. No clue about this
[2010/07/04 21:42:42] <alcy> ...on Debian
[2010/07/04 21:46:47] <eric0> alcy doesnt really matter - it just needs to be a directory with the config.ru file in it
[2010/07/04 21:46:49] @ Quit: _lucid: Ping timeout: 252 seconds
[2010/07/04 21:47:42] <alcy> eric0: ah, thanks
[2010/07/04 21:49:56] @ Quit: joe-mac: Ping timeout: 265 seconds
[2010/07/04 21:51:33] @ p3rror joined channel #puppet
[2010/07/04 21:52:06] @ Quit: pinoyskull: Quit: Leaving
[2010/07/04 21:52:44] <eric0> also make sure uid/gid owners of the directory and config.ru are the user you want puppetmasterd to run as
[2010/07/04 21:53:25] <alcy> yup have chowned to puppet:puppet
[2010/07/04 21:54:47] @ pinoyskull joined channel #puppet
[2010/07/04 21:59:48] <alcy> eric0: oh i didn't notice the manifest.pp which would have taken care of this.
[2010/07/04 22:15:52] <alcy> eric0: I am getting a certificate verification failed error http://pastebin.com/WURwmZg4
[2010/07/04 22:18:27] <alcy> ...should I remove the ssl information from all the nodes...and the probably obtain them again ?
[2010/07/04 22:18:49] <kc7zzv> alcy: Did you put the two lines in puppet.conf on the server?
[2010/07/04 22:18:59] <alcy> yup
[2010/07/04 22:20:23] <alcy> kc7zzv: Yes I did.
[2010/07/04 22:21:14] <kc7zzv> I would double check to make sure that you pointed the certificate lines in /etc/apache/whatever/whatever.conf are correct. Also, make sure you have the SSL module enabled.
[2010/07/04 22:21:16] @ ceren joined channel #puppet
[2010/07/04 22:22:37] <kc7zzv> Does /etc/apache2/mods-enabled/ssl.conf and /etc/apache2/mods-enabled/ssl.load exist?
[2010/07/04 22:24:43] <alcy> yes, the files do exist. Also, in the apache2.conf, the certificates are pointed towards the right one (my server's that is)
[2010/07/04 22:24:53] <alcy> ...files and the module I mean
[2010/07/04 22:26:28] <kc7zzv> Did you install passenger and rack using gems or apt?
[2010/07/04 22:26:39] <alcy> kc7zzv: I put the necessary sections in the main apache2.conf itself, did not create a separate puppetmasterd in conf.d, I guess that's irrelevant here ?
[2010/07/04 22:26:53] <alcy> through gem
[2010/07/04 22:27:06] <alcy> passenger is 2.2.15 and rack is 1.2.1
[2010/07/04 22:27:15] <kc7zzv> It should be irrelevant.
[2010/07/04 22:28:15] <kc7zzv> puppetmaster is 0.25.x?
[2010/07/04 22:28:21] <alcy> 0.25.4
[2010/07/04 22:30:24] <kc7zzv> You shouldn't need to change anything, but you might want to try wiping a client's /var/lib/puppet and see what happens.
[2010/07/04 22:31:47] <kc7zzv> Also, what version of ruby?
[2010/07/04 22:32:11] <kc7zzv> *What version of ruby does the test client have?
[2010/07/04 22:32:49] <alcy> ...there's one thing I should mention, before doing that. The ssl.conf in apache2 has got this line SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP commented out
[2010/07/04 22:33:02] @ Quit: cmvelo: Quit: Page closed
[2010/07/04 22:33:23] <kc7zzv> Mine is working and that line isn't commented out.
[2010/07/04 22:33:54] <alcy> i guess I need to uncomment it because this very same line is what is used in the apache2.conf file for puppet
[2010/07/04 22:34:52] @ Quit: giskard: Remote host closed the connection
[2010/07/04 22:37:30] <alcy> kc7zzv: can you pastebin your ssl.conf & apache2.conf please ?
[2010/07/04 22:37:51] <kc7zzv> My ssl.conf is the default. Do you still want it?
[2010/07/04 22:37:59] <kc7zzv> Just a min on the other.
[2010/07/04 22:38:43] <alcy> well, my default one had a line commented out, so, if possible please paste that also. thanks a lot.
[2010/07/04 22:39:25] @ Quit: alban2: Ping timeout: 240 seconds
[2010/07/04 22:43:52] <kc7zzv> Here are the module files from mods-enabled http://pastie.org/1030799
[2010/07/04 22:44:49] <kc7zzv> Here's apache2.conf which is just a stock file from Ubuntu http://pastie.org/1030801
[2010/07/04 22:45:49] <alcy> ...sorry kc7zzv but I meant the apache2.conf for the puppetmaster-realtive section
[2010/07/04 22:45:54] <alcy> ...thansk for the other one
[2010/07/04 22:46:06] <alcy> puppetmaster-relative
[2010/07/04 22:46:52] <kc7zzv> Also, try these commands to make sure you don't have an old version hanging around.
[2010/07/04 22:46:52] <kc7zzv> dpkg -l | grep rack-ruby
[2010/07/04 22:46:58] <kc7zzv> dpkg -l | grep passenger
[2010/07/04 22:47:25] <kc7zzv> The version in lenny is too old.
[2010/07/04 22:48:14] <alcy> rack is 1.1.0, but the one installed through gem is 1.2.1
[2010/07/04 22:49:01] <kc7zzv> Are you running any web apps on that server other than puppet?
[2010/07/04 22:50:22] <kc7zzv> Actually, I'm using 1.1.0-3 with no trouble.
[2010/07/04 22:51:12] <alcy> hmmm, I only puppet on 8140, there are others but running on different ports
[2010/07/04 22:55:29] <kc7zzv> I'm assuming you got that version of rack from debian testing or lenny-backports. Either of those repositories should work.
[2010/07/04 22:55:49] <alcy> kc7zzv: Do you get any messages when you do https://<yourhost>:8140 in the browser ?
[2010/07/04 22:56:05] @ Quit: nareshov: Changing host
[2010/07/04 22:56:05] @ nareshov joined channel #puppet
[2010/07/04 22:56:47] <alcy> kc7zzv: rack came with other ruby=related package from apt. but when installing passenger through gem, it installed rack's newere version as well.
[2010/07/04 22:57:25] <kc7zzv> Untrusted ca browser error for obvious reasons. Then I get:
[2010/07/04 22:57:27] <kc7zzv> The environment must be purely alphanumeric, not ''
[2010/07/04 22:58:32] <kc7zzv> I'm going off line, but here's my package information before I do.
[2010/07/04 22:58:34] <alcy> yup that's what I get too, so that's not an issue then
[2010/07/04 22:58:54] <kc7zzv> All my packages were installed using apt.
[2010/07/04 22:59:05] <kc7zzv> package { ["librack-ruby", "libapache2-mod-passenger", "apache2-mpm-worker", "apache2-threaded-dev", "apache2" ]
[2010/07/04 22:59:54] <alcy> Right, thanks. I'll try uninstalling from gem, then try apt only.
[2010/07/04 23:01:00] <kc7zzv> These are packages from Ubuntu which means almost all come from lenny-testing. Package versions:
[2010/07/04 23:01:01] <kc7zzv> http://pastie.org/1030811
[2010/07/04 23:01:49] <alcy> ...the difference in mine is that I have used the apache2-prefork-dev instead of -threaded-, will try again with that instead
[2010/07/04 23:02:32] <kc7zzv> Sounds like you know a lot more about apache than me.
[2010/07/04 23:03:57] @ Quit: kolla: Remote host closed the connection
[2010/07/04 23:05:13] @ Quit: fredden: Quit: Leaving
[2010/07/04 23:05:52] <alcy> ...errm no, just that to install passenger, apxs binary is required which can be delivered by either the apache-threaded or apache2-prefork-dev depending on the mpm, which I dodn;t know exactly.
[2010/07/04 23:07:23] <alcy> ..didn't know
[2010/07/04 23:09:23] <eric0> if you're just moving over from standalone puppetmasterd to passenger , rmember to change permissions on your /etc/puppet/ssl/* , that error could be apache unable to open the private key
[2010/07/04 23:09:47] <eric0> standalone puppetmasterd runs as root
[2010/07/04 23:12:06] <alcy> so...it should be changed to root instead of puppet, the owner I mean ?
[2010/07/04 23:13:40] <kc7zzv> Everything in my /var/lib/ssl directory is owned by puppet.
[2010/07/04 23:16:03] @ mattock joined channel #puppet
[2010/07/04 23:17:06] <alcy> mine too
[2010/07/04 23:19:11] <kc7zzv> alcy: You looked in the logs on the server for errors?
[2010/07/04 23:21:48] @ benoit_ joined channel #puppet
[2010/07/04 23:22:12] <alcy> yeah, th last thing in the log is about WEBrick, nothign about apache. ...should be in apache logs
[2010/07/04 23:22:33] @ pmorillo joined channel #puppet
[2010/07/04 23:26:59] <eric0> you can also edit that config.ru to << (append) more args to puppetmsterd command line args such as a --logdest and --debug
[2010/07/04 23:27:43] <alcy> I did append the --debug in config.ru
[2010/07/04 23:28:01] <eric0> also use openssl s_client -connect xxx:8140 -showcerts to see what the server is respondign with, maybe you got the parameters mixed up in config and its sending down the CN=CA certificate instead of the host cert for SSL
[2010/07/04 23:28:30] <eric0> that error you pasted is a classic wrong cert/hostname mismatch error
[2010/07/04 23:29:50] <bdha> Could not find terminus file_server for indirection file_metadata
[2010/07/04 23:29:51] <bdha> huh.
[2010/07/04 23:29:53] <bdha> That's a new one.
[2010/07/04 23:30:17] <alcy> eric0: I am trying it out again, hopefully will get it right
[2010/07/04 23:36:22] @ giskard joined channel #puppet
[2010/07/04 23:36:38] @ mvn071 joined channel #puppet
[2010/07/04 23:37:47] @ Quit: littleidea: Quit: littleidea
[2010/07/04 23:38:07] @ mfournier joined channel #puppet
[2010/07/04 23:41:39] @ Quit: alexs_: Ping timeout: 240 seconds
[2010/07/04 23:41:43] @ alexs_ joined channel #puppet
[2010/07/04 23:44:47] @ MattyM joined channel #puppet
[2010/07/04 23:46:34] <alcy> eric0: I tried the openssl_client command this time, at least now I am able to connect. Earlier it was displaying connection closed. Now, as you said its passing on CN=CA, hence I am getting the certification failed error again.
[2010/07/04 23:47:55] @ ecolitan joined channel #puppet

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