Sunday, 2009-03-29

[2009/03/29 00:02:45] @ Log started by gepetto
[2009/03/29 00:02:45] @ Quit: d3vilb0x:
[2009/03/29 00:07:04] @ benblack|away is now known as benblack
[2009/03/29 00:38:17] @ Quit: Djelibeybi: "Leaving"
[2009/03/29 00:38:32] @ dak1n1 left channel #puppet ()
[2009/03/29 00:48:26] @ andrewcshafer_ joined channel #puppet
[2009/03/29 00:48:26] @ Quit: andrewcshafer: Read error: 104 (Connection reset by peer)
[2009/03/29 00:52:58] @ Quit: Flam5: Read error: 110 (Connection timed out)
[2009/03/29 00:55:49] @ Quit: aZaFred:
[2009/03/29 01:27:02] @ cwebber joined channel #puppet
[2009/03/29 01:31:44] @ Quit: cwebber: Client Quit
[2009/03/29 02:18:04] @ benblack is now known as benblack|away
[2009/03/29 02:29:32] @ Quit: andrewcshafer_:
[2009/03/29 02:38:13] @ benblack|away is now known as benblack
[2009/03/29 02:44:57] @ gettalong joined channel #puppet
[2009/03/29 03:03:28] @ Quit: chadh: Read error: 104 (Connection reset by peer)
[2009/03/29 03:03:46] @ chadh joined channel #puppet
[2009/03/29 03:07:13] @ andrewcshafer joined channel #puppet
[2009/03/29 03:23:13] @ benblack is now known as benblack|away
[2009/03/29 03:26:27] @ Quit: chadh: Read error: 104 (Connection reset by peer)
[2009/03/29 03:26:39] @ chadh joined channel #puppet
[2009/03/29 03:29:21] @ fbe__ joined channel #puppet
[2009/03/29 03:29:27] @ Quit: fbe_: Read error: 104 (Connection reset by peer)
[2009/03/29 04:04:32] @ Demosthenes joined channel #puppet
[2009/03/29 04:10:40] @ Quit: andrewcshafer:
[2009/03/29 04:15:00] @ madrescher joined channel #puppet
[2009/03/29 04:16:37] @ Quit: johnw:
[2009/03/29 04:46:13] @ Quit: madrescher: Read error: 110 (Connection timed out)
[2009/03/29 04:49:53] @ aZaFred joined channel #puppet
[2009/03/29 04:56:27] @ toi joined channel #puppet
[2009/03/29 05:01:09] @ Quit: toi: Read error: 60 (Operation timed out)
[2009/03/29 05:01:12] @ MarlondB joined channel #puppet
[2009/03/29 05:01:39] @ AussieGuy joined channel #puppet
[2009/03/29 05:02:19] <AussieGuy> notice: //Node[default]/apache2/File[/var/www/config.php]/mode: mode changed '755' to '744' .... does this mean puppet changed it from 755 to 744 or something external did? I put an exec to chmod recursively to 744 before the file with the 744 mode attribute
[2009/03/29 05:09:32] <kjetilho> Puppet doesn't use the ordering in your file, so the File may have been evalutated before the Exec
[2009/03/29 05:10:07] <kjetilho> you need to add require => Exec[...] to the File to force an ordering.
[2009/03/29 05:13:40] <AussieGuy> ok how would I do that...
[2009/03/29 05:15:50] <AussieGuy> are you saying name the exec?
[2009/03/29 05:16:05] <AussieGuy> to refer to it it would need a unique name
[2009/03/29 05:16:13] <kjetilho> the exec always has a name
[2009/03/29 05:16:22] <kjetilho> by default it's the command itself
[2009/03/29 05:16:42] <kjetilho> but it may be more convenient to give it a shorter and more readable name
[2009/03/29 05:19:07] <AussieGuy> its saying relationships must be resource references
[2009/03/29 05:19:21] <AussieGuy> so how would I go about naming exec?
[2009/03/29 05:22:02] <AussieGuy> namevar doesnt seem to be a valid attribute
[2009/03/29 05:23:49] <kjetilho> you put the command in the command attribute instead
[2009/03/29 05:27:51] <AussieGuy> I see
[2009/03/29 05:52:18] <AussieGuy> ok this is weird. I have a file defined for webalizer, set its entire directory /etc/webalizer to mode 600. Now puppet says: notice: //Node[default]/webalizer/File[/etc/webalizer]/mode: mode changed '600' to '700'
[2009/03/29 05:52:38] <AussieGuy> to be double sure it gets set to 600 ive put an exec to chmod it and required that exec in the file
[2009/03/29 05:52:59] <AussieGuy> and set the mode to 600 in the file
[2009/03/29 05:53:32] <kjetilho> if you set it to 600, you might as well remove it
[2009/03/29 05:53:38] <kjetilho> it's unusable
[2009/03/29 05:54:04] <AussieGuy> read only?
[2009/03/29 05:54:12] <kjetilho> you can't do anything to a directory with x set
[2009/03/29 05:54:15] <AussieGuy> I mean read/write for that user only
[2009/03/29 05:54:16] <kjetilho> without
[2009/03/29 05:54:19] @ Quit: gettalong: Read error: 104 (Connection reset by peer)
[2009/03/29 06:02:16] @ sts joined channel #puppet
[2009/03/29 06:15:05] <AussieGuy> Ok you got me there, thats not the only time thats happened though... I put a recursive file for apache2 to be set to mode 744 for the whole dir and made it depend on require => Exec["chmod -R 744 /etc/apache2"]...Im getting notice: //Node[default]/apache2/File[/etc/apache2]/mode: mode changed '744' to '755'
[2009/03/29 06:15:05] @ Quit: nevele: "Wow! A bug?"
[2009/03/29 06:19:59] @ friendly12345 joined channel #puppet
[2009/03/29 06:29:29] <kjetilho> as I said, setting the r-bit without the x-bit is useless
[2009/03/29 06:29:39] <kjetilho> so Puppet will fix it for you
[2009/03/29 06:30:34] <kjetilho> btw, setting the x-bit on non-executable files is just so un-esthetical :)
[2009/03/29 06:39:52] @ DavidS joined channel #puppet
[2009/03/29 07:15:01] @ nakano_ is now known as nakano
[2009/03/29 07:38:02] @ Quit: friendly12345: Read error: 60 (Operation timed out)
[2009/03/29 07:41:31] @ nakano is now known as nakano_
[2009/03/29 07:48:19] @ martha joined channel #puppet
[2009/03/29 07:50:57] @ d3vilb0x joined channel #puppet
[2009/03/29 07:59:47] @ madrescher joined channel #puppet
[2009/03/29 08:02:10] <JD> so puppet seems to be causing 100 CPU wakeups a second on my workstation, which is about 20% of the wakeups
[2009/03/29 08:02:20] <JD> this seems a little silly
[2009/03/29 08:02:42] <JD> especially for something that should only wake up once every 30 minutes
[2009/03/29 08:18:13] @ Quit: madrescher: Read error: 110 (Connection timed out)
[2009/03/29 08:19:56] @ madrescher joined channel #puppet
[2009/03/29 08:25:26] @ madrescher left channel #puppet ("Leaving.")
[2009/03/29 08:25:48] @ madrescher joined channel #puppet
[2009/03/29 08:43:58] @ Flam5 joined channel #puppet
[2009/03/29 08:46:20] @ Quit: DavidS: Read error: 104 (Connection reset by peer)
[2009/03/29 08:47:26] @ Quit: Flam5: Client Quit
[2009/03/29 08:49:32] @ DavidS joined channel #puppet
[2009/03/29 08:49:52] @ Quit: DavidS: Read error: 104 (Connection reset by peer)
[2009/03/29 08:51:45] <Volcane> JD: measured how?
[2009/03/29 08:52:04] <JD> Volcane: powertop
[2009/03/29 08:52:21] <Volcane> ah
[2009/03/29 08:52:30] <Volcane> its probably the ruby VM rather then puppet
[2009/03/29 08:52:36] <JD> yeah, I suspect so
[2009/03/29 08:53:42] <JD> just thinking about the energy saved by upgrading puppet :)
[2009/03/29 08:58:05] @ omry|work joined channel #puppet
[2009/03/29 09:02:53] @ briandquinn joined channel #puppet
[2009/03/29 09:29:59] @ Quit: briandquinn:
[2009/03/29 09:51:00] @ nakano_ is now known as nakano
[2009/03/29 10:03:15] @ briandquinn joined channel #puppet
[2009/03/29 10:09:47] @ gettalong joined channel #puppet
[2009/03/29 10:17:21] @ Quit: briandquinn:
[2009/03/29 10:27:47] @ weazle joined channel #puppet
[2009/03/29 10:36:55] @ toi joined channel #puppet
[2009/03/29 10:42:27] @ Quit: gettalong:
[2009/03/29 10:46:56] @ gaveen joined channel #puppet
[2009/03/29 10:49:20] @ andrewcshafer joined channel #puppet
[2009/03/29 10:53:27] @ Quit: weazle:
[2009/03/29 10:53:47] @ joe-mac1 joined channel #puppet
[2009/03/29 10:54:19] <joe-mac1> does anybody know when the has_variable? function was created in puppet? i'm thinking mine doesn't support it
[2009/03/29 10:55:25] @ Quit: zahna: Read error: 104 (Connection reset by peer)
[2009/03/29 11:04:22] @ randybias joined channel #puppet
[2009/03/29 11:09:24] @ benblack|away is now known as benblack
[2009/03/29 11:10:06] <andrewcshafer> joe-mac1: what version are you using?
[2009/03/29 11:12:20] @ Quit: randybias:
[2009/03/29 11:13:01] <joe-mac1> 24.4 i think
[2009/03/29 11:13:07] <joe-mac1> the ubuntu 804 lts package\
[2009/03/29 11:14:41] <andrewcshafer> you don't have it
[2009/03/29 11:14:51] <andrewcshafer> let me see what the first version to have it was
[2009/03/29 11:16:02] <andrewcshafer> joe-mac1: 0.24.5 has it
[2009/03/29 11:20:57] <joe-mac1> thanks andrewcshafer
[2009/03/29 11:21:08] @ Quit: gaveen: Read error: 110 (Connection timed out)
[2009/03/29 11:21:21] <joe-mac1> probably won't see .5 during the LTS, i'll have to work around it
[2009/03/29 11:23:18] @ gaveen joined channel #puppet
[2009/03/29 11:29:38] @ lak joined channel #puppet
[2009/03/29 11:30:31] @ cwebber joined channel #puppet
[2009/03/29 11:34:14] @ Quit: lak: Client Quit
[2009/03/29 11:34:58] @ stijnbe joined channel #puppet
[2009/03/29 11:40:52] @ Quit: cwebber:
[2009/03/29 11:42:32] @ raphink joined channel #puppet
[2009/03/29 11:50:21] @ Quit: sunoano: "Leaving."
[2009/03/29 12:09:49] @ lak joined channel #puppet
[2009/03/29 12:18:53] @ benblack is now known as benblack|away
[2009/03/29 12:20:45] @ benblack|away is now known as benblack
[2009/03/29 12:24:17] @ Quit: fujin:
[2009/03/29 12:29:14] @ Quit: stijnbe: "Leaving..."
[2009/03/29 12:30:17] @ sunoano joined channel #puppet
[2009/03/29 12:38:41] @ Quit: lak:
[2009/03/29 12:44:45] @ Quit: madrescher: Read error: 104 (Connection reset by peer)
[2009/03/29 12:54:44] @ madrescher joined channel #puppet
[2009/03/29 12:55:41] @ lak joined channel #puppet
[2009/03/29 12:55:50] @ yarihm joined channel #puppet
[2009/03/29 13:07:55] @ Quit: ezekiel-v3: Read error: 113 (No route to host)
[2009/03/29 13:26:09] @ ezekiel-v3 joined channel #puppet
[2009/03/29 13:26:37] @ Quit: ezekiel-v3: Client Quit
[2009/03/29 13:28:13] @ ezekiel-v3 joined channel #puppet
[2009/03/29 13:39:45] @ Quit: lak:
[2009/03/29 14:07:45] @ benblack is now known as benblack|away
[2009/03/29 14:11:45] @ benblack|away is now known as benblack
[2009/03/29 14:18:33] @ yure joined channel #puppet
[2009/03/29 14:27:45] @ benblack is now known as benblack|away
[2009/03/29 14:45:53] @ aymerick joined channel #puppet
[2009/03/29 14:46:15] @ Quit: aymerick: Client Quit
[2009/03/29 14:51:56] @ stijnbe joined channel #puppet
[2009/03/29 15:07:48] @ Quit: alban2: Read error: 113 (No route to host)
[2009/03/29 15:13:29] @ Quit: raphink:
[2009/03/29 15:17:22] @ epsas_ is now known as epsas
[2009/03/29 15:17:42] @ fujin joined channel #puppet
[2009/03/29 15:19:00] @ briandquinn joined channel #puppet
[2009/03/29 15:21:08] @ Quit: andrewcshafer:
[2009/03/29 15:21:35] @ yarihm_ joined channel #puppet
[2009/03/29 15:24:21] <jenza> /win bal
[2009/03/29 15:25:35] @ Quit: fujin:
[2009/03/29 15:29:05] @ Quit: yarihm: Read error: 110 (Connection timed out)
[2009/03/29 15:42:14] @ benblack|away is now known as benblack
[2009/03/29 15:47:08] @ shake-n-bake joined channel #puppet
[2009/03/29 15:49:40] @ Quit: briandquinn:
[2009/03/29 15:58:20] @ nakano is now known as nakano_
[2009/03/29 16:01:14] @ Quit: yure: Read error: 110 (Connection timed out)
[2009/03/29 16:02:11] @ yure joined channel #puppet
[2009/03/29 16:02:44] @ benblack is now known as benblack|away
[2009/03/29 16:03:14] @ Quit: epsas: kubrick.freenode.net irc.freenode.net
[2009/03/29 16:03:14] @ Quit: ipl31: kubrick.freenode.net irc.freenode.net
[2009/03/29 16:03:15] @ Quit: erm__: kubrick.freenode.net irc.freenode.net
[2009/03/29 16:03:15] @ Quit: grim_radical: kubrick.freenode.net irc.freenode.net
[2009/03/29 16:03:15] @ Quit: ChoHag: kubrick.freenode.net irc.freenode.net
[2009/03/29 16:03:15] @ Quit: PsychoTrahe: kubrick.freenode.net irc.freenode.net
[2009/03/29 16:03:16] @ erm joined channel #puppet
[2009/03/29 16:03:16] @ epsas joined channel #puppet
[2009/03/29 16:03:16] @ ChoHag joined channel #puppet
[2009/03/29 16:03:16] @ PsychoTrahe joined channel #puppet
[2009/03/29 16:03:17] @ ipl31 joined channel #puppet
[2009/03/29 16:03:32] @ grim_radical joined channel #puppet
[2009/03/29 16:07:02] @ andrewcshafer joined channel #puppet
[2009/03/29 16:08:23] @ andrewcshafer_ joined channel #puppet
[2009/03/29 16:08:23] @ Quit: andrewcshafer: Read error: 104 (Connection reset by peer)
[2009/03/29 16:08:56] @ fujin joined channel #puppet
[2009/03/29 16:09:36] @ andrewcshafer joined channel #puppet
[2009/03/29 16:09:36] @ Quit: andrewcshafer_: Read error: 104 (Connection reset by peer)
[2009/03/29 16:11:13] @ Quit: madrescher: Read error: 113 (No route to host)
[2009/03/29 16:12:09] @ benblack|away is now known as benblack
[2009/03/29 16:23:05] @ Quit: gaveen: Remote closed the connection
[2009/03/29 16:24:29] @ joe-mac2 joined channel #puppet
[2009/03/29 16:29:18] @ glaw joined channel #puppet
[2009/03/29 16:30:08] @ Quit: shake-n-bake: Read error: 110 (Connection timed out)
[2009/03/29 16:40:09] @ Quit: joe-mac1: Read error: 110 (Connection timed out)
[2009/03/29 16:48:23] @ madrescher joined channel #puppet
[2009/03/29 16:49:52] @ Djelibeybi joined channel #puppet
[2009/03/29 16:58:05] @ Quit: martha: "Leaving."
[2009/03/29 17:04:39] @ benblack is now known as benblack|away
[2009/03/29 17:06:58] @ Quit: omry|work: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:06:58] @ Quit: docelic_: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:06:58] @ Quit: lutter: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:06:59] @ Quit: jrojas: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:06:59] @ Quit: FUF: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:06:59] @ Quit: kjetilho: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:07:00] @ Quit: ashp: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:07:00] @ Quit: jenza: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:07:01] @ Quit: huggie: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:07:01] @ Quit: tlockney: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:07:02] @ Quit: msf: kubrick.freenode.net irc.freenode.net
[2009/03/29 17:07:24] @ omry|work joined channel #puppet
[2009/03/29 17:07:24] @ docelic_ joined channel #puppet
[2009/03/29 17:07:24] @ lutter joined channel #puppet
[2009/03/29 17:07:24] @ ashp joined channel #puppet
[2009/03/29 17:07:24] @ kjetilho joined channel #puppet
[2009/03/29 17:07:24] @ FUF joined channel #puppet
[2009/03/29 17:07:24] @ jenza joined channel #puppet
[2009/03/29 17:07:24] @ tlockney joined channel #puppet
[2009/03/29 17:07:24] @ jrojas joined channel #puppet
[2009/03/29 17:07:24] @ huggie joined channel #puppet
[2009/03/29 17:07:24] @ msf joined channel #puppet
[2009/03/29 17:08:11] @ Quit: Djelibeybi: "Leaving"
[2009/03/29 17:12:29] @ weazle joined channel #puppet
[2009/03/29 17:13:00] @ Quit: weazle: Client Quit
[2009/03/29 17:13:03] @ Quit: huggie: Remote closed the connection
[2009/03/29 17:13:06] @ huggie_ joined channel #puppet
[2009/03/29 17:13:13] @ huggie_ is now known as huggie
[2009/03/29 17:13:52] @ Quit: MarlondB:
[2009/03/29 17:14:42] @ raphink joined channel #puppet
[2009/03/29 17:16:01] @ Quit: ashp: Remote closed the connection
[2009/03/29 17:16:04] @ ashp joined channel #puppet
[2009/03/29 17:17:09] @ shake-n-bake joined channel #puppet
[2009/03/29 17:20:33] @ Quit: jenza: Remote closed the connection
[2009/03/29 17:20:37] @ jenza joined channel #puppet
[2009/03/29 17:23:51] @ Quit: toi: Read error: 110 (Connection timed out)
[2009/03/29 17:29:21] @ Quit: jrojas: Remote closed the connection
[2009/03/29 17:29:23] @ jrojas joined channel #puppet
[2009/03/29 17:30:07] @ Quit: msf: Read error: 104 (Connection reset by peer)
[2009/03/29 17:30:10] @ msf joined channel #puppet
[2009/03/29 17:31:25] @ Djelibeybi joined channel #puppet
[2009/03/29 17:31:52] @ lak joined channel #puppet
[2009/03/29 17:34:49] @ axisys joined channel #puppet
[2009/03/29 17:36:29] @ Quit: raphink: Remote closed the connection
[2009/03/29 17:47:03] @ glaw_ joined channel #puppet
[2009/03/29 17:48:39] @ Quit: glaw: Remote closed the connection
[2009/03/29 17:51:28] @ Quit: glaw_: Client Quit
[2009/03/29 17:51:42] @ glaw joined channel #puppet
[2009/03/29 17:53:08] @ nakano_ is now known as nakano
[2009/03/29 17:53:17] @ PaulWay joined channel #puppet
[2009/03/29 17:55:45] @ Quit: shake-n-bake: Read error: 110 (Connection timed out)
[2009/03/29 18:03:16] @ benblack|away is now known as benblack
[2009/03/29 18:03:39] @ Quit: glaw:
[2009/03/29 18:09:34] @ Quit: andrewcshafer: Read error: 60 (Operation timed out)
[2009/03/29 18:16:36] @ Quit: lak:
[2009/03/29 18:20:21] @ andrewcshafer joined channel #puppet
[2009/03/29 18:57:58] @ Quit: axisys: "leaving"
[2009/03/29 19:00:42] @ skullY_ joined channel #puppet
[2009/03/29 19:05:57] @ Quit: Demosthenes: "leaving"
[2009/03/29 19:07:38] <andrewcshafer> 666
[2009/03/29 19:07:59] <PaulWay> I tried that but the operator said "wrong number" and hung up :-)
[2009/03/29 19:14:13] @ Quit: skullY: Read error: 110 (Connection timed out)
[2009/03/29 19:17:46] @ benblack is now known as benblack|away
[2009/03/29 19:20:38] @ Quit: docelic_: Connection timed out
[2009/03/29 19:20:41] @ Quit: yarihm_: "This computer has gone to sleep"
[2009/03/29 19:23:26] @ Quit: AussieGuy: "Leaving"
[2009/03/29 19:27:37] @ Demosthenes joined channel #puppet
[2009/03/29 19:30:18] @ docelic_ joined channel #puppet
[2009/03/29 19:44:50] @ walrus joined channel #puppet
[2009/03/29 19:51:39] @ n0ts___________ joined channel #puppet
[2009/03/29 19:53:23] @ Quit: Demosthenes: Read error: 110 (Connection timed out)
[2009/03/29 19:54:54] @ Quit: madrescher: Read error: 110 (Connection timed out)
[2009/03/29 19:59:10] @ Quit: docelic_: Read error: 60 (Operation timed out)
[2009/03/29 20:03:29] @ Quit: n0ts__________: Read error: 113 (No route to host)
[2009/03/29 20:06:10] @ hessml|away joined channel #puppet
[2009/03/29 20:07:45] <PaulWay> I'm having trouble with my ntpd class - I've got source => [ "puppet:///ntpd/ntp-$tag.conf", "puppet:///ntpd/ntp.conf" ] and nodes with node foo { tag time-master \n include basenode } (basenode includes the ntpd class) and yet node foo seems to be getting the standard ntp.conf rather than the ntp-time-master.conf
[2009/03/29 20:07:51] <PaulWay> Any suggestions what I'm doing wrong?
[2009/03/29 20:20:02] <kjetilho> you mean $tag = "time-master" ?
[2009/03/29 20:22:38] @ hessml|away is now known as hessml|away|away
[2009/03/29 20:27:03] @ hessml|away|away is now known as hessml|away
[2009/03/29 20:30:50] <PaulWay> Probably - I'm unsure of the correct syntax - beginner.
[2009/03/29 20:32:21] <PaulWay> The http://reductivelabs.com/trac/puppet/wiki/UsingTags documentation doesn't really indicate how to use them in a node.
[2009/03/29 20:33:59] <PaulWay> What I want is one set of nodes that are time masters that get one configuration file, and the rest which get a different one.
[2009/03/29 20:38:05] @ Quit: andrewcshafer: Read error: 110 (Connection timed out)
[2009/03/29 20:38:25] @ Quit: keithlard_:
[2009/03/29 20:39:59] @ keithlard joined channel #puppet
[2009/03/29 20:42:03] @ hessml|away is now known as hessml|away|away
[2009/03/29 20:42:49] @ andrewcshafer joined channel #puppet
[2009/03/29 20:45:13] @ Quit: hessml|away|away: "Leaving..."
[2009/03/29 20:54:02] @ andrewcshafer_ joined channel #puppet
[2009/03/29 21:03:48] @ nakano is now known as nakano_
[2009/03/29 21:04:58] @ Quit: andrewcshafer: Read error: 110 (Connection timed out)
[2009/03/29 21:06:55] @ nakano_ is now known as nakano
[2009/03/29 21:07:55] @ lak joined channel #puppet
[2009/03/29 21:09:35] @ benblack|away is now known as benblack
[2009/03/29 21:11:11] @ astinus joined channel #puppet
[2009/03/29 21:21:33] @ Quit: lak:
[2009/03/29 21:31:10] @ maxagaz joined channel #puppet
[2009/03/29 21:32:35] <Djelibeybi> jamesturnbull: I still haven't worked out a way to get FACTER_ variables visible to Facter when called by daemonized Puppet, btw.
[2009/03/29 21:40:21] @ Quit: keithlard:
[2009/03/29 21:43:07] @ Quit: fbe__: Read error: 110 (Connection timed out)
[2009/03/29 21:47:50] <Djelibeybi> Is there any built-in Facter-style variable for the current Puppet Master?
[2009/03/29 21:47:59] <Djelibeybi> Facter doesn't seem to have one
[2009/03/29 21:49:33] <fujin> $server
[2009/03/29 21:49:49] <Djelibeybi> fujin: nope, that doesn't seem to work.
[2009/03/29 21:49:56] <fujin> bad luck
[2009/03/29 21:49:58] <Djelibeybi> fujin: Well, it doesn't work in an .erb template.
[2009/03/29 21:50:16] <Djelibeybi> i.e. when referenced with <%= server %>
[2009/03/29 21:52:43] <fujin> that's not really optimal is it
[2009/03/29 21:53:29] <Djelibeybi> fujin: nope. :)
[2009/03/29 21:54:08] <andrewcshafer_> Djelibeybi: templates are evaluated on the master, the current master is the fqdn
[2009/03/29 21:54:41] <Djelibeybi> andrewcshafer_: that doesn't make sense -- I can use $fqdn in a template and get the fqdn of the client
[2009/03/29 21:55:03] <andrewcshafer_> doh, you are right, I'm high
[2009/03/29 21:55:20] <Djelibeybi> andrewcshafer_: well, that's alright then. :)
[2009/03/29 21:55:33] <Djelibeybi> fujin: $server doesn't seem to be set at all.
[2009/03/29 22:00:08] @ Quit: andrewcshafer_: Read error: 104 (Connection reset by peer)
[2009/03/29 22:00:55] @ andrewcshafer joined channel #puppet
[2009/03/29 22:02:56] <andrewcshafer> Djelibeybi: Are you managing puppet.conf? What problem are you trying to solve?
[2009/03/29 22:03:01] @ nakano is now known as nakano_
[2009/03/29 22:04:01] @ lak joined channel #puppet
[2009/03/29 22:04:30] <Djelibeybi> andrewcshafer: A purely cosmetic one. I'm trying to build an /etc/motd that contains the name of the puppetmaster and various other things
[2009/03/29 22:04:53] <Djelibeybi> andrewcshafer: so, I'm currently cheating and using a case statement on the domain name, but that's not robust over the long term
[2009/03/29 22:06:43] <Djelibeybi> Well, I'm using a selector, not a case statement. My bad.
[2009/03/29 22:08:35] <andrewcshafer> Djelibeybi: ok, it looks like it is available as 'servername'
[2009/03/29 22:09:04] @ Quit: punkcut: Read error: 104 (Connection reset by peer)
[2009/03/29 22:09:44] <andrewcshafer> let me know if that works for you
[2009/03/29 22:11:07] <Djelibeybi> andrewcshafer: let me check!
[2009/03/29 22:12:12] @ punkcut joined channel #puppet
[2009/03/29 22:12:43] <Djelibeybi> andrewcshafer: yup, that works! Thanks a bunch
[2009/03/29 22:13:53] <andrewcshafer> Djelibeybi: no prob
[2009/03/29 22:16:15] @ ohadlevy joined channel #puppet
[2009/03/29 22:17:39] @ eythian joined channel #puppet
[2009/03/29 22:18:05] <PaulWay> An observation: saying '$tag = "foo"' in a node definition would seem to imply that $tag can have only one value.
[2009/03/29 22:18:14] <PaulWay> Can one set it to an array?
[2009/03/29 22:18:43] <PaulWay> And would it make more sense if there was a 'tag' keyword that added tags to the list of tags defined in that instance?
[2009/03/29 22:18:44] <eythian> I'm looking into defining custom facts, is the name of the .rb file important, i.e. must it match the name of the fact or could I name it anything?
[2009/03/29 22:19:25] <ohadlevy> how difficult would it be to get puppetd listener part as a stand alone?
[2009/03/29 22:19:28] <Djelibeybi> PaulWay: can't you use $tag +=> "value" to add an additional tag?
[2009/03/29 22:19:51] <fujin> PaulWay: I believe it tags the appropriate scope
[2009/03/29 22:20:24] <PaulWay> Djelibeybi: don't know, new to this.
[2009/03/29 22:20:37] <fujin> wiki:FunctionReference should clarify the behaviour, iirc
[2009/03/29 22:20:39] <gepetto> fujin: wiki: wiki:FunctionReference is http://reductivelabs.com/trac/puppet/wiki/FunctionReference
[2009/03/29 22:20:48] <PaulWay> fujin: I had "tag time-master" in some of my node definitions but it didn't set the "time-master" tag on them...
[2009/03/29 22:20:51] <Djelibeybi> PaulWay: me too .. I was just suggesting something to try
[2009/03/29 22:21:05] <PaulWay> Only when I set '$tag = "time-master"' did it do it.
[2009/03/29 22:21:26] <fujin> you want tag("time-master")
[2009/03/29 22:21:32] <fujin> It's a function
[2009/03/29 22:21:36] <PaulWay> Aaaaaaaahhhhhhh.
[2009/03/29 22:21:58] <PaulWay> So I can do that in a node definition?
[2009/03/29 22:22:25] <PaulWay> Because wiki:UsingTags seems to imply that it's only for defining classes.
[2009/03/29 22:22:26] <gepetto> PaulWay: wiki:UsingTags is http://reductivelabs.com/trac/puppet/wiki/UsingTags
[2009/03/29 22:22:37] <fujin> pass
[2009/03/29 22:22:43] <fujin> try it
[2009/03/29 22:23:22] @ Quit: tuf8: Read error: 110 (Connection timed out)
[2009/03/29 22:23:39] <andrewcshafer> ohadlevy: are you talking about the listener for doing a puppet run?
[2009/03/29 22:23:58] <ohadlevy> andrewcshafer: yes
[2009/03/29 22:26:19] <andrewcshafer> ohadlevy: you just want something light weight that sits and listens on port, then runs whatever when you tell it? That shouldn't be difficult.
[2009/03/29 22:26:53] <ohadlevy> andrewcshafer: I know, but I would like to reuse the puppet infrastructure for communincations (e.g. ssl) and use the tags option
[2009/03/29 22:27:14] <ohadlevy> the background is that we are using cron, and when you want to push changes, you cant always do ssh and run puppetd on all hosts
[2009/03/29 22:28:53] <andrewcshafer> lak might have more to say, but the all the SSL stuff is standard Ruby libs, and you should be able to send whatever tags you want and have it run the right thing
[2009/03/29 22:29:15] <joe-mac2> [OT] Hey guys I use a raid1 mirror set on my workstation but i am sufficiently paranoid and want to create a nice mirror of my drive, without eating all the unnecessary unused hd space, anybody of good software for this? Like ghost could do with windows drives, but this is leenuckz
[2009/03/29 22:29:29] <joe-mac2> and by 'nuice mirror' i mean image
[2009/03/29 22:29:32] <joe-mac2> like a snapshot
[2009/03/29 22:29:45] <ohadlevy> and how hard would it be to integreate it to puppetrun?
[2009/03/29 22:30:00] <lak> ohadlevy: it'd certainly be straightforward to write a simple daemon that just listened on a port, secured by puppet's ssl cert, and just called puppetd --onetime when it was run
[2009/03/29 22:30:12] <lak> i don't know if 'integrate' would be the right word -- it'd just exec
[2009/03/29 22:30:39] <joe-mac2> i know that mike mcgrath uses snmpd
[2009/03/29 22:30:44] <joe-mac2> for that purpose
[2009/03/29 22:31:17] <joe-mac2> he does something wizard-like to kick off puppet on his nodes when he wants through snmp. i thought it was crazy, but whatever works...
[2009/03/29 22:31:17] <ohadlevy> I've seen the code in puppetrun, which uses Puppet::Network::Client.runner, does this simply starts the execution?
[2009/03/29 22:35:43] <ohadlevy> when puppet listens to configuration requests, does it uses webrick for that? I'm sorry, but I cant find the relevant code bits just yet
[2009/03/29 22:39:16] <andrewcshafer> ohadlevy: ping lak or he will burrow :/
[2009/03/29 22:39:27] * lak is doing code review
[2009/03/29 22:39:33] <andrewcshafer> might burrow
[2009/03/29 22:39:37] <lak> yes, it uses webrick
[2009/03/29 22:39:42] <lak> and yes it just starts execution
[2009/03/29 22:39:56] <lak> it's essentially exactly like hitting puppetd with SIGUSR1
[2009/03/29 22:40:03] <ohadlevy> lak: whats the class name?
[2009/03/29 22:40:25] <lak> currently Puppet::Network::Client::Master
[2009/03/29 22:40:30] <lak> the 'run' method
[2009/03/29 22:40:46] * ohadlevy wonders if i can xinetd instead of keeping webrick in memory all the time
[2009/03/29 22:40:47] <lak> but, of course, if you run that from inside your daemon, your daemon is likely to take as much ram as puppetd takes
[2009/03/29 22:40:59] <lak> others have wondered, but afaik no one has tried it
[2009/03/29 22:41:41] <ohadlevy> I guess I'm not forced to use a web server for that purpose...
[2009/03/29 22:44:46] <maxagaz> hi
[2009/03/29 22:45:28] <maxagaz> how to change this to create a directory with puppet: file { '/opt/mydir' : ensure => file, owner => root, group => dev, mode => 664, } ?
[2009/03/29 22:45:40] <Djelibeybi> maxagaz: ensure => directory,
[2009/03/29 22:45:53] <Djelibeybi> And switch change mode => 774
[2009/03/29 22:46:29] <joe-mac2> ohadlevy: that's an interesting idea, hadn't heard of that before since xinetd becomes less and less relevant as system resources get more and more obscene heh
[2009/03/29 22:46:34] <maxagaz> Djelibeybi, thanks
[2009/03/29 22:49:02] <PaulWay> Djelibeybi: or 775?
[2009/03/29 22:49:15] <Djelibeybi> PaulWay: you're right. 775 is correct.
[2009/03/29 22:49:19] <Djelibeybi> Needs the x bit
[2009/03/29 22:49:36] <maxagaz> Djelibeybi, 775, for me ?
[2009/03/29 22:49:45] <Djelibeybi> maxagaz: yes.
[2009/03/29 22:49:57] <lak> maxagaz, Djelibeybi: Puppet will automatically add the x bit for directories
[2009/03/29 22:50:04] <Djelibeybi> lak: nifty. :)
[2009/03/29 22:50:24] * Djelibeybi is busy writing his first custom Facter fact
[2009/03/29 22:52:08] @ tuf8 joined channel #puppet
[2009/03/29 22:53:31] <Djelibeybi> Well, not quite. Not having a lot of luck with it.
[2009/03/29 22:54:55] * Djelibeybi doesn't know Ruby well enough, I suspect.
[2009/03/29 22:55:06] <Djelibeybi> Well, not a suspicion. I really don't know Ruby well enough.
[2009/03/29 22:56:14] <joe-mac2> ruby is fun because even when you don't know it well enough (like me) you will be extremely surprised when you finish your script way earlier than you expected
[2009/03/29 22:56:35] <joe-mac2> you might feel a little dirty after though lol...
[2009/03/29 22:58:19] <Djelibeybi> joe-mac2: heh
[2009/03/29 22:58:22] <gepetto> feed trac had 6 updates, showing the latest 3
[2009/03/29 22:58:22] <gepetto> ::trac:: Network Reference edited by trac @ http://reductivelabs.com/trac/puppet/wiki/NetworkReference
[2009/03/29 22:58:22] <gepetto> ::trac:: Report Reference edited by trac @ http://reductivelabs.com/trac/puppet/wiki/ReportReference
[2009/03/29 22:58:22] <gepetto> ::trac:: Type Reference edited by trac @ http://reductivelabs.com/trac/puppet/wiki/TypeReference
[2009/03/29 22:58:31] @ clayning joined channel #puppet
[2009/03/29 23:00:25] @ ribo joined channel #puppet
[2009/03/29 23:04:21] <maxagaz> once a class has been changed, how do i restart the puppet server so that my change can be taken into account ?
[2009/03/29 23:04:49] <Djelibeybi> maxagaz: you don't need to. Just restart the puppet client and it'll download the latest catalog
[2009/03/29 23:05:01] <maxagaz> Djelibeybi, ok, thanks
[2009/03/29 23:07:57] <lak> maxagaz: puppetmasterd should automatically notice your class has changed
[2009/03/29 23:07:57] <Djelibeybi> Anyone feel like turning my Ruby hack into actual Ruby for me? :)
[2009/03/29 23:08:15] * Djelibeybi is cheating by execing stuff in bash instead of using Ruby
[2009/03/29 23:08:52] @ Quit: lak:
[2009/03/29 23:09:07] <Djelibeybi> Heh, lak ran away. :) I'm so not surprised.
[2009/03/29 23:10:42] <maxagaz> lakok
[2009/03/29 23:10:47] <maxagaz> lak, ok
[2009/03/29 23:13:03] @ Quit: fujin: Read error: 110 (Connection timed out)
[2009/03/29 23:13:56] @ Quit: walrus: Remote closed the connection
[2009/03/29 23:17:55] <Djelibeybi> Is there a way to get puppet to restart during a catalog run? I.e. if I have something that changes puppet's settings, can I trigger a catalog restart?
[2009/03/29 23:24:05] <eythian> Djelibeybi: it will automatically reload changes to puppet.conf I think.
[2009/03/29 23:25:57] <Djelibeybi> eythian: Hmm.. doesn't seem to. I'm using Augeas to add pluginsync and factpath, but facter has already run.
[2009/03/29 23:26:05] <Djelibeybi> eythian: it's no big deal -- it'll fix itself on the next run.
[2009/03/29 23:26:26] <eythian> Djelibeybi: ah, right. Yeah, the reload happens after the run.
[2009/03/29 23:26:29] <joe-mac2> that's odd, any changes to puppet.conf should reload its contents
[2009/03/29 23:26:54] <eythian> Djelibeybi: if you look in syslog it tells you exactly when it's reloading, in order to be sure.
[2009/03/29 23:27:31] <Djelibeybi> eythian: no, you're right
[2009/03/29 23:27:35] <Djelibeybi> it does a reparse.
[2009/03/29 23:27:46] <Djelibeybi> I need to add a require so that I'm sure I only use the facts after the change
[2009/03/29 23:37:35] @ tuf8_ joined channel #puppet
[2009/03/29 23:37:42] <Djelibeybi> Is there a way to set a file immutable with the file {} type
[2009/03/29 23:37:49] <Djelibeybi> i.e. chattr +i file
[2009/03/29 23:40:42] @ Quit: tuf8: Read error: 60 (Operation timed out)
[2009/03/29 23:43:21] @ joe-mac2 left channel #puppet ()
[2009/03/29 23:44:25] @ Quit: punkcut: Nick collision from services.
[2009/03/29 23:44:26] @ punkcut1 joined channel #puppet
[2009/03/29 23:44:30] @ punkcut1 is now known as punkcut
[2009/03/29 23:46:33] @ joe-mac1 joined channel #puppet
[2009/03/29 23:47:50] @ Quit: d3vilb0x:

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