Thursday, 2010-09-02

[2010/09/02 00:00:24] @ Log started by gepetto
[2010/09/02 00:00:24] @ Quit: gniks: Quit: Leaving.
[2010/09/02 00:00:43] @ alexine_dsouza joined channel #puppet
[2010/09/02 00:03:52] @ Quit: Djelibeybi: Quit: Leaving
[2010/09/02 00:04:41] @ Niek-work joined channel #puppet
[2010/09/02 00:05:33] @ Quit: _sh3: Ping timeout: 245 seconds
[2010/09/02 00:05:37] @ Quit: alexine_dsouza: Ping timeout: 252 seconds
[2010/09/02 00:06:53] @ alexine_dsouza joined channel #puppet
[2010/09/02 00:08:52] @ Quit: lak: Quit: lak
[2010/09/02 00:08:59] @ Deesl joined channel #puppet
[2010/09/02 00:09:03] @ Quit: Deesl: Changing host
[2010/09/02 00:09:03] @ Deesl joined channel #puppet
[2010/09/02 00:09:43] @ pmorillo joined channel #puppet
[2010/09/02 00:10:39] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/09/02 00:11:21] @ alexine_dsouza joined channel #puppet
[2010/09/02 00:13:15] @ f3ew joined channel #puppet
[2010/09/02 00:15:25] @ _sh3 joined channel #puppet
[2010/09/02 00:19:23] @ ohookins joined channel #puppet
[2010/09/02 00:21:15] @ rawler joined channel #puppet
[2010/09/02 00:22:23] @ Quit: pmorillo: Quit: pmorillo
[2010/09/02 00:25:45] @ pmorillo joined channel #puppet
[2010/09/02 00:30:31] @ sheldonh joined channel #puppet
[2010/09/02 00:36:55] @ Quit: ezmobius: Remote host closed the connection
[2010/09/02 00:41:18] @ Ramonster joined channel #puppet
[2010/09/02 00:41:51] @ diget left channel #puppet ()
[2010/09/02 00:41:55] @ jtgiri_ joined channel #puppet
[2010/09/02 00:45:31] @ Quit: jtgiri_: Client Quit
[2010/09/02 00:46:29] @ jtgiri_ joined channel #puppet
[2010/09/02 00:47:05] @ Quit: Deesl: Ping timeout: 276 seconds
[2010/09/02 00:49:45] @ Quit: jtgiri_: Client Quit
[2010/09/02 00:51:53] @ Deesl joined channel #puppet
[2010/09/02 00:53:26] @ Quit: mattock: Ping timeout: 264 seconds
[2010/09/02 00:57:04] @ coleman79 joined channel #puppet
[2010/09/02 00:59:05] @ maroon joined channel #puppet
[2010/09/02 01:06:05] @ Quit: Ramonster: Quit: So long, thanx for all the fish
[2010/09/02 01:10:27] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/09/02 01:10:36] @ alexine_dsouza joined channel #puppet
[2010/09/02 01:11:13] @ MattyM joined channel #puppet
[2010/09/02 01:11:23] @ lohapuk joined channel #puppet
[2010/09/02 01:12:34] @ Quit: alban2: Quit: Leaving.
[2010/09/02 01:12:50] @ alban2 joined channel #puppet
[2010/09/02 01:16:26] @ Subhro joined channel #puppet
[2010/09/02 01:18:25] @ Quit: Deesl: Disconnected by services
[2010/09/02 01:18:46] @ Quit: Subhro: Remote host closed the connection
[2010/09/02 01:19:04] @ Deesl joined channel #puppet
[2010/09/02 01:23:17] @ sdog1 joined channel #puppet
[2010/09/02 01:23:17] @ Quit: sdog: Read error: Connection reset by peer
[2010/09/02 01:25:54] @ alho joined channel #puppet
[2010/09/02 01:30:03] @ Naresh`` joined channel #puppet
[2010/09/02 01:30:04] @ lkoranda joined channel #puppet
[2010/09/02 01:34:17] @ jab_doa joined channel #puppet
[2010/09/02 01:35:05] @ Quit: lkoranda: Quit: Ex-Chat
[2010/09/02 01:35:14] @ lkoranda joined channel #puppet
[2010/09/02 01:41:17] @ larstobi joined channel #puppet
[2010/09/02 01:43:26] <larstobi> I would like to write a plugin to handle creation of domains for Glassfish through the asadmin command. I'm having a hard time finding a howto or other documentation on writing plugins. Does anybody know where I can find such info?
[2010/09/02 01:43:58] <larstobi> I don
[2010/09/02 01:44:26] <larstobi> I don't mean path info like this http://docs.reductivelabs.com/guides/plugins_in_modules.html but more code info, like what methods are required, what they do etc.
[2010/09/02 01:46:18] <Volcane> if you look in your puppet source, everything under types and providers are plugins
[2010/09/02 01:47:15] <larstobi> yes, I have looked there, and I can see it, but I can't find anything explaining the methods
[2010/09/02 01:47:16] <Volcane> and there's a simple walk through here http://www.kartar.net/2010/04/puppet-type-for-http-authentication/
[2010/09/02 01:48:06] <Volcane> facade_: cheers
[2010/09/02 01:48:12] <Volcane> wrong window :P
[2010/09/02 01:48:15] <facade_> ;)
[2010/09/02 01:50:29] @ Subhro joined channel #puppet
[2010/09/02 01:50:41] @ Quit: Subhro: Remote host closed the connection
[2010/09/02 01:51:46] <zaarg> i've been trying to work out this error for a while (did lots of googling). 'Could not intern from pson: source did not contain any PSON!
[2010/09/02 01:51:54] <zaarg> ssteps to debug would be appreciated
[2010/09/02 01:51:55] @ Quit: Deesl: Read error: Connection reset by peer
[2010/09/02 01:52:09] <zaarg> i've ran the clien tin teh foreground and tried ruby debug etc
[2010/09/02 01:52:25] <zaarg> also get invalid value for Integer: "puppet"
[2010/09/02 01:52:28] <zaarg> whihc woulds suspect
[2010/09/02 01:52:42] @ Quit: gebi: Ping timeout: 240 seconds
[2010/09/02 01:52:56] <zaarg> (0.2.5 on ubuntu 10.04)
[2010/09/02 01:59:58] @ Quit: sdog1: Quit: Leaving.
[2010/09/02 02:00:16] @ sdog joined channel #puppet
[2010/09/02 02:00:19] @ Quit: sdog: Changing host
[2010/09/02 02:00:19] @ sdog joined channel #puppet
[2010/09/02 02:06:47] @ Quit: anonymous1: Read error: Connection reset by peer
[2010/09/02 02:07:41] @ Quit: SpacePope: Ping timeout: 276 seconds
[2010/09/02 02:07:50] @ SpacePope joined channel #puppet
[2010/09/02 02:08:02] @ RedPepper is now known as redpepper
[2010/09/02 02:08:50] @ Quit: danblick: Ping timeout: 276 seconds
[2010/09/02 02:11:41] @ maroon left channel #puppet ()
[2010/09/02 02:12:10] @ redpepper is now known as RedPepper
[2010/09/02 02:13:16] <larstobi> Volcane: thanks, I'll check out the walkthrough at kartar.net =)
[2010/09/02 02:18:35] @ andrewh joined channel #puppet
[2010/09/02 02:23:10] @ Quit: _sh3: Quit: Lost terminal
[2010/09/02 02:23:21] @ Quit: littleidea: Quit: littleidea
[2010/09/02 02:25:52] @ Quit: rmiller4pi8: Ping timeout: 252 seconds
[2010/09/02 02:41:34] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/09/02 02:42:35] @ alexine_dsouza joined channel #puppet
[2010/09/02 02:52:15] @ Determinist joined channel #puppet
[2010/09/02 02:53:52] @ RedPepper is now known as redpepper
[2010/09/02 02:58:07] @ redpepper is now known as RedPepper
[2010/09/02 02:58:42] @ Quit: Hallaj: Quit: Leaving
[2010/09/02 03:00:20] @ Quit: ricky: Ping timeout: 276 seconds
[2010/09/02 03:08:22] @ Quit: larstobi: Quit: Page closed
[2010/09/02 03:29:22] <tholl583xx> is there a way to restart puppet from puppet?
[2010/09/02 03:29:36] <tholl583xx> without it messing up the current session
[2010/09/02 03:29:58] <tholl583xx> maybe schedule a once only restart at some point in the future
[2010/09/02 03:30:07] <dcarley> tholl583xx: for what reason; a change to puppet.conf?
[2010/09/02 03:31:11] @ Quit: themrocaw: Ping timeout: 258 seconds
[2010/09/02 03:36:37] @ themrocaw joined channel #puppet
[2010/09/02 03:37:12] <tholl583xx> dcarley: yes
[2010/09/02 03:37:46] <dcarley> tholl583xx: it will reload itself upon changes.
[2010/09/02 03:38:12] <tholl583xx> dcarley: it doesn't for report=true, certainly not for .25
[2010/09/02 03:39:00] <dcarley> tholl583xx: strange. it certainly used to.
[2010/09/02 03:47:26] @ Quit: Dantman: Ping timeout: 264 seconds
[2010/09/02 03:49:16] @ Quit: e1mer: Quit: captured by martians
[2010/09/02 03:57:02] @ Quit: bigon: Read error: Operation timed out
[2010/09/02 04:01:06] @ m3hm3t joined channel #puppet
[2010/09/02 04:03:40] @ fcami joined channel #puppet
[2010/09/02 04:03:51] @ Dantman joined channel #puppet
[2010/09/02 04:07:08] @ Quit: kenneho: Ping timeout: 260 seconds
[2010/09/02 04:11:54] @ fluxdude joined channel #puppet
[2010/09/02 04:13:12] @ e1mer joined channel #puppet
[2010/09/02 04:19:29] @ gebi joined channel #puppet
[2010/09/02 04:22:39] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/09/02 04:26:56] @ Quit: andrewh: Remote host closed the connection
[2010/09/02 04:31:54] @ vad3R joined channel #puppet
[2010/09/02 04:45:01] @ yannL joined channel #puppet
[2010/09/02 04:53:04] @ matti joined channel #puppet
[2010/09/02 04:53:54] <m3hm3t> is there a decent step by step guide for puppet for dummies like me?
[2010/09/02 04:54:02] <m3hm3t> which explains how to setup step by step
[2010/09/02 04:54:02] @ Quit: FOCer: Remote host closed the connection
[2010/09/02 04:54:47] @ franks_ joined channel #puppet
[2010/09/02 05:04:13] <henk> i guess it's called 'documentation' or 'README'...
[2010/09/02 05:05:03] <barn> m3hm3t: http://docs.puppetlabs.com/guides/installation.html or even better http://apress.com/book/view/1590599780
[2010/09/02 05:13:09] @ Quit: franks_: Ping timeout: 258 seconds
[2010/09/02 05:18:59] <coleman79> can anyone tell if yaml reports are created even if a puppetrun fails, e.g. when encountering errors (typos,...) in manifests ?
[2010/09/02 05:20:18] @ Quit: yannL: Ping timeout: 240 seconds
[2010/09/02 05:20:24] @ ahasenack joined channel #puppet
[2010/09/02 05:20:42] @ felipe` joined channel #puppet
[2010/09/02 05:21:06] @ Quit: fluxdude: Ping timeout: 240 seconds
[2010/09/02 05:21:54] @ cliff-hm joined channel #puppet
[2010/09/02 05:23:17] @ Quit: murmur: Quit: leaving
[2010/09/02 05:23:49] @ fluxdude joined channel #puppet
[2010/09/02 05:25:02] <ohadlevy> coleman79: they dont
[2010/09/02 05:25:16] @ franks_ joined channel #puppet
[2010/09/02 05:26:23] @ Quit: pinoyskull: Ping timeout: 245 seconds
[2010/09/02 05:28:32] <coleman79> ohadley: OK, understood, thanks. Guess I have to find another way for getting error reports.
[2010/09/02 05:32:00] @ rawler_ joined channel #puppet
[2010/09/02 05:32:04] @ coleman79 left channel #puppet ()
[2010/09/02 05:32:18] @ GioGio joined channel #puppet
[2010/09/02 05:32:52] @ yannL joined channel #puppet
[2010/09/02 05:32:56] @ Quit: rawler: Ping timeout: 255 seconds
[2010/09/02 05:34:17] @ andrewh joined channel #puppet
[2010/09/02 05:36:52] <GioGio> hi everyone, I have a question about naming puppet classes. I don't have a server to test it but is there some restriction for naming the classes ? or I can name it like class My_Name-1.0::extend {
[2010/09/02 05:37:55] <GioGio> I don't find the answer on the documentation (http://docs.puppetlabs.com/guides/language_tutorial.html#classes) all the examples are made with simple classes name
[2010/09/02 05:38:24] @ Quit: lwhalen: Quit: Computer has gone to sleep
[2010/09/02 05:39:38] @ Quit: spacex: Quit: Leaving.
[2010/09/02 05:39:47] @ incommon_ike joined channel #puppet
[2010/09/02 05:44:29] <dcarley> GioGio: you can't use CamelCase or periods when defining class names. underscores are prefered to hyphens. typically you don't want to start adding versions to the naming, that should be handled with environments and modulepaths.
[2010/09/02 05:48:00] <GioGio> dcarley: yes i know, it's just for the example to know what is possible. the version will not be added. So i can't use uppercase for naming classes ? the name must be only on lowercase ? underscores are prefered, right but hyphens works too ? is it possible to use . and number for naming classes ?
[2010/09/02 05:48:12] <Volcane> dcarley: i think camelcase works but the files have to be named all lower on disk - but yeah, avoid avoid avoid
[2010/09/02 05:51:54] @ yass joined channel #puppet
[2010/09/02 05:53:03] @ Quit: franks_: Ping timeout: 245 seconds
[2010/09/02 05:55:03] <dcarley> Volcane: seems that it works as long as the first letter is downcased. yet you can then reference the class completely case-insensitive and $name becomes downcased.
[2010/09/02 05:55:49] <dcarley> GioGio: all correct. except for the period - that won't work.
[2010/09/02 05:56:47] <GioGio> ok thanks for the informations
[2010/09/02 05:59:39] @ Bass10 joined channel #puppet
[2010/09/02 06:02:40] @ rmiller4pi8 joined channel #puppet
[2010/09/02 06:04:50] @ DrNexus joined channel #puppet
[2010/09/02 06:04:59] <DrNexus> Hi everybody
[2010/09/02 06:06:33] <DrNexus> I have a little problem writing a custom type, is it here the right place to speak about this ?
[2010/09/02 06:09:28] @ kenneho joined channel #puppet
[2010/09/02 06:09:38] @ Quit: kenneho: Client Quit
[2010/09/02 06:12:15] @ sts joined channel #puppet
[2010/09/02 06:12:46] @ joe-mac joined channel #puppet
[2010/09/02 06:13:54] @ spacex joined channel #puppet
[2010/09/02 06:14:18] <sts> hello folks. can anyone please help me. I'm trying to apply puppet manifests to a machine and it keeps failing. I don't know why. http://pastie.org/private/7qapucj6conp8c0kuovyaa
[2010/09/02 06:14:27] <sts> the error messages are in the bottom.
[2010/09/02 06:14:42] <sts> i include exim::debian::localmail
[2010/09/02 06:15:40] <sts> the puppet client is running '2.6.0', that might be the reason?
[2010/09/02 06:16:21] @ Quit: bug: Quit: bug
[2010/09/02 06:17:37] @ bug joined channel #puppet
[2010/09/02 06:17:58] @ Quit: bug: Client Quit
[2010/09/02 06:19:39] @ DanielFriesen joined channel #puppet
[2010/09/02 06:19:41] @ Quit: Dantman: Ping timeout: 276 seconds
[2010/09/02 06:19:42] @ Omahn joined channel #puppet
[2010/09/02 06:20:02] @ yass left channel #puppet ()
[2010/09/02 06:24:51] <kjetilho> sts: I think it is unsupported to run newer version on the client than the master
[2010/09/02 06:25:49] @ coleman79 joined channel #puppet
[2010/09/02 06:27:11] @ Quit: DrNexus: Quit: Page closed
[2010/09/02 06:29:49] @ jsimpson joined channel #puppet
[2010/09/02 06:33:09] @ morpheus joined channel #puppet
[2010/09/02 06:33:52] @ bug joined channel #puppet
[2010/09/02 06:35:39] <matti> Hey jamesturnbull
[2010/09/02 06:41:47] @ Quit: wilco: Read error: Connection reset by peer
[2010/09/02 06:42:44] @ wilco joined channel #puppet
[2010/09/02 06:46:02] @ lwhalen joined channel #puppet
[2010/09/02 06:46:55] @ littleidea joined channel #puppet
[2010/09/02 06:47:53] @ littleidea left channel #puppet ()
[2010/09/02 06:49:43] @ reyjrar joined channel #puppet
[2010/09/02 06:52:27] @ Quit: rawler_: Quit: No Ping reply in 180 seconds.
[2010/09/02 06:52:29] @ rawler joined channel #puppet
[2010/09/02 06:55:20] <sts> kjetilho: oh. thank you
[2010/09/02 06:55:34] @ Quit: rmiller4pi8: Quit: Leaving.
[2010/09/02 06:56:07] @ rmiller4pi8 joined channel #puppet
[2010/09/02 06:56:58] @ Quit: kogent: Remote host closed the connection
[2010/09/02 06:58:56] @ Quit: fenris02: Quit: Leaving
[2010/09/02 07:00:41] @ Quit: rmiller4pi8: Ping timeout: 255 seconds
[2010/09/02 07:02:29] @ MPSimmons joined channel #puppet
[2010/09/02 07:02:32] @ Quit: MPSimmons: Remote host closed the connection
[2010/09/02 07:02:38] @ littleidea joined channel #puppet
[2010/09/02 07:02:55] @ MPSimmons joined channel #puppet
[2010/09/02 07:05:08] @ ohookins left channel #puppet ("Leaving.")
[2010/09/02 07:06:14] @ notbrien joined channel #puppet
[2010/09/02 07:06:33] @ jdcasey joined channel #puppet
[2010/09/02 07:07:28] @ kaptk2 joined channel #puppet
[2010/09/02 07:09:16] @ Quit: incommon_ike: Quit: Leaving.
[2010/09/02 07:10:15] @ ricky joined channel #puppet
[2010/09/02 07:17:53] @ Ayakashi joined channel #puppet
[2010/09/02 07:17:54] @ Ramonster joined channel #puppet
[2010/09/02 07:18:21] @ Quit: rawler: Remote host closed the connection
[2010/09/02 07:21:28] @ mmckinst joined channel #puppet
[2010/09/02 07:22:40] @ gniks joined channel #puppet
[2010/09/02 07:22:55] @ mfoemmel joined channel #puppet
[2010/09/02 07:27:14] @ Quit: alho: Quit: alho
[2010/09/02 07:29:11] @ Quit: notbrien: Read error: Operation timed out
[2010/09/02 07:30:20] @ notbrien joined channel #puppet
[2010/09/02 07:30:21] @ tonyskapunk joined channel #puppet
[2010/09/02 07:33:49] @ Naresh`` is now known as Naresh
[2010/09/02 07:34:09] @ jtgiri_ joined channel #puppet
[2010/09/02 07:34:14] <Omahn> Is anyone running dashboard with the MySQL DB on a remote host? The rake 'migrate' job appears to assume the DB is local.
[2010/09/02 07:37:22] <stockholm> is there a puppet dashboard?
[2010/09/02 07:37:41] <Omahn> Ah. Use 'host' instead of 'hostname' in the config file.
[2010/09/02 07:38:01] <Omahn> stockholm: http://www.puppetlabs.com/blog/a-tour-of-puppet-dashboard-0-1-0/
[2010/09/02 07:38:22] <ohadlevy> stockholm: and there'
[2010/09/02 07:38:56] <ohadlevy> stockholm: Foreman,http://theforeman.org/projects/foreman/wiki/Features
[2010/09/02 07:39:51] <stockholm> goodie!
[2010/09/02 07:42:44] @ rmiller4pi8 joined channel #puppet
[2010/09/02 07:42:49] <stockholm> are there puppet conferences or workshops in europe?
[2010/09/02 07:43:10] <barn> yes
[2010/09/02 07:43:14] <barn> puppet camp europe
[2010/09/02 07:44:03] @ Quit: lohapuk: Remote host closed the connection
[2010/09/02 07:47:38] <stockholm> when is that?
[2010/09/02 07:48:09] <barn> it was a few months ago
[2010/09/02 07:48:25] <stockholm> and when is the next?
[2010/09/02 07:48:26] <barn> but I suspect they'll be another, though unlikely this year
[2010/09/02 07:48:38] <barn> as the next one is in the US
[2010/09/02 07:48:47] <stockholm> i like to go to developer workshops too
[2010/09/02 07:48:55] <stockholm> are there any?
[2010/09/02 07:49:13] <barn> not sure myself
[2010/09/02 07:50:07] @ kogent joined channel #puppet
[2010/09/02 07:51:41] <Volcane> sometimes there are training - paid training - in europe
[2010/09/02 07:51:49] <Volcane> covers using and developing
[2010/09/02 07:53:11] @ Tas_ joined channel #puppet
[2010/09/02 07:54:55] @ Quit: jtgiri_: Quit: jtgiri_
[2010/09/02 07:57:49] @ mfoemmel left channel #puppet ("Leaving")
[2010/09/02 08:01:16] @ Quit: yannL: Remote host closed the connection
[2010/09/02 08:09:33] @ Guest9772 joined channel #puppet
[2010/09/02 08:10:33] @ DanielFriesen is now known as Eraser_Elf_Twin
[2010/09/02 08:11:49] <Guest9772> Hello =)
[2010/09/02 08:12:41] @ rcrowley joined channel #puppet
[2010/09/02 08:13:36] @ Quit: sdog: Quit: Leaving.
[2010/09/02 08:16:09] <Guest9772> How can I change my nic
[2010/09/02 08:16:42] <threescoops> /nick new_nick
[2010/09/02 08:17:23] @ RussS joined channel #puppet
[2010/09/02 08:18:09] <Guest9772> Tks =)
[2010/09/02 08:20:10] <Guest9772> SFO.... Meaning San Fran?
[2010/09/02 08:20:21] @ Quit: jangell: Quit: jangell
[2010/09/02 08:21:10] @ Quit: QMan: Ping timeout: 252 seconds
[2010/09/02 08:23:28] @ Quit: jsimpson: Quit: jsimpson
[2010/09/02 08:26:44] @ Quit: Guest9772: Ping timeout: 258 seconds
[2010/09/02 08:26:50] <joe-mac> i know of no other common meaning of sfo
[2010/09/02 08:26:54] <joe-mac> esp in IT
[2010/09/02 08:27:32] @ Quit: coleman79: Ping timeout: 265 seconds
[2010/09/02 08:33:51] @ Quit: littleidea: Quit: littleidea
[2010/09/02 08:35:11] @ Quit: Ramonster: Quit: So long, thanx for all the fish
[2010/09/02 08:35:49] @ jangell joined channel #puppet
[2010/09/02 08:36:43] @ Quit: Niek-work: Remote host closed the connection
[2010/09/02 08:36:49] @ Quit: GioGio: Quit: Page closed
[2010/09/02 08:40:16] @ Quit: morpheus: Quit: Leaving
[2010/09/02 08:41:15] <miah> sfo is the airport code for san francisco
[2010/09/02 08:41:55] <miah> considering i live here.. its all i think of when i hear sfo =)
[2010/09/02 08:42:14] @ Quit: e1mer: Quit: captured by martians
[2010/09/02 08:44:43] @ e1mer joined channel #puppet
[2010/09/02 08:47:35] @ tobym joined channel #puppet
[2010/09/02 08:49:51] @ prometheanfire joined channel #puppet
[2010/09/02 08:49:58] <prometheanfire> I'm getting this error
[2010/09/02 08:49:59] <prometheanfire> http://dpaste.com/237904/
[2010/09/02 08:50:19] <prometheanfire> here is the class http://dpaste.com/237905/
[2010/09/02 08:51:21] @ thekad-afk is now known as thekad
[2010/09/02 08:52:58] @ alcy joined channel #puppet
[2010/09/02 08:53:44] @ Quit: mikey_p: Quit: mikey_p
[2010/09/02 08:54:16] @ Quit: pmorillo: Quit: pmorillo
[2010/09/02 08:54:24] @ KipMacy left channel #puppet ()
[2010/09/02 08:55:32] @ pheezy joined channel #puppet
[2010/09/02 08:55:49] <pheezy> anyone have an interface type that works on redhat based distros?
[2010/09/02 08:56:14] <miah> i wrote a small module to do that
[2010/09/02 08:56:54] <Tas_> For the life of me, I cannot find that article that tells you how to configure puppet to store backups of the files it modifies on the local client, does anyone have a link to some similar resource?
[2010/09/02 08:58:20] <miah> http://pastie.org/private/psnr19thykxex9qyo0kbcq
[2010/09/02 08:58:24] <miah> pretty simple ifcfg stuff
[2010/09/02 08:58:44] <pheezy> thanks miah
[2010/09/02 08:58:57] <pheezy> Tas_: here's a script i found a while back that can find the backups and let you restore them: http://pastie.org/1134010
[2010/09/02 08:58:59] <joe-mac> Tas_: look at the type reference under file and the parameter is called 'backup'
[2010/09/02 09:00:54] @ jtgiri_ joined channel #puppet
[2010/09/02 09:01:54] @ spoon joined channel #puppet
[2010/09/02 09:01:58] @ RedPepper is now known as redpepper
[2010/09/02 09:02:28] @ jaredrhine joined channel #puppet
[2010/09/02 09:04:07] <tholl583xx> any idea what might be causing this;
[2010/09/02 09:04:08] <tholl583xx> err: Could not run Puppet configuration client: Invalid parameter stage at /etc/puppet/manifests/nodes.pp:32
[2010/09/02 09:04:24] <tholl583xx> its in a select case for operatingsystem
[2010/09/02 09:04:32] @ prometheanfire left channel #puppet ()
[2010/09/02 09:05:19] <Tas_> joe-mac: I'm sorry, where would I Find that information? I have something like: File { backup => main } in my site.pp file, I am pretty new to puppet, and I don't know where I'd find that information.
[2010/09/02 09:05:24] <tholl583xx> http://pastebin.com/SF3hHRgu
[2010/09/02 09:06:43] @ prometheanfire joined channel #puppet
[2010/09/02 09:07:04] <prometheanfire> what port is used for file transfers in puppet, that might by my problem
[2010/09/02 09:07:13] @ toi joined channel #puppet
[2010/09/02 09:07:21] <Tas_> ah... found it. I think. http://docs.puppetlabs.com/guides/types/file.html
[2010/09/02 09:10:57] @ mikey_p joined channel #puppet
[2010/09/02 09:11:43] <joe-mac> Tas_: should work, you had it working yesterday didn't you? you told me you had a bunch of directories in your bucket
[2010/09/02 09:11:46] <joe-mac> like md5sums
[2010/09/02 09:12:41] <tholl583xx> any idea what I am getting "Invalid parameter stage" - I am not using a parameter stage...?
[2010/09/02 09:12:57] @ [GuS] joined channel #puppet
[2010/09/02 09:13:07] <joe-mac> borked install maybe? mix of .25 and 2.6
[2010/09/02 09:13:41] @ prometheanfire left channel #puppet ()
[2010/09/02 09:13:53] @ Quit: lkoranda: Ping timeout: 240 seconds
[2010/09/02 09:15:34] @ KipMacy joined channel #puppet
[2010/09/02 09:15:57] <tholl583xx> joe-mac: server is 2.6 and some clients are 0.25
[2010/09/02 09:16:24] <tholl583xx> but I understood that was ok, as it was the reason i updated the server so it was at least > than any clients
[2010/09/02 09:17:16] <Tas_> joe-mac: well, I want to use, or at least try out, a local file backup solution. From this documentation I'm guessing I change it to: File { backup => .main } and above that, I've got: filebucket { .main: server => puppet } <----but I'm not sure what to change the filebucket line to
[2010/09/02 09:17:26] @ nottings joined channel #puppet
[2010/09/02 09:17:27] <Tas_> shouldn't it be some kind of: local => puppet?
[2010/09/02 09:18:01] <Tas_> or... do I not need that line at all?
[2010/09/02 09:18:19] <nottings> hello all. I'm having a small issue with custom facts, and I'm hoping someone here has run into the same thing and has come up with a good way of handling the issue..
[2010/09/02 09:18:50] <nottings> facter does not display my custom fact unless, on the client, I do an export FACTERLIB=/var/lib/puppet/lib/facts
[2010/09/02 09:19:09] @ Quit: mikey_p: Quit: mikey_p
[2010/09/02 09:19:14] <nottings> the problem with that is... using "exec" puppet doesn't seem to want to do bash 'builtin's
[2010/09/02 09:19:29] @ mikey_p joined channel #puppet
[2010/09/02 09:19:32] <nottings> returns with 1 instead of 0
[2010/09/02 09:19:47] <nottings> anyone have any ideas how to circumvent this?
[2010/09/02 09:20:10] <barn> " ... || /bin/true "
[2010/09/02 09:20:26] <nottings> hmmmm....i'll give that a try
[2010/09/02 09:20:38] <nottings> though I think the env variable will not actually get exported then
[2010/09/02 09:20:57] <nottings> i think that will just satisfy puppet in terms of non-failed run
[2010/09/02 09:21:05] <barn> ah right, I solved the wrong problem
[2010/09/02 09:21:17] <barn> yeah, I did, sorry
[2010/09/02 09:21:18] <joe-mac> Tas_: filebucket by definition is a server-side construct
[2010/09/02 09:21:21] <barn> only caught the end
[2010/09/02 09:21:39] <joe-mac> try changing backup => to ${name}.bak
[2010/09/02 09:21:44] <joe-mac> also, read the docs
[2010/09/02 09:21:48] <joe-mac> i can tell you still haven't
[2010/09/02 09:21:54] <joe-mac> search for Type Reference
[2010/09/02 09:21:57] <joe-mac> on the site or google
[2010/09/02 09:22:19] @ Quit: Determinist: Remote host closed the connection
[2010/09/02 09:22:47] <Tas_> joe-mac: they're labeled as docs, that's what I've been reading :/ http://docs.puppetlabs.com/guides/types/
[2010/09/02 09:24:10] @ Quit: jaredrhine: Quit: Leaving.
[2010/09/02 09:25:11] <joe-mac> Alternatively, if you specify any value that begins with a . (e.g., .puppet-bak), then Puppet will use copy the file in the same directory with that value as the extension of the backup.
[2010/09/02 09:25:16] @ wolverian joined channel #puppet
[2010/09/02 09:25:21] <joe-mac> i assume if you name a filebucket .puppet-bak you might get a conflict
[2010/09/02 09:25:41] <wolverian> any hints what might be wrong if puppet agent --test gives me this: err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed?
[2010/09/02 09:26:04] <wolverian> I don't know what certificate it's referring to.
[2010/09/02 09:26:08] <joe-mac> the server cert
[2010/09/02 09:26:18] <joe-mac> run openssl s_client -connect puppet:8140 see what happens
[2010/09/02 09:26:42] <nottings> http://en.wikipedia.org/wiki/Certificate_authority
[2010/09/02 09:27:00] <wolverian> thankyou :)
[2010/09/02 09:27:14] <joe-mac> well, i am guessing server cert, could be the client one i guess
[2010/09/02 09:27:24] <joe-mac> did you recently do something crazy with puppet ca?
[2010/09/02 09:27:37] @ Mick27 joined channel #puppet
[2010/09/02 09:27:46] <wolverian> I would hope not
[2010/09/02 09:27:59] @ lkoranda joined channel #puppet
[2010/09/02 09:28:19] @ Quit: nottings: Quit: Page closed
[2010/09/02 09:28:59] <wolverian> master side has this in masterhttp.log: ERROR OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=SSLv3 read client certificate A: tlsv1 alert unknown ca
[2010/09/02 09:29:04] <wolverian> that is, the same error
[2010/09/02 09:29:15] <wolverian> hm, except s/B/A/
[2010/09/02 09:29:28] @ griffordson joined channel #puppet
[2010/09/02 09:29:54] <joe-mac> wolverian: the ca cert you're using on the master doesn't match the client i would guess
[2010/09/02 09:30:04] <joe-mac> you recently muck with puppet.conf?
[2010/09/02 09:30:11] <wolverian> perhaps, this config is bitrotted I suspect
[2010/09/02 09:30:31] <wolverian> I can wipe this particular client
[2010/09/02 09:30:45] <joe-mac> yea, i would and check if the master is running with certname = somethingweird
[2010/09/02 09:31:11] <wolverian> nope. I'll try reinstalling the client. thanks!
[2010/09/02 09:31:20] <joe-mac> np
[2010/09/02 09:32:13] <wolverian> yup, that fixed it. thanks!
[2010/09/02 09:32:16] <wolverian> again :)
[2010/09/02 09:33:28] @ Quit: paradox12: Quit: outty like 5 g's
[2010/09/02 09:34:37] <griffordson> are there disadvantages to putting the modules dir under the manifests dir?
[2010/09/02 09:34:56] @ Quit: spoon: Remote host closed the connection
[2010/09/02 09:35:35] <griffordson> i want my manifests and modules in the same git repo
[2010/09/02 09:36:40] @ Quit: AZed: Quit: Leaving.
[2010/09/02 09:39:11] @ Quit: MattyM: Remote host closed the connection
[2010/09/02 09:39:52] @ Quit: lkoranda: Ping timeout: 260 seconds
[2010/09/02 09:39:59] @ Quit: Alagar: Ping timeout: 255 seconds
[2010/09/02 09:40:57] @ Quit: alcy: Quit: ChatZilla 0.9.86 [Firefox 3.6.6/20100625231939]
[2010/09/02 09:42:16] @ ecapriolo joined channel #puppet
[2010/09/02 09:44:53] @ nottings joined channel #puppet
[2010/09/02 09:45:26] @ Quit: griffordson: Quit: griffordson
[2010/09/02 09:45:35] <nottings> the problem i was asking about is described by known bug #4288
[2010/09/02 09:45:36] <gepetto> nottings: #4288 is http://projects.puppetlabs.com/issues/show/4288 "Puppet - Bug #4288: Error if exec command starts with shell built-in like "if" - Puppet Labs"
[2010/09/02 09:45:54] <nottings> the work around is to put true &&, or false || in front of the bash built-in
[2010/09/02 09:46:20] @ Quit: lilmatt: Quit: lilmatt
[2010/09/02 09:46:44] @ Eraser_Elf_Twin is now known as False_Ninja_Reme
[2010/09/02 09:46:58] <nottings> exec { 'echo "export FACTERLIB=/var/lib/puppet/lib/facter" >> /etc/profile': unless => "echo $FACTERLIB |grep lib" }
[2010/09/02 09:47:00] <nottings> for example
[2010/09/02 09:47:12] <nottings> oops
[2010/09/02 09:47:14] <nottings> wrong one :)
[2010/09/02 09:47:27] @ False_Ninja_Reme is now known as ZombieDan
[2010/09/02 09:47:33] <nottings> exec { "false || export FACTERLIB=/var/lib/puppet/lib/facter": # path => "/sbin:/bin:/usr/sbin:/usr/bin", unless => "echo $FACTERLIB |grep lib" }
[2010/09/02 09:48:34] @ AZed joined channel #puppet
[2010/09/02 09:50:59] <wolverian> the munin module is giving me grief: private method `split' called for :undef:Symbol at /etc/puppet/modules/munin/manifests/plugin.pp:91
[2010/09/02 09:51:04] <wolverian> anyone else seen that?
[2010/09/02 09:51:36] <wolverian> I thought it'd be something to do with the munin facts, but RUBYLIB=. facter in the module's lib dir gives the appropriate munin interfaces fact
[2010/09/02 09:51:56] @ lkoranda joined channel #puppet
[2010/09/02 09:53:39] @ gutseb joined channel #puppet
[2010/09/02 09:54:08] @ hacim joined channel #puppet
[2010/09/02 09:54:24] <hacim> i have a manifest that does a: $attrdrives = split($diskdrives_smartattr, ",")
[2010/09/02 09:54:34] <hacim> but now with the new puppet 2.6, that gives me an error:
[2010/09/02 09:54:42] <hacim> private method `split' called for :undef:Symbol
[2010/09/02 09:56:00] @ racerx joined channel #puppet
[2010/09/02 09:56:10] @ Quit: andrewh: Read error: Connection reset by peer
[2010/09/02 09:56:39] <racerx> Hiya, Im trying to take processorcount from facter and use it in an equation in erb... cant really find any documentation on it :(.. been trying for a while to get it working
[2010/09/02 09:56:46] <racerx> <%= (processorcount - 1) %>
[2010/09/02 09:56:48] <racerx> doesnt work
[2010/09/02 09:56:57] <racerx> can anyone point me in the right direction?
[2010/09/02 09:57:19] <racerx> of course I can print it with <%= @processorcount %>
[2010/09/02 09:57:35] <wolverian> hacim: I suppose that means the variable is undef.
[2010/09/02 09:57:55] <wolverian> I do have the munin module running on other clients with puppet 2.6, though...
[2010/09/02 09:58:01] <hacim> hm could be. i wonder why it is undefined with 2.6 when it wasn't before
[2010/09/02 09:58:44] <rholden> I believe you can do it with <% (processorcount -1) %>
[2010/09/02 09:58:53] @ Quit: jdcasey: Remote host closed the connection
[2010/09/02 09:59:00] <rholden> the <%= is just to print a value not to run arbitrary code.
[2010/09/02 09:59:11] <tholl583xx> oh dear... all my clients are failing to report on the same error, and I don't know what i have done to cause it
[2010/09/02 09:59:34] <tholl583xx> is there any way to disable the "stage" metaparameter?
[2010/09/02 10:00:11] <racerx> rholden: undefined method `-' for "6"
[2010/09/02 10:00:26] <racerx> rholden: the 6 is the processor count for the server
[2010/09/02 10:00:40] <wolverian> processorcount.to_i - 1?
[2010/09/02 10:00:47] <hacim> wolverian: FACTERLIB=/var/lib/puppet/lib/facter facter diskdrives gives me a result ('hdc')
[2010/09/02 10:01:13] <wolverian> hacim: what about _smartattr?
[2010/09/02 10:01:49] <hacim> err
[2010/09/02 10:02:10] <hacim> wolverian: in fact, it is empty
[2010/09/02 10:02:18] <wolverian> right.
[2010/09/02 10:02:55] <rholden> racerx, what happens if you use @processorcount - 1? I believe at this point it is parsed with ruby so whatever the correct ruby code would be, I'm not familiar with ruby yet.
[2010/09/02 10:04:30] @ lilmatt joined channel #puppet
[2010/09/02 10:04:33] <racerx> wolverian: that returns an empty value for the calc
[2010/09/02 10:05:02] <racerx> rholden: undefined method `-' for "6"
[2010/09/02 10:05:34] <racerx> rholden: thats the error when trying to use @infront of the proc count... 6 being the value that processorcount returns
[2010/09/02 10:05:48] <racerx> wolverian: but it doesnt fail
[2010/09/02 10:06:28] <wolverian> racerx: did you use <%= or <%?
[2010/09/02 10:06:35] @ Quit: p3rror: Read error: Connection reset by peer
[2010/09/02 10:07:28] <racerx> wolverian: thanks... tried again with the = and it worked... can you explain (or direct to doco) what the .to_i is doing?
[2010/09/02 10:08:04] <wolverian> racerx: it interprets (coerces) the string "6" to a numeric value (i.e. 6)
[2010/09/02 10:09:01] <racerx> wolverian: thanks very much... would never have worked that out
[2010/09/02 10:09:15] <racerx> wolverian: was searching for ages!
[2010/09/02 10:09:22] <wolverian> you're welcome.
[2010/09/02 10:09:44] <racerx> rholden: thanks too :)
[2010/09/02 10:10:19] @ WALoeIII joined channel #puppet
[2010/09/02 10:11:05] <jamesturnbull> matti: hey
[2010/09/02 10:14:34] @ mrwacky42 joined channel #puppet
[2010/09/02 10:18:32] @ Quit: beata-:
[2010/09/02 10:20:09] <WALoeIII> If I've got a .deb that I want to directly install, is it better to setup my own repo for it or should I just put it on the machine with a file declaration and then source it locally with dpgk
[2010/09/02 10:20:11] <WALoeIII> dpkg*
[2010/09/02 10:20:56] @ Quit: fluxdude: Ping timeout: 260 seconds
[2010/09/02 10:21:12] <racerx> wolverian: command[check_load]=/usr/lib/nagios/plugins/check_load -w <%= (processorcount.to_i * 1) %>,<%= (processorcount.to_i * 0.833) %>,<%= (processorcount.to_i * 0.666) %> -c <%= (processorcount.to_i * 1.666) %>,<%= (processorcount.to_i * 1) %>,<%= (processorcount.to_i * 0.833) %> works a treat :) no more setting load checks manually in nrpe configs
[2010/09/02 10:22:17] @ Quit: Naresh: Ping timeout: 255 seconds
[2010/09/02 10:28:04] @ StyleWarz left channel #puppet ("/part my ass.")
[2010/09/02 10:33:45] @ Quit: gebi: Ping timeout: 272 seconds
[2010/09/02 10:36:40] <hacim> anyone seen this error after upgrading to 2.6? err: Could not run Puppet configuration client: Invalid parameter stage at /etc/puppet/manifests/common.pp:5
[2010/09/02 10:36:58] @ Quit: eshamow|afk: Remote host closed the connection
[2010/09/02 10:38:35] <joe-mac> hacim: i'm guessing something somewhere has remnants of pre 2.6, before stages were added
[2010/09/02 10:39:20] @ jsimpson joined channel #puppet
[2010/09/02 10:39:49] @ littleidea joined channel #puppet
[2010/09/02 10:40:00] <hacim> joe-mac: yeah. i'm not familiar with what 'stages' are
[2010/09/02 10:40:22] <hacim> i'm running a 0.25.5 client against a 2.6~rc3 puppetmaster
[2010/09/02 10:40:45] <joe-mac> they're run stages, so you can ensure 'stages' of your catalog run at a certain time, sort of like you can have a bootstrap stage, or 'pre-aptsetup' stage
[2010/09/02 10:41:19] <joe-mac> and yea, i am guessing it sets the default stage then .25.5 complains cause it doesn't know what a stage is
[2010/09/02 10:41:29] <joe-mac> i'm not sure how to fix/get around that, but someone else was comoplaining about it earlier
[2010/09/02 10:41:52] <hacim> i wonder if it is something in my manifests I need to update
[2010/09/02 10:42:20] <joe-mac> maybe try setting a default stage
[2010/09/02 10:42:34] <joe-mac> i am noit very familiar but i am guessing you can do it like any other default, but set it to undef
[2010/09/02 10:42:38] <nate_h> joe-mac, 0.25.5 doesn't have stages?
[2010/09/02 10:42:52] * hacim tries to find some info on setting stages
[2010/09/02 10:43:02] <nate_h> how would it work against a 2.6 puppetmaster?
[2010/09/02 10:43:54] @ jdcasey joined channel #puppet
[2010/09/02 10:44:54] <hacim> nate_h: stages were added in 2.6.0
[2010/09/02 10:45:28] <joe-mac> from what i gather there is a main stage and resources will default to that, you gotta undef it probably hacim
[2010/09/02 10:45:33] <joe-mac> maybe there is a cleaner way
[2010/09/02 10:45:35] <nate_h> ya but will a 0.25.5 client know what to do?
[2010/09/02 10:45:37] <joe-mac> but that spells shit for you in your site.pp
[2010/09/02 10:47:51] @ lak joined channel #puppet
[2010/09/02 10:48:04] <hacim> hm, i shouldn't have to unset the default stage
[2010/09/02 10:48:44] <jamesturnbull> wolverian: the split thing I suspect is that variables is empty or undef - that split fails is obviously an error
[2010/09/02 10:48:44] <joe-mac> yea i ran into a lot of problems with 2.6 so i rolled back, idk if that was one of them
[2010/09/02 10:49:11] <jamesturnbull> hacim: that's a bug I'd say if you could log it
[2010/09/02 10:49:23] @ mattock joined channel #puppet
[2010/09/02 10:49:32] <hacim> jamesturnbull: i got a couple bugs to file!
[2010/09/02 10:50:20] @ Quit: vad3R: Ping timeout: 260 seconds
[2010/09/02 10:50:21] @ pting joined channel #puppet
[2010/09/02 10:54:04] <hacim> ok, if I upgrade my client to 2.6, it seems to not have this stage error
[2010/09/02 10:54:18] <nate_h> imagine that ;P
[2010/09/02 10:54:22] <hacim> (i get a different error now, but i need to look into that
[2010/09/02 10:54:24] @ plathrop-away is now known as plathrop
[2010/09/02 10:54:32] @ eshamow joined channel #puppet
[2010/09/02 10:56:31] @ saysjonathan joined channel #puppet
[2010/09/02 10:57:17] @ Quit: e1mer: Ping timeout: 276 seconds
[2010/09/02 10:57:36] @ mclarke joined channel #puppet
[2010/09/02 11:06:20] @ Quit: lak: Quit: lak
[2010/09/02 11:10:09] @ Ramonster joined channel #puppet
[2010/09/02 11:13:14] @ shadoi joined channel #puppet
[2010/09/02 11:13:28] @ adrian_broher joined channel #puppet
[2010/09/02 11:20:30] @ Quit: Ramonster: Quit: Computer has gone to sleep
[2010/09/02 11:21:27] @ ludicruz joined channel #puppet
[2010/09/02 11:30:16] @ gebi joined channel #puppet
[2010/09/02 11:31:35] @ bmahe joined channel #puppet
[2010/09/02 11:34:30] @ braind joined channel #puppet
[2010/09/02 11:34:35] @ Ramonster joined channel #puppet
[2010/09/02 11:38:04] @ cudgel joined channel #puppet
[2010/09/02 11:40:24] @ Quit: nakano: Ping timeout: 272 seconds
[2010/09/02 11:41:20] @ Quit: nevyn: Ping timeout: 265 seconds
[2010/09/02 11:41:50] @ Quit: jtgiri_: Read error: Connection reset by peer
[2010/09/02 11:42:34] @ vad3R joined channel #puppet
[2010/09/02 11:42:44] @ sdog joined channel #puppet
[2010/09/02 11:43:07] @ nevyn joined channel #puppet
[2010/09/02 11:44:28] @ nakano joined channel #puppet
[2010/09/02 11:45:18] @ Quit: sdog: Changing host
[2010/09/02 11:45:18] @ sdog joined channel #puppet
[2010/09/02 11:48:03] @ rheron joined channel #puppet
[2010/09/02 11:49:30] @ Quit: nevyn: Ping timeout: 240 seconds
[2010/09/02 11:50:32] @ jhaddad joined channel #puppet
[2010/09/02 11:52:08] <wolverian> so, I might need to rollback from 2.6 on debian. I've been using 2.6 from unstable. any ideas how to rollback to 2.5? I don't think there are debs for 2.5 from debian.
[2010/09/02 11:53:03] <hacim> wolverian: have you tried the one in experimental?
[2010/09/02 11:53:06] @ vizzord joined channel #puppet
[2010/09/02 11:53:18] <wolverian> hacim: no.
[2010/09/02 11:53:29] <hacim> wolverian: would be good to try that, its slightly better
[2010/09/02 11:53:39] <wolverian> I'll try that.
[2010/09/02 11:54:06] <hacim> wolverian: in terms of rolling back, 0.25.4 is in backports... its not 0.25.5, but still good
[2010/09/02 11:54:12] <hacim> also you can get 0.25.5 from snapshots
[2010/09/02 11:54:36] @ nevyn joined channel #puppet
[2010/09/02 11:54:56] <hacim> hm actually its not there
[2010/09/02 11:55:15] <hacim> wolverian: one thing you can do is to pull our git repo and build the tag
[2010/09/02 11:55:21] <wolverian> yeah, true.
[2010/09/02 11:56:42] @ sdog left channel #puppet ()
[2010/09/02 11:57:59] @ thekad is now known as thekad-afk
[2010/09/02 12:00:11] @ Quit: mrwacky42: Read error: Operation timed out
[2010/09/02 12:02:51] @ Quit: Ramonster: Quit: Computer has gone to sleep
[2010/09/02 12:04:26] <Kaelten> if you set a resource default inside of a class is that default scoped to that class?
[2010/09/02 12:06:06] @ Quit: tobym: Remote host closed the connection
[2010/09/02 12:06:22] <wolverian> hacim: I get the same error with 2.6.1~rc3-1
[2010/09/02 12:06:57] @ mrwacky42 joined channel #puppet
[2010/09/02 12:07:14] <hacim> wolverian: sorry. what is your error?
[2010/09/02 12:08:04] @ Quit: MPSimmons: Quit: Leaving.
[2010/09/02 12:08:07] <wolverian> hacim: oh, right, I didn't tell you. :) the munin module is acting up: private method `split' called for :undef:Symbol at /etc/puppet/modules/munin/manifests/plugin.pp:91
[2010/09/02 12:08:08] @ jangell_ joined channel #puppet
[2010/09/02 12:08:35] <hacim> wolverian: heh, i just reported that bug
[2010/09/02 12:08:37] <wolverian> split is called on a variable that is certainly not empty when I test it with facter.
[2010/09/02 12:08:43] <wolverian> ooh.
[2010/09/02 12:08:55] <hacim> wolverian: http://projects.reductivelabs.com/issues/4692
[2010/09/02 12:09:03] <hacim> hm not empty?
[2010/09/02 12:09:59] @ jangell__ joined channel #puppet
[2010/09/02 12:10:08] <wolverian> RUBYLIB=. facter munin_interfaces => eth0 lo
[2010/09/02 12:10:26] <wolverian> ...in /etc/puppet/modules/munin7lib
[2010/09/02 12:10:30] <wolverian> s,7,/,
[2010/09/02 12:10:58] @ Quit: jangell: Read error: Connection reset by peer
[2010/09/02 12:10:59] @ jangell__ is now known as jangell
[2010/09/02 12:11:11] @ mmorsi joined channel #puppet
[2010/09/02 12:11:41] <hacim> wolverian: does doing 'FACTERLIB=/etc/puppet/modules/munin/lib facter munin_interfaces' do the same thing?
[2010/09/02 12:11:43] @ Quit: jangell: Client Quit
[2010/09/02 12:12:05] <wolverian> hacim: no, then it's empty.
[2010/09/02 12:12:43] <hacim> what is your split line at plugin.pp 91?
[2010/09/02 12:12:45] @ Quit: jangell_: Ping timeout: 265 seconds
[2010/09/02 12:13:12] <wolverian> $ifs = gsub(split($munin_interfaces, " "), "(.+)", "if_\\1")
[2010/09/02 12:14:16] @ benkevan joined channel #puppet
[2010/09/02 12:14:39] @ Quit: lkoranda: Quit: Ex-Chat
[2010/09/02 12:14:48] @ lkoranda joined channel #puppet
[2010/09/02 12:15:19] <mmorsi> hey quick question if anyone has a second
[2010/09/02 12:15:19] @ ZombieDan is now known as AnimeDan
[2010/09/02 12:15:28] <mmorsi> may be a little obscure
[2010/09/02 12:15:43] <mmorsi> but why does puppet reset the locale before running an executable http://github.com/reductivelabs/puppet/blob/master/lib/puppet/util.rb#L295
[2010/09/02 12:16:07] <mmorsi> if one tries to run an python script that invokes locale.getdefaultlocale
[2010/09/02 12:16:11] @ Quit: bug: Quit: bug
[2010/09/02 12:16:25] <mmorsi> that will always return 'None' if those env are set to 'C'
[2010/09/02 12:16:50] <hacim> wolverian: i wonder if the if_ is the cause
[2010/09/02 12:16:55] <mmorsi> eg can't get the default locale in a python script launched from puppet's Single_exec
[2010/09/02 12:17:05] <wolverian> hacim: where would I look up the documentation for gsub?
[2010/09/02 12:17:16] <mmorsi> i can file a bug report, just checking here 1st tho
[2010/09/02 12:18:20] <wolverian> hacim: is it the ruby gsub method?
[2010/09/02 12:19:05] @ plathrop is now known as plathrop-away
[2010/09/02 12:20:23] <wolverian> well, ruby defines gsub only for Strings, not Arrays, so I guess it's not directly that one. :)
[2010/09/02 12:20:53] <hacim> wolverian: well, the issue is with the split($munin_interfaces) not the gsub
[2010/09/02 12:20:56] <wolverian> anyway, the error message indicates it's the split() that's problematic, not the gsub().
[2010/09/02 12:20:59] <wolverian> ...right. :)
[2010/09/02 12:21:07] @ cyrus_mc joined channel #puppet
[2010/09/02 12:21:13] @ Ramonster joined channel #puppet
[2010/09/02 12:21:19] <hacim> wolverian: what is your factpath set to?
[2010/09/02 12:21:41] <cyrus_mc> Any way to disable ssl on puppet
[2010/09/02 12:22:19] @ Quit: lkoranda: Quit: Ex-Chat
[2010/09/02 12:22:20] <wolverian> hacim: under [main], I have $vardir/lib/facter
[2010/09/02 12:22:25] @ lkoranda joined channel #puppet
[2010/09/02 12:22:33] <hacim> wolverian: and $vardir is /var/lib/puppet?
[2010/09/02 12:22:34] <wolverian> er, factpath=...
[2010/09/02 12:22:42] <wolverian> hrm. yes.
[2010/09/02 12:22:47] @ Quit: lkoranda: Client Quit
[2010/09/02 12:22:50] <wolverian> (I didn't write this file.)
[2010/09/02 12:22:56] <hacim> ok, then the facts in /etc/puppet/modules/munin/lib aren't going to be the ones used
[2010/09/02 12:23:33] <hacim> FACTERLIB=/var/lib/puppet/lib/facter facter $munin_interfaces
[2010/09/02 12:24:04] <wolverian> taking out the $, I get "eth0 lo"
[2010/09/02 12:24:18] <hacim> err yeah sorry
[2010/09/02 12:24:22] <wolverian> np.
[2010/09/02 12:24:25] <hacim> also i forgot you can have facts in modules
[2010/09/02 12:24:32] <wolverian> hehe
[2010/09/02 12:24:47] <hacim> sorry I'm a little stumped, and I've got my own issue I'm fighting with
[2010/09/02 12:24:52] <wolverian> sure, I understand.
[2010/09/02 12:28:01] <cyrus_mc> Any way to not use ssl for puppet.
[2010/09/02 12:28:10] <wolverian> bugs in puppet-modules should be reported to puppetlabs, right?
[2010/09/02 12:28:22] @ Quit: Ramonster: Quit: Computer has gone to sleep
[2010/09/02 12:30:36] @ Ramonster joined channel #puppet
[2010/09/02 12:30:45] <Volcane> cyrus_mc: no
[2010/09/02 12:31:30] @ Quit: Ramonster: Client Quit
[2010/09/02 12:32:03] @ Quit: mmckinst: Quit: mmckinst
[2010/09/02 12:33:41] @ jaredrhine joined channel #puppet
[2010/09/02 12:34:55] @ Quit: cyrus_mc: Remote host closed the connection
[2010/09/02 12:36:00] @ Ramonster joined channel #puppet
[2010/09/02 12:40:28] @ shensono joined channel #puppet
[2010/09/02 12:40:45] @ shensono is now known as shenson
[2010/09/02 12:42:08] @ bug joined channel #puppet
[2010/09/02 12:43:29] @ odyi_ joined channel #puppet
[2010/09/02 12:43:31] @ ajf__ joined channel #puppet
[2010/09/02 12:43:32] @ spikebik1 joined channel #puppet
[2010/09/02 12:43:33] @ beata__ joined channel #puppet
[2010/09/02 12:43:33] @ threesco1ps joined channel #puppet
[2010/09/02 12:43:44] @ russell_1 joined channel #puppet
[2010/09/02 12:44:27] <MattM> minor question: how does everyone keep their puppet installations updated on client nodes (can puppet agent update itself? or what is recommended?) We've successfuly deployed puppet across ~100 RHEL5 linux virtual machines and this is one of the last issues to be worked out.
[2010/09/02 12:44:42] @ Quit: russell_h: Disconnected by services
[2010/09/02 12:45:20] @ Quit: russell_1: Changing host
[2010/09/02 12:45:20] @ russell_1 joined channel #puppet
[2010/09/02 12:45:30] @ russell_1 is now known as russell_h
[2010/09/02 12:45:44] @ spike_ joined channel #puppet
[2010/09/02 12:46:12] @ Quit: Ramonster: Quit: Computer has gone to sleep
[2010/09/02 12:46:32] <miah> write a puppet module to maintain puppet itself. thats how lots of people do it
[2010/09/02 12:46:35] @ Quit: [GuS]: Read error: Connection reset by peer
[2010/09/02 12:46:55] <wolverian> yeah. apt-get installing a newer version via puppet itself should work.
[2010/09/02 12:46:57] @ schimmi joined channel #puppet
[2010/09/02 12:47:05] <wolverian> erm, s/apt-get/rhel-thing/
[2010/09/02 12:47:13] <miah> or gem or whatever
[2010/09/02 12:47:22] @ Quit: schimmi_: Write error: Broken pipe
[2010/09/02 12:47:23] @ Quit: zz_shenson: Write error: Broken pipe
[2010/09/02 12:47:23] <wolverian> yeah.
[2010/09/02 12:47:29] @ Quit: spike: Remote host closed the connection
[2010/09/02 12:47:30] @ Quit: odyi: Remote host closed the connection
[2010/09/02 12:47:32] @ Quit: henderb: Remote host closed the connection
[2010/09/02 12:47:32] @ Quit: aforgue: Remote host closed the connection
[2010/09/02 12:47:33] @ Quit: spikebike: Remote host closed the connection
[2010/09/02 12:47:33] @ Quit: threescoops: Remote host closed the connection
[2010/09/02 12:47:35] @ Quit: beata_: Remote host closed the connection
[2010/09/02 12:47:35] @ Quit: justdave: Remote host closed the connection
[2010/09/02 12:47:53] @ henderb joined channel #puppet
[2010/09/02 12:47:55] @ schimmi left channel #puppet ()
[2010/09/02 12:48:12] <MattM> hrm, ok, my backup plan was to just use clusterssh or other tool with list of nodes to login to and execute ssh commands to yum, but thought I'd check what everyone else was doing.
[2010/09/02 12:48:52] @ justdave joined channel #puppet
[2010/09/02 12:49:12] <miah> puppet to manage puppet =)
[2010/09/02 12:49:49] @ Quit: benkevan: Ping timeout: 265 seconds
[2010/09/02 12:50:32] @ Ramonster joined channel #puppet
[2010/09/02 12:51:08] <MattM> just worried about puppet crashing/going nuts when puppet calls yum to upgrade itself, might test it out, and yeah, if creating module, have module do service subscribe and auto restart on upgrade
[2010/09/02 12:51:15] @ bobbyz joined channel #puppet
[2010/09/02 12:52:42] @ Quit: Ramonster: Client Quit
[2010/09/02 12:54:35] <miah> i execute puppet via cron, so no service to deal with. i just have it update the package
[2010/09/02 12:58:50] @ Quit: jaredrhine: Ping timeout: 264 seconds
[2010/09/02 13:00:18] @ Quit: pheezy: Remote host closed the connection
[2010/09/02 13:01:09] @ pheezy joined channel #puppet
[2010/09/02 13:01:27] @ Quit: toi: Quit: Ex-Chat
[2010/09/02 13:02:28] @ jangell joined channel #puppet
[2010/09/02 13:03:28] @ Quit: pheezy: Remote host closed the connection
[2010/09/02 13:04:10] <jangell> i'm trying to puppet my mysql cluster. Any good methods out there for getting puppet to set a unique server-id for replication?
[2010/09/02 13:04:30] <joe-mac> fqdn_rand
[2010/09/02 13:04:33] @ pheezy joined channel #puppet
[2010/09/02 13:05:33] <jangell> joe-mac: How does one get puppet to modify a config file on a per server basis?
[2010/09/02 13:05:48] <jangell> all my other configs are the same for each server so I just used the file resources adn the puppet file serve.r..
[2010/09/02 13:06:17] <joe-mac> jangell: use a selector or a variable
[2010/09/02 13:06:18] <Volcane> source => [ "puppet:///path/to/file.${fqdn}", "puppet:///path/to/file"]
[2010/09/02 13:06:33] <Volcane> first one it finds it will take
[2010/09/02 13:06:39] @ Ramonster joined channel #puppet
[2010/09/02 13:07:12] <jangell> Volcane: gotcha..then just create a seperate config for each server
[2010/09/02 13:07:47] <Volcane> yeah you should also consider templates if the differences are just parameter type diffs
[2010/09/02 13:07:59] <jangell> Volcane: It's just changing the server-id parameter in my.cnf
[2010/09/02 13:08:25] <Volcane> look into templates then
[2010/09/02 13:09:11] @ thekad-afk is now known as thekad
[2010/09/02 13:09:19] <jangell> Volcane: thank you
[2010/09/02 13:10:25] @ prometheanfire joined channel #puppet
[2010/09/02 13:11:29] @ Quit: Ramonster: Client Quit
[2010/09/02 13:12:38] @ jaredrhine joined channel #puppet
[2010/09/02 13:12:43] @ Quit: vad3R: Remote host closed the connection
[2010/09/02 13:13:19] @ Quit: littleidea: Quit: littleidea
[2010/09/02 13:15:33] @ Quit: fux: Remote host closed the connection
[2010/09/02 13:21:14] @ spike_ is now known as spike
[2010/09/02 13:21:28] @ Quit: spike: Changing host
[2010/09/02 13:21:28] @ spike joined channel #puppet
[2010/09/02 13:23:03] @ Quit: braind: Quit: braind
[2010/09/02 13:24:02] @ Quit: Mick27: Quit: Leaving
[2010/09/02 13:24:17] @ braind joined channel #puppet
[2010/09/02 13:24:23] @ benkevan joined channel #puppet
[2010/09/02 13:25:43] <prometheanfire> how would I escape quation marks?
[2010/09/02 13:25:50] <prometheanfire> I need to do this exec { "asterisk -rx "logger reload""
[2010/09/02 13:25:56] <pheezy> \"
[2010/09/02 13:25:59] <prometheanfire> thanks
[2010/09/02 13:26:35] @ tobym joined channel #puppet
[2010/09/02 13:28:08] @ fluxdude joined channel #puppet
[2010/09/02 13:29:58] @ Quit: mattock: Ping timeout: 272 seconds
[2010/09/02 13:32:00] <prometheanfire> can I do multiple subscribes?
[2010/09/02 13:32:10] <jsimpson> prometheanfire: why not use single quotes around 'logger reload'?
[2010/09/02 13:32:21] <prometheanfire> meh
[2010/09/02 13:32:23] <hacim> hm, in 0.25 this worked, but something changed to give me: Could not find dependent File[apt_config] for Exec
[2010/09/02 13:32:32] <jangell> How do you reference a template from inside a module? I have a module and created a "templates" directory in it. I then added templates/mysql/my.erb and tried to call it in a manifest in that module with: content => template("mysql/my.erb") and it blew up
[2010/09/02 13:35:00] <miah> right
[2010/09/02 13:35:27] <pheezy> prometheanfire: subscribe => [File[/etc/foo], Service[snmpd]]
[2010/09/02 13:36:55] @ plathrop-away is now known as plathrop
[2010/09/02 13:37:28] <miah> jangell> if in your modules directory your init.pp is in manifests, your erb's should be under templates
[2010/09/02 13:37:53] <miah> and referencings them as template("modulename/my.erb") should be correct
[2010/09/02 13:38:12] <miah> and similarly you can put files in a files directory under your module
[2010/09/02 13:38:38] <jangell> miah: i created a mysql directory inside the templates directory
[2010/09/02 13:38:47] <jangell> miah: so /modulename/mysql/my.erb ?
[2010/09/02 13:39:12] <miah> so, here is the layout. /etc/puppet/modules/mysql/{templates,files,manifests}
[2010/09/02 13:39:20] <miah> got it?
[2010/09/02 13:39:49] <jangell> miah: http://pastebin.com/8WJRJ0eQ
[2010/09/02 13:39:52] <jangell> miah: bad idea?
[2010/09/02 13:40:13] <miah> i think the layout is wrong
[2010/09/02 13:40:32] <jangell> miah: I was trying to group all the stuff required for an anti-spam server into a module
[2010/09/02 13:40:37] <miah> im not sure that having subdirectories under the manifests/files/etc will work
[2010/09/02 13:40:40] <jangell> because those packages will be used in radically different ways for other environments
[2010/09/02 13:40:42] <miah> you can group modules you know
[2010/09/02 13:40:45] <jangell> the files part works
[2010/09/02 13:40:50] <jangell> miah: hm, no i don't know.
[2010/09/02 13:41:23] <miah> in your site templates.pp create a class named 'spam-server' and include the modules you need
[2010/09/02 13:41:37] <miah> get it?
[2010/09/02 13:42:09] <jangell> miah: but a "postfix" module will be totally different for a smtp-server
[2010/09/02 13:42:13] <jangell> or a web-server
[2010/09/02 13:42:13] <jangell> etc
[2010/09/02 13:42:17] <jangell> or a different ind of web server
[2010/09/02 13:42:28] <jangell> difference versions
[2010/09/02 13:42:31] <jangell> different distribution
[2010/09/02 13:42:34] <jangell> different config layout
[2010/09/02 13:42:36] <jangell> etc
[2010/09/02 13:43:22] <miah> http://pastebin.com/Gx0PNmNk
[2010/09/02 13:43:23] <miah> eg
[2010/09/02 13:43:47] <jangell> miah: but I can't just have an include postfix
[2010/09/02 13:44:02] <jangell> because I'll have 4 different kinds of postfix's that are radically different
[2010/09/02 13:44:05] <miah> so make postfix a module
[2010/09/02 13:44:18] <miah> look at my pastebin, thats how i do it
[2010/09/02 13:44:20] <jangell> I'd need to create 4 different modules
[2010/09/02 13:44:23] <jangell> i looked at it
[2010/09/02 13:44:24] <miah> why?
[2010/09/02 13:44:30] <miah> how are they radically different
[2010/09/02 13:44:42] <prometheanfire> pheezy: no reason
[2010/09/02 13:44:53] <jangell> one might be from source, one might be from yum, one might be from apt, one might ahve a completely differnt config layout, different configs
[2010/09/02 13:44:54] @ Quit: AnimeDan: Ping timeout: 258 seconds
[2010/09/02 13:44:55] <jangell> different options
[2010/09/02 13:45:04] <miah> so?
[2010/09/02 13:45:11] <jangell> completely different enviornments
[2010/09/02 13:45:12] <miah> puppet isn't all about static content in your configs
[2010/09/02 13:45:24] <miah> you can have one package specification that covers multiple OS's and package sources
[2010/09/02 13:45:30] <jangell> it seems like at a point the config would become needlessly abstracted
[2010/09/02 13:45:31] @ caldwell joined channel #puppet
[2010/09/02 13:45:44] @ Quit: mikey_p: Quit: mikey_p
[2010/09/02 13:46:01] <jangell> I'm sure I just don't know enough about puppet
[2010/09/02 13:46:09] @ Quit: caldwell: Client Quit
[2010/09/02 13:46:14] <miah> not needlessly abstract
[2010/09/02 13:46:14] <miah> here
[2010/09/02 13:46:30] <miah> let me find another example
[2010/09/02 13:46:34] <jangell> okay
[2010/09/02 13:47:18] <miah> http://pastebin.com/eX2WHfvZ
[2010/09/02 13:47:25] @ Quit: pheezy: Remote host closed the connection
[2010/09/02 13:47:38] <miah> that one file handles ssh installs for solaris, opensuse, and centos
[2010/09/02 13:47:48] <miah> its a bit of a mess (and i dont use this today)
[2010/09/02 13:47:58] @ lilmatt_ joined channel #puppet
[2010/09/02 13:48:00] <miah> but it shows how you can deal with multiple os's in one config
[2010/09/02 13:48:19] @ Quit: lilmatt: Read error: Operation timed out
[2010/09/02 13:48:19] @ lilmatt_ is now known as lilmatt
[2010/09/02 13:49:17] @ mikey_p joined channel #puppet
[2010/09/02 13:49:41] @ Quit: cudgel: Ping timeout: 276 seconds
[2010/09/02 13:50:07] <miah> the case statement for service is basically unneeded in that. because in all examples sshd is the name of the service
[2010/09/02 13:51:09] @ nul0op joined channel #puppet
[2010/09/02 13:51:28] <miah> i only specify suse on the ssh_srv package because i set the default to openssh-sever. i should have just set default to openssh and then specified rhel's openssh-server
[2010/09/02 13:51:58] <miah> probably a few ways i could have done this better. but like i said id ont use this one anymore mostly because the environment i run puppet on is all linux and thus easier to deal with =)
[2010/09/02 13:52:03] @ Quit: ahasenack: Quit: Leaving
[2010/09/02 13:52:07] @ ken_barber joined channel #puppet
[2010/09/02 13:53:38] <hacim> hm the difficult thing with this problem is that --debug --trace doesn't produce any useful info on the client or master
[2010/09/02 13:54:57] <miah> uhoh
[2010/09/02 13:55:10] <miah> what is the problem hacim?
[2010/09/02 13:56:02] <hacim> miah: showed up when I upgraded to 2.6.1-rc3, was working fine before
[2010/09/02 13:56:03] <hacim> err: Could not run Puppet configuration client: Could not find dependent File[apt_config] for Exec[/usr/bin/apt-key add /var/lib/puppet/modules/apt/backports.org.key && apt-get update] at /etc/puppet/modules/apt/manifests/init.pp:131
[2010/09/02 13:56:27] <miah> ok
[2010/09/02 13:56:33] <miah> so does apt_config exist?
[2010/09/02 13:57:02] <hacim> miah: yes, it is set via an alias parameter
[2010/09/02 13:57:07] @ prometheanfire left channel #puppet ()
[2010/09/02 13:57:09] <miah> care to pastie ?
[2010/09/02 13:57:47] <hacim> sure
[2010/09/02 13:58:02] @ Quit: bug: Quit: bug
[2010/09/02 13:58:19] @ pheezy joined channel #puppet
[2010/09/02 13:59:11] <hacim> miah: https://labs.riseup.net/code/projects/module-apt/repository/revisions/master/entry/manifests/init.pp
[2010/09/02 13:59:33] <miah> looking
[2010/09/02 14:00:17] <miah> your subscribe is weird
[2010/09/02 14:00:20] <miah> in your exec
[2010/09/02 14:00:22] <miah> why not just do
[2010/09/02 14:00:51] <miah> subscribe => File["file1", "file2", "file3"]; rather than specifying file 3 times
[2010/09/02 14:01:25] <hacim> miah: what line are you looking at?
[2010/09/02 14:01:29] <miah> 85
[2010/09/02 14:01:38] <miah> or 84
[2010/09/02 14:01:54] <hacim> yeah that is weird
[2010/09/02 14:02:03] @ littleidea joined channel #puppet
[2010/09/02 14:02:42] <miah> and personally, im a fan of naming things the "alias" and then specifying path's
[2010/09/02 14:03:02] <miah> so rather than doing "config_file { "pathtomyfile":
[2010/09/02 14:03:10] <miah> alias "awesomealias"
[2010/09/02 14:03:20] <miah> i do "config_file { "awesomealias":
[2010/09/02 14:03:26] <miah> path => "pathtomyfile"
[2010/09/02 14:03:37] <miah> i personally think its a little cleaner. but thats just a personal opinion =)
[2010/09/02 14:03:39] <hacim> i believe this is a hacked version of DavidS module
[2010/09/02 14:04:37] <miah> and afaik, you still need to quote the aliases in File["specification"]
[2010/09/02 14:04:53] <miah> File["apt_config"] vs File[apt_config]
[2010/09/02 14:05:15] <hacim> yeah I was just wondering about that
[2010/09/02 14:05:29] <hacim> if that is true, then this is a new thing that 2.6 became more strict about
[2010/09/02 14:05:32] <hacim> because this was working before
[2010/09/02 14:05:36] <miah> possibly
[2010/09/02 14:05:54] <miah> i havent run 2.6 yet, but looking at my conf's i quote on my aliases in File specifications and i know they work
[2010/09/02 14:06:44] * hacim is making these style changes because I agree with them, but not sure they are going to help, but they might help legibility
[2010/09/02 14:07:22] <hacim> miah: do you quote them in the alias specification too?
[2010/09/02 14:07:37] <hacim> ie. alias => "apt_config",
[2010/09/02 14:08:36] @ snikkers joined channel #puppet
[2010/09/02 14:09:54] <miah> well, like i said, i name them different
[2010/09/02 14:10:12] <hacim> oh yeah
[2010/09/02 14:10:38] <miah> http://pastebin.com/64gDiBeX
[2010/09/02 14:10:38] <miah> eg
[2010/09/02 14:11:00] @ Dantman joined channel #puppet
[2010/09/02 14:11:14] <jangell> i put <%= scope.function_fqdn_rand() %> that in a template. puppetmasterd is 100% CPU and not getting any better. I take it that was wrong..
[2010/09/02 14:11:34] <hacim> miah: yeah
[2010/09/02 14:11:50] @ Quit: benkevan: Quit: leaving
[2010/09/02 14:16:27] @ Quit: jbooth: Quit: Lost terminal
[2010/09/02 14:16:28] @ Quit: pheezy: Remote host closed the connection
[2010/09/02 14:16:47] @ e1mer joined channel #puppet
[2010/09/02 14:18:18] @ KarlGodt joined channel #puppet
[2010/09/02 14:19:56] @ Quit: flakrat: Quit: Leaving
[2010/09/02 14:21:16] @ jbooth joined channel #puppet
[2010/09/02 14:25:02] @ fredden joined channel #puppet
[2010/09/02 14:26:07] <jangell> What would be the best way to get fqdn_rand into a template?
[2010/09/02 14:27:04] <miah> what are you trying to do?
[2010/09/02 14:27:28] <jangell> use fqdn_rand for a mysql server-id and hope it doesn't ever collide :)
[2010/09/02 14:27:36] @ Quit: nul0op: Ping timeout: 265 seconds
[2010/09/02 14:27:41] <jangell> (there are 4 servers. pretty unlikely)
[2010/09/02 14:27:55] @ nul0op joined channel #puppet
[2010/09/02 14:27:56] <jangell> i tried this: server-id=<%= scope.function_fqdn_rand() %> but that makes my puppetmasterd go crazy
[2010/09/02 14:29:17] @ pheezy joined channel #puppet
[2010/09/02 14:29:30] <miah> why not use uuid
[2010/09/02 14:29:32] <miah> ?
[2010/09/02 14:29:45] <miah> er, uuidgen
[2010/09/02 14:29:54] <jangell> because I don't know about it? It needs to be a 32 bit integer i think
[2010/09/02 14:29:54] <miah> or something of the sort
[2010/09/02 14:30:24] <jangell> I don't know Ruby.. and I don't know Puppet. So i'm kind of stumbling right now
[2010/09/02 14:30:24] @ Quit: shadoi: Quit: Leaving.
[2010/09/02 14:31:40] <miah> well, your rand thing should work, but to me it looks like your not giving it any parameters
[2010/09/02 14:32:17] <miah> fqdn_rand expects a range and optionally a seed
[2010/09/02 14:32:22] <jangell> I'm not. I didn't think it needed parameters. That could explain it..
[2010/09/02 14:32:28] <miah> http://docs.puppetlabs.com/references/stable/function.html
[2010/09/02 14:33:15] <jangell> That's not real descriptive.. "first argument sets teh range"
[2010/09/02 14:33:31] <miah> ya
[2010/09/02 14:33:35] <miah> so try fqdn_rand 32 ?
[2010/09/02 14:34:18] <miah> so do like scope.function_fqdn_rand(32)
[2010/09/02 14:34:46] <miah> it actually might just pull a random number that is somewhere between 0 and 32
[2010/09/02 14:34:52] <miah> and not 32bits in length
[2010/09/02 14:35:33] <jangell> same thing. puppetmasterd 100% cpu
[2010/09/02 14:35:37] <jangell> and eventually it times out
[2010/09/02 14:35:39] <miah> i havent used it. i'd use something like uuidgen to generate a uniq name
[2010/09/02 14:35:47] <miah> must be using it wrong then
[2010/09/02 14:36:05] <jangell> server-id=<%= scope.function_fqdn_rand(32) %>
[2010/09/02 14:36:14] <jangell> is uuidgen a ruby function?
[2010/09/02 14:36:21] <miah> based on the googles i just did, my guess of pulling a random number between 0 and 32 is accurate
[2010/09/02 14:36:26] @ Quit: e1mer: Quit: captured by martians
[2010/09/02 14:36:29] <miah> nah, its a system tool in linux
[2010/09/02 14:36:35] <miah> but im sure there is something equiv
[2010/09/02 14:37:05] <jangell> hm lookign at its options..it just spits out a uuid
[2010/09/02 14:37:09] <jangell> a uuid is not a valid server id
[2010/09/02 14:37:24] @ Demosthenes joined channel #puppet
[2010/09/02 14:37:46] <miah> if you only have 4 servers, why not mysqlserver.fqdn_rand(512)
[2010/09/02 14:37:57] <miah> if you can get fqdn_rand working more proper. =)
[2010/09/02 14:38:14] <jangell> miah: duh. i should just use th system date %s
[2010/09/02 14:38:21] <miah> that could work too
[2010/09/02 14:38:23] <jangell> miah: now to figure out how to execute a system command...
[2010/09/02 14:38:28] <jangell> that's the right length and wont collide
[2010/09/02 14:38:32] <miah> system("foo")
[2010/09/02 14:39:09] @ Quit: reyjrar: Quit: Leaving.
[2010/09/02 14:40:27] <jangell> miah: doh..server-id=true. lol
[2010/09/02 14:40:34] <jangell> server-id=<%= system("date +%s") %>
[2010/09/02 14:41:27] @ Quit: pheezy: Remote host closed the connection
[2010/09/02 14:42:09] @ Quit: adrian_broher: Quit: Verlassend
[2010/09/02 14:42:30] <miah> got it?
[2010/09/02 14:42:42] <jangell> miah: using the above
[2010/09/02 14:42:45] <miah> awesome
[2010/09/02 14:42:47] <jangell> put server-id=true in teh reuslt
[2010/09/02 14:42:51] <jangell> not a number.
[2010/09/02 14:42:52] <miah> oh
[2010/09/02 14:42:55] <miah> try
[2010/09/02 14:42:56] <jangell> trying to figure out what i botched
[2010/09/02 14:43:00] <miah> print.system("foo")
[2010/09/02 14:43:47] <miah> er, print system("date +%s")
[2010/09/02 14:43:49] <miah> is proper
[2010/09/02 14:44:00] <miah> irb(main):003:0> print system("date +%s")
[2010/09/02 14:44:01] <miah> 1283399419
[2010/09/02 14:44:34] @ Quit: joe-mac: Quit: Leaving.
[2010/09/02 14:45:21] <jangell> server-id=<%= print system("date +%s") %> now its just blank
[2010/09/02 14:45:26] <jangell> hmm
[2010/09/02 14:45:51] <miah> ok hold
[2010/09/02 14:46:36] <wolverian> Time.now.to_i would be the same as system("date +%s"), btw.
[2010/09/02 14:46:45] <miah> there you go
[2010/09/02 14:46:46] <miah> =)
[2010/09/02 14:47:01] * miah is not a uber awesome ruby girl
[2010/09/02 14:47:33] <jangell> i know nothing about ruby. bash/php/c/objective-c
[2010/09/02 14:47:49] <wolverian> actually, system() doesn't return the stdout of the process ran, but its return value
[2010/09/02 14:47:56] <wolverian> or some kind of status value, anyway
[2010/09/02 14:48:04] <jangell> wolverian: ah. for futrue ref how would I get the output of a system command?
[2010/09/02 14:48:06] <wolverian> so in any case you want Time.now.to_i
[2010/09/02 14:48:10] <jangell> in php it'd be shell_exec()
[2010/09/02 14:48:15] <jangell> system() would do what this is doing
[2010/09/02 14:48:32] <miah> wolverian> right, which is why i was pushing it through print
[2010/09/02 14:48:59] <jangell> wolverian: that worked
[2010/09/02 14:49:05] @ Quit: Demosthenes: Ping timeout: 240 seconds
[2010/09/02 14:49:09] <jangell> miah: thank you as well. appreciate the help
[2010/09/02 14:49:23] <miah> sure
[2010/09/02 14:49:39] <wolverian> miah: print system("date +%s") prints first the epoch time (from the date command), then system() returns 1 to print.
[2010/09/02 14:49:54] <miah> ya
[2010/09/02 14:49:55] <wolverian> maybe that's what you meant, but it doesn't sound likely.
[2010/09/02 14:50:04] @ Quit: fluxdude: Ping timeout: 258 seconds
[2010/09/02 14:50:04] <miah> irb(main):009:0> print system("/bin/date +%s")
[2010/09/02 14:50:05] <miah> 1283399758
[2010/09/02 14:50:05] <wolverian> you usually want to capture the process's output.
[2010/09/02 14:50:05] <miah> true=> nil
[2010/09/02 14:50:08] <miah> it totally is
[2010/09/02 14:50:25] <jangell> wolverian: so how would you do it then?
[2010/09/02 14:50:30] <miah> right, output is more important =)
[2010/09/02 14:50:43] <wolverian> jangell: I'm not sure, I'm not that good at ruby either. in perl, it'd be qx(foo), or `foo`, but ruby... :)
[2010/09/02 14:50:44] <hacim> miah: well the quoting wasn't the problem
[2010/09/02 14:51:12] <miah> same error?
[2010/09/02 14:51:15] @ Demosthenes joined channel #puppet
[2010/09/02 14:52:05] <hacim> miah: yeah
[2010/09/02 14:57:19] @ Quit: Demosthenes: Quit: leaving
[2010/09/02 14:58:05] <miah> what was the pastie again
[2010/09/02 14:59:11] @ Quit: snikkers: Remote host closed the connection
[2010/09/02 15:01:17] @ Quit: vizzord: Quit: see you
[2010/09/02 15:01:40] @ John___ joined channel #puppet
[2010/09/02 15:01:44] @ Quit: ecapriolo: Ping timeout: 255 seconds
[2010/09/02 15:04:35] @ Quit: asenchi: Remote host closed the connection
[2010/09/02 15:04:47] @ Quit: gniks: Quit: Leaving.
[2010/09/02 15:05:13] <tholl583xx> hi
[2010/09/02 15:05:41] <tholl583xx> is anyone running 2.6 master with earlier clients?
[2010/09/02 15:06:56] @ Quit: braind: Quit: braind
[2010/09/02 15:08:50] @ asenchi joined channel #puppet
[2010/09/02 15:13:04] <hacim> miah: hold on, doing some refactoring
[2010/09/02 15:14:06] <miah> okiedokie
[2010/09/02 15:14:16] <John___> Hello
[2010/09/02 15:16:13] @ rodnet joined channel #puppet
[2010/09/02 15:17:49] @ Quit: John___: Remote host closed the connection
[2010/09/02 15:18:15] @ giovanni joined channel #puppet
[2010/09/02 15:18:17] <Tas_> hmm, what if I wanted to open a file in the <module-name>/files/ directory, using a facter fact that I'm writing? What would be the path to that file, as far as the facter ruby script is concerned?
[2010/09/02 15:18:48] <giovanni> hi
[2010/09/02 15:18:56] @ Quit: nexx: Quit: quit
[2010/09/02 15:19:01] <Tas_> I saw a facter script that opened some http file, open("http://...").read. and I was considering doing a similar thing to read a local file
[2010/09/02 15:19:08] <whack> Tas_: if you're using module facts (modulename/lib/plugins/facter/foo.rb) you can probably look relative to __FILE__
[2010/09/02 15:20:05] <Tas_> open("__FILE__/myfile.txt").read. ?
[2010/09/02 15:20:28] <whack> however, since facts are run on the puppet agent/client, and file paths are usually on the puppetmaster, you are probably out of luck
[2010/09/02 15:21:50] <whack> you might be able to do something clever like fetching the file from the puppet master with your fac
[2010/09/02 15:21:58] <whack> but there's likely a better way to do what you're doing
[2010/09/02 15:22:03] <Tas_> hmm... so the master doesn't always transfer the files, and then run the facter scripts, then dish out the template files?
[2010/09/02 15:22:37] <whack> factsync happens first, I think, then facter runs, then your manifests get executed
[2010/09/02 15:22:44] <whack> so facter would run before any file copies
[2010/09/02 15:22:53] <Tas_> you're probably right. What I want to do is change the fstab file for a bunch of backup servers, to be configured by a single configuration file on the master
[2010/09/02 15:23:25] <whack> change how? What data would your fact need from the that file you wanted to fetch?
[2010/09/02 15:23:48] <Tas_> there's different mount points defined for a few of the servers
[2010/09/02 15:23:54] @ Quit: asenchi: Remote host closed the connection
[2010/09/02 15:24:28] <giovanni> i would use puppet to synchronize a directory of some puppet's clients using as source a directory(it contains files that change very often) of a puppet's client, do you know if I can use puppet to do this?
[2010/09/02 15:24:35] @ asenchi joined channel #puppet
[2010/09/02 15:24:42] <tholl583xx> is there some way to disable the stage parameters in 2.6.0?
[2010/09/02 15:25:10] <tholl583xx> or have the client ignore it?
[2010/09/02 15:25:33] @ Wandrewvious joined channel #puppet
[2010/09/02 15:26:32] <Tas_> whack: I suppose I could simply throw all the different fstab config files into the files/ directory, and then choose which one to put on which server, via a facter script that uses the hostname of the machine to decide which file to use.
[2010/09/02 15:27:37] @ snikkers joined channel #puppet
[2010/09/02 15:28:07] @ Quit: Wandrewvious: Client Quit
[2010/09/02 15:28:21] @ Quit: fcami: Quit: gone
[2010/09/02 15:28:27] @ Quit: jdcasey: Remote host closed the connection
[2010/09/02 15:28:31] <ablew> anybody have suggestions on getting puppetmaster to clean up after it's used connections to mysql when using storedconfigs?"
[2010/09/02 15:28:32] <miah> pupet has a method to mount stuff that adds things to fstab
[2010/09/02 15:30:17] @ Quit: WALoeIII: Ping timeout: 276 seconds
[2010/09/02 15:32:14] @ Quit: snikkers: Ping timeout: 258 seconds
[2010/09/02 15:35:41] <giovanni> is theere a method to use a puppet client as file server?
[2010/09/02 15:37:12] @ Quit: jamesturnbull: Ping timeout: 240 seconds
[2010/09/02 15:38:51] @ Quit: bobbyz: Quit: Leaving
[2010/09/02 15:39:26] @ snikkers joined channel #puppet
[2010/09/02 15:39:29] @ Quit: notbrien: Quit: notbrien
[2010/09/02 15:40:20] <whack> Tas_: you can do that with puppet by default, fyi
[2010/09/02 15:40:56] <whack> Tas_: you could have something like file { "/etc/fstab": source => ["puppet:///.../fstab.$fqdn", "puppet:///...fstab.default"]
[2010/09/02 15:41:07] <whack> replace $fqdn with another fact or variable name, too if you want
[2010/09/02 15:41:17] @ Quit: kaptk2: Quit: Leaving.
[2010/09/02 15:41:26] <whack> puppet will take the first source that is valid, so if $fqdn is 'foo' and no 'fstab.foo' file exists on the master, it'll give you fstab.default
[2010/09/02 15:42:02] @ cwilson1 joined channel #puppet
[2010/09/02 15:42:27] <whack> Tas_: see http://docs.puppetlabs.com/references/stable/type.html#source ("If you specify multiple file sources for a file ...")
[2010/09/02 15:42:52] @ shadoi joined channel #puppet
[2010/09/02 15:43:02] @ jamesturnbull joined channel #puppet
[2010/09/02 15:44:48] @ Quit: cwilson: Ping timeout: 240 seconds
[2010/09/02 15:51:41] @ Quit: Tas_: Ping timeout: 272 seconds
[2010/09/02 15:52:19] @ gniks joined channel #puppet
[2010/09/02 15:56:05] @ Quit: giovanni: Quit: Page closed
[2010/09/02 15:57:58] @ Quit: runrig: Quit: Leaving
[2010/09/02 15:59:30] @ Quit: lutter: Quit: Leaving.
[2010/09/02 15:59:47] @ eshamow is now known as eshamow|afk
[2010/09/02 16:00:28] @ plathrop is now known as plathrop-away
[2010/09/02 16:02:01] @ Quit: f3ew: Read error: Connection reset by peer
[2010/09/02 16:04:24] @ f3ew joined channel #puppet
[2010/09/02 16:07:06] @ thekad is now known as thekad-afk
[2010/09/02 16:08:08] <Mythmon> is it possible to pass a class parameters like you can pass parameters to a defined resource?
[2010/09/02 16:08:11] <tholl583xx> is there a work-around for issue 4693 as its killed my puppet setup at the moment, i cant roll out updates while the clients are failing
[2010/09/02 16:08:50] @ Quit: rodnet: Quit: rodnet
[2010/09/02 16:08:56] @ sammi joined channel #puppet
[2010/09/02 16:16:07] @ nb is now known as i
[2010/09/02 16:16:14] @ Quit: sammi: Remote host closed the connection
[2010/09/02 16:16:14] @ i is now known as i_
[2010/09/02 16:16:22] @ i_ is now known as nb_
[2010/09/02 16:16:24] @ nb_ is now known as nb|away
[2010/09/02 16:16:25] @ nb|away is now known as nb
[2010/09/02 16:16:50] @ Quit: tonyskapunk: Quit: ERC Version 5.3 (IRC client for Emacs)
[2010/09/02 16:17:28] @ Quit: rheron: Ping timeout: 258 seconds
[2010/09/02 16:18:04] @ nakano is now known as nakano_
[2010/09/02 16:19:50] @ Quit: snikkers: Ping timeout: 260 seconds
[2010/09/02 16:21:55] @ nakano_ is now known as nakano
[2010/09/02 16:24:32] @ Quit: jsimpson: Quit: jsimpson
[2010/09/02 16:24:43] @ Quit: jangell: Quit: jangell
[2010/09/02 16:25:49] @ snikkers joined channel #puppet
[2010/09/02 16:30:37] @ Quit: ken_barber: Quit: Leaving
[2010/09/02 16:35:03] @ proprietarysucks joined channel #puppet
[2010/09/02 16:36:50] <proprietarysucks> I'm trying to push a directory on client nodes. I'm getting this error: http://pastebin.com/wqf1qbwP
[2010/09/02 16:36:56] <proprietarysucks> that also shows the manifest clip
[2010/09/02 16:39:27] @ Quit: spacex: Read error: Operation timed out
[2010/09/02 16:39:42] @ sammi joined channel #puppet
[2010/09/02 16:41:57] @ steph021 joined channel #puppet
[2010/09/02 16:45:52] @ Quit: sammi: Quit: Colloquy for iPad - http://colloquy.mobi
[2010/09/02 16:47:44] @ Djelibeybi joined channel #puppet
[2010/09/02 16:48:21] @ Djelibeybi is now known as Hersheba
[2010/09/02 16:49:07] @ Hersheba is now known as Emenems
[2010/09/02 16:49:20] @ Emenems is now known as Djelibeybi
[2010/09/02 16:50:25] @ thekad-afk is now known as thekad
[2010/09/02 16:52:07] <nate_h> are there naming restrictions on puppet types?
[2010/09/02 16:52:16] <nate_h> like if they aren't named the same as the module you have to explicitely call them?
[2010/09/02 16:52:39] <nate_h> custom i mean
[2010/09/02 16:52:57] @ lutter joined channel #puppet
[2010/09/02 16:54:34] @ Quit: shadoi: Quit: Leaving.
[2010/09/02 16:58:25] @ ciupicri joined channel #puppet
[2010/09/02 16:59:01] <ciupicri> where can I find some examples of puppet configurations and tips about integrating it with a version control it?
[2010/09/02 16:59:29] <nate_h> we use git
[2010/09/02 16:59:36] <Djelibeybi> ciupicri: http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control
[2010/09/02 17:00:04] <nate_h> should custom types go under modules, or in the main lib dir?
[2010/09/02 17:00:19] <ciupicri> Djelibeybi, interesting
[2010/09/02 17:00:51] <ciupicri> what about the examples?
[2010/09/02 17:01:05] <miah> tons on the site
[2010/09/02 17:01:09] <miah> read the documentation
[2010/09/02 17:01:09] <ciupicri> seeing how others are using it
[2010/09/02 17:01:27] <Djelibeybi> nate_h: http://docs.reductivelabs.com/guides/plugins_in_modules.html
[2010/09/02 17:01:34] <Djelibeybi> ciupicri: forge.puppetlabs.com has a bunch of modules
[2010/09/02 17:01:38] <ciupicri> miah, I've read some documentation but I would like to see something a bit more complete, to get an idea of the big picture
[2010/09/02 17:01:50] @ Quit: chadh: Ping timeout: 264 seconds
[2010/09/02 17:02:03] <Djelibeybi> nate_h: check the module structure for 0.25.X section
[2010/09/02 17:02:33] @ Quit: lilmatt: Quit: lilmatt
[2010/09/02 17:02:43] <nate_h> Djelibeybi, the issue is it can't see the type, do i have to load the module?
[2010/09/02 17:02:47] <nate_h> ie include it
[2010/09/02 17:03:05] @ Quit: snikkers: Ping timeout: 265 seconds
[2010/09/02 17:03:07] <Djelibeybi> nate_h: you need to make sure pluginsync is on for your clients, so that they download the type/provider
[2010/09/02 17:03:12] <nate_h> yep i see it downloading
[2010/09/02 17:03:24] <Djelibeybi> Then you should be able to use it in your manifests
[2010/09/02 17:03:33] <nate_h> that's what i thought, no workey :(
[2010/09/02 17:03:49] @ Quit: tobym: Remote host closed the connection
[2010/09/02 17:04:18] <Djelibeybi> nate_h: pastie the --debug output
[2010/09/02 17:05:48] <nate_h> sec
[2010/09/02 17:06:25] @ Quit: littleidea: Quit: littleidea
[2010/09/02 17:07:11] @ Quit: ciupicri: Quit: Leaving
[2010/09/02 17:07:34] @ PaulWay[w] joined channel #puppet
[2010/09/02 17:10:44] @ Quit: lwhalen: Quit: Computer has gone to sleep
[2010/09/02 17:11:07] <proprietarysucks> anyone know what's up with that error? more info needed?
[2010/09/02 17:12:56] <nate_h> http://docs.reductivelabs.com/guides/plugins_in_modules.html
[2010/09/02 17:12:59] <nate_h> oops
[2010/09/02 17:13:10] <nate_h> www.pastie.org/1135001
[2010/09/02 17:13:14] <eric0> proprietarysucks: that path looks wrong; is that where it actually resides on the filesystem? i think you want a section in fileserver.conf that maps puppet:///files/ to /etc/puppet/files
[2010/09/02 17:14:10] <nate_h> Djelibeybi, so you can see it loads a few lines up from the bottom
[2010/09/02 17:14:12] <nate_h> and then fails
[2010/09/02 17:14:18] <Djelibeybi> nate_h: yeah, reading now
[2010/09/02 17:15:01] <Djelibeybi> nate_h: err: Could not load downloaded file /var/lib/puppet/lib/puppet/provider/bb_mysql_grant/mysql.rb: undefined method `provide' for nil:NilClass
[2010/09/02 17:15:09] <nate_h> what do those mean?
[2010/09/02 17:15:09] <Djelibeybi> Looks like you have some error in that .rb file
[2010/09/02 17:15:16] <nate_h> that and a bunch of them have it
[2010/09/02 17:15:38] <Djelibeybi> Yup, I think all of them do
[2010/09/02 17:16:18] <Djelibeybi> Though it also says it's loading the plugin.
[2010/09/02 17:16:25] <nate_h> ya thats on the first run only
[2010/09/02 17:16:29] <nate_h> the second run those errors go away
[2010/09/02 17:16:37] <Djelibeybi> I dunno. Going over my head now. :(
[2010/09/02 17:16:44] @ Quit: jab_doa: Quit: Verlassend
[2010/09/02 17:17:54] @ Quit: rmiller4pi8: Ping timeout: 240 seconds
[2010/09/02 17:20:18] @ snikkers joined channel #puppet
[2010/09/02 17:28:25] @ littleidea joined channel #puppet
[2010/09/02 17:30:11] @ Quit: littleidea: Client Quit
[2010/09/02 17:30:20] @ spacex joined channel #puppet
[2010/09/02 17:32:31] @ Quit: jaredrhine: Quit: Leaving.
[2010/09/02 17:37:17] @ nakano is now known as nakano_
[2010/09/02 17:39:08] @ Quit: axisys: Remote host closed the connection
[2010/09/02 17:41:53] @ littleidea joined channel #puppet
[2010/09/02 17:43:08] @ axisys joined channel #puppet
[2010/09/02 17:44:51] @ Quit: Edgan: Read error: Connection reset by peer
[2010/09/02 17:45:24] @ Edgan joined channel #puppet
[2010/09/02 17:45:59] @ Quit: KarlGodt: Quit: Leaving
[2010/09/02 17:49:26] @ Quit: yeled: Ping timeout: 260 seconds
[2010/09/02 17:49:34] @ Quit: rcrowley: Quit: rcrowley
[2010/09/02 17:49:37] @ DaveCore joined channel #puppet
[2010/09/02 17:50:10] @ yeled joined channel #puppet
[2010/09/02 17:50:28] <DaveCore> hi guys
[2010/09/02 17:52:33] <DaveCore> I want to use puppet to find non-compliant nodes on my network and then push the changes if I want to. I know about the noop mode but is there a way i can override noop from the master? Or is there a better way to do this?
[2010/09/02 17:53:29] @ Quit: RussS: Quit: Leaving
[2010/09/02 17:54:11] @ Quit: snikkers: Ping timeout: 240 seconds
[2010/09/02 17:55:49] @ Quit: spacex: Read error: Connection reset by peer
[2010/09/02 17:57:17] @ spacex joined channel #puppet
[2010/09/02 17:58:15] <DaveCore> I was under the impression everyone would want to run puppet that way, by having to approve of the changes before pushing them.
[2010/09/02 18:03:27] <agaffney> that's certainly not a feasible way for me to do it
[2010/09/02 18:03:28] @ Quit: spacex: Read error: No route to host
[2010/09/02 18:03:37] <agaffney> I've got almost 200 nodes and continually making changes
[2010/09/02 18:03:45] @ spacex joined channel #puppet
[2010/09/02 18:03:52] <DaveCore> Okay i think i got it. I can specify the noop inside the configuration files on the puppet master, right? So If i want to test if my servers have the right shudders file, I could create a config for shudders and add noop in it? And then see what my reports look like and then remove the noop when im ready. Is that right?
[2010/09/02 18:04:23] <DaveCore> Does it make sense? How would you guys do it?
[2010/09/02 18:07:34] @ snikkers joined channel #puppet
[2010/09/02 18:07:35] @ Quit: DaveCore: Remote host closed the connection
[2010/09/02 18:07:52] @ DaveCore joined channel #puppet
[2010/09/02 18:08:11] <DaveCore> Did anyone answer? I left the room by accident
[2010/09/02 18:08:29] <proprietarysucks> eric0: what do you mean by that map? I have this in my fileserver.conf: path /etc/puppet/files/production followed by allow *
[2010/09/02 18:10:45] <mrwacky42> @DaveCore nope
[2010/09/02 18:11:37] @ Quit: gniks: Quit: Leaving.
[2010/09/02 18:13:04] <DaveCore> So it is possible to specify a manifest with noop inside it on the puppet master so that no clients make changes right away, even if the clients are not running specifically in noop mode, right?
[2010/09/02 18:13:21] <Djelibeybi> DaveCore: yes it is.
[2010/09/02 18:13:35] <Djelibeybi> DaveCore: but most of us trust Puppet and just let it make changes. That's the point of configuration management. :)
[2010/09/02 18:14:01] <DaveCore> Yes but it's scary the first times ;)
[2010/09/02 18:14:15] <Djelibeybi> DaveCore: that's why you spin it up in a dev environment first.
[2010/09/02 18:14:30] <Djelibeybi> DaveCore: also, start small with non-essential (i.e. stuff that won't get you locked out of the system) bits.
[2010/09/02 18:14:41] <DaveCore> I'll post an example
[2010/09/02 18:16:56] @ lwhalen joined channel #puppet
[2010/09/02 18:17:00] @ gniks joined channel #puppet
[2010/09/02 18:17:15] <DaveCore> file { "/etc/nsswitch.conf": mode => 644, source => "puppet://server.example.com/etc/nsswitch.conf" }
[2010/09/02 18:17:38] <Djelibeybi> DaveCore: drop the server.example.com
[2010/09/02 18:17:59] <Djelibeybi> DaveCore: file { "/etc/nsswitch.conf": mode => 644, source => "puppet:///etc/nsswitch.conf", }
[2010/09/02 18:18:02] <DaveCore> Sorry for the formatting. How can i specify i want this file to be in noop mode?
[2010/09/02 18:18:04] <Djelibeybi> DaveCore: though, you should look at modules
[2010/09/02 18:18:15] <Djelibeybi> DaveCore: noop => true
[2010/09/02 18:18:46] <DaveCore> As simple as that?
[2010/09/02 18:19:01] <Djelibeybi> Yup
[2010/09/02 18:19:30] <DaveCore> Wonderful. Thanks very much, I'll try that.
[2010/09/02 18:19:34] <Djelibeybi> DaveCore: btw, read this: http://docs.puppetlabs.com/guides/modules.html
[2010/09/02 18:19:44] <DaveCore> Ok will do
[2010/09/02 18:20:04] <Djelibeybi> DaveCore: much better than trying to lump everything together in site.pp or something
[2010/09/02 18:20:32] @ Quit: gniks: Client Quit
[2010/09/02 18:20:34] <DaveCore> Thanks again. By the way are you using a GUI for puppet reporting, like dashboard
[2010/09/02 18:20:42] <Djelibeybi> I'm not, but many people here do
[2010/09/02 18:20:55] <DaveCore> Ok. Thanks again. Have a good evening.
[2010/09/02 18:20:59] <DaveCore> Or day
[2010/09/02 18:21:06] <Djelibeybi> jamesturnbull: the example on http://docs.puppetlabs.com/guides/modules.html is weird. Uses class autofs::client when it should just be class autofs if its the init.pp
[2010/09/02 18:21:12] * Djelibeybi heads off to log a documentation bug
[2010/09/02 18:22:05] @ Quit: DaveCore: Remote host closed the connection
[2010/09/02 18:22:08] @ jangell joined channel #puppet
[2010/09/02 18:22:41] @ Quit: QtPlatypus: Ping timeout: 276 seconds
[2010/09/02 18:23:50] @ Quit: snikkers: Ping timeout: 276 seconds
[2010/09/02 18:30:41] @ Quit: jason^: Quit: Changing server
[2010/09/02 18:32:25] @ thekad is now known as thekad-afk
[2010/09/02 18:32:41] <jamesturnbull> Djelibeybi: patches accepted
[2010/09/02 18:32:47] <jamesturnbull> hacim: ping
[2010/09/02 18:32:53] <Djelibeybi> jamesturnbull: the bug report contains the full fix. :p
[2010/09/02 18:32:55] @ jason^ joined channel #puppet
[2010/09/02 18:33:07] <Djelibeybi> jamesturnbull: I'm not fucking about with git just to remove ::client
[2010/09/02 18:33:37] <jamesturnbull> Djelibeybi: ahhhh
[2010/09/02 18:34:52] @ snikkers joined channel #puppet
[2010/09/02 18:35:28] <Djelibeybi> jamesturnbull: :p
[2010/09/02 18:42:44] <hacim> jamesturnbull: hey
[2010/09/02 18:43:40] @ Quit: pting: Quit: Ex-Chat
[2010/09/02 18:47:50] @ tobym joined channel #puppet
[2010/09/02 18:52:28] @ Quit: mizzy: Ping timeout: 265 seconds
[2010/09/02 18:59:40] @ Quit: mclarke: Quit: mclarke
[2010/09/02 19:02:14] @ Quit: saysjonathan: Quit: leaving
[2010/09/02 19:02:59] @ mizzy joined channel #puppet
[2010/09/02 19:03:51] @ mjpizz joined channel #puppet
[2010/09/02 19:06:38] @ gebi_ joined channel #puppet
[2010/09/02 19:08:21] @ Quit: mrwacky42: Quit: Leaving.
[2010/09/02 19:08:21] <jamesturnbull> hacim: you saw my update to the ticket?
[2010/09/02 19:08:31] @ Quit: littleidea: Quit: littleidea
[2010/09/02 19:10:13] @ Quit: gebi: Ping timeout: 252 seconds
[2010/09/02 19:13:39] <hacim> jamesturnbull: damn, i'm chasing the HEAD
[2010/09/02 19:13:52] @ mjpizz left channel #puppet ()
[2010/09/02 19:14:05] @ Quit: webx: Quit: webx
[2010/09/02 19:14:56] <hacim> jamesturnbull: i updated #4692 with a trace too
[2010/09/02 19:14:56] <gepetto> hacim: jamesturnbull: #4692 is http://projects.puppetlabs.com/issues/show/4692 "Puppet - Bug #4692: empty factor variable causes private method `split' called for :undef:Symbol - Puppet Labs"
[2010/09/02 19:16:54] @ thekad-afk is now known as thekad
[2010/09/02 19:17:33] @ thekad is now known as thekad-afk
[2010/09/02 19:18:50] @ Quit: jhaddad: Quit: jhaddad
[2010/09/02 19:18:59] <jamesturnbull> hacim: thanks
[2010/09/02 19:20:11] @ QMan joined channel #puppet
[2010/09/02 19:22:01] @ Quit: n0ts: Quit: Tiarra 0.1+svn-37177: SIGTERM received; exit
[2010/09/02 19:22:22] @ n0ts joined channel #puppet
[2010/09/02 19:28:32] @ gniks joined channel #puppet
[2010/09/02 19:32:18] @ Quit: gniks: Client Quit
[2010/09/02 19:40:13] @ jaredrhine joined channel #puppet
[2010/09/02 19:40:25] @ Quit: lutter: Quit: Leaving.
[2010/09/02 19:40:51] @ Quit: snikkers: Ping timeout: 240 seconds
[2010/09/02 19:44:40] @ Quit: jaredrhine: Ping timeout: 265 seconds
[2010/09/02 19:46:16] @ mmorsi left channel #puppet ()
[2010/09/02 19:48:09] @ Quit: bmahe: Quit: Leaving
[2010/09/02 19:53:53] @ gniks joined channel #puppet
[2010/09/02 19:56:08] @ snikkers joined channel #puppet
[2010/09/02 19:56:18] @ Quit: kogent: Ping timeout: 272 seconds
[2010/09/02 20:00:22] @ bug joined channel #puppet
[2010/09/02 20:00:34] @ Quit: snikkers: Ping timeout: 258 seconds
[2010/09/02 20:02:05] @ Quit: ricky: Ping timeout: 240 seconds
[2010/09/02 20:03:25] @ bobbyz joined channel #puppet
[2010/09/02 20:03:35] @ jaredrhine joined channel #puppet
[2010/09/02 20:07:12] @ alexine_dsouza joined channel #puppet
[2010/09/02 20:08:11] @ Quit: Mythmon: Ping timeout: 255 seconds
[2010/09/02 20:12:09] @ Mythmon joined channel #puppet
[2010/09/02 20:12:22] @ snikkers joined channel #puppet
[2010/09/02 20:15:48] @ jamestur1bull joined channel #puppet
[2010/09/02 20:15:56] @ ricky joined channel #puppet
[2010/09/02 20:16:10] @ henderb_ joined channel #puppet
[2010/09/02 20:18:43] @ colyte_ joined channel #puppet
[2010/09/02 20:19:18] @ Quit: jaredrhine: Ping timeout: 245 seconds
[2010/09/02 20:22:25] @ Quit: Bass10: Ping timeout: 240 seconds
[2010/09/02 20:28:13] @ jsm joined channel #puppet
[2010/09/02 20:29:33] @ Quit: jamesturnbull: *.net *.split
[2010/09/02 20:29:33] @ Quit: cwilson1: *.net *.split
[2010/09/02 20:29:33] @ Quit: justdave: *.net *.split
[2010/09/02 20:29:33] @ Quit: henderb: *.net *.split
[2010/09/02 20:29:34] @ Quit: m3hm3t: *.net *.split
[2010/09/02 20:29:34] @ Quit: colyte: *.net *.split
[2010/09/02 20:29:34] @ Quit: fugit13: *.net *.split
[2010/09/02 20:29:34] @ Quit: scottz_: *.net *.split
[2010/09/02 20:32:04] @ Quit: steph021: Read error: Connection reset by peer
[2010/09/02 20:32:32] @ steph021_h joined channel #puppet
[2010/09/02 20:33:54] @ Quit: snikkers: Ping timeout: 240 seconds
[2010/09/02 20:37:14] @ m3hm3t joined channel #puppet
[2010/09/02 20:37:32] @ cwilson joined channel #puppet
[2010/09/02 20:38:40] @ incommon_ike joined channel #puppet
[2010/09/02 20:39:06] @ fugit13 joined channel #puppet
[2010/09/02 20:39:06] @ scottz_ joined channel #puppet
[2010/09/02 20:40:17] @ snikkers joined channel #puppet
[2010/09/02 20:41:33] @ justdave joined channel #puppet
[2010/09/02 20:51:49] @ dthomas joined channel #puppet
[2010/09/02 20:51:50] @ Alagar joined channel #puppet
[2010/09/02 20:55:07] @ Quit: tobym: Remote host closed the connection
[2010/09/02 20:56:21] <dthomas> Hi. I'm trying to provision a new OpenBSD machine. One of the first things I want to do is edit the mount point options. The device(s) are not known up front. Is Puppet the right tool to edit fstab options, and if so could someone nudge me towards some reading?
[2010/09/02 20:57:44] <dthomas> I've perused "An Introduction to Puppet," "Puppet Language Tutorial," and the list of resource types. All I've found there is the mount type which seems to want me to provide the device name, which seems like pinning down information I don't need pinned down. (The install set up fstab, I don't need to re-create it.)
[2010/09/02 20:57:47] @ Quit: jangell: Quit: jangell
[2010/09/02 20:58:20] @ kogent joined channel #puppet
[2010/09/02 20:58:37] <dthomas> Augeas looked promising but I don't see that anyone has a port/package for it for OpenBSD, and installing it by hand went less than smoothly.
[2010/09/02 21:05:06] <Djelibeybi> dthomas: yes, check the mount {} type
[2010/09/02 21:05:33] <Djelibeybi> dthomas: how else are you going to edit fstab if you don't know the device name?
[2010/09/02 21:05:49] @ Quit: _nalle: Ping timeout: 272 seconds
[2010/09/02 21:06:45] @ _nalle joined channel #puppet
[2010/09/02 21:07:03] <dthomas> Djelibeybi: Yes, that was my question, how am I going to edit fstab through Puppet without specifying the device names? :)
[2010/09/02 21:07:23] <Djelibeybi> dthomas: how would you do that *without* using Puppet?
[2010/09/02 21:07:26] <dthomas> Djelibeybi: For example, I want to add the softdep option to every ffs mount point.
[2010/09/02 21:07:43] <Djelibeybi> ffs or nfs? :)
[2010/09/02 21:08:16] <dthomas> ffs, which is apparently OpenBSD's preferred filesystem type.
[2010/09/02 21:08:20] <Djelibeybi> dthomas: I reckon you'll want to write a custom fact that returns the devices for the mount(s) you want to edit and use that to feed the mount{} type
[2010/09/02 21:08:21] <dthomas> (And also a funny name.)
[2010/09/02 21:08:33] <Djelibeybi> dthomas: yes, hence my question. Duly noted into the scrapheap I call a brain.
[2010/09/02 21:09:38] <dthomas> Djelibeybi: OK, that sounds do-able. I only opened the documentation on facter once, didn't let the custom facts sink in. I'll go revisit that. Thanks.
[2010/09/02 21:09:50] <Djelibeybi> dthomas: no worries.
[2010/09/02 21:11:05] @ Quit: mikey_p: Quit: mikey_p
[2010/09/02 21:15:41] @ Quit: kogent: Remote host closed the connection
[2010/09/02 21:17:03] @ Quit: m3hm3t: Quit: Leaving.
[2010/09/02 21:17:50] @ Quit: Mythmon: Changing host
[2010/09/02 21:17:50] @ Mythmon joined channel #puppet
[2010/09/02 21:18:27] @ paradox12 joined channel #puppet
[2010/09/02 21:22:21] @ kogent joined channel #puppet
[2010/09/02 21:22:36] @ paradox12 left channel #puppet ()
[2010/09/02 21:26:37] @ Quit: Alagar: Quit: Leaving.
[2010/09/02 21:27:34] @ RDove joined channel #puppet
[2010/09/02 21:28:02] <RDove> I was just curious if its possible to have a puppetmaster with a dynamic ip and clients with potentially static ips?
[2010/09/02 21:29:15] <Djelibeybi> RDove: as long as the clients can always resolve the puppetmaster by name, it should be ok.
[2010/09/02 21:29:28] <Djelibeybi> RDove: not sure it's ideal, but I can't think of a reason why it wouldn't work most of the time.
[2010/09/02 21:31:31] <RDove> is there security concerns with doing this over the internet? have a couple boxes at home and at the office with static ip's and my puppetmaster box is in a colocation with a static ip
[2010/09/02 21:31:43] <RDove> err dynamic for colo
[2010/09/02 21:33:35] <Djelibeybi> RDove: all traffic between client and master is SSL-encrypted.
[2010/09/02 21:38:05] @ Quit: mriddle: Ping timeout: 240 seconds
[2010/09/02 21:40:06] @ littleidea joined channel #puppet
[2010/09/02 21:40:38] @ Quit: kogent: Quit: kogent
[2010/09/02 21:44:03] @ kogent joined channel #puppet
[2010/09/02 21:49:29] @ Quit: incommon_ike: Quit: Leaving.
[2010/09/02 21:50:59] @ mriddle joined channel #puppet
[2010/09/02 21:51:31] <TomWork> I was wondering, when you do puppetd -dt to force a puppet run on a client
[2010/09/02 21:51:43] <TomWork> it seems that sometimes it doesn't get the new classes immediately
[2010/09/02 21:51:51] <TomWork> is there a --no-splay like cfengine ?
[2010/09/02 21:52:04] <TomWork> how to force puppet to get the latest catalog
[2010/09/02 21:52:48] @ project2501b joined channel #puppet
[2010/09/02 21:55:00] <TomWork> >
[2010/09/02 21:55:01] <TomWork> ?
[2010/09/02 21:55:09] @ Quit: project2501a: Ping timeout: 265 seconds
[2010/09/02 21:57:50] @ Quit: socomm: Ping timeout: 276 seconds
[2010/09/02 21:58:55] @ socomm joined channel #puppet
[2010/09/02 21:59:53] <Djelibeybi> TomWork: puppet -dt should always get the latest catalog from the server. --test (-t) implies that the client cannot use the local cache
[2010/09/02 22:02:09] <TomWork> ok
[2010/09/02 22:02:20] <TomWork> so I must not use correctly the @user and @group
[2010/09/02 22:02:29] <TomWork> does someone have an example how to create a user ?
[2010/09/02 22:03:58] @ Quit: gniks: Quit: Leaving.
[2010/09/02 22:04:07] <TomWork> ok I think I miss realize
[2010/09/02 22:14:52] <Djelibeybi> TomWork: yes, if you use @user, you need to realise the user with <| |> or realize('user')
[2010/09/02 22:14:59] <Djelibeybi> TomWork: or just drop the @
[2010/09/02 22:15:11] <TomWork> ok
[2010/09/02 22:15:28] <TomWork> but then my understanding is if I drop the @ then I won't be able to create a user of the same name in different classes ?
[2010/09/02 22:20:28] @ jangell joined channel #puppet
[2010/09/02 22:20:56] <Djelibeybi> TomWork: correct. So, you should keep the @ in that case, and just realize the user elsewhere
[2010/09/02 22:24:57] <RDove> im kind of new to puppet, some reason every time i run a puppet command like puppetd -t or puppetca --list, it just displays a config file ;p (cats it)
[2010/09/02 22:26:00] @ jangell_ joined channel #puppet
[2010/09/02 22:27:48] <RDove> nm i fixed it heh weird
[2010/09/02 22:29:43] @ Quit: jangell: Ping timeout: 245 seconds
[2010/09/02 22:29:43] @ jangell_ is now known as jangell
[2010/09/02 22:34:57] <Djelibeybi> RDove: genconfig = true. :)
[2010/09/02 22:37:01] @ jangell_ joined channel #puppet
[2010/09/02 22:38:11] @ Quit: jangell_: Remote host closed the connection
[2010/09/02 22:38:20] @ jangell_ joined channel #puppet
[2010/09/02 22:40:35] @ Quit: jangell: Ping timeout: 265 seconds
[2010/09/02 22:40:36] @ jangell_ is now known as jangell
[2010/09/02 22:42:49] @ Quit: justdave: Ping timeout: 265 seconds
[2010/09/02 22:44:19] @ Quit: jangell: Read error: Connection reset by peer
[2010/09/02 22:44:21] @ jangell joined channel #puppet
[2010/09/02 22:47:10] @ jmccaffrey1 joined channel #puppet
[2010/09/02 22:47:16] <jmccaffrey1> Hello
[2010/09/02 22:48:24] <RDove> ever seen this? /usr/lib/ruby/site_ruby/1.8/puppet/network/http_pool.rb:68: [BUG] Segmentation fault
[2010/09/02 22:48:42] <jmccaffrey1> That can't be good
[2010/09/02 22:49:06] @ jmccaffrey1 is now known as jmccaffrey
[2010/09/02 22:49:08] @ Quit: jmccaffrey: Changing host
[2010/09/02 22:49:08] @ jmccaffrey joined channel #puppet
[2010/09/02 22:49:41] @ mikey_p joined channel #puppet
[2010/09/02 22:50:08] <RDove> keeps dieing with connection refused, when running on client
[2010/09/02 22:50:35] @ justdave joined channel #puppet
[2010/09/02 22:52:52] <Djelibeybi> RDove: send the error, along with your OS/Ruby details to the puppet list to see if anyone else has seen that
[2010/09/02 22:53:47] <RDove> ruby 1.8.5 (2006-08-25) [i386-linux] -- ok i will
[2010/09/02 22:53:54] <RDove> what version of ruby commended?
[2010/09/02 22:55:30] @ jangell_ joined channel #puppet
[2010/09/02 22:56:41] @ jangell__ joined channel #puppet
[2010/09/02 22:56:49] @ Quit: jangell: Read error: Connection reset by peer
[2010/09/02 22:56:49] @ jangell__ is now known as jangell
[2010/09/02 22:59:50] @ Quit: jangell_: Ping timeout: 240 seconds
[2010/09/02 23:16:17] @ Quit: gutseb: Ping timeout: 255 seconds
[2010/09/02 23:19:09] @ Quit: fredden: Remote host closed the connection
[2010/09/02 23:27:55] @ yannL joined channel #puppet
[2010/09/02 23:28:14] @ Deesl joined channel #puppet
[2010/09/02 23:28:47] @ PaulWay[w] left channel #puppet ("I must go, there are too many tangrams on this channel.")
[2010/09/02 23:30:06] @ Hallaj joined channel #puppet
[2010/09/02 23:31:18] @ Quit: alban2: Ping timeout: 240 seconds
[2010/09/02 23:31:20] @ Quit: nul0op: Ping timeout: 265 seconds
[2010/09/02 23:32:16] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/09/02 23:35:38] @ ezmobius joined channel #puppet
[2010/09/02 23:36:16] @ vizzord joined channel #puppet
[2010/09/02 23:37:35] @ alexine_dsouza joined channel #puppet
[2010/09/02 23:44:16] <jangell> I'm using a template to populate the server-id of a mysql config file. it does that by pulling in the current system time. problem is it updates the file everytie puppet runs which then restards mysql. how do i make suhc a thing a one time deal?
[2010/09/02 23:49:12] @ pmorillo joined channel #puppet
[2010/09/02 23:51:10] @ sdog joined channel #puppet
[2010/09/02 23:51:19] <zipkid> hi sdog
[2010/09/02 23:52:21] <zipkid> jangell: fqdn_rand() ...
[2010/09/02 23:52:47] <jangell> zipkid: then my config updates with a new random every time puppet runs
[2010/09/02 23:52:51] <jangell> when then restarts mysql
[2010/09/02 23:53:24] <zipkid> jangell: fqdn_rand gives a fixed result based on the fqdn, if that stays the sae, the result is the same too...
[2010/09/02 23:53:47] <jangell> zipkid: oh. well I tried that orignally and eventually gave up and went to epoch.
[2010/09/02 23:53:58] <jangell> i couldn't get it to work
[2010/09/02 23:54:29] <jangell> zipkid: right now in my template i have: server-id=<%= Time.now.to_i %>
[2010/09/02 23:55:11] <zipkid> jangell: if you don't want to accept an answer, why ask for help?
[2010/09/02 23:55:12] @ redpepper is now known as RedPepper
[2010/09/02 23:55:22] <jangell> zipkid: I was looking for some help with syntax on that line
[2010/09/02 23:55:31] <jangell> when I tried i couldnt' figure out the syntax that woudl work to be using fqdn_Rand
[2010/09/02 23:55:33] <jangell> rand*
[2010/09/02 23:56:10] <zipkid> you can also use generate()
[2010/09/02 23:57:03] @ coleman79 joined channel #puppet
[2010/09/02 23:57:13] @ Quit: Djelibeybi: Quit: Leaving
[2010/09/02 23:57:32] @ Quit: shade\: Remote host closed the connection
[2010/09/02 23:57:39] <jangell> what syntax would I use in the template on that line to use fqdn_rand ?

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