| [2010/07/11 00:04:20] @ Log started by gepetto | ||
| [2010/07/11 00:04:20] @ gniks joined channel #puppet | ||
| [2010/07/11 00:08:17] @ Quit: wilmoore: Remote host closed the connection | ||
| [2010/07/11 00:10:05] @ bodepd joined channel #puppet | ||
| [2010/07/11 00:11:07] @ Quit: \ask: Remote host closed the connection | ||
| [2010/07/11 00:13:42] @ \ask joined channel #puppet | ||
| [2010/07/11 00:15:15] @ mfournier joined channel #puppet | ||
| [2010/07/11 00:26:16] @ Quit: mfournier: Ping timeout: 248 seconds | ||
| [2010/07/11 00:29:24] @ nexx joined channel #puppet | ||
| [2010/07/11 00:45:55] @ itguru joined channel #puppet | ||
| [2010/07/11 00:48:02] @ Quit: cowsong: Quit: leaving | ||
| [2010/07/11 00:49:06] @ Quit: rcrowley: Quit: rcrowley | ||
| [2010/07/11 00:54:10] @ Quit: ericlee: Remote host closed the connection | ||
| [2010/07/11 01:00:04] @ ericlee joined channel #puppet | ||
| [2010/07/11 01:01:03] @ Quit: itguru: Read error: Connection reset by peer | ||
| [2010/07/11 01:13:59] @ Quit: bodepd: Quit: bodepd | ||
| [2010/07/11 01:38:06] @ bodepd joined channel #puppet | ||
| [2010/07/11 01:41:10] @ Djelibeybi joined channel #puppet | ||
| [2010/07/11 01:58:29] @ Quit: gniks: Ping timeout: 246 seconds | ||
| [2010/07/11 02:03:26] @ Quit: bodepd: Quit: bodepd | ||
| [2010/07/11 02:10:39] @ gniks joined channel #puppet | ||
| [2010/07/11 02:11:34] @ Quit: bogusano: Ping timeout: 240 seconds | ||
| [2010/07/11 02:15:51] @ bogusano joined channel #puppet | ||
| [2010/07/11 02:25:29] @ Quit: Djelibeybi: Quit: Leaving | ||
| [2010/07/11 02:32:14] @ poison joined channel #puppet | ||
| [2010/07/11 02:35:04] @ gebi joined channel #puppet | ||
| [2010/07/11 02:39:27] @ gniks1 joined channel #puppet | ||
| [2010/07/11 02:43:28] @ Quit: gniks: Ping timeout: 276 seconds | ||
| [2010/07/11 03:18:11] @ Quit: gniks1: Quit: Leaving. | ||
| [2010/07/11 03:20:36] @ Quit: poison: Remote host closed the connection | ||
| [2010/07/11 03:21:14] @ jab_doa joined channel #puppet | ||
| [2010/07/11 03:21:56] @ gniks joined channel #puppet | ||
| [2010/07/11 03:26:44] @ Quit: \ask: Remote host closed the connection | ||
| [2010/07/11 03:27:39] @ \ask joined channel #puppet | ||
| [2010/07/11 03:41:10] @ Quit: jaredrhine: Ping timeout: 240 seconds | ||
| [2010/07/11 03:50:14] @ morpheus joined channel #puppet | ||
| [2010/07/11 03:51:40] @ Quit: tecto: Quit: tecto | ||
| [2010/07/11 03:54:11] <morpheus> Hi Puppetuser | ||
| [2010/07/11 03:54:28] <morpheus> im fairly new to puppet and ive got a question about arrays | ||
| [2010/07/11 03:54:59] <morpheus> i try to set up users with puppet and have written a definition for unixadmins | ||
| [2010/07/11 03:55:31] <morpheus> and I want to provide a default set of groups and you just can specify additional groups | ||
| [2010/07/11 03:56:06] <morpheus> define user::unixadmin($uid,$addgroups = []) { | ||
| [2010/07/11 03:56:14] <morpheus> $groups = [ 'wheel', 'video', $addgroups ] | ||
| [2010/07/11 03:56:35] <morpheus> $user {$name: groups => $groups,} | ||
| [2010/07/11 03:57:09] <morpheus> err: Got an uncaught exception of type ArgumentError: comparison of String with Array failed | ||
| [2010/07/11 03:57:32] <morpheus> so how can i concat 2 arrays? | ||
| [2010/07/11 03:58:24] <morpheus> i also tried to define a array outside the scope of the definition and tried to expand it using the += operator but i think i cannot use and array on the right side | ||
| [2010/07/11 04:02:08] <morpheus> what really confuses me ist that the statement $groups = [ 'wheel', 'video', $addgroups ] seems to work but when i put the groups => $groups in the userressource i get the described error. | ||
| [2010/07/11 04:03:26] <Volcane> you're basically creating a nested array which puppet doesnt support, and also doesnt complain about | ||
| [2010/07/11 04:03:37] <Volcane> look in the languate tutorial there's a syntax for appending to arrays, might help | ||
| [2010/07/11 04:03:50] <morpheus> can anyone give me a hint what I'm doing wrong? | ||
| [2010/07/11 04:13:07] <morpheus> ok its working now ... well almost | ||
| [2010/07/11 04:13:50] <morpheus> i have a $default = [ 'wheel', 'video' ] outside the definition and a $default += $addgroups inside | ||
| [2010/07/11 04:14:35] <morpheus> and the following virtual ressource | ||
| [2010/07/11 04:14:55] <Volcane> outside the definition has no meaning to the definition | ||
| [2010/07/11 04:14:59] <morpheus> @unixadmin { 'test': addgroups => [ 'audio', 'usb' ]} | ||
| [2010/07/11 04:15:17] <Volcane> variable scope doesnt work that way with definitions | ||
| [2010/07/11 04:15:23] <Volcane> if u want data in it, u should pass it in | ||
| [2010/07/11 04:15:38] <Volcane> you can access 'outside' data with them but really not good practise | ||
| [2010/07/11 04:16:41] <morpheus> first puppetrun gives me an error. Puppet::Parser::AST::VarDef failed with error TypeError: can't convert Array into String at /etc/puppet/modules/user/manifests/definitions/unixadmin.pp:4 | ||
| [2010/07/11 04:16:58] <morpheus> following runs do not. | ||
| [2010/07/11 04:17:44] @ Quit: snikkers: Ping timeout: 248 seconds | ||
| [2010/07/11 04:17:51] <morpheus> when i delete the addgroup statement from the test-user, it is the same thing: First run raises an error, following runs do not | ||
| [2010/07/11 04:18:18] <morpheus> line 4 is the $default += $addgroups statement | ||
| [2010/07/11 04:18:40] @ snikkers joined channel #puppet | ||
| [2010/07/11 04:19:03] <morpheus> ok if it isn't good pracitse. What is best practise to define a default set of array-elements? | ||
| [2010/07/11 04:47:42] @ adrian_broher joined channel #puppet | ||
| [2010/07/11 05:02:57] @ hy is now known as ] | ||
| [2010/07/11 05:10:28] @ yannL joined channel #puppet | ||
| [2010/07/11 05:15:45] @ Quit: adrian_broher: Ping timeout: 240 seconds | ||
| [2010/07/11 05:16:11] @ adrian_broher joined channel #puppet | ||
| [2010/07/11 05:17:56] @ ] is now known as hy | ||
| [2010/07/11 05:23:44] @ pinoyskull joined channel #puppet | ||
| [2010/07/11 05:39:24] @ Quit: p3rror: Read error: Connection reset by peer | ||
| [2010/07/11 05:46:11] @ EXCHIM joined channel #puppet | ||
| [2010/07/11 05:51:48] @ Quit: gniks: Quit: Leaving. | ||
| [2010/07/11 05:53:02] <morpheus> ok i'll probably write to the mailinglist when i cant find a satisfying solution. Thanks for your input anyways | ||
| [2010/07/11 05:53:11] @ Quit: morpheus: Quit: Leaving | ||
| [2010/07/11 05:54:22] @ Quit: marek: Ping timeout: 276 seconds | ||
| [2010/07/11 05:58:43] @ jab_doa_ joined channel #puppet | ||
| [2010/07/11 05:58:43] @ Quit: jab_doa: Ping timeout: 260 seconds | ||
| [2010/07/11 06:04:38] @ Bass10 joined channel #puppet | ||
| [2010/07/11 06:04:57] @ yure joined channel #puppet | ||
| [2010/07/11 06:13:17] @ Quit: physicspackage: Ping timeout: 252 seconds | ||
| [2010/07/11 06:18:07] @ Quit: pinoyskull: Quit: Leaving | ||
| [2010/07/11 07:01:13] @ sebas891 joined channel #puppet | ||
| [2010/07/11 07:09:28] @ crdant joined channel #puppet | ||
| [2010/07/11 07:14:05] @ Quit: BLZbubba: Ping timeout: 265 seconds | ||
| [2010/07/11 07:34:45] @ Quit: ceren: Quit: ceren | ||
| [2010/07/11 07:38:02] @ ceren joined channel #puppet | ||
| [2010/07/11 07:38:15] @ Quit: jab_doa_: Quit: Verlassend | ||
| [2010/07/11 07:40:20] @ littleidea joined channel #puppet | ||
| [2010/07/11 07:47:21] @ Quit: \ask: Remote host closed the connection | ||
| [2010/07/11 07:47:44] @ \ask joined channel #puppet | ||
| [2010/07/11 07:54:54] @ Quit: crdant: Quit: Leaving. | ||
| [2010/07/11 07:59:08] @ Spruit_elf joined channel #puppet | ||
| [2010/07/11 08:01:59] @ physicspackage joined channel #puppet | ||
| [2010/07/11 08:05:01] @ BLZbubba joined channel #puppet | ||
| [2010/07/11 08:05:33] @ crdant joined channel #puppet | ||
| [2010/07/11 08:29:20] @ Quit: physicspackage: Quit: Colloquy for iPhone - http://colloquy.mobi | ||
| [2010/07/11 08:29:43] @ physicspackage joined channel #puppet | ||
| [2010/07/11 08:29:45] @ Quit: physicspackage: Remote host closed the connection | ||
| [2010/07/11 08:41:38] @ lak joined channel #puppet | ||
| [2010/07/11 08:42:34] <matti> Hi lak | ||
| [2010/07/11 08:42:44] <lak> hi matti | ||
| [2010/07/11 08:42:56] * lak is just online briefly, checking into a flight | ||
| [2010/07/11 08:43:00] @ Quit: lak: Client Quit | ||
| [2010/07/11 08:47:05] @ mgk joined channel #puppet | ||
| [2010/07/11 08:51:56] @ Quit: mgk: Ping timeout: 258 seconds | ||
| [2010/07/11 08:54:30] @ Quit: ceren: Quit: ceren | ||
| [2010/07/11 08:55:44] @ physicspackage joined channel #puppet | ||
| [2010/07/11 08:57:26] @ p3rror joined channel #puppet | ||
| [2010/07/11 08:58:38] @ Quit: bug: Quit: bug | ||
| [2010/07/11 08:59:16] @ Quit: physicspackage: Client Quit | ||
| [2010/07/11 09:03:15] @ Quit: p3rror: Remote host closed the connection | ||
| [2010/07/11 09:05:32] @ ckauhaus joined channel #puppet | ||
| [2010/07/11 09:10:59] @ rcrowley joined channel #puppet | ||
| [2010/07/11 09:11:48] @ stewartl42 joined channel #puppet | ||
| [2010/07/11 09:18:24] @ Quit: yure: Ping timeout: 260 seconds | ||
| [2010/07/11 09:20:25] @ Quit: jmccune: Ping timeout: 276 seconds | ||
| [2010/07/11 09:20:37] @ Quit: _nalle: Ping timeout: 276 seconds | ||
| [2010/07/11 09:24:01] @ Quit: crdant: Quit: Leaving. | ||
| [2010/07/11 09:28:01] @ alcy joined channel #puppet | ||
| [2010/07/11 09:31:32] @ yure joined channel #puppet | ||
| [2010/07/11 09:33:17] @ Quit: mellen: Ping timeout: 265 seconds | ||
| [2010/07/11 09:33:46] @ Quit: alcy: Ping timeout: 265 seconds | ||
| [2010/07/11 09:38:41] @ _nalle joined channel #puppet | ||
| [2010/07/11 09:42:13] @ bug joined channel #puppet | ||
| [2010/07/11 09:46:08] @ Alagar joined channel #puppet | ||
| [2010/07/11 09:50:12] @ Quit: carlasouza: Ping timeout: 265 seconds | ||
| [2010/07/11 09:54:44] @ Quit: rcrowley: Quit: rcrowley | ||
| [2010/07/11 10:00:58] @ wilmoore joined channel #puppet | ||
| [2010/07/11 10:17:56] @ Quit: nexx: Quit: quit | ||
| [2010/07/11 10:20:12] @ Quit: bug: Quit: bug | ||
| [2010/07/11 10:29:36] @ Quit: Spruit_elf: Quit: Spruit_elf | ||
| [2010/07/11 10:31:50] @ Quit: docelic_: Ping timeout: 240 seconds | ||
| [2010/07/11 10:32:13] @ fbe__ joined channel #puppet | ||
| [2010/07/11 10:32:22] @ Quit: fbe_: Ping timeout: 245 seconds | ||
| [2010/07/11 10:32:26] @ physicspackage joined channel #puppet | ||
| [2010/07/11 10:34:42] @ bodepd joined channel #puppet | ||
| [2010/07/11 10:37:33] @ stewartl42 left channel #puppet () | ||
| [2010/07/11 10:38:30] @ Quit: physicspackage: Read error: Connection reset by peer | ||
| [2010/07/11 10:38:33] @ physicspackage_ joined channel #puppet | ||
| [2010/07/11 10:42:50] @ Quit: physicspackage_: Ping timeout: 240 seconds | ||
| [2010/07/11 10:43:24] @ emiddd_ joined channel #puppet | ||
| [2010/07/11 10:46:14] @ docelic_ joined channel #puppet | ||
| [2010/07/11 10:49:57] @ Quit: ckauhaus: Ping timeout: 252 seconds | ||
| [2010/07/11 10:57:29] @ physicspackage joined channel #puppet | ||
| [2010/07/11 10:58:21] @ Quit: physicspackage: Read error: Connection reset by peer | ||
| [2010/07/11 11:00:35] @ physicspackage joined channel #puppet | ||
| [2010/07/11 11:03:59] @ Quit: \ask: Remote host closed the connection | ||
| [2010/07/11 11:11:05] @ jab_doa joined channel #puppet | ||
| [2010/07/11 11:16:48] @ crdant joined channel #puppet | ||
| [2010/07/11 11:21:40] @ Quit: crdant: Client Quit | ||
| [2010/07/11 11:30:30] @ \ask joined channel #puppet | ||
| [2010/07/11 11:37:03] @ Quit: \ask: Remote host closed the connection | ||
| [2010/07/11 11:41:29] @ Quit: physicspackage: Read error: Connection reset by peer | ||
| [2010/07/11 11:41:37] @ physicspackage_ joined channel #puppet | ||
| [2010/07/11 11:45:36] @ Quit: physicspackage_: Read error: Connection reset by peer | ||
| [2010/07/11 11:46:07] @ physicspackage joined channel #puppet | ||
| [2010/07/11 11:49:35] @ \ask joined channel #puppet | ||
| [2010/07/11 11:51:18] @ Quit: physicspackage: Read error: Connection reset by peer | ||
| [2010/07/11 11:51:27] @ physicspackage_ joined channel #puppet | ||
| [2010/07/11 12:02:12] @ Quit: Alagar: Ping timeout: 240 seconds | ||
| [2010/07/11 12:02:22] @ Quit: bodepd: Quit: bodepd | ||
| [2010/07/11 12:12:30] @ lak joined channel #puppet | ||
| [2010/07/11 12:14:20] @ bodepd joined channel #puppet | ||
| [2010/07/11 12:22:13] @ Maliuta joined channel #puppet | ||
| [2010/07/11 12:25:39] @ Quit: cristim: Ping timeout: 252 seconds | ||
| [2010/07/11 12:26:10] @ Quit: lak: Quit: lak | ||
| [2010/07/11 12:33:08] @ Quit: robinbowes: Quit: Leaving | ||
| [2010/07/11 12:36:09] @ Quit: physicspackage_: Remote host closed the connection | ||
| [2010/07/11 12:47:56] @ robinbowes joined channel #puppet | ||
| [2010/07/11 12:49:55] @ OpenMedia joined channel #puppet | ||
| [2010/07/11 12:53:12] @ cristim joined channel #puppet | ||
| [2010/07/11 12:54:38] @ mclarke joined channel #puppet | ||
| [2010/07/11 12:59:52] @ Quit: ckdake: Remote host closed the connection | ||
| [2010/07/11 13:00:25] @ ckdake joined channel #puppet | ||
| [2010/07/11 13:00:25] @ Quit: ckdake: Changing host | ||
| [2010/07/11 13:00:25] @ ckdake joined channel #puppet | ||
| [2010/07/11 13:01:23] @ Quit: EXCHIM: Ping timeout: 246 seconds | ||
| [2010/07/11 13:28:26] @ cshields joined channel #puppet | ||
| [2010/07/11 13:29:19] <cshields> anyone around with dashboard experience? I've set it up per instructions multiple times on different distros running puppetmaster but I never get reports | ||
| [2010/07/11 13:30:42] @ Quit: project2501a: Remote host closed the connection | ||
| [2010/07/11 13:33:05] @ project2501a joined channel #puppet | ||
| [2010/07/11 13:35:28] @ Quit: bodepd: Quit: bodepd | ||
| [2022/07/11 13:45:26] @ Log closed by gepetto (log rotation) | ||
| [2010/07/11 13:54:15] @ Log started by gepetto | ||
| [2010/07/11 13:54:15] @ Joined channel #puppet | ||
| [2010/07/11 13:54:15] @ Topic is "Puppet 2.6.0rc1 released! http://tinyurl.com/27nxmu8 | Puppet Labs wants an Ops Engineer - http://bit.ly/cjroPr | http://docs.puppetlabs.com | Bugs & Feature Requests: http://bit.ly/ddjhPk" | ||
| [2010/07/11 13:54:15] @ Topic set by jamesturnbull!~jamesturn@pelin.lovedthanlost.net on Sat Jul 10 13:44:11 -0700 2010 | ||
| [2010/07/11 13:54:18] @ Mode +cnt by lindbohm.freenode.net | ||
| [2010/07/11 13:58:06] @ Log started by gepetto | ||
| [2010/07/11 13:58:06] @ Joined channel #puppet | ||
| [2010/07/11 13:58:06] @ Topic is "Puppet 2.6.0rc1 released! http://tinyurl.com/27nxmu8 | Puppet Labs wants an Ops Engineer - http://bit.ly/cjroPr | http://docs.puppetlabs.com | Bugs & Feature Requests: http://bit.ly/ddjhPk" | ||
| [2010/07/11 13:58:06] @ Topic set by jamesturnbull!~jamesturn@pelin.lovedthanlost.net on Sat Jul 10 13:44:12 -0700 2010 | ||
| [2010/07/11 13:58:09] @ Mode +cnt by gibson.freenode.net | ||
| [2010/07/11 13:58:43] @ jamestur1bull joined channel #puppet | ||
| [2010/07/11 13:59:28] @ Quit: jamesturnbull: Ping timeout: 276 seconds | ||
| [2010/07/11 13:59:34] @ Quit: jamestur1bull: Client Quit | ||
| [2010/07/11 14:00:31] @ Quit: physicspackage: Quit: Colloquy for iPhone - http://colloquy.mobi | ||
| [2010/07/11 14:01:15] @ jamesturnbull joined channel #puppet | ||
| [2010/07/11 14:03:10] @ Quit: ricky: Ping timeout: 276 seconds | ||
| [2010/07/11 14:03:17] @ Quit: jamesturnbull: Client Quit | ||
| [2010/07/11 14:03:40] @ jamesturnbull joined channel #puppet | ||
| [2010/07/11 14:09:29] @ ceren joined channel #puppet | ||
| [2010/07/11 14:14:04] @ ricky joined channel #puppet | ||
| [2010/07/11 14:21:53] @ labrown joined channel #puppet | ||
| [2010/07/11 14:24:43] @ ichristo joined channel #puppet | ||
| [2010/07/11 14:26:32] @ Quit: toi: Ping timeout: 240 seconds | ||
| [2010/07/11 14:26:55] @ Quit: ichristo: Client Quit | ||
| [2010/07/11 14:27:30] @ bug joined channel #puppet | ||
| [2010/07/11 14:27:41] @ ichristo joined channel #puppet | ||
| [2010/07/11 14:28:24] @ rcrowley joined channel #puppet | ||
| [2010/07/11 14:30:24] @ Quit: ichristo: Client Quit | ||
| [2010/07/11 14:44:23] @ cliff-hm joined channel #puppet | ||
| [2010/07/11 14:49:58] * jmslagle grabs 0.26 | ||
| [2010/07/11 14:50:09] <jmslagle> Need to package it epel style :) | ||
| [2010/07/11 14:52:43] <bdha> itym 2.6 ;) | ||
| [2010/07/11 14:53:12] @ Quit: labrown: Quit: Leaving | ||
| [2010/07/11 14:54:48] @ fredden joined channel #puppet | ||
| [2010/07/11 14:55:59] @ Determinist joined channel #puppet | ||
| [2010/07/11 14:56:50] @ carlasouza joined channel #puppet | ||
| [2010/07/11 15:00:14] <jmslagle> Oh yeah :P | ||
| [2010/07/11 15:00:22] <jmslagle> that's quite the version bump :P | ||
| [2010/07/11 15:00:25] <jmslagle> 0.25.5 to 2.6.0 :P | ||
| [2010/07/11 15:01:43] <jmslagle> Man tons of changes | ||
| [2010/07/11 15:03:20] @ thekad-afk is now known as thekad | ||
| [2010/07/11 15:04:36] @ thekad is now known as thekad-afk | ||
| [2010/07/11 15:07:24] @ clearls joined channel #puppet | ||
| [2010/07/11 15:08:06] @ Quit: clearls: Client Quit | ||
| [2010/07/11 15:09:03] @ Quit: jab_doa: Quit: Verlassend | ||
| [2010/07/11 15:09:48] @ spawnyd joined channel #puppet | ||
| [2010/07/11 15:09:55] @ poison joined channel #puppet | ||
| [2010/07/11 15:12:38] @ physicspackage joined channel #puppet | ||
| [2010/07/11 15:13:28] @ Quit: physicspackage: Read error: Connection reset by peer | ||
| [2010/07/11 15:13:33] @ KenjiP0p|away is now known as KenjiP0p | ||
| [2010/07/11 15:13:43] @ Quit: adrian_broher: Quit: Verlassend | ||
| [2010/07/11 15:13:47] @ physicspackage joined channel #puppet | ||
| [2010/07/11 15:16:35] @ rodnet joined channel #puppet | ||
| [2010/07/11 15:18:30] @ bodepd joined channel #puppet | ||
| [2010/07/11 15:28:52] @ drebs joined channel #puppet | ||
| [2010/07/11 15:29:02] @ Quit: kjetilho: Ping timeout: 245 seconds | ||
| [2010/07/11 15:29:08] <drebs> hello :) | ||
| [2010/07/11 15:29:16] <drebs> i'm having some problems with the provider for a host | ||
| [2010/07/11 15:29:19] <drebs> err: Could not run Puppet configuration client: Could not find a default provider for host | ||
| [2010/07/11 15:29:39] <drebs> another kind of log of the same error: | ||
| [2010/07/11 15:29:41] <drebs> Jul 11 19:20:06 cicera puppetd[3336]: Puppet::Type::Host::ProviderParsed: file /etc/hosts does not exist | ||
| [2010/07/11 15:29:44] <drebs> Jul 11 19:20:06 cicera puppetd[3336]: Could not run Puppet configuration client: Could not find a default provider for host | ||
| [2010/07/11 15:30:10] <drebs> (i hope not to be flooding), someone has a clue? :) | ||
| [2010/07/11 15:30:13] @ Quit: cliff-hm: Ping timeout: 258 seconds | ||
| [2010/07/11 15:30:19] <bodepd> drebs: what version? | ||
| [2010/07/11 15:30:36] <drebs> Version: 0.25.4-2~bpo50+1 | ||
| [2010/07/11 15:31:28] <bodepd> and I assume that /etc/hosts does not exist? | ||
| [2010/07/11 15:32:00] <drebs> i moved it out for testing purposes | ||
| [2010/07/11 15:32:23] <drebs> i first noticed the problem when i noticed there was no 127.0.0.1 localhost line on /etc/hosts for some nodes | ||
| [2010/07/11 15:32:42] <drebs> then i realizes that the problem was with the provider, as above | ||
| [2010/07/11 15:32:46] <drebs> *realized | ||
| [2010/07/11 15:33:49] <drebs> i wonder if there's any kind of environment variable or something that could be misleading puppet | ||
| [2010/07/11 15:34:10] <drebs> because the provider exists in its default location | ||
| [2010/07/11 15:34:34] <bodepd> I just recreated, looks like the default target file has to exist. | ||
| [2010/07/11 15:35:24] <bodepd> thats a litte surprising. | ||
| [2010/07/11 15:35:53] @ zorzar joined channel #puppet | ||
| [2010/07/11 15:36:24] @ Quit: zorzar_: Read error: Operation timed out | ||
| [2010/07/11 15:37:05] <drebs> bodepd, yeah, it looks like it created it! | ||
| [2010/07/11 15:37:13] <drebs> wow | ||
| [2010/07/11 15:38:14] <bodepd> it looks like /etc/hosts has to exist for the provider to work. | ||
| [2010/07/11 15:41:05] <drebs> bodepd, thanks for the help | ||
| [2010/07/11 15:41:20] <drebs> do you know if this is the expected behaviour? | ||
| [2010/07/11 15:41:24] <bodepd> I am reading the code now. not sure why this is the behavior. | ||
| [2010/07/11 15:41:43] <bodepd> I would expect it to create the target file if it does not exist. | ||
| [2010/07/11 15:41:47] <bodepd> for example: | ||
| [2010/07/11 15:42:24] <bodepd> http://pastie.org/1040097 | ||
| [2010/07/11 15:42:40] <bodepd> this fails if /etc/hosts doesnt exist, even though it shouldnt matter. | ||
| [2010/07/11 15:44:43] @ Quit: rodnet: Quit: rodnet | ||
| [2010/07/11 15:49:27] @ p3rror joined channel #puppet | ||
| [2010/07/11 15:50:54] <Volcane> prolly cos the prefetch fails if the initial target as set by the provider doesnt exist | ||
| [2010/07/11 15:51:05] <Volcane> will raise an exception during prefetch in the parsedfile | ||
| [2010/07/11 15:51:42] <Volcane> sems that way anyway | ||
| [2010/07/11 15:53:40] <bodepd> confine :exists => hosts | ||
| [2010/07/11 15:53:53] <bodepd> its coded that way... | ||
| [2010/07/11 15:55:03] @ KenjiP0p is now known as KenjiP0p|away | ||
| [2010/07/11 15:55:45] <bodepd> I removed the confine line, and ran a test without /etc/hosts, it creates a new file and adds the line too it. | ||
| [2010/07/11 16:06:27] <bodepd> drebs: I opened #4212 | ||
| [2010/07/11 16:06:28] <gepetto> bodepd: drebs: #4212 is http://projects.puppetlabs.com/issues/show/4212 "Puppet - Bug #4212: hosts fails with err: Could not find a default provider for host if /etc/hosts does not exist - Puppet Labs" | ||
| [2010/07/11 16:08:01] <drebs> bodepd, cool. :) | ||
| [2010/07/11 16:09:46] @ Djelibeybi joined channel #puppet | ||
| [2010/07/11 16:22:55] @ Quit: ceren: Quit: ceren | ||
| [2010/07/11 16:23:58] @ Quit: littleidea: Quit: littleidea | ||
| [2010/07/11 16:25:06] @ mfournier joined channel #puppet | ||
| [2010/07/11 16:27:53] @ Quit: bodepd: Quit: bodepd | ||
| [2010/07/11 16:28:22] @ littleidea joined channel #puppet | ||
| [2010/07/11 16:29:08] @ kc7zzv joined channel #puppet | ||
| [2010/07/11 16:29:45] @ Quit: mfournier: Ping timeout: 240 seconds | ||
| [2010/07/11 16:46:32] @ Quit: Demosthenes: Ping timeout: 248 seconds | ||
| [2010/07/11 17:04:14] @ rodjek joined channel #puppet | ||
| [2010/07/11 17:09:37] @ Quit: carlasouza: Ping timeout: 264 seconds | ||
| [2010/07/11 17:12:19] @ Quit: spawnyd: Ping timeout: 276 seconds | ||
| [2010/07/11 17:14:16] @ Quit: gebi: Ping timeout: 276 seconds | ||
| [2010/07/11 17:17:14] @ bodepd joined channel #puppet | ||
| [2010/07/11 17:44:26] @ Quit: kc7zzv: Quit: kc7zzv | ||
| [2010/07/11 17:59:39] @ Quit: littleidea: Quit: littleidea | ||
| [2010/07/11 18:00:58] @ littleidea joined channel #puppet | ||
| [2010/07/11 18:40:36] @ PaulWay[w] joined channel #puppet | ||
| [2010/07/11 18:45:39] @ physicspackage_ joined channel #puppet | ||
| [2010/07/11 18:48:16] <PaulWay[w]> Hi all! | ||
| [2010/07/11 18:48:28] <PaulWay[w]> I'm having problems with a few hosts where they can't contact the puppetmaster. | ||
| [2010/07/11 18:48:39] <PaulWay[w]> Due to broken DNS in that zone I'm using an entry in the /etc/hosts file for the puppetmaster. | ||
| [2010/07/11 18:48:56] @ Quit: physicspackage: Ping timeout: 246 seconds | ||
| [2010/07/11 18:49:00] <Djelibeybi> PaulWay[w]: I do that for all the hosts in my DMZ (there is no DNS in that zone) | ||
| [2010/07/11 18:49:19] <rodjek> PaulWay[w]: what's the error you're getting? | ||
| [2010/07/11 18:49:24] <PaulWay[w]> And for some reason puppet doesn't even try to contact the domain name server, it just decides that it can't resolve the name. | ||
| [2010/07/11 18:49:36] <PaulWay[w]> One moment... | ||
| [2010/07/11 18:49:42] <PaulWay[w]> err: Could not request certificate: getaddrinfo: Name or service not known | ||
| [2010/07/11 18:49:55] <Djelibeybi> PaulWay[w]: how are you starting Puppet? | ||
| [2010/07/11 18:50:06] <PaulWay[w]> In this case I'm running puppet -tvd --noop | ||
| [2010/07/11 18:50:12] <PaulWay[w]> sorry, puppetd | ||
| [2010/07/11 18:50:18] <Djelibeybi> PaulWay[w]: with a --server option? | ||
| [2010/07/11 18:50:29] <PaulWay[w]> No. | ||
| [2010/07/11 18:50:38] <PaulWay[w]> The server is correct in /etc/puppet/puppet.conf | ||
| [2010/07/11 18:50:52] <PaulWay[w]> (i.e. certname = puppetmaster.our.domain | ||
| [2010/07/11 18:50:52] <Djelibeybi> Does it work with --server? | ||
| [2010/07/11 18:51:05] <PaulWay[w]> I think it tried that but it failed. One moment, I'll try again. | ||
| [2010/07/11 18:51:06] <Djelibeybi> You need a server = puppetmaster.our.domain under [puppetd] | ||
| [2010/07/11 18:51:10] <rodjek> PaulWay[w]: server=puppetmaster.our.domain | ||
| [2010/07/11 18:51:14] * Djelibeybi does not use certname | ||
| [2010/07/11 18:51:44] <PaulWay[w]> rodjek: hmmmm. Odd. Wonder why we're using the wrong config then. | ||
| [2010/07/11 18:51:44] * rodjek does due to some unfortunate legacy crud | ||
| [2010/07/11 18:52:05] <Djelibeybi> PaulWay[w]: solar flare radiation. | ||
| [2010/07/11 18:52:27] <PaulWay[w]> ... hitting my brain and making me stupid, probably. | ||
| [2010/07/11 18:52:39] <Djelibeybi> PaulWay[w]: nah, I only know this because I'm working on slides for SAGE-AU | ||
| [2010/07/11 18:52:56] <Djelibeybi> That and I have ~100 DMZ puppet clients that all do the same thing. :) | ||
| [2010/07/11 18:53:36] <PaulWay[w]> rodjek: I've just tried that in the config file and it has the same problem as before. | ||
| [2010/07/11 18:53:48] <rodjek> interesting... | ||
| [2010/07/11 18:54:24] <PaulWay[w]> However the --server command has sent the certificate through, so I'm going to test it again now. | ||
| [2010/07/11 18:54:49] <Djelibeybi> PaulWay[w]: if --server works but server=fqdn doesn't, then I suspect your setting is in the wrong place in puppet.conf | ||
| [2010/07/11 18:55:20] @ Quit: bodepd: Quit: bodepd | ||
| [2010/07/11 18:55:20] <rodjek> yah, is it under the [puppetd] section? | ||
| [2010/07/11 18:56:15] <PaulWay[w]> I'm just trying to check out my authorised version from Subversion. | ||
| [2010/07/11 18:56:57] <PaulWay[w]> Probably I've got it in the wrong section. | ||
| [2010/07/11 19:00:02] @ carlasouza joined channel #puppet | ||
| [2010/07/11 19:00:43] @ ceren joined channel #puppet | ||
| [2010/07/11 19:01:41] @ ohadlevy joined channel #puppet | ||
| [2010/07/11 19:02:02] @ pinoyskull joined channel #puppet | ||
| [2010/07/11 19:04:21] <PaulWay[w]> Tell me, if a class sets a variable, do nodes that include that class also get that variable set? | ||
| [2010/07/11 19:04:48] @ Quit: physicspackage_: Quit: Colloquy for iPhone - http://colloquy.mobi | ||
| [2010/07/11 19:05:55] @ Quit: rcrowley: Quit: rcrowley | ||
| [2010/07/11 19:06:05] <Djelibeybi> PaulWay[w]: only in the class. | ||
| [2010/07/11 19:06:30] <Djelibeybi> PaulWay[w]: though, I believe you can specify the variable as $class::variable | ||
| [2010/07/11 19:08:24] <PaulWay[w]> Because that would explain a bunch of weirdness. | ||
| [2010/07/11 19:08:27] <PaulWay[w]> How annoying. | ||
| [2010/07/11 19:08:48] <PaulWay[w]> What I really need is to use subclassing. | ||
| [2010/07/11 19:08:53] <PaulWay[w]> But this hack will have to do for now. | ||
| [2010/07/11 19:09:08] @ Quit: ceren: Ping timeout: 260 seconds | ||
| [2010/07/11 19:10:08] <Djelibeybi> I have lots and lots of resources and I still haven't hit variable scoping issues. I must be the edge case that proves the rule or something. | ||
| [2010/07/11 19:10:44] <PaulWay[w]> So in my templates I have class foo-node inherits basenode { $foo = "yes, oh dog yes" }, and I have node | ||
| [2010/07/11 19:10:56] <PaulWay[w]> 'foo-node' { include foo-node } | ||
| [2010/07/11 19:11:02] <PaulWay[w]> foo-node doesn't get $foo set? | ||
| [2010/07/11 19:11:20] <PaulWay[w]> It gets $foo-node::foo set? | ||
| [2010/07/11 19:11:25] <rodjek> Djelibeybi: neither, but i tend to avoid using variables at all costs | ||
| [2010/07/11 19:11:38] <Djelibeybi> PaulWay[w]: that depends on where you're trying to refer to $foo, I suspect | ||
| [2010/07/11 19:11:46] <Djelibeybi> rodjek: same. I use Facts instead, most of the time | ||
| [2010/07/11 19:12:40] <rodjek> yup, facts or values that are passed down from type to type directly, rather than scoping magic | ||
| [2010/07/11 19:12:47] <PaulWay[w]> Yeah, this is where I need to find a better way of doing this stuff. | ||
| [2010/07/11 19:13:51] <Djelibeybi> PaulWay[w]: come to my Advanced Puppet tutorial and learn all about extending Facter. :) | ||
| [2010/07/11 19:14:34] <fenris02> Djelibeybi, simulcast, or in person? | ||
| [2010/07/11 19:14:36] <rodjek> heh, if only it wasn't in tasmania... | ||
| [2010/07/11 19:15:10] <Djelibeybi> fenris02: either. :) Come to Hobart, Tasmania in August for the full sensory experience. | ||
| [2010/07/11 19:15:22] <Djelibeybi> But I'm not sure if it is being recorded or not. That's up to the SAGE people. | ||
| [2010/07/11 19:15:34] <Djelibeybi> It will be in the new book though. | ||
| [2010/07/11 19:15:36] <fenris02> er, the travel bit is a bit out of the way 8) | ||
| [2010/07/11 19:19:29] @ physicspackage joined channel #puppet | ||
| [2010/07/11 19:19:35] @ Quit: physicspackage: Remote host closed the connection | ||
| [2010/07/11 19:30:30] <PaulWay[w]> Djelibeybi: curse you and your Tasmania. | ||
| [2010/07/11 19:31:18] <Djelibeybi> PaulWay[w]: I didn't realise Tasmania was mine. I shall rule with benevolent tyrrany. | ||
| [2010/07/11 19:32:04] <rodjek> It's only Tasmania, don't waste your benevolency... ;) | ||
| [2010/07/11 19:32:23] <PaulWay[w]> I really need to learn more about Puppet... | ||
| [2010/07/11 19:32:24] <PaulWay[w]> :-/ | ||
| [2010/07/11 19:32:55] <rodjek> Use it more, best way to learn :) | ||
| [2010/07/11 19:35:39] @ crdant joined channel #puppet | ||
| [2010/07/11 19:39:48] <PaulWay[w]> The problem is that I can use it but I don't think I've got good practices. | ||
| [2010/07/11 19:44:32] <rodjek> Discard "best practices" and come up with a way that works for you | ||
| [2010/07/11 19:51:47] <rodjek> to an extent of course, don't go completely crazy ;) | ||
| [2010/07/11 19:52:31] <fenris02> some of the lessons from scalability give nice ideas | ||
| [2010/07/11 19:52:39] @ yannlugrin joined channel #puppet | ||
| [2010/07/11 19:53:12] <PaulWay[w]> The problem is that I've done a lot of work with variables to set things like file fallback (e.g. file-$hostname, file-$group, file-$subdomain, file) | ||
| [2010/07/11 19:53:18] <PaulWay[w]> But those things are starting to break. | ||
| [2010/07/11 19:53:23] <PaulWay[w]> And I'm not sure why. | ||
| [2010/07/11 19:53:52] <rodjek> hrrm, can you pastebin some chunks of your manifests? | ||
| [2010/07/11 19:54:10] @ Quit: yannL: Ping timeout: 276 seconds | ||
| [2010/07/11 19:54:23] <PaulWay[w]> I'm just learning about being able to override resource settings, and that seems a much more robust way of doing it. | ||
| [2010/07/11 19:54:30] <gniks> would anyone be interested in a How-To (with code) to implement a dev/production HA puppet cluster? I am developing such an infrastructure for the company i am working for now, and would like to share it if there is an interest | ||
| [2010/07/11 19:54:59] <Djelibeybi> gniks: yes! | ||
| [2010/07/11 19:55:00] <fenris02> what is the 'dump vars' command? I know i've seen it, and i have a vague idea of the variable i want to use (lsbversion i think), but i'd like to verify it. | ||
| [2010/07/11 19:55:14] <fenris02> gniks, yes please | ||
| [2010/07/11 19:55:15] <rodjek> gniks: pop it on the wiki please :) | ||
| [2010/07/11 19:55:20] <gniks> awesome :) | ||
| [2010/07/11 19:55:24] <gniks> it will take me a bit to complete | ||
| [2010/07/11 19:55:32] <gniks> my team is understaffed currently :( | ||
| [2010/07/11 19:55:38] <gniks> but its a work in progress | ||
| [2010/07/11 19:55:46] <gniks> it takes the current HA wiki to the next level | ||
| [2010/07/11 19:56:02] <rodjek> out of curiousity, what stack are you using for HA? openais & pacemaker? | ||
| [2010/07/11 19:56:46] <gniks> mon and heartbeat | ||
| [2010/07/11 19:56:56] <gniks> but that part can be tore out and replaced with your own touch | ||
| [2010/07/11 19:57:57] @ physicspackage joined channel #puppet | ||
| [2010/07/11 20:00:31] <PaulWay[w]> But the thing is I still want to have the hostname override thing, and I don't want to have a subclass for each host. | ||
| [2010/07/11 20:00:44] <PaulWay[w]> Anyway, I'll try to pastebin what I can. Maybe that'll help me understand it. | ||
| [2010/07/11 20:00:51] <PaulWay[w]> Actually, I'll do that after lunch. | ||
| [2010/07/11 20:01:40] <gniks> i also have wrote a set of scripts, that allow a dev environment to have multiple people working in it, but to prevent people from stepping on each others toes. Then one is done working on a module and it is ready for production, send it off to the production cluster for implementation | ||
| [2010/07/11 20:02:41] <gniks> that part is optional too :p but currently hooks in with mercurial but could be ported to svn or any other revision control system that allows scripts to hook into different phases of a check in | ||
| [2010/07/11 20:05:00] @ bagira joined channel #puppet | ||
| [2010/07/11 20:05:09] @ shenson|lappy joined channel #puppet | ||
| [2010/07/11 20:05:59] <fenris02> n/m, found it. 'facter -py' | ||
| [2010/07/11 20:06:43] @ bagira left channel #puppet ("Leaving") | ||
| [2010/07/11 20:14:38] @ Quit: bug: Quit: bug | ||
| [2010/07/11 20:17:25] @ bug joined channel #puppet | ||
| [2010/07/11 20:29:16] @ Quit: carlasouza: Quit: zZzZ | ||
| [2010/07/11 20:32:11] @ jaredrhine joined channel #puppet | ||
| [2010/07/11 20:33:39] @ Quit: ashp: Read error: Connection reset by peer | ||
| [2010/07/11 20:34:23] @ ashp joined channel #puppet | ||
| [2010/07/11 20:35:45] @ Quit: masterzen: Quit: Au revoir! | ||
| [2010/07/11 20:36:53] @ Quit: matti: Ping timeout: 258 seconds | ||
| [2010/07/11 20:37:55] @ Quit: danderson: Ping timeout: 276 seconds | ||
| [2010/07/11 20:39:02] @ Quit: ashp: Ping timeout: 252 seconds | ||
| [2010/07/11 20:40:59] <fenris02> Is there a way to teach puppet how to manage selinux confined users ? | ||
| [2010/07/11 20:41:14] <fenris02> I see the other selinux commands, but not semannage | ||
| [2010/07/11 20:44:04] @ rcrowley joined channel #puppet | ||
| [2010/07/11 20:48:27] <rodjek> fenris02: create a defined type that wraps around semanage? | ||
| [2010/07/11 20:50:56] <fenris02> rodjek, i was hoping for an example ... I started using puppet about 2 days ago. | ||
| [2010/07/11 20:53:20] <rodjek> sure | ||
| [2010/07/11 20:53:43] <rodjek> can you send me an example of what you're trying to do and i'll see what i can sketch up | ||
| [2010/07/11 20:53:47] @ KenjiP0p|away is now known as KenjiP0p | ||
| [2010/07/11 20:53:56] <fenris02> the only thing i know how right now is to use exec 'semanage login -l' and look for the uid, if not found - 'semanage login -a -S targeted -s user_u -r s0 ${guests}' | ||
| [2010/07/11 20:54:58] <fenris02> proper docs at - http://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/chap-Security-Enhanced_Linux-Confining_Users.html | ||
| [2010/07/11 20:56:16] <fenris02> ("user_u" above can be any one of: guest_u, unconfined_u, staff_u, user_u for general use) | ||
| [2010/07/11 20:56:16] <rodjek> ok | ||
| [2010/07/11 20:56:42] @ Quit: Bass10: Ping timeout: 265 seconds | ||
| [2010/07/11 20:58:14] @ matti joined channel #puppet | ||
| [2010/07/11 20:58:14] @ Quit: matti: Changing host | ||
| [2010/07/11 20:58:14] @ matti joined channel #puppet | ||
| [2010/07/11 21:00:18] <rodjek> fenris02: something like http://gist.github.com/472123 ? | ||
| [2010/07/11 21:01:02] <rodjek> it's not fantastic but it might do what you're after | ||
| [2010/07/11 21:04:35] <fenris02> rodjek, *nod* that's about all i had an idea of how to do it really. i was hoping someone had written something akin to selmodule or selboolean | ||
| [2010/07/11 21:06:01] @ masterzen joined channel #puppet | ||
| [2010/07/11 21:07:07] <rodjek> hmm, semanage is much more complex beast | ||
| [2010/07/11 21:08:15] @ ashp joined channel #puppet | ||
| [2010/07/11 21:09:39] @ ceren joined channel #puppet | ||
| [2010/07/11 21:12:22] @ danderson joined channel #puppet | ||
| [2010/07/11 21:18:28] @ Quit: ceren: Ping timeout: 260 seconds | ||
| [2010/07/11 21:19:26] <rodjek> fenris02: you can build on that though to add more functionality | ||
| [2010/07/11 21:19:41] <rodjek> check out that url again for example | ||
| [2010/07/11 21:21:01] <fenris02> that's spiffy. had not thought of that yet. | ||
| [2010/07/11 21:21:15] <rodjek> although it would be easier in the long run to make it a native type, you get to apply a bit more logic to it | ||
| [2010/07/11 21:21:46] * fenris02 nods | ||
| [2010/07/11 21:24:52] @ Quit: ezekiel: Read error: Operation timed out | ||
| [2010/07/11 21:24:56] @ ezekiel joined channel #puppet | ||
| [2010/07/11 21:26:36] <PaulWay[w]> Right, now to write up a paste about the problems I'm having. | ||
| [2010/07/11 21:28:34] @ blahdeblah joined channel #puppet | ||
| [2010/07/11 21:28:36] @ Quit: ckdake: Ping timeout: 265 seconds | ||
| [2010/07/11 21:28:37] @ Quit: shenson|lappy: Quit: WeeChat 0.3.2 | ||
| [2010/07/11 21:30:23] <fenris02> rodjek, awesome start. this would be marginally better, http://fpaste.org/2U6x/ - but you are exactly right, it would be far better to have a native type | ||
| [2010/07/11 21:33:10] @ Quit: fredden: Ping timeout: 276 seconds | ||
| [2010/07/11 21:34:34] @ ckdake joined channel #puppet | ||
| [2010/07/11 21:34:35] @ Quit: ckdake: Changing host | ||
| [2010/07/11 21:34:35] @ ckdake joined channel #puppet | ||
| [2010/07/11 21:35:19] @ ceren joined channel #puppet | ||
| [2010/07/11 21:35:28] @ Quit: ceren: Client Quit | ||
| [2010/07/11 21:35:35] <rodjek> fenris02: nice | ||
| [2010/07/11 21:35:53] <fenris02> oops. missing quotes. | ||
| [2010/07/11 21:36:50] <rodjek> unfortunately, i've never really played around with selinux, but i can whip up a quick native type based on your code that you can extend if you want | ||
| [2010/07/11 21:37:28] <fenris02> rodjek, that would be awesome actually. | ||
| [2010/07/11 21:38:15] <fenris02> the real docs are above, my abuse of 'login' is really trivial, but it happens to work well. | ||
| [2010/07/11 21:38:25] <rodjek> righto, i'll do that tonight, give me a poke around about this time tomorrow | ||
| [2010/07/11 21:39:12] <rodjek> in the meantime, i should probably go and do a wee bit of work ;) | ||
| [2010/07/11 21:39:14] <fenris02> rodjek, neat! i'm one of those folks that doesnt sleep, so almost any time of day would work. | ||
| [2010/07/11 21:39:52] <rodjek> heh, what timezone are you in? | ||
| [2010/07/11 21:40:00] <fenris02> Sun Jul 11 23:40:00 CDT 2010 | ||
| [2010/07/11 21:40:08] <rodjek> ah | ||
| [2010/07/11 21:40:18] <rodjek> Mon Jul 12 14:40:54 EST 2010 | ||
| [2010/07/11 21:40:52] <fenris02> how odd. i would have thought there was an 'A' prefix to that tz. confusing having two of them. | ||
| [2010/07/11 21:41:06] <rodjek> yeah, it would be nice | ||
| [2010/07/11 21:41:17] @ KenjiP0p is now known as KenjiP0p|away | ||
| [2010/07/11 21:42:19] @ Quit: OpenMedia: Quit: Leaving. | ||
| [2010/07/11 21:42:50] @ Quit: mclarke: Quit: mclarke | ||
| [2010/07/11 21:47:05] @ fredden joined channel #puppet | ||
| [2010/07/11 21:51:27] @ Quit: ahuman: Read error: Connection reset by peer | ||
| [2010/07/11 21:52:11] <PaulWay[w]> Right, I've put all the bits I think are relevant together in http://fpaste.org/aX32/ | ||
| [2010/07/11 21:52:24] @ Quit: wilmoore: Remote host closed the connection | ||
| [2010/07/11 21:52:33] <PaulWay[w]> So the host imports a config which includes the sudo class. | ||
| [2010/07/11 21:53:07] @ Quit: matti: Ping timeout: 276 seconds | ||
| [2010/07/11 21:53:10] @ matti joined channel #puppet | ||
| [2010/07/11 21:53:10] @ Quit: matti: Changing host | ||
| [2010/07/11 21:53:10] @ matti joined channel #puppet | ||
| [2010/07/11 21:53:42] <PaulWay[w]> Sudo defines (via multifile) the configuration for the /etc/sudoers file. | ||
| [2010/07/11 21:54:38] @ KenjiP0p|away is now known as KenjiP0p | ||
| [2010/07/11 21:54:56] <fenris02> line 45, i would use "${src}-${project}${ext}" instead to avoid confusion. perhaps it's not required. | ||
| [2010/07/11 21:55:40] @ Quit: sebas891: Ping timeout: 265 seconds | ||
| [2010/07/11 21:55:49] @ Quit: ashp: Read error: Connection reset by peer | ||
| [2010/07/11 21:55:50] <PaulWay[w]> Yeah, that would probably make things nicer. Good idea. | ||
| [2010/07/11 21:55:52] @ ashp joined channel #puppet | ||
| [2010/07/11 21:56:38] <fenris02> does rhel5 have /etc/sudoers.d/ ? (might be only in 6) | ||
| [2010/07/11 21:56:50] <Djelibeybi> PaulWay[w]: if you need $project to be valid in std_config and sudo, you should declare it first. | ||
| [2010/07/11 21:57:25] <PaulWay[w]> fenris02: I think it's just /etc/sudoers in RHEL 5. | ||
| [2010/07/11 21:57:30] <PaulWay[w]> Djelibeybi: How? | ||
| [2010/07/11 21:57:41] <Djelibeybi> PaulWay[w]: just put it before the include lines in basenode | ||
| [2010/07/11 21:58:01] <PaulWay[w]> Before the includes? | ||
| [2010/07/11 21:58:21] <PaulWay[w]> Aaaaahhhhh. | ||
| [2010/07/11 21:58:27] <PaulWay[w]> The light beginneth to dawn. | ||
| [2010/07/11 21:58:39] <Djelibeybi> Though, I now see what you're trying to do | ||
| [2010/07/11 21:58:53] <PaulWay[w]> I hope it's not too painful. | ||
| [2010/07/11 21:58:53] <Djelibeybi> I missed the $project being set in your node block as well | ||
| [2010/07/11 21:59:18] <PaulWay[w]> So that variable should carry through? It doesn't have some kind of scope? | ||
| [2010/07/11 21:59:33] <Djelibeybi> It does have scope. | ||
| [2010/07/11 21:59:44] <Djelibeybi> I'm just too distracted right now to work out where it will carry to | ||
| [2010/07/11 21:59:50] <Djelibeybi> (Sorry, got a million calls happening) | ||
| [2010/07/11 21:59:57] <PaulWay[w]> Sorry, no problems. | ||
| [2010/07/11 22:00:41] <Djelibeybi> PaulWay[w]: btw, you'll want to change the paths to puppet:///module/$modulename/ for 0.25.x :) | ||
| [2010/07/11 22:00:59] <Djelibeybi> (Which is a complete aside and has nothing to do with your actual issue) | ||
| [2010/07/11 22:01:07] @ Quit: masterzen: Ping timeout: 276 seconds | ||
| [2010/07/11 22:01:21] <Djelibeybi> PaulWay[w]: btw again, does this not work? If not, how does it fail? | ||
| [2010/07/11 22:01:52] @ Quit: matti: Ping timeout: 260 seconds | ||
| [2010/07/11 22:01:58] @ Quit: ashp: Ping timeout: 265 seconds | ||
| [2010/07/11 22:02:23] @ Quit: danderson: Ping timeout: 260 seconds | ||
| [2010/07/11 22:05:53] <PaulWay[w]> What happens is that host1 gets the sudo/files/sudoers file and not sudo/files/sudoers-xml file | ||
| [2010/07/11 22:06:45] <Djelibeybi> PaulWay[w]: add a notify { "Gateway: $gateway": } into the define to see if its being passed in | ||
| [2010/07/11 22:07:09] <PaulWay[w]> Aaaaahh, that's how to do the debugging. | ||
| [2010/07/11 22:07:23] <Djelibeybi> Yes, copious use of notify {} | ||
| [2010/07/11 22:07:31] <Djelibeybi> You should get a log entry for that | ||
| [2010/07/11 22:08:33] <PaulWay[w]> Are you thinking "Project: $project"? | ||
| [2010/07/11 22:08:44] <Djelibeybi> PaulWay[w]: probably. ;-) | ||
| [2010/07/11 22:10:40] @ lak joined channel #puppet | ||
| [2010/07/11 22:11:25] @ Quit: \ask: Remote host closed the connection | ||
| [2010/07/11 22:12:25] @ Quit: physicspackage: Quit: Colloquy for iPhone - http://colloquy.mobi | ||
| [2010/07/11 22:13:27] <PaulWay[w]> Odd. | ||
| [2010/07/11 22:13:32] <PaulWay[w]> I'm not seeing any notifications at all. | ||
| [2010/07/11 22:13:56] <PaulWay[w]> I'm assuming they should be vaguely near where puppet diffs the file changes. | ||
| [2010/07/11 22:14:22] <Djelibeybi> PaulWay[w]: notify{} is like any other resource. You should see it fire as puppet actions it | ||
| [2010/07/11 22:14:49] @ Quit: Peanut: Read error: Operation timed out | ||
| [2010/07/11 22:14:51] @ Peanut joined channel #puppet | ||
| [2010/07/11 22:15:16] <PaulWay[w]> Even with puppetd -td --noop? | ||
| [2010/07/11 22:15:26] <Djelibeybi> Yup | ||
| [2010/07/11 22:15:29] <PaulWay[w]> And version 0.25.2? | ||
| [2010/07/11 22:15:32] <Djelibeybi> Yup | ||
| [2010/07/11 22:15:50] @ Quit: project2501a: Quit: Leaving | ||
| [2010/07/11 22:15:53] <PaulWay[w]> Well, this is completely bizarre then. | ||
| [2010/07/11 22:16:49] <Djelibeybi> PaulWay[w]: are you seeing the file resource for /etc/sudoers? Did you put the notify{} into the define? | ||
| [2010/07/11 22:16:51] @ project2501a joined channel #puppet | ||
| [2010/07/11 22:17:03] <PaulWay[w]> The notify is in the define. | ||
| [2010/07/11 22:18:36] <PaulWay[w]> Ah, stupid me, I "corrected" the define to remove the trailing colon. | ||
| [2010/07/11 22:18:50] @ ashp joined channel #puppet | ||
| [2010/07/11 22:19:06] @ Quit: littleidea: Quit: littleidea | ||
| [2010/07/11 22:19:39] @ physicspackage joined channel #puppet | ||
| [2010/07/11 22:19:54] <PaulWay[w]> Ah. Hmmm. I can't use that Notify more than once. | ||
| [2010/07/11 22:19:58] <PaulWay[w]> I need to print them all out in one go. | ||
| [2010/07/11 22:20:04] @ Quit: physicspackage: Client Quit | ||
| [2010/07/11 22:20:11] @ littleidea joined channel #puppet | ||
| [2010/07/11 22:20:25] @ masterzen joined channel #puppet | ||
| [2010/07/11 22:20:44] @ danderson joined channel #puppet | ||
| [2010/07/11 22:20:44] @ matti joined channel #puppet | ||
| [2010/07/11 22:20:45] @ Quit: matti: Changing host | ||
| [2010/07/11 22:20:45] @ matti joined channel #puppet | ||
| [2010/07/11 22:21:07] @ Quit: wilco: Read error: Operation timed out | ||
| [2010/07/11 22:22:23] <PaulWay[w]> OK, well I can see that the $project isn't set to "xml". | ||
| [2010/07/11 22:22:30] <PaulWay[w]> It's set to "no" | ||
| [2010/07/11 22:22:45] <PaulWay[w]> Which sort of tells me what I knew already - the question is why... | ||
| [2010/07/11 22:22:48] @ Quit: achester: Ping timeout: 260 seconds | ||
| [2010/07/11 22:22:48] <PaulWay[w]> Hmmm. | ||
| [2010/07/11 22:23:25] @ achester joined channel #puppet | ||
| [2010/07/11 22:23:52] @ Quit: anakha: Ping timeout: 276 seconds | ||
| [2010/07/11 22:24:14] @ anakha joined channel #puppet | ||
| [2010/07/11 22:26:56] @ wilco joined channel #puppet | ||
| [2010/07/11 22:27:26] @ physicspackage joined channel #puppet | ||
| [2010/07/11 22:27:51] @ Quit: physicspackage: Remote host closed the connection | ||
| [2010/07/11 22:29:21] @ Quit: yannlugrin: Remote host closed the connection | ||
| [2010/07/11 22:29:52] <Djelibeybi> PaulWay[w]: is there any way you can create facts for those values? Facts are global through the manifests | ||
| [2010/07/11 22:30:24] <PaulWay[w]> Probably - some of the information is there on the host. I'm just not sure how to do that. | ||
| [2010/07/11 22:30:32] * PaulWay[w] goes and reads up on creating facts. | ||
| [2010/07/11 22:32:03] <PaulWay[w]> The hostname I can probably do. | ||
| [2010/07/11 22:32:05] <sejo> morning all | ||
| [2010/07/11 22:32:16] <Djelibeybi> PaulWay[w]: hostname is already a fact | ||
| [2010/07/11 22:32:25] <Djelibeybi> $fqdn and $hostname and $domainname | ||
| [2010/07/11 22:32:51] <PaulWay[w]> Ah. | ||
| [2010/07/11 22:32:53] <PaulWay[w]> Interesting. | ||
| [2010/07/11 22:33:19] <PaulWay[w]> So part of that has been working already despite my heavy-handed attempts at kludging it together. | ||
| [2010/07/11 22:33:42] <Djelibeybi> PaulWay[w]: run "facter" on the command line of any node. You'll see a list of all the facts and their value | ||
| [2010/07/11 22:33:50] <Djelibeybi> Every fact is available in the manifest as $fact | ||
| [2010/07/11 22:34:15] <PaulWay[w]> Righto. | ||
| [2010/07/11 22:34:17] <PaulWay[w]> Hmmm. | ||
| [2010/07/11 22:35:25] @ jesusaur joined channel #puppet | ||
| [2010/07/11 22:35:28] <sejo> can I do something like this : list = ('bleh','blah',) for each x in list { <execute a recipe> } ? | ||
| [2010/07/11 22:35:57] <PaulWay[w]> Think in terms of functional programming, not in imperative terms. | ||
| [2010/07/11 22:36:59] <Djelibeybi> sejo: yes, you can pass an array into a define | ||
| [2010/07/11 22:37:10] <sejo> Djelibeybi: thanks! | ||
| [2010/07/11 22:39:44] <fenris02> Djelibeybi, how does that work if the define has params? | ||
| [2010/07/11 22:40:02] <Djelibeybi> fenris02: with difficulty. :) | ||
| [2010/07/11 22:40:21] <Djelibeybi> fenris02: but there is support for hashes in 2.6, so you should checkout the RC and play with that | ||
| [2010/07/11 22:40:29] <rodjek> nah, doesn't look like it | ||
| [2010/07/11 22:40:37] <rodjek> bah, wrong window | ||
| [2010/07/11 22:40:43] <fenris02> Djelibeybi, oh, sweet! | ||
| [2010/07/11 22:42:49] @ Quit: rcrowley: *.net *.split | ||
| [2010/07/11 22:42:49] @ Quit: pinoyskull: *.net *.split | ||
| [2010/07/11 22:42:50] @ Quit: drebs: *.net *.split | ||
| [2010/07/11 22:42:50] @ Quit: eric0: *.net *.split | ||
| [2010/07/11 22:42:50] @ Quit: jesusaurus: *.net *.split | ||
| [2010/07/11 22:45:09] @ shenson|lappy joined channel #puppet | ||
| [2010/07/11 22:45:25] @ shenson|lappy is now known as shenson | ||
| [2010/07/11 22:46:49] @ Quit: wilco: *.net *.split | ||
| [2010/07/11 22:46:49] @ Quit: robinbowes: *.net *.split | ||
| [2010/07/11 22:46:50] @ Quit: chadh: *.net *.split | ||
| [2010/07/11 22:46:50] @ Quit: shine: *.net *.split | ||
| [2010/07/11 22:46:50] @ Quit: mboyd: *.net *.split | ||
| [2010/07/11 22:46:50] @ Quit: kuh: *.net *.split | ||
| [2010/07/11 22:46:50] @ Quit: Roksteady: *.net *.split | ||
| [2010/07/11 22:49:23] <PaulWay[w]> Djelibeybi: short of inventing facts for everything (the long term solution), is there something that I should be doing that is a short-term solution? | ||
| [2010/07/11 22:49:58] <Djelibeybi> PaulWay[w]: not sure. It's obviously a variable scoping issue, so you should read up on that and try and work out how to get the variables into the define. | ||
| [2010/07/11 22:50:04] <Djelibeybi> You may have to pass them in as parameters, for example | ||
| [2010/07/11 22:50:14] * PaulWay[w] winces | ||
| [2010/07/11 22:50:18] <Djelibeybi> Essentially, use notify to work out where the variable disappears and how to retrieve it | ||
| [2010/07/11 22:51:22] @ tuf joined channel #puppet | ||
| [2010/07/11 22:53:54] @ wilco joined channel #puppet | ||
| [2010/07/11 22:54:03] <PaulWay[w]> Let's experiment. | ||
| [2010/07/11 22:57:33] @ Quit: littleidea: Quit: littleidea | ||
| [2010/07/11 22:59:28] @ hy is now known as ] | ||
| [2010/07/11 23:00:22] <PaulWay[w]> Djelibeybi: My problem here is that I'm not sure what I'm doing tells me anything I can make sense of. | ||
| [2010/07/11 23:00:37] <Djelibeybi> PaulWay[w]: you've just described most of my life. | ||
| [2010/07/11 23:00:52] <PaulWay[w]> Well, there is that greater problem. | ||
| [2010/07/11 23:01:23] <PaulWay[w]> Does my ritually eating a doughnut last thing before bedtime help the sun to rise in the morning? | ||
| [2010/07/11 23:01:24] <Djelibeybi> I have variable scoping issues. :) | ||
| [2010/07/11 23:01:37] <PaulWay[w]> I don't know, but I'm afraid to not to... ;-) | ||
| [2010/07/11 23:01:46] <Djelibeybi> PaulWay[w]: the only way to test is to not eat a donut and see if we're stuck in perpetual darkness. | ||
| [2010/07/11 23:01:52] <Djelibeybi> If anyone complains, tell them it's for science. | ||
| [2010/07/11 23:02:10] <PaulWay[w]> But then what? What if I doom the earth to a cold, lingering death and there's nothing I can do to start it again? | ||
| [2010/07/11 23:02:20] <PaulWay[w]> How could I ethically take that risk? | ||
| [2010/07/11 23:02:33] <PaulWay[w]> Tea. | ||
| [2010/07/11 23:08:19] @ Quit: fredden: Quit: Leaving | ||
| [2010/07/11 23:09:26] @ AK joined channel #puppet | ||
| [2010/07/11 23:09:32] <AK> Hi | ||
| [2010/07/11 23:12:03] <PaulWay[w]> iH! | ||
| [2010/07/11 23:12:04] <AK> Can't connect to MySQL server on 'localhost' (111) --------- This is the error i am observing when I try http://localhost:3000/ for using the 'puppet dashboard' had any one seen this error before | ||
| [2010/07/11 23:12:30] <PaulWay[w]> Often it tells you that it can't connect to the MySQL server. | ||
| [2010/07/11 23:13:03] <PaulWay[w]> At that point I usually apply the standard tests such as: can I connect to the MySQL server in other ways, are the credentials right, and so on. | ||
| [2010/07/11 23:14:17] <AK> PaulWay: can you please tell me, how could I test that | ||
| [2010/07/11 23:14:35] <PaulWay[w]> The MySQL command-line client is often useful. | ||
| [2010/07/11 23:15:08] @ Quit: shenson: Quit: WeeChat 0.3.2 | ||
| [2010/07/11 23:16:23] @ Quit: fbe__: Ping timeout: 265 seconds | ||
| [2010/07/11 23:22:59] @ kenneho joined channel #puppet | ||
| [2010/07/11 23:23:00] @ Quit: lak: Quit: lak | ||
| [2010/07/11 23:23:45] @ littleidea joined channel #puppet | ||
| [2010/07/11 23:28:12] <PaulWay[w]> OK, something is really weird here. | ||
| [2010/07/11 23:28:29] <PaulWay[w]> Some files have project set to "xml", and some have it set to "none". | ||
| [2010/07/11 23:31:26] <AK> the puppet installation doesn't say anything about mysql server startup | ||
| [2010/07/11 23:31:35] <AK> or am I missing somehing | ||
| [2010/07/11 23:31:52] <AK> I mean puppet dash board | ||
| [2010/07/11 23:32:24] <AK> can't find the process mysql on my server | ||
| [2010/07/11 23:33:15] @ Quit: alban2: Ping timeout: 240 seconds | ||
| [2010/07/11 23:33:35] <PaulWay[w]> Well, mine doesn't use a MySQL server... | ||
| [2010/07/11 23:34:00] <PaulWay[w]> Are you using storeconfigs? | ||
| [2010/07/11 23:34:16] <PaulWay[w]> (hint: check /etc/puppet/puppet.conf on the puppetmaster) | ||
| [2010/07/11 23:36:00] <AK> storeconfigs, nope | ||
| [2010/07/11 23:36:16] <PaulWay[w]> Odd. | ||
| [2010/07/11 23:36:31] <PaulWay[w]> I don't know much about this 'puppet dashboard' of which you speak. | ||
| [2010/07/11 23:41:09] <AK> PaulWay: thank you very much for your help | ||
| [2010/07/11 23:41:55] @ alcy joined channel #puppet | ||
| [2010/07/11 23:42:22] <PaulWay[w]> Well, I wasn't very helpful, sorry. | ||
| [2010/07/11 23:45:47] @ sdog joined channel #puppet | ||
| [2010/07/11 23:45:50] @ Quit: sdog: Changing host | ||
| [2010/07/11 23:45:50] @ sdog joined channel #puppet | ||
| [2010/07/11 23:47:04] <sejo> can someone explain what I do wrong (http://dpaste.com/217162/) I get this error: err: Could not parse for environment production: Syntax error at '}'; expected '}' at /etc/puppet/git/modules/modprobe/manifests/init.pp:33 | ||
| [2010/07/11 23:47:50] <henk> sounds like a syntax error in that file to me? | ||
| [2010/07/11 23:49:04] <PaulWay[w]> Which line does 33 correspond to in the paste? | ||
| [2010/07/11 23:49:18] <henk> i'd say line 33 +- 10 lines... | ||
| [2010/07/11 23:49:21] @ Quit: littleidea: Quit: littleidea | ||
| [2010/07/11 23:49:22] <henk> or just the complete file... | ||
| [2010/07/11 23:49:42] <PaulWay[w]> See, there isn't a line 33 in the paste. | ||
| [2010/07/11 23:49:44] <PaulWay[w]> Or a line 23. | ||
| [2010/07/11 23:49:45] <sejo> it's line 17 in the paste | ||
| [2010/07/11 23:49:54] <PaulWay[w]> Right. | ||
| [2010/07/11 23:50:07] <PaulWay[w]> I suspect that the problem there is that defines take a single item and you're passing it a list. | ||
| [2010/07/11 23:50:41] <sejo> I was following this: http://groups.google.com/group/puppet-users/browse_thread/thread/37c14950687695c8 | ||
| [2010/07/11 23:50:42] <PaulWay[w]> You need to do disable_fs{'cramfs'} etc. for each of your file systems. | ||
| [2010/07/11 23:51:11] <sejo> there they say I can just pass the array | ||
| [2010/07/11 23:51:36] <PaulWay[w]> No-one else agrees in that thread that that's the way to do it. | ||
| [2010/07/11 23:51:55] <PaulWay[w]> I suspect that's not actually true. | ||
| [2010/07/11 23:52:01] <PaulWay[w]> Even though it was posted on the internet. | ||
| [2010/07/11 23:52:27] <sejo> ok, I'll rewrite it, it's a shame though would be cooler if such a thing is possible | ||
| [2010/07/11 23:52:28] <PaulWay[w]> Puppet isn't an imperative language - it doesn't have 'commands' per se. | ||
| [2010/07/11 23:54:08] @ Quit: Djelibeybi: Ping timeout: 246 seconds | ||
| [2010/07/11 23:56:14] @ bobinabottle joined channel #puppet | ||
| [2010/07/11 23:56:32] <sejo> hmm by removing the $fs and running the disable_fs for each fs, still gives me syntax error... weird |
Generated by irclog2html.py 2.8 by Marius Gedminas - find it at mg.pov.lt!