Friday, 2011-12-16

[2011/12/16 00:00:34] @ Log started by gepetto
[2011/12/16 00:00:34] @ Quit: joshcooper: Quit: joshcooper
[2011/12/16 00:06:12] @ tremble joined channel #puppet
[2011/12/16 00:06:20] @ Quit: langworthy: Quit: langworthy
[2011/12/16 00:09:38] @ rmckee joined channel #puppet
[2011/12/16 00:14:20] @ Quit: joe-mac: Remote host closed the connection
[2011/12/16 00:14:32] @ raphdg joined channel #puppet
[2011/12/16 00:16:54] @ Quit: choonming: Quit: Leaving
[2011/12/16 00:21:47] @ larstobi joined channel #puppet
[2011/12/16 00:24:07] @ joe-mac joined channel #puppet
[2011/12/16 00:28:40] <rtyler> anybody using the nagios resource types around to offer some help?
[2011/12/16 00:28:49] <rtyler> they're not as idempotent as I would like it seems <_<
[2011/12/16 00:30:09] @ Quit: toobulkeh:
[2011/12/16 00:30:15] @ JayTaph joined channel #puppet
[2011/12/16 00:30:19] @ KristianDK joined channel #puppet
[2011/12/16 00:32:19] @ nan0r joined channel #puppet
[2011/12/16 00:33:13] @ Quit: matti: Quit: Reconnecting
[2011/12/16 00:33:17] @ matti joined channel #puppet
[2011/12/16 00:33:18] @ Quit: matti: Changing host
[2011/12/16 00:33:18] @ matti joined channel #puppet
[2011/12/16 00:33:42] @ sdog joined channel #puppet
[2011/12/16 00:34:56] <joe-mac> rtyler: I have used them to build a monitoring ifnrastructure
[2011/12/16 00:35:00] <joe-mac> what's up
[2011/12/16 00:35:28] <rtyler> how the crap do you remove services -_-
[2011/12/16 00:35:39] <joe-mac> ensure => absent?
[2011/12/16 00:36:38] @ Quit: jodok: Quit: jodok
[2011/12/16 00:37:11] <rtyler> so I can't just remove the services, I have to leave them in forevers with ensure => absent?
[2011/12/16 00:40:32] <joe-mac> like everything in puppet, taking the definition out of the catalog does not remove the resource. it just makes the resource unmanaged by puppet.
[2011/12/16 00:41:18] @ dnjaramba joined channel #puppet
[2011/12/16 00:41:20] <rtyler> hm, indeed
[2011/12/16 00:41:23] <joe-mac> some types supoport 'resources { "user": purge => "true" } for example
[2011/12/16 00:41:29] <joe-mac> but the nagios types don't
[2011/12/16 00:41:46] @ trickyf joined channel #puppet
[2011/12/16 00:41:47] <rtyler> gotcha, how to you manage removal then? ensure -> absent for a while, then just remove it
[2011/12/16 00:41:52] <rtyler> like deprecating an API almost
[2011/12/16 00:42:36] <joe-mac> personally I mostly remove a service when I decom a node, which I have a script for, which uses find and rm to remove the files associated with anything on that node
[2011/12/16 00:42:48] <joe-mac> I put each service in its own file
[2011/12/16 00:42:52] <joe-mac> for this specific reason
[2011/12/16 00:42:57] <rtyler> I thougth about that actually
[2011/12/16 00:43:04] <rtyler> I had no precedence to look to though
[2011/12/16 00:43:10] <rtyler> if that's a good route, I'd much rather just do that
[2011/12/16 00:43:14] @ Quit: wilmoore: Ping timeout: 248 seconds
[2011/12/16 00:43:26] <joe-mac> this is the route I went, and others go, I think lab42 went this way, their stuff is up online
[2011/12/16 00:44:39] @ Quit: car|0s: Ping timeout: 245 seconds
[2011/12/16 00:46:14] <rtyler> hmm
[2011/12/16 00:48:19] @ Quit: dwalu: Quit: dwalu
[2011/12/16 00:49:48] @ keymone joined channel #puppet
[2011/12/16 00:50:02] @ Ramonster joined channel #puppet
[2011/12/16 00:52:47] @ inecas joined channel #puppet
[2011/12/16 00:54:12] <keymone> anyone had the problem with puppet agent working correctly on first run and after that refusing to download any configuration changes?
[2011/12/16 00:54:18] @ dwalu joined channel #puppet
[2011/12/16 00:54:53] @ mogitaff joined channel #puppet
[2011/12/16 00:54:58] @ dwalu_ joined channel #puppet
[2011/12/16 00:58:27] @ Quit: dwalu: Ping timeout: 240 seconds
[2011/12/16 00:58:27] @ dwalu_ is now known as dwalu
[2011/12/16 01:01:34] <rtyler> joe-mac: do you define a file per service per host or one file per service with all the hosts listed as an array
[2011/12/16 01:01:52] @ Quit: dwalu: Quit: dwalu
[2011/12/16 01:02:37] @ Quit: JayTaph: Read error: Connection reset by peer
[2011/12/16 01:02:42] @ JayTaph joined channel #puppet
[2011/12/16 01:03:08] <joe-mac> a file per service per host, only way you can realiably automate
[2011/12/16 01:03:25] <joe-mac> keymone: no, it sounds like on the first download a config change borked it
[2011/12/16 01:05:15] <keymone> joe-mac: what could i look for to debug it? logs are pretty much silent, on normal server when i do puppet reload i see Caught HUP; calling restart + restarting lines after that on broken server i only see Caught HUP; calling restart and seems like restart never happens
[2011/12/16 01:05:37] <keymone> also when i kill puppet and start it again it simply says puppet 2.7.1 loaded and then does nothing
[2011/12/16 01:06:01] @ Quit: dnjaramba: Remote host closed the connection
[2011/12/16 01:06:10] <rtyler> joe-mac: I suppose it's time to find those lab42 manifests :)
[2011/12/16 01:06:41] @ dnjaramba joined channel #puppet
[2011/12/16 01:07:23] @ Quit: cosman2001: Quit: cosman2001
[2011/12/16 01:10:06] <joe-mac> keymone: stop using the service and run it in the foreground in debug mode, first once with puppet agent -dt
[2011/12/16 01:10:10] <joe-mac> after you kill the service
[2011/12/16 01:10:18] <joe-mac> rtyler: yes they are helpful when starting
[2011/12/16 01:10:24] <joe-mac> they are pretty beastly
[2011/12/16 01:12:14] @ Quit: csanchez: Quit: csanchez
[2011/12/16 01:15:12] @ ckauhaus joined channel #puppet
[2011/12/16 01:17:37] @ gniks joined channel #puppet
[2011/12/16 01:18:22] @ csanchez joined channel #puppet
[2011/12/16 01:19:55] @ jonhattan joined channel #puppet
[2011/12/16 01:20:11] @ ken_barber joined channel #puppet
[2011/12/16 01:21:53] @ lkoranda joined channel #puppet
[2011/12/16 01:24:08] @ dwalu joined channel #puppet
[2011/12/16 01:25:28] @ lanky joined channel #puppet
[2011/12/16 01:29:02] @ cosman2001 joined channel #puppet
[2011/12/16 01:32:00] @ Quit: larsar_: Remote host closed the connection
[2011/12/16 01:32:31] @ Quit: csanchez: Ping timeout: 244 seconds
[2011/12/16 01:32:59] @ tilgovi joined channel #puppet
[2011/12/16 01:33:28] @ Quit: tilgovi: Remote host closed the connection
[2011/12/16 01:34:14] @ Quit: KristianDK: Ping timeout: 245 seconds
[2011/12/16 01:38:15] @ davey79 joined channel #puppet
[2011/12/16 01:38:19] @ davey79 left channel #puppet ()
[2011/12/16 01:43:26] @ Quit: Enf: Quit: Leaving
[2011/12/16 01:44:55] @ Quit: gfic: Ping timeout: 244 seconds
[2011/12/16 01:47:57] @ Quit: cosman2001: Quit: cosman2001
[2011/12/16 01:53:08] @ Quit: dwalu: Quit: dwalu
[2011/12/16 01:54:01] @ gaveen joined channel #puppet
[2011/12/16 01:54:02] @ Quit: gaveen: Changing host
[2011/12/16 01:54:02] @ gaveen joined channel #puppet
[2011/12/16 01:59:59] @ Quit: gaveen: Ping timeout: 252 seconds
[2011/12/16 02:04:35] @ KristianDK joined channel #puppet
[2011/12/16 02:04:40] @ Quit: KristianDK: Client Quit
[2011/12/16 02:05:10] @ MattyM joined channel #puppet
[2011/12/16 02:12:44] @ Quit: Callek: Ping timeout: 252 seconds
[2011/12/16 02:13:22] @ danikov joined channel #puppet
[2011/12/16 02:14:32] @ Quit: andreaturli: Ping timeout: 252 seconds
[2011/12/16 02:14:38] @ Quit: nico: Ping timeout: 240 seconds
[2011/12/16 02:15:50] @ DbT_ joined channel #puppet
[2011/12/16 02:16:24] @ Holocaine joined channel #puppet
[2011/12/16 02:17:09] @ Quit: giskard: Quit: leaving
[2011/12/16 02:18:19] <DbT_> Any tips on how to turn on debugging of a puppet master under Passenger?
[2011/12/16 02:19:08] <DbT_> duh, just found it: configu.ru!
[2011/12/16 02:20:35] @ lbt is now known as lbt_away
[2011/12/16 02:21:17] <kjetilho> configuru -- sounds Japanese
[2011/12/16 02:22:48] @ Callek joined channel #puppet
[2011/12/16 02:22:57] <DbT_> kjetilho: yep, I meant config.ru :-)
[2011/12/16 02:25:55] @ Quit: hfnix: Quit: Leaving.
[2011/12/16 02:26:28] @ nico joined channel #puppet
[2011/12/16 02:27:41] @ Quit: danblack: Ping timeout: 276 seconds
[2011/12/16 02:28:26] @ erthad joined channel #puppet
[2011/12/16 02:28:52] @ Quit: erthad: Changing host
[2011/12/16 02:28:52] @ erthad joined channel #puppet
[2011/12/16 02:30:40] @ Quit: Elwell: Ping timeout: 252 seconds
[2011/12/16 02:30:54] @ csanchez joined channel #puppet
[2011/12/16 02:32:01] @ Elwell joined channel #puppet
[2011/12/16 02:33:27] @ fronlius joined channel #puppet
[2011/12/16 02:36:40] @ csanchez_ joined channel #puppet
[2011/12/16 02:36:41] @ Quit: csanchez: Read error: Connection reset by peer
[2011/12/16 02:36:52] @ happymcp` is now known as happymcplaksin
[2011/12/16 02:37:29] @ csanchez_ is now known as csanchez
[2011/12/16 02:38:08] @ danblack joined channel #puppet
[2011/12/16 02:38:33] @ Quit: dissipate_: Quit: Leaving
[2011/12/16 02:39:02] @ Quit: _flex: Remote host closed the connection
[2011/12/16 02:41:13] @ csanchez_ joined channel #puppet
[2011/12/16 02:41:53] @ Quit: csanchez: Ping timeout: 252 seconds
[2011/12/16 02:41:53] @ csanchez_ is now known as csanchez
[2011/12/16 02:42:04] @ Quit: fronlius: Read error: Connection reset by peer
[2011/12/16 02:42:19] @ fronlius joined channel #puppet
[2011/12/16 02:52:13] @ Quit: fronlius: Remote host closed the connection
[2011/12/16 02:52:30] @ fronlius joined channel #puppet
[2011/12/16 02:55:48] @ cosman2001 joined channel #puppet
[2011/12/16 03:01:27] @ Quit: KaZeR_W: Remote host closed the connection
[2011/12/16 03:04:14] @ Quit: artkrz: Quit: Linkinus - http://linkinus.com
[2011/12/16 03:04:49] @ konadr joined channel #puppet
[2011/12/16 03:05:42] <konadr> morning everyone, if I want to use puppet to install an application, but once it's there don't try to do it again, is that possible? Do I just check for the dir and if exists dont execute command?
[2011/12/16 03:06:59] @ tcolgate joined channel #puppet
[2011/12/16 03:08:02] <lanky> a packaged application or some kind of archive?
[2011/12/16 03:08:02] <fragfutter> konadr: define "install an application"
[2011/12/16 03:08:02] <tcolgate> happymcplaksin, Hi, re: #11408, I think you are right, I just noticed that whilst my fact download works without the other patch, I still need to specify owner and group for other files
[2011/12/16 03:08:03] <gepetto> tcolgate: happymcplaksin: #11408 is http://projects.puppetlabs.com/issues/show/11408 "Puppet - Bug #11408: Windows fact and pluginsync are broken. It has a status of Code Insufficient and is assigned to Josh Cooper"
[2011/12/16 03:08:06] @ Quit: JStoker: Ping timeout: 244 seconds
[2011/12/16 03:08:16] <tcolgate> happymcplaksin, I reckon the other patch fixes that.
[2011/12/16 03:10:01] <happymcplaksin> tcolgate: Thanks! I'll test it later today. I had to google UAC and suspect our widows admins would say "can't turn that off" :)
[2011/12/16 03:12:34] @ Quit: cosman2001: Quit: cosman2001
[2011/12/16 03:13:39] <konadr> sorry fragfutter, that was a little unclear, I mean pull a zip file for a commercial application and extract it onto disk into it's folder.
[2011/12/16 03:13:51] @ PsychoSid joined channel #puppet
[2011/12/16 03:14:10] @ Djelibeybi joined channel #puppet
[2011/12/16 03:15:19] <mzi> konadr: äunless =>ä
[2011/12/16 03:15:53] <konadr> sounds good, I was just wondering if there was another (more correct?) way mzi fragfutter
[2011/12/16 03:15:53] <mzi> eh, a lot of wierd characters I meant 'unless =>'
[2011/12/16 03:15:54] <tcolgate> happymcplaksin, it does seem to default to off for server builds anyway, I don't think that's a local policy here.
[2011/12/16 03:16:22] <tcolgate> happymcplaksin, I don't really know enough about windows to understand what the right thing for puppet to be doing is. It does seem to be a shame that it has to use local accounts.
[2011/12/16 03:16:48] <mzi> konadr: the more correct way should be to install a package ;)
[2011/12/16 03:17:45] <konadr> heh mzi :) ya that's the way I wanted to do it, but of course it's a last minute requirement to install it on all our systems in 5 days :)
[2011/12/16 03:19:20] <happymcplaksin> tcolgate: I'm definitely in the "don't really know enough" category when it comes to Windows. If UAC defaults to off, maybe it's already off for my test OS
[2011/12/16 03:20:22] @ EyeKami joined channel #puppet
[2011/12/16 03:21:19] @ EyeKami left channel #puppet ()
[2011/12/16 03:24:17] @ Quit: erthad: Read error: Operation timed out
[2011/12/16 03:25:22] @ JStoker joined channel #puppet
[2011/12/16 03:27:55] @ Quit: JStoker: Excess Flood
[2011/12/16 03:28:40] <Callek> happymcplaksin: UAC defaults to on, but I am pretty sure there are potential for some sort of windows kickstart OS installer script to turn it off
[2011/12/16 03:28:52] <Callek> happymcplaksin: at least that is on w7, on w2k8 not so sure
[2011/12/16 03:29:26] <Callek> it is *possible* to turn off, but depending on the exposure/security needs of the OS I surely would not recommend it
[2011/12/16 03:29:32] @ scobal joined channel #puppet
[2011/12/16 03:30:55] @ Quit: mapope: Read error: Connection reset by peer
[2011/12/16 03:30:59] @ erthad joined channel #puppet
[2011/12/16 03:31:15] @ Quit: erthad: Changing host
[2011/12/16 03:31:15] @ erthad joined channel #puppet
[2011/12/16 03:34:08] @ mapope joined channel #puppet
[2011/12/16 03:34:14] @ Quit: scobal: Read error: Connection reset by peer
[2011/12/16 03:34:51] @ Kazuhiro joined channel #puppet
[2011/12/16 03:35:32] @ JStoker joined channel #puppet
[2011/12/16 03:38:23] @ virt_spaceship joined channel #puppet
[2011/12/16 03:39:23] <virt_spaceship> hi, does anyone know how to export a resource in Puppet Ruby DSL ?
[2011/12/16 03:40:08] <virt_spaceship> The PuppetLabs documentation specifies how to do it, but I can't get it to work
[2011/12/16 03:41:24] <joe-mac> virt_spaceship: yea hold on
[2011/12/16 03:42:18] @ Quit: verwilst: Quit: Ex-Chat
[2011/12/16 03:42:36] <joe-mac> yea do, you just wrap create_resource calls in a export do..end
[2011/12/16 03:45:16] @ Quit: JStoker: Ping timeout: 240 seconds
[2011/12/16 03:50:43] <PsychoSid> Anyone setup seperate CA's (primary/standby) running under Apache/Passenger from the Masters running under Apache/Passenger with everything behind another Apache/Passenger load balancer ?
[2011/12/16 03:51:03] <PsychoSid> Getting "Could not intern from s: nested asn1 error"
[2011/12/16 03:51:15] <PsychoSid> Clearly some SSL thing but baffling to me
[2011/12/16 03:52:10] <tcolgate> Callek, people he that know about windows suggested it default to on for desktops and off for servers, but that was only one mans opinion.
[2011/12/16 03:52:50] <Callek> tcolgate: the only win server I have experience with is w2k3 and that doesn't have UAC on by default I am SURE of (I don't think available at all)
[2011/12/16 03:53:24] @ KaZeR_W joined channel #puppet
[2011/12/16 03:57:00] <joe-mac> UAC is on 2k8
[2011/12/16 03:57:25] @ mlout joined channel #puppet
[2011/12/16 03:57:54] @ Quit: larstobi: Quit: Leaving.
[2011/12/16 03:58:46] <mlout> Can an environment only be set in the agent's puppet.conf? I'm not using a external node classifier
[2011/12/16 03:59:38] <mlout> or is it possible to set environments for nodes at the Master?
[2011/12/16 04:04:30] @ Quit: Djelibeybi: Quit: Textual IRC Client: http://www.textualapp.com/
[2011/12/16 04:05:02] <Callek> if you're doing it at the master level, why not do node inheritence + stage
[2011/12/16 04:05:48] <joe-mac> node inheritance is not advised
[2011/12/16 04:05:54] <_zack> (sorry for the n00b question) when I change manifests or other things on the puppetmaster, do I need to restart/reload it or will it automatically discover changes and send it to clients at their next request?
[2011/12/16 04:06:08] <Callek> joe-mac: I though that was only if you ever intended to do ENC
[2011/12/16 04:06:26] <Callek> joe-mac: is it deprecated/being deprecated?
[2011/12/16 04:06:39] <joe-mac> Callek: probably the only feature of puppet I have never used (ENC), I know it has problems, so you may be right
[2011/12/16 04:06:55] <joe-mac> I wouldn't say it's deprecated, but most people use classes instead
[2011/12/16 04:07:12] <joe-mac> node inheritance is less flexible and not really necessary, and does weird things with variable scope
[2011/12/16 04:07:14] <Callek> yea I prefer classes, but if you don't start out that way its harder to switch to it ;-)
[2011/12/16 04:07:25] <Callek> imo
[2011/12/16 04:07:44] <joe-mac> well, like all things, if you find out you did it wrong, you should plan to fix it
[2011/12/16 04:08:00] <virt_spaceship> joe-mac: Thnx for your reply. I found that solution in de Puppet documentation online. Do you have a working example? ps: I can't access pastebin from this location.
[2011/12/16 04:08:13] <joe-mac> virt_spaceship: can you access pastie.org?
[2011/12/16 04:08:15] <Callek> of course, I'm also (starting to do) rewriting an old multi-hundred node puppet system from 0.24 to 2.7 that heavily used node inheritence and had bad practices with manifests
[2011/12/16 04:08:35] @ Quit: nan0r: Quit: Leaving.
[2011/12/16 04:08:46] <virt_spaceship> joe-mac: Yes pastie.org is fine.
[2011/12/16 04:08:49] <joe-mac> Callek: yea, sounds fun, I've done some heavy rewrites as well
[2011/12/16 04:09:17] <Callek> joe-mac: the worst part about my situation is it was combination of puppet+ref-image deployment
[2011/12/16 04:09:27] <Callek> as in, some things they found easier to do manually, so did it that way
[2011/12/16 04:09:32] <Callek> and deployed refimage snapshots :/
[2011/12/16 04:09:44] @ Quit: AshishH: Quit: In a day, when you do not come across any problem means you are travelling in a wrong path.
[2011/12/16 04:10:07] @ Quit: adimania: Ping timeout: 240 seconds
[2011/12/16 04:10:30] @ movexig joined channel #puppet
[2011/12/16 04:10:41] <joe-mac> virt_spaceship: http://www.pastie.org/3026014
[2011/12/16 04:10:49] <movexig> Quick question: How do I use facts about the puppetmaster on puppet nodes?
[2011/12/16 04:12:17] <movexig> As far as I can tell, just referring to a $fact will get that fact about the node.
[2011/12/16 04:12:39] <joe-mac> movexig: you don';t really have a way of doing that, so describe your problem and maybe someone here can recommend a solution
[2011/12/16 04:12:43] <virt_spaceship> joe-mac: Great! I am going to test this now...
[2011/12/16 04:12:59] <movexig> Sure. Long story short, the puppet nodes need to be aware of what their master is.
[2011/12/16 04:13:06] <joe-mac> $server
[2011/12/16 04:13:29] <movexig> Okay. But what about when I need to extend that to know other facts about the server?
[2011/12/16 04:14:14] <joe-mac> you can't really. in an erb if you're using stored configs you could connect to the data base and do some qu eries about the masrter based on server, but that's kind of a hack
[2011/12/16 04:14:20] <joe-mac> what other info do you want from the master?
[2011/12/16 04:14:46] <movexig> Are predefined variables that aren't facts listed in the docs somewhere?
[2011/12/16 04:14:52] <movexig> Well, right now I mostly just need the master's IP address.
[2011/12/16 04:15:00] <movexig> But in the future, I could potentially need facts such as Amazon EC2 instance ID.
[2011/12/16 04:15:09] <movexig> Facter is aware of these facts, but only on the master.
[2011/12/16 04:15:20] <Callek> movexig: actually should be easy :-)
[2011/12/16 04:15:32] <movexig> (FQDN isn't good enough, by the way -- I need the IP.)
[2011/12/16 04:15:37] <joe-mac> $server I think gives yout he hostname, but you could do something like server_ip = inline_template("<%= require 'resolv'; resolv.getaddress(server) -%>")
[2011/12/16 04:15:57] <Callek> movexig: like you can do generate("/path/to/facter"...)
[2011/12/16 04:16:00] <Callek> movexig: http://docs.puppetlabs.com/references/stable/function.html#generate
[2011/12/16 04:16:12] <joe-mac> ah yea forgot about generate!
[2011/12/16 04:16:16] <joe-mac> that's a gem right there
[2011/12/16 04:16:23] <joe-mac> will solve your problems
[2011/12/16 04:16:28] <movexig> I wonder... now, I have ten left thumbs when it comes to Ruby, but
[2011/12/16 04:16:29] @ jodok joined channel #puppet
[2011/12/16 04:16:41] <movexig> Am I right in assuming that functions that access Facter directly always do so on the master?
[2011/12/16 04:16:50] <movexig> I know there's a lookup function, but directly.
[2011/12/16 04:16:51] <joe-mac> a function always runs on the master
[2011/12/16 04:17:02] <Callek> movexig: well generate will always run on the master
[2011/12/16 04:17:05] <joe-mac> a function looks like this: something(something)
[2011/12/16 04:17:11] <movexig> It seems trivial (for someone with more Ruby knowledge than me!) to write something like... master_fact("factname").
[2011/12/16 04:17:11] <joe-mac> always parens, always runs on the master
[2011/12/16 04:17:14] <Callek> functions that reference facts directly will expand the facts on the slave
[2011/12/16 04:17:19] <movexig> Feels pretty generally useful, that.
[2011/12/16 04:17:19] <Callek> s/slave/node/
[2011/12/16 04:17:28] <movexig> Okay.
[2011/12/16 04:17:40] @ Quit: dnjaramba: Ping timeout: 268 seconds
[2011/12/16 04:18:20] <movexig> The documentation kind of implies lookupvar and Facter[] are different, though
[2011/12/16 04:19:50] <joe-mac> right, lookupvar can look up scoped variables and parameters
[2011/12/16 04:19:55] <movexig> Oh, also, where is stuff like $server in the docs?
[2011/12/16 04:20:04] @ mpdude joined channel #puppet
[2011/12/16 04:20:07] <joe-mac> facts are facts, basically they are like global variables I guess you could think of them that way
[2011/12/16 04:20:22] <joe-mac> just search for list of facts or something
[2011/12/16 04:20:28] <movexig> Sourced straight from configuration?
[2011/12/16 04:20:32] <joe-mac> or list of standard facrts
[2011/12/16 04:20:33] <movexig> Right, but server is not a fact.
[2011/12/16 04:20:59] <joe-mac> hm yea server is a weird one
[2011/12/16 04:21:04] <movexig> I presume Puppet also includes configuration as variables.
[2011/12/16 04:21:05] <joe-mac> now that I think of it
[2011/12/16 04:21:10] <movexig> ( http://docs.puppetlabs.com/references/stable/configuration.html )
[2011/12/16 04:21:33] @ Quit: jodok: Read error: No route to host
[2011/12/16 04:21:37] <joe-mac> well, when I access puppet configuration I use inline_template("<%= Puppet[:ssldir] -%>") idk if there is an easier way
[2011/12/16 04:22:11] <Callek> I'm partial to being explicit for non-facts like that
[2011/12/16 04:22:21] <Callek> |include settings| ... |$settings::server|
[2011/12/16 04:22:34] <joe-mac> well, you kinda have to be in 2.7
[2011/12/16 04:22:37] <joe-mac> no more dynamic scope
[2011/12/16 04:23:03] <movexig> Well, it does say: "Settings can be interpolated as $variables in other settings"
[2011/12/16 04:23:14] <movexig> It doesn't say anything about a particular namespace for them.
[2011/12/16 04:23:17] @ jodok joined channel #puppet
[2011/12/16 04:23:20] <Callek> movexig: that presumes settings file, aiui
[2011/12/16 04:23:30] <movexig> ?
[2011/12/16 04:23:50] <Callek> movexig: but you *can* |import settings| and reference it like |$settings::foo| since the settings Class is loaded at runtime
[2011/12/16 04:23:51] <Callek> :-)
[2011/12/16 04:23:58] <movexig> Please note that I do not speak Ruby.
[2011/12/16 04:24:07] <joe-mac> Callek: I am confused by what you're saying
[2011/12/16 04:24:10] <joe-mac> what settings class
[2011/12/16 04:24:11] <Callek> movexig: I'm not speaking ruby
[2011/12/16 04:24:16] <joe-mac> there is no standard class included with puppet
[2011/12/16 04:24:20] <Callek> joe-mac: the settings class internal to puppet
[2011/12/16 04:24:25] <Callek> joe-mac: haha yes there is
[2011/12/16 04:24:28] <movexig> Where in the documentation is this?
[2011/12/16 04:24:34] @ Quit: mpdude: Ping timeout: 244 seconds
[2011/12/16 04:24:45] <Callek> (not in documentation, sadly)
[2011/12/16 04:24:50] * Callek looks up where he learned about that
[2011/12/16 04:24:51] <joe-mac> Callek: point me to this class?
[2011/12/16 04:24:57] @ brtl joined channel #puppet
[2011/12/16 04:25:06] <_rc_> it's magic, but it's there
[2011/12/16 04:25:08] <joe-mac> you just magically type import settings, even though thre is no settings.pp file, and it auto loads the configuration as variables?
[2011/12/16 04:25:16] <Callek> https://projects.puppetlabs.com/issues/11158
[2011/12/16 04:25:18] @ JStoker joined channel #puppet
[2011/12/16 04:25:39] <joe-mac> that is terrible
[2011/12/16 04:25:40] <Callek> joe-mac: line 464 of lib/puppet/parser/compiler.rb
[2011/12/16 04:25:43] <_rc_> you don't even need to include it
[2011/12/16 04:25:47] @ Quit: bobra: Ping timeout: 240 seconds
[2011/12/16 04:25:50] <Callek> _rc_: exactly
[2011/12/16 04:26:01] <joe-mac> I don't think this mechanism should exist
[2011/12/16 04:26:02] <Callek> but including it just makes more visual sense imo
[2011/12/16 04:26:04] <joe-mac> it's underhanded and sketchy
[2011/12/16 04:26:16] <joe-mac> or rather I think it should exist in a different manifestation/implementation
[2011/12/16 04:26:38] <movexig> Well, if it just said somewhere "Configuration variables can magically be accessed as $settings::whatever", then I guess that's fine
[2011/12/16 04:27:15] <joe-mac> documenting a bad implementation doesn't make it a good one
[2011/12/16 04:27:30] <Callek> movexig: "Configuration variables can be accessed inside manifests at the settings namespace, as <tt>$settings::foo</tt>."
[2011/12/16 04:27:38] <movexig> I don't know if it's any stranger than facts being magically available.
[2011/12/16 04:27:54] <movexig> Callek, what page ist hat?
[2011/12/16 04:28:01] <Evolution> is there a method for handling conflicting modules? for example if moduleA requires package A, and moduleb requires package B, but you cannot have A and B installed at the same time?
[2011/12/16 04:28:11] <Callek> movexig: ooo I was just expanding on my thoughts as to how to document that :-)
[2011/12/16 04:28:13] <Evolution> is there a method for noting that you can't apply both modules?
[2011/12/16 04:28:18] <joe-mac> Evolution: virtual resources
[2011/12/16 04:28:22] <joe-mac> will help you get around that
[2011/12/16 04:28:36] <_rc_> no they won't; they'll just make a bigger mess
[2011/12/16 04:28:59] <joe-mac> _rc_: ?
[2011/12/16 04:29:02] <Callek> joe-mac: just to be sure, you are not employed by puppetlabs, or contributing code upstream to them at present, right?
[2011/12/16 04:29:13] * Callek asks to get a handle on roughly who he is talking to
[2011/12/16 04:29:30] @ mpdude joined channel #puppet
[2011/12/16 04:29:31] @ Quit: gebi: Remote host closed the connection
[2011/12/16 04:29:31] @ nan0r joined channel #puppet
[2011/12/16 04:29:32] <joe-mac> Callek: I am *not* employed by puppetlabs, but do submit patches when I can, and have been using it heavily for 3 years
[2011/12/16 04:29:41] <joe-mac> and I make a living consulting largely basedon puppet work
[2011/12/16 04:29:52] <Callek> ok, thanks for the edification
[2011/12/16 04:29:54] <Callek> :-)
[2011/12/16 04:29:58] * Callek was just curious.
[2011/12/16 04:30:21] <joe-mac> I help out on irc cause, it makes me learn... like this settings thing
[2011/12/16 04:30:34] <Callek> but yea, virtual resources can make a bigger mess if you're not careful.
[2011/12/16 04:30:38] <joe-mac> I find it horrible but, I'll know it's there now and can use it if I need to
[2011/12/16 04:30:51] <Callek> There are of course good ways to do it.... but there are even more bad ways.
[2011/12/16 04:31:16] <movexig> Okay, that's really strange. $settings::server does work... but the value is insane.
[2011/12/16 04:31:24] @ Quit: jodok: Ping timeout: 255 seconds
[2011/12/16 04:31:25] <Evolution> so... how would one go about saying two modules conflict? is there an opposite to 'requires' ?
[2011/12/16 04:31:26] <_rc_> Evolution: in what way do the classes conflict?
[2011/12/16 04:32:00] <movexig> I expected $settings::server to contain domU-xx-xx-xx-xx etc., but it contains "puppet".
[2011/12/16 04:32:04] <_rc_> if they conflict because they both manage the same resource, you just let that happen
[2011/12/16 04:32:05] <movexig> Which is not the server setting on the node OR on the master
[2011/12/16 04:32:08] <Evolution> _rc_: packages mostly. the classes themselves don't care. but pulp-cds and pulp cannot be installed at the same time.
[2011/12/16 04:32:10] <movexig> (I guess it is the default though)
[2011/12/16 04:32:15] @ natewalck joined channel #puppet
[2011/12/16 04:32:16] <joe-mac> movexig: right it's the server var
[2011/12/16 04:32:23] <joe-mac> it's what you connect to.. which is by default, puppet
[2011/12/16 04:32:25] @ jodok joined channel #puppet
[2011/12/16 04:32:25] @ Quit: jodok: Changing host
[2011/12/16 04:32:25] @ jodok joined channel #puppet
[2011/12/16 04:32:29] <Volcane> movexig: its the value of the puppet server which defaults to puppet - also $settings::* is the settings of the *master*
[2011/12/16 04:32:33] <movexig> Right...
[2011/12/16 04:32:36] <Callek> Evolution: my suggestion, use |if defined("foo") { fail("Can't proceed because Class A is used") }|
[2011/12/16 04:32:41] <movexig> Again, would be lovely if this was documented, heh.
[2011/12/16 04:32:48] <Callek> Evolution: http://docs.puppetlabs.com/references/stable/function.html#defined
[2011/12/16 04:32:53] <movexig> Okay, so generate it is, I guess...
[2011/12/16 04:32:58] <Volcane> movexig: would you rather whine about or have me help you? pick one.
[2011/12/16 04:33:07] <movexig> I don't think I'm whining.
[2011/12/16 04:33:25] <Volcane> its whining when you dont open tickets asking for improvement or sending in patches
[2011/12/16 04:33:49] <movexig> I've been aware that $settings even existed for all of ten minutes. If you want me to open a ticket, I can do that.
[2011/12/16 04:34:05] <Evolution> _rc_: basically I have pulp::server and pulp::cds classes. the packages each requires cannot be installed together. since I'm using foreman as my front-end, I'm trying to keep users from doing something stupid.
[2011/12/16 04:34:20] <_rc_> Evolution: get smarter users.
[2011/12/16 04:34:23] <Volcane> movexig: what is it you are looking for exactly?
[2011/12/16 04:34:25] <Callek> movexig: settings should only contain the settings info, I think a better solution to generate would be a master_fact("") thing like you suggested before ;-)
[2011/12/16 04:34:27] <Callek> but yea
[2011/12/16 04:34:37] <Evolution> _rc_: I would if I could.
[2011/12/16 04:34:52] <movexig> Volcane, well, I started out looking for a way to get facts about the master on nodes. But at this point, I think generate() is the best solution for what I need.
[2011/12/16 04:34:58] <Callek> Evolution: did you notice my solution/suggestion?
[2011/12/16 04:35:02] <Volcane> what kind of fact?
[2011/12/16 04:35:07] <Evolution> Callek: yep. I'll check it out, thanks.
[2011/12/16 04:35:10] <movexig> Someone suggested I use the "server" config variable to find the hostname of the master, but in the end, that didn't work, as above
[2011/12/16 04:35:26] <Volcane> $serverip and $servername and $serverversion
[2011/12/16 04:35:26] <movexig> At the moment, the fact I need is the server's IP address (not FQDN), but in the future I may need other facts like ec2 instance ID.
[2011/12/16 04:36:22] <movexig> And then the topic came up that I asked where in the documentation this was so I don't need to hound people for answers, but it seems they're not?
[2011/12/16 04:36:56] <Callek> movexig: a $settings value that might work for you, depending on WHAT your settings are: `cert_name` "The name to use when handling certificates. Defaults to the fully qualified domain name."
[2011/12/16 04:37:01] <Callek> s/_//
[2011/12/16 04:37:05] <Volcane> its in $serverip and $servername and $serverversion
[2011/12/16 04:37:19] <movexig> Callek, $serverip and $servername as suggested by Volcane do work for me in this case though, so I'll use that
[2011/12/16 04:37:23] <Volcane> see http://docs.puppetlabs.com/guides/faq.html#are-there-variables-available-other-than-those-provided-by-facter
[2011/12/16 04:37:30] <movexig> Thanks, Volcane.
[2011/12/16 04:37:45] <movexig> Oh, there you go, it IS documented.
[2011/12/16 04:37:47] <movexig> Neat.
[2011/12/16 04:37:47] <Callek> ahhh I didn't catch those ;-)
[2011/12/16 04:37:57] @ jodok_ joined channel #puppet
[2011/12/16 04:37:58] @ Quit: jodok_: Changing host
[2011/12/16 04:37:58] @ jodok_ joined channel #puppet
[2011/12/16 04:38:06] <Volcane> and if there's somewhere more obvious where you might have looked to find this information a ticket is the best way to fix that (or a pull request since the docs is public)
[2011/12/16 04:38:10] <Callek> Volcane++
[2011/12/16 04:38:24] * Callek didn't notice that either
[2011/12/16 04:38:37] <joe-mac> the settings class is cleaner than inline template, that's for sure, can't believe I never found out about this
[2011/12/16 04:38:39] <Volcane> yeh no surprises no-one reads the FAQ :)
[2011/12/16 04:38:44] <joe-mac> haha
[2011/12/16 04:38:49] <joe-mac> slashdot syndrome
[2011/12/16 04:38:55] <joe-mac> no one RTFs anything
[2011/12/16 04:39:12] <Callek> Volcane: "Note that other than $environment, the agent’s settings aren’t available in manifests." huh really? so I can't do $settings::foo in a manifest?
[2011/12/16 04:39:19] <joe-mac> oooo $caller_module_name that is nice
[2011/12/16 04:39:20] <Callek> (that is counter to my experience with things)
[2011/12/16 04:39:31] <joe-mac> Callek: those are the master settings
[2011/12/16 04:39:33] <Volcane> no i wasnt being sarcastic or anything, if valuable info is only in the FAQ then that just means the doc sux :)
[2011/12/16 04:39:39] @ Quit: brtl: Quit: Leaving.
[2011/12/16 04:39:39] <joe-mac> says so right in the faq
[2011/12/16 04:39:42] <Callek> yes, which is as I expected
[2011/12/16 04:39:54] <Callek> ooo misread that quote
[2011/12/16 04:39:56] <Volcane> Callek: $settings is the *master* settings
[2011/12/16 04:40:04] * Callek read agent as meaning master
[2011/12/16 04:40:27] @ Quit: jodok: Ping timeout: 240 seconds
[2011/12/16 04:40:27] @ jodok_ is now known as jodok
[2011/12/16 04:40:47] <Callek> I know I've tested $settings:: deeply after finding my bug
[2011/12/16 04:41:10] <Callek> (yea using extlookup in a manifest class called settings is a bad idea thats for sure)
[2011/12/16 04:41:30] <Volcane> heh
[2011/12/16 04:41:33] @ marczak joined channel #puppet
[2011/12/16 04:41:50] <JayTaph> I'm reading this bug: http://projects.puppetlabs.com/issues/7604 and see that not many people use a hierarchical approach of defining nodes apparently.. What is the current practice of defining nodes (since we have multiple projects, each with N nodes which we like to define per file inside a structured hierarchy)
[2011/12/16 04:41:56] <Volcane> would prefer these kinds of things are in immutable global hash variables, seems much more sane
[2011/12/16 04:41:59] @ Quit: mpdude: Remote host closed the connection
[2011/12/16 04:42:27] <joe-mac> yea- that's what I'm saying
[2011/12/16 04:42:32] <joe-mac> the whole settings thing strikes me as sloppy
[2011/12/16 04:42:34] @ Quit: jonhattan: Quit: jonhattan
[2011/12/16 04:42:51] <Volcane> predates hashes in the language iirc
[2011/12/16 04:42:57] <joe-mac> yea
[2011/12/16 04:42:58] <Volcane> so was probably the only option then
[2011/12/16 04:43:06] @ brtl joined channel #puppet
[2011/12/16 04:45:19] @ tizzo-afk is now known as tizzo
[2011/12/16 04:46:11] @ Quit: jodok: Ping timeout: 252 seconds
[2011/12/16 04:51:50] <Evolution> One last question if folks have the time. I have a module to deploy puppet and the server which works fine initially, but if I try to set things up with a layout of globalmaster -> sitemaster -> clients, the sitemaster complains about its own cert generation.. duplicate cert exists, etc.
[2011/12/16 04:52:11] <Evolution> is there a method or proper way to use a puppet master to deploy a puppet master?
[2011/12/16 04:52:46] <Evolution> the site master will need to be able to sign client certs without communicating to the globalmaster
[2011/12/16 04:53:29] @ johnston_ joined channel #puppet
[2011/12/16 04:53:56] @ Quit: danblack: Ping timeout: 276 seconds
[2011/12/16 04:54:16] <mzi> JayTaph: one file per node?
[2011/12/16 04:54:59] @ mpdude joined channel #puppet
[2011/12/16 04:55:27] <mzi> JayTaph: in that case do like node default { include project::$hostname }
[2011/12/16 04:57:17] @ skm joined channel #puppet
[2011/12/16 04:57:31] <virt_spaceship> joe-mac: I tested you configuration example, but I get an error.... https://pastee.org/5k44t
[2011/12/16 04:58:34] <JayTaph> mzi: ah thnxs.. I will check if that works with our setup
[2011/12/16 04:59:38] <joe-mac> virt_spaceship: that's the entirety of the code? it's not in a hostclass or antyhing?
[2011/12/16 05:00:33] <virt_spaceship> joe-mac: the code is in a define
[2011/12/16 05:04:17] <joe-mac> you need to put that stuff inside a .rb file, you undertstand that right/
[2011/12/16 05:04:51] @ bodgit joined channel #puppet
[2011/12/16 05:06:14] @ larsar joined channel #puppet
[2011/12/16 05:06:54] @ Quit: KaZeR_W: Remote host closed the connection
[2011/12/16 05:08:13] @ Quit: IndyMichaelB: Quit: IndyMichaelB
[2011/12/16 05:09:26] @ Quit: joe-mac: Remote host closed the connection
[2011/12/16 05:10:05] @ KaZeR_W joined channel #puppet
[2011/12/16 05:14:40] @ tmclaugh joined channel #puppet
[2011/12/16 05:15:09] @ the_ramink joined channel #puppet
[2011/12/16 05:15:12] @ lborda joined channel #puppet
[2011/12/16 05:16:45] @ Quit: fronlius: Read error: Connection reset by peer
[2011/12/16 05:16:49] @ Quit: marczak: Ping timeout: 248 seconds
[2011/12/16 05:18:21] @ Quit: gniks: Quit: Leaving.
[2011/12/16 05:19:29] @ Quit: the_ramink: Ping timeout: 248 seconds
[2011/12/16 05:19:37] <happymcplaksin> Callek: Thanks for the info!
[2011/12/16 05:19:51] <Callek> happymcplaksin: no problem
[2011/12/16 05:23:03] @ Quit: movexig: Quit: Lämnar
[2011/12/16 05:25:59] @ Quit: jaydg: Quit: Verlassend
[2011/12/16 05:27:18] @ Quit: eightyeight: Ping timeout: 248 seconds
[2011/12/16 05:27:28] @ Quit: ghaskins__: Read error: Connection reset by peer
[2011/12/16 05:28:17] @ eightyeight joined channel #puppet
[2011/12/16 05:28:28] @ Quit: pmorillon: Ping timeout: 240 seconds
[2011/12/16 05:28:29] @ adimania joined channel #puppet
[2011/12/16 05:28:35] @ ghaskins joined channel #puppet
[2011/12/16 05:30:40] @ rgsteele joined channel #puppet
[2011/12/16 05:32:34] @ Quit: MattyM: Ping timeout: 245 seconds
[2011/12/16 05:33:41] @ henk left channel #puppet ("WeeChat 0.3.6")
[2011/12/16 05:33:48] @ pmorillon joined channel #puppet
[2011/12/16 05:34:27] @ Quit: benjiedmund: Remote host closed the connection
[2011/12/16 05:35:37] @ MattyM joined channel #puppet
[2011/12/16 05:37:51] @ jodok joined channel #puppet
[2011/12/16 05:37:52] @ Quit: jodok: Changing host
[2011/12/16 05:37:52] @ jodok joined channel #puppet
[2011/12/16 05:38:57] @ Demosthenes joined channel #puppet
[2011/12/16 05:39:13] @ Quit: csanchez: Quit: csanchez
[2011/12/16 05:39:19] @ skoom joined channel #puppet
[2011/12/16 05:40:05] @ Quit: skm: Ping timeout: 276 seconds
[2011/12/16 05:40:08] @ Quit: mpdude: Remote host closed the connection
[2011/12/16 05:40:15] @ skoom is now known as skm
[2011/12/16 05:42:50] @ choonming joined channel #puppet
[2011/12/16 05:43:05] @ marczak joined channel #puppet
[2011/12/16 05:43:16] @ Quit: kubicek: Excess Flood
[2011/12/16 05:43:20] @ kubicek joined channel #puppet
[2011/12/16 05:43:21] @ Quit: kubicek: Excess Flood
[2011/12/16 05:43:46] @ and` joined channel #puppet
[2011/12/16 05:43:52] @ Quit: jodok: Read error: Operation timed out
[2011/12/16 05:44:55] @ kubicek joined channel #puppet
[2011/12/16 05:45:54] @ Quit: adimania: Ping timeout: 245 seconds
[2011/12/16 05:50:02] @ freezey joined channel #puppet
[2011/12/16 05:50:08] @ Quit: kelseyhightower: Ping timeout: 252 seconds
[2011/12/16 05:52:32] @ IndyMichaelB joined channel #puppet
[2011/12/16 05:52:34] @ Quit: Demosthenes: Quit: leaving
[2011/12/16 05:53:50] @ Quit: blentz: Ping timeout: 252 seconds
[2011/12/16 05:53:59] @ mpdude joined channel #puppet
[2011/12/16 05:54:05] @ _flex joined channel #puppet
[2011/12/16 05:55:29] @ Kazuhiro1 joined channel #puppet
[2011/12/16 05:55:56] @ Quit: lborda: Read error: Connection reset by peer
[2011/12/16 05:56:19] @ yawniek joined channel #puppet
[2011/12/16 05:57:12] @ kelseyhightower joined channel #puppet
[2011/12/16 05:59:09] @ Quit: kubicek: Excess Flood
[2011/12/16 05:59:15] @ kubicek_ joined channel #puppet
[2011/12/16 05:59:15] @ Quit: kubicek_: Excess Flood
[2011/12/16 05:59:42] @ Quit: JStoker: Ping timeout: 252 seconds
[2011/12/16 06:00:27] @ kubicek joined channel #puppet
[2011/12/16 06:01:39] @ Kazuhiro1 left channel #puppet ()
[2011/12/16 06:03:18] <jokajak> anyone know if it's possible to build an array in a template and pass that to a type?
[2011/12/16 06:04:01] @ Quit: virt_spaceship: Quit: leaving
[2011/12/16 06:07:20] @ fronlius joined channel #puppet
[2011/12/16 06:08:33] @ Quit: johnston_: Quit: Page closed
[2011/12/16 06:09:19] @ lborda joined channel #puppet
[2011/12/16 06:09:33] @ lborda is now known as lborda_afk
[2011/12/16 06:10:48] @ JStoker joined channel #puppet
[2011/12/16 06:11:25] @ tizzo is now known as tizzo-afk
[2011/12/16 06:12:37] @ astrostl joined channel #puppet
[2011/12/16 06:15:11] @ ghany joined channel #puppet
[2011/12/16 06:15:49] <ghany> hello
[2011/12/16 06:16:26] <ghany> هااااااااااااااااااااااااى
[2011/12/16 06:16:44] @ mcarpent joined channel #puppet
[2011/12/16 06:17:51] @ ghany left channel #puppet ()
[2011/12/16 06:21:08] @ acc11 joined channel #puppet
[2011/12/16 06:21:55] <yawniek> i have a string that i want to define for each node e.g. some metadata about a host. now that data needs to get included in certain erb files within some classes (which are attached to the extended parrent node). what is the correct way of doing this?
[2011/12/16 06:22:46] @ uphillian joined channel #puppet
[2011/12/16 06:24:08] @ spiette joined channel #puppet
[2011/12/16 06:25:39] @ gniks joined channel #puppet
[2011/12/16 06:28:14] @ Chowzzf joined channel #puppet
[2011/12/16 06:31:38] @ blentz joined channel #puppet
[2011/12/16 06:32:18] @ m3ridian joined channel #puppet
[2011/12/16 06:32:56] @ acc11 left channel #puppet ()
[2011/12/16 06:33:10] @ larstobi joined channel #puppet
[2011/12/16 06:34:17] @ overgrownpuppy joined channel #puppet
[2011/12/16 06:35:19] @ jodok joined channel #puppet
[2011/12/16 06:36:30] @ dfamorato joined channel #puppet
[2011/12/16 06:38:38] @ Quit: kermit: Quit: Leaving.
[2011/12/16 06:38:50] @ cliff-hm joined channel #puppet
[2011/12/16 06:38:54] @ kermit joined channel #puppet
[2011/12/16 06:39:15] @ csanchez joined channel #puppet
[2011/12/16 06:42:27] @ Quit: sdog: Quit: Leaving.
[2011/12/16 06:44:09] @ zwi joined channel #puppet
[2011/12/16 06:46:21] @ Quit: JayTaph: Quit: JayTaph
[2011/12/16 06:49:19] @ brunoleon joined channel #puppet
[2011/12/16 06:49:34] @ katfallond joined channel #puppet
[2011/12/16 06:49:42] @ slap_stick joined channel #puppet
[2011/12/16 06:51:13] <slap_stick> hey, don't suppose anyone could offer advice on how i can use a variable inside an inherits? if i have class this { $a = "123" include another } class another inherits b { notify { "b is: ${b}": } } b ends up blank
[2011/12/16 06:51:38] <slap_stick> pah sorry ${a} not b
[2011/12/16 06:52:21] <fragfutter> ${this::a}
[2011/12/16 06:52:40] <slap_stick> ah just declare the full path
[2011/12/16 06:52:41] <slap_stick> doh
[2011/12/16 06:52:59] <tremble> slap_stick: Yeah don't use the dynamic scoping it will really bite you.
[2011/12/16 06:54:37] @ Quit: ghaskins: Quit: Leaving
[2011/12/16 06:56:54] @ Quit: Vasik|work: Remote host closed the connection
[2011/12/16 06:58:43] <slap_stick> hm ok wht if you had: class this { define conf($a) { include that } } class that inherits b { notify "a is: ${this::a}": } would the scope of $a be $this::a even if it's inside a define?
[2011/12/16 06:59:09] <_rc_> no, that $a is just $a
[2011/12/16 06:59:40] <slap_stick> ok well if i do just $a it's blank
[2011/12/16 06:59:48] <_rc_> also save your head some pain later and don't nest your define declarations inside classes
[2011/12/16 07:00:14] <_rc_> it's not visible outside the define
[2011/12/16 07:01:48] @ Quit: p3rror: Read error: Connection reset by peer
[2011/12/16 07:02:35] @ ghaskins joined channel #puppet
[2011/12/16 07:03:00] <slap_stick> but the include is inside the define, it works for things that don't inherit, it seems if my class inherits fmor another class the scope alters and it doesnt see variables , even if i include a class with a variable inside the class i inherit from
[2011/12/16 07:03:29] <slap_stick> so in my example if i used $a it would be blank and $this::a isn't visible either
[2011/12/16 07:04:00] <_rc_> in your example you're trying to do something that's like parameterised classes, but instead is a mess
[2011/12/16 07:05:13] @ kangman joined channel #puppet
[2011/12/16 07:05:49] <dotplus> I'm having a little trouble with understanding variable scoping/reference. I have a class foo defined in modules/foo/manifests/init.pp that specifies (declares/defines? not quite sure of the jargon) a file resource which has content => template("foo/foo.conf.erb"), so I should have the erb file at modules/foo/templates/foo.conf.erb. if I specify a variable inside the class, such as $foo_varList = ['bar','baz'], my erb can have 'foo = <% ...
[2011/12/16 07:05:53] <slap_stick> i know but this is 2.4 and hence can't use parameterized classes and i can't upgrade either
[2011/12/16 07:05:56] <dotplus> ... foo_varList.each do |foo_var| -%><%= foo_var %> <% end -%>' and puppet will write my foo.conf file to contain 'foo = bar baz'. My question is, if I have node mynode { include foo }, how do I override the contents of $foo_varList just for mynode?
[2011/12/16 07:07:05] @ sihil joined channel #puppet
[2011/12/16 07:08:51] @ brandon_dacrib joined channel #puppet
[2011/12/16 07:08:51] <sihil> does anyone know whether previous versions of the OSX packages are archived anywhere?
[2011/12/16 07:09:29] @ Kazuhiro left channel #puppet ()
[2011/12/16 07:10:08] <slap_stick> so what i want to do is: class test { define conf($a) { class new inherits old { Anotherdefine["itsname"]: { val => "${a}" } } } }
[2011/12/16 07:11:11] <_rc_> what you want can't work because of the scoping rules that defines have
[2011/12/16 07:11:37] <slap_stick> yeh, it works fine if i was to include a class which uses ${a}
[2011/12/16 07:11:48] <slap_stick> but if i include a class which inherits a class and uses ${a} it wont
[2011/12/16 07:12:22] <slap_stick> so i need a solution
[2011/12/16 07:13:23] <_rc_> thing is, we don't know the root problem, just the non-solution you're trying to make work
[2011/12/16 07:13:34] @ Quit: pmorillon: Quit: pmorillon
[2011/12/16 07:13:36] <slap_stick> well you know what i want to do
[2011/12/16 07:13:40] @ tizzo-afk is now known as tizzo
[2011/12/16 07:14:08] <slap_stick> i want to keep $a dynamic, i can't use paramaterized classes as they dont exist in this version and so i have to use a define and i want to override something defined in another class with the dynamic variable
[2011/12/16 07:14:23] <_rc_> you can't have all that
[2011/12/16 07:14:35] <slap_stick> i could probably do this
[2011/12/16 07:15:28] <slap_stick> h
[2011/12/16 07:15:31] <slap_stick> hm nope that wont work
[2011/12/16 07:15:32] <slap_stick> pah
[2011/12/16 07:15:38] <_rc_> that's the solution you have in your head for your problem; but we can't ggive you a better solution as you don't say the problem
[2011/12/16 07:15:48] <slap_stick> i have said the problem
[2011/12/16 07:15:56] <slap_stick> i have a class it contains something i want to override
[2011/12/16 07:16:01] <slap_stick> i want to override itwith something dynamic
[2011/12/16 07:16:36] @ gabrtv joined channel #puppet
[2011/12/16 07:16:41] <_rc_> why do you want to use something dynamic?
[2011/12/16 07:16:42] @ ldlework joined channel #puppet
[2011/12/16 07:16:52] <_rc_> rather than something that's say, straight data-oriented
[2011/12/16 07:16:56] <slap_stick> because it can alter
[2011/12/16 07:16:57] @ Quit: Stenbryggen: Quit: Leaving.
[2011/12/16 07:17:08] <slap_stick> i dont know what value somebody might want to use
[2011/12/16 07:17:11] <_rc_> so can a data-oriented approach
[2011/12/16 07:17:12] <slap_stick> consider $a to be their age
[2011/12/16 07:17:25] <_rc_> but you're insisting on solving it with dynamic scope
[2011/12/16 07:17:36] <slap_stick> ok how would i do it with data-orientated approach?
[2011/12/16 07:18:35] <Callek> slap_stick: my comment about this, is that puppet variables don't act like variables in most traditional programming languages
[2011/12/16 07:18:41] <_rc_> take a look at hiera; then you model $age as a property with a default, and you oveeride based on whatever hierarchy yoiu're modelling
[2011/12/16 07:18:46] <Callek> you also don't actually inherit variables in puppet
[2011/12/16 07:18:52] <Callek> hiera or extlookup can work
[2011/12/16 07:19:13] @ lborda_afk is now known as lborda
[2011/12/16 07:19:43] <Callek> slap_stick: I have a real example of extlookup solution you are free to peek at, at http://hg.mozilla.org/build/puppet/rev/2c514d1175cc
[2011/12/16 07:21:29] <Callek> but yea heira is better imo (just harder to setup than using extlookup)
[2011/12/16 07:23:23] <slap_stick> hm
[2011/12/16 07:23:36] <slap_stick> i was hoping for a "oh you just do this" answer haha
[2011/12/16 07:24:25] <_rc_> it is, it's just the "this" happens to be "rethink and use a different approach"
[2011/12/16 07:24:40] <slap_stick> wel it means implementing something
[2011/12/16 07:24:45] <slap_stick> hiera or extlookup
[2011/12/16 07:25:45] @ jeremybowers joined channel #puppet
[2011/12/16 07:26:22] <Callek> many real programming problems (other than in perl, where there are 50 thousand solutions nomatter what your problem is) involve the ability to backtrack and rethink your hopeful answer
[2011/12/16 07:26:24] <slap_stick> hm can you destroy resources i.e Package["name"] so if it's defined destroy it?
[2011/12/16 07:26:49] <slap_stick> i know you can remove the package but i mean remove it's existence
[2011/12/16 07:27:08] <slap_stick> from a puppet point of view
[2011/12/16 07:27:48] <Callek> slap_stick: and trust me on our solution for the var thing, I tried like 20 other ways, over the course of two days getting that to work in a useful way :-)
[2011/12/16 07:28:15] <Callek> (of course i hit like 2 or 3 puppet bugs along the way, or rather un/sub documented things, but thats another story)
[2011/12/16 07:28:27] <Callek> as far as undefining a resource, not sure I know of a way
[2011/12/16 07:28:37] <slap_stick> yeh i guess i dont really understand the other solutions approach.
[2011/12/16 07:28:59] @ Quit: natewalck: Read error: Connection reset by peer
[2011/12/16 07:29:00] @ neonflux joined channel #puppet
[2011/12/16 07:29:09] <Callek> you can _check_ if a resource is defined (http://docs.puppetlabs.com/references/stable/function.html#defined) but as for undefining one, not really
[2011/12/16 07:29:17] @ natewalck joined channel #puppet
[2011/12/16 07:29:22] <_rc_> no; also if there was, don't. that you ask the question suggests you didn't break your classes down into small enough pieces
[2011/12/16 07:29:29] <Callek> you might be able to get away with doing virtual resources, and the realizing them
[2011/12/16 07:29:32] @ Quit: jabowers: Ping timeout: 252 seconds
[2011/12/16 07:29:33] @ Quit: marrusl: Quit: Ex-Chat
[2011/12/16 07:29:45] <Callek> but yea, almost always is a bad idea
[2011/12/16 07:29:58] <slap_stick> yeh
[2011/12/16 07:30:01] <slap_stick> hm
[2011/12/16 07:30:20] <Callek> s/almost always/what you suggest is most certainly/
[2011/12/16 07:30:50] <slap_stick> heira has very little documnetation
[2011/12/16 07:30:53] @ keymone left channel #puppet ()
[2011/12/16 07:31:37] <Callek> extlookup/hiera is much more powerful/useful than the way I did it, fwiw.
[2011/12/16 07:31:54] <Callek> my use-case is multiple puppet deployments and making the in-repo source easier to manage
[2011/12/16 07:32:13] <Callek> yours is more across a single deployment and different configs for different nodes
[2011/12/16 07:32:29] <Callek> but the general though process as to the problem is the same
[2011/12/16 07:33:37] <slap_stick> yeh
[2011/12/16 07:34:18] @ aricg joined channel #puppet
[2011/12/16 07:34:40] <slap_stick> would parameterized classes have even got round the problem.. just curious .. class new($a="value") inherits old { ..override with ${a} } ?
[2011/12/16 07:34:48] <slap_stick> not like i can use it but just wanted to know
[2011/12/16 07:35:24] @ Quit: kelseyhightower: Ping timeout: 252 seconds
[2011/12/16 07:35:52] <_rc_> in general, avoid class/node inheritance. it just turns into a bad game of "so what did declare that"
[2011/12/16 07:36:18] <slap_stick> ok, but what if you need to override something inside a class?
[2011/12/16 07:36:23] <_rc_> with a side round of "why didn't that take effect like I thought it would"
[2011/12/16 07:36:33] @ Quit: kermit: Quit: Leaving.
[2011/12/16 07:36:54] <slap_stick> i guess you write your classes objectively as to not actually set anything up that would need overriding? and things you need to setup would come from extlookup?
[2011/12/16 07:37:23] <_rc_> pretty much
[2011/12/16 07:37:35] <slap_stick> i see
[2011/12/16 07:37:48] <slap_stick> i guess that makes sense
[2011/12/16 07:38:32] <_rc_> it's not the only/best way to do it, but I find it workable and reduces surprise
[2011/12/16 07:39:11] @ kermit joined channel #puppet
[2011/12/16 07:39:17] @ pmorillon joined channel #puppet
[2011/12/16 07:39:27] <slap_stick> documentation doesn't really approach things like that though
[2011/12/16 07:39:44] <slap_stick> i mean, puppetlabs docs approach things in a way that isn't data orientated
[2011/12/16 07:40:26] <slap_stick> it's great if you are doing simple things, but if anything involves scale, you tie people in to a methodology that actually doesn't scale you're then left revising everything and having to almost start from scratch with a different approach
[2011/12/16 07:40:35] <_rc_> well the demonstrate all the language features, they don't really warn you of the traps
[2011/12/16 07:41:02] <slap_stick> and i bet loads of people end up having to start again once they understand the pitfalls
[2011/12/16 07:41:48] <f3ew> slap_stick: that's fine. Puppet is a far more programmatic way of approaching your infrastructure, so you have to be willing to refactor/rewrite/re-implement
[2011/12/16 07:42:17] <slap_stick> agreed.. would be nice though if they kind of explained a 'greater scheme of things' approach
[2011/12/16 07:42:40] <slap_stick> otherwise you just have lots of people either reinvneting the wheel or having to go through the same thing
[2011/12/16 07:42:59] <f3ew> slap_stick: a "greater scheme of things?"
[2011/12/16 07:43:01] @ sdog joined channel #puppet
[2011/12/16 07:43:07] @ dan__t joined channel #puppet
[2011/12/16 07:43:12] <_rc_> there is no one true way
[2011/12/16 07:43:15] @ Quit: sdog: Changing host
[2011/12/16 07:43:15] @ sdog joined channel #puppet
[2011/12/16 07:43:21] @ Quit: _nono_: Quit: Leaving
[2011/12/16 07:43:30] <slap_stick> ok well, common miconceptions and problems i guess, how to scale puppet
[2011/12/16 07:43:38] <slap_stick> not infrastructurally but code wise
[2011/12/16 07:43:42] <f3ew> Scaling it? Just add Puppetmasters?
[2011/12/16 07:43:44] <slap_stick> is infrastructurally a word?
[2011/12/16 07:43:47] @ Quit: lborda: Ping timeout: 240 seconds
[2011/12/16 07:43:51] <f3ew> It is now
[2011/12/16 07:43:59] <slap_stick> ha
[2011/12/16 07:44:04] @ marrusl joined channel #puppet
[2011/12/16 07:44:32] <f3ew> `You can destroy resources which aren't in Puppet
[2011/12/16 07:44:38] @ nated joined channel #puppet
[2011/12/16 07:44:39] @ Quit: nated: Changing host
[2011/12/16 07:44:39] @ nated joined channel #puppet
[2011/12/16 07:44:46] <f3ew> But that's something you almost never, ever want to di
[2011/12/16 07:44:51] <f3ew> do
[2011/12/16 07:45:03] <slap_stick> yeh, was curious
[2011/12/16 07:45:12] <slap_stick> i know you can override, didnt know if there was a complete destory as well
[2011/12/16 07:45:43] <f3ew> You *can*. But then you had better ensure that everything you need is in Puppet, including Puppet itself.
[2011/12/16 07:45:59] <_rc_> f3ew: different question I think
[2011/12/16 07:46:21] <slap_stick> yeh maybe i dont mean resource, but more a declaration of a resource use
[2011/12/16 07:46:25] <_rc_> f3ew: this isn't the purging other resources stuff
[2011/12/16 07:46:50] <f3ew> ah
[2011/12/16 07:46:53] <slap_stick> file { "this" } destroy[File["this"]] kind of thing
[2011/12/16 07:46:55] <_rc_> this is some class declares Package[foo]; some related class wants to remove that from the catalog.
[2011/12/16 07:47:01] <f3ew> No
[2011/12/16 07:47:23] <_rc_> would be bad and wrong
[2011/12/16 07:47:24] @ lborda joined channel #puppet
[2011/12/16 07:47:32] <slap_stick> yeh it wouldn't make sense to even have it really, if you dont want it defined, dont define it
[2011/12/16 07:47:47] <f3ew> I don't see a usecase for that which would leave sysadmins sane
[2011/12/16 07:48:04] <_rc_> you often see it asked as 'how do I say "all classes, apart from on node Jim which wants all - foo"'
[2011/12/16 07:48:32] <slap_stick> haha
[2011/12/16 07:48:37] <_rc_> and it normally means they didn't split the classes small enough to begin with
[2011/12/16 07:48:45] <f3ew> Yup
[2011/12/16 07:48:52] <slap_stick> i dont really like the spiderweb of includes of classes though
[2011/12/16 07:48:56] <slap_stick> i find it a bit chaotic
[2011/12/16 07:49:02] <f3ew> We have a reasonably sane hierarchy here
[2011/12/16 07:49:30] @ rcrowley joined channel #puppet
[2011/12/16 07:49:38] <_rc_> make them as big as they can be; you can always refactor later, it's just a few commits away
[2011/12/16 07:49:42] <f3ew> node -> service (global modules) -> modules (basically parameterised classes)
[2011/12/16 07:49:43] @ Quit: skm: Quit: Computer has gone to sleep.
[2011/12/16 07:51:27] @ seanh-ansca joined channel #puppet
[2011/12/16 07:51:46] @ X0Rc0re joined channel #puppet
[2011/12/16 07:51:48] <X0Rc0re> http://tinychat.com/hacktheplanet
[2011/12/16 07:53:08] <slap_stick> yeh , i tend to be in the mind set of making modules configurable i.e. paramterized classes or defines, but my mistake is that i see it as a functional language and it's not
[2011/12/16 07:54:00] <f3ew> It's OO/functional, but not Turing complete
[2011/12/16 07:54:38] @ Quit: villovil: Quit: Changing server
[2011/12/16 07:56:26] @ Quit: gabrtv: Quit: gabrtv
[2011/12/16 07:59:25] @ skm joined channel #puppet
[2011/12/16 08:00:04] @ benjiedmund joined channel #puppet
[2011/12/16 08:01:24] <slap_stick> well, thanks for your help anyway ;-) appreciated
[2011/12/16 08:01:49] @ Bass10 joined channel #puppet
[2011/12/16 08:02:57] @ Quit: Bass10: Max SendQ exceeded
[2011/12/16 08:08:41] @ riha left channel #puppet ()
[2011/12/16 08:09:39] @ Quit: skm: Quit: Computer has gone to sleep.
[2011/12/16 08:10:36] @ Quit: fronlius: Read error: Connection reset by peer
[2011/12/16 08:10:53] @ fronlius joined channel #puppet
[2011/12/16 08:11:23] @ Quit: kermit: Ping timeout: 244 seconds
[2011/12/16 08:11:44] <lwhalen> have people been reporting weird behavior with puppet-agent in 2.7.9?
[2011/12/16 08:12:15] <Callek> lwhalen: you'll have to be more specific than that
[2011/12/16 08:13:49] @ Quit: m3ridian:
[2011/12/16 08:13:59] @ X0Rc0re left channel #puppet ()
[2011/12/16 08:15:42] <lwhalen> I've got three or four clients (Oracle Enterprise 5.7, 64-bit, puppet installed via RPM from puppetlabs) that have randomly stopped talking with the puppetmaster
[2011/12/16 08:16:12] @ gabrtv joined channel #puppet
[2011/12/16 08:16:14] @ Quit: PsychoSid: Quit: Linkinus - http://linkinus.com
[2011/12/16 08:16:40] <lwhalen> this generally happens at o-dark thirty at night, and since I've got a custom Nagios check that watches the age of /var/lib/puppet/state/state.yaml, I get woken up :-p
[2011/12/16 08:17:53] <lwhalen> the agent is logging "puppet-agent[8821]: Could not retrieve catalog from remote server: Could not intern from pson: source did not contain any PSON!"
[2011/12/16 08:18:19] <lwhalen> this was a direct upgrade from 2.7.6, where I ran into that cert-generation bug
[2011/12/16 08:19:14] * Callek will defer to others here
[2011/12/16 08:22:13] <masterzen> lwhalen: I'd say your master didn't send anything useful to the client.
[2011/12/16 08:24:17] @ Stenbryggen joined channel #puppet
[2011/12/16 08:24:26] @ Quit: mlout: Quit: Leaving.
[2011/12/16 08:30:31] @ Quit: raphdg: Remote host closed the connection
[2011/12/16 08:31:08] @ ghg joined channel #puppet
[2011/12/16 08:31:24] @ gaahrdner joined channel #puppet
[2011/12/16 08:32:31] <neonflux> lwhalen: I've been seeing some nodes show up as unresponsive on puppet-dashboard over the last month
[2011/12/16 08:32:41] <neonflux> all at varying times
[2011/12/16 08:36:10] <lisa> is there a way to get extlookup to play nicely with environments?
[2011/12/16 08:36:24] @ Quit: MattyM: Remote host closed the connection
[2011/12/16 08:36:32] <lisa> wiht 2.7.x
[2011/12/16 08:37:42] <lisa> or is that a user-supplied case statement?
[2011/12/16 08:37:46] <_rc_> just have a distinct site.pp for each environment, then in those you can set http://edweissman.com/famous-last-words-by-bosses-ive-had
[2011/12/16 08:37:55] <_rc_> $extlookup_datadir to the right thing
[2011/12/16 08:38:17] <lisa> okay
[2011/12/16 08:41:12] @ dwalu joined channel #puppet
[2011/12/16 08:41:37] <dan__t> Mmm, today I'm going to investigate how nasty it would be to create VLANs, bonds, and bridges on Linux with Puppet.
[2011/12/16 08:41:38] @ Quit: natewalck: Quit: Outta here
[2011/12/16 08:41:41] @ Quit: JStoker: Ping timeout: 240 seconds
[2011/12/16 08:41:43] <dan__t> I'm expecting explosions and fun stuff.
[2011/12/16 08:41:57] @ Quit: Ramonster: Quit: So Long and thanks for all the fish
[2011/12/16 08:42:14] <jim80net> so I'm learning puppet still, and trying to manage local users.... I'm trying to pass an array in the nodes.pp to an if statement in the users module. The if statement says if $users_admin {include $users-admin}. I know I need to format that differently, because it's not working. Help?
[2011/12/16 08:43:20] <_rc_> $users_admin $users-admin. which?
[2011/12/16 08:43:34] @ rharrison joined channel #puppet
[2011/12/16 08:43:52] <jim80net> _rc_; it's a typo in the IM, in the code, it's correct users_admin
[2011/12/16 08:44:03] <lisa> dan__t: sounds like a great way to hose your network :) good luck :D
[2011/12/16 08:44:16] <_rc_> then please define 'not working' more specifcally.
[2011/12/16 08:44:31] <jim80net> basically, i get the following debug error:
[2011/12/16 08:44:50] <jim80net> Error 400 on SERVER: undefined method `downcase' for ["users::users::netops", "users::users::techsrv"]:Array at
[2011/12/16 08:45:36] <_rc_> so $users_admin is an array?
[2011/12/16 08:45:51] <jim80net> that array being what I'm defining in the nodes.pp :
[2011/12/16 08:45:52] <jim80net> node 'testpup1' inherits devel {
[2011/12/16 08:45:52] <jim80net> $users_admins = ["users::users::netops","users::users::techsrv"]
[2011/12/16 08:45:52] <jim80net> $testing = yes
[2011/12/16 08:45:52] <jim80net> include general
[2011/12/16 08:45:52] <jim80net> }
[2011/12/16 08:46:04] <jim80net> ugh, sorry. shoulda pastebin'd that
[2011/12/16 08:46:27] <_rc_> so it's saying, effectively, that include doesn't take an array
[2011/12/16 08:46:52] @ joshcooper joined channel #puppet
[2011/12/16 08:46:56] <_rc_> it expects a string, or something else that it could call downcase on
[2011/12/16 08:47:29] @ kelseyhightower joined channel #puppet
[2011/12/16 08:47:32] <_rc_> try this. define include_many { include title } include_many { $users_admins: }
[2011/12/16 08:47:47] @ JayTaph joined channel #puppet
[2011/12/16 08:47:54] <_rc_> sorry, define include_many { include $title } include_many { $users_admins: }
[2011/12/16 08:47:58] @ Quit: rutger: Remote host closed the connection
[2011/12/16 08:48:02] @ nh0ch0ckiss joined channel #puppet
[2011/12/16 08:48:10] <lisa> jim80net: use pastie.org to paste large chunks of text
[2011/12/16 08:48:21] @ Quit: pieter: Quit: Ex-Chat
[2011/12/16 08:48:26] <nh0ch0ckiss> hi
[2011/12/16 08:48:48] @ Quit: nh0ch0ckiss: Client Quit
[2011/12/16 08:49:19] <dan__t> thanks, lisa.
[2011/12/16 08:49:20] <jim80net> _rc_ genius, works!
[2011/12/16 08:49:30] <jim80net> lisa, yup, that's my fault
[2011/12/16 08:49:32] <dan__t> It's just some fancy templating.
[2011/12/16 08:50:06] @ Majestic joined channel #puppet
[2011/12/16 08:50:15] <_rc_> I disagree, it's it's just fancy macro expansion
[2011/12/16 08:50:31] <dan__t> Create an /etc/sysconfig/network-scripts/ifcfg-bond0.CLIENTVLAN, an /etc/sysconfig/network-scripts/ifcfg-vlanCLIENTVLAN to represent a bridge, and ifup each part.
[2011/12/16 08:51:24] @ wilmoore joined channel #puppet
[2011/12/16 08:52:51] @ johnston_ joined channel #puppet
[2011/12/16 08:54:48] @ JStoker joined channel #puppet
[2011/12/16 08:55:32] @ comptona joined channel #puppet
[2011/12/16 08:55:40] @ Quit: jodok: Quit: jodok
[2011/12/16 08:55:55] <gaahrdner> how does everyone run the puppet agent? via the daemon or cron? we've been using the daemon for a few years but i'm finding now that at times it's using about 500mb in resident memory...
[2011/12/16 08:56:37] <_rc_> cron, with mcollective for ad-hoc runs, almost entirely for that reason
[2011/12/16 08:57:39] <_rc_> either puppet isn't good as releasing things, or it's the ruby vm, but the net result is the same
[2011/12/16 08:59:18] <gaahrdner> yeah, i think i'm going to have to switch
[2011/12/16 09:00:57] <jim80net> would you use puppet to make the switch?
[2011/12/16 09:01:17] <jim80net> install cron job, then stop the service?
[2011/12/16 09:01:47] <gaahrdner> Yeah, ensure the cron job there is first, then ensure the puppetd service is stopped and chkconfiged off
[2011/12/16 09:01:50] @ Quit: key__: Remote host closed the connection
[2011/12/16 09:01:53] * jim80net feels noobish in #puppet. lol
[2011/12/16 09:02:22] <_rc_> no, because unless you very carefully force the ordering, and you can't really enforce the ordering between enable/running, you'll shoot yourself in the foot a lot
[2011/12/16 09:02:27] @ Quit: DbT_: Quit: So long.
[2011/12/16 09:02:55] @ Quit: uphillian: Quit: Leaving.
[2011/12/16 09:03:08] <gaahrdner> yeah, now that i think about it, you'd might have to set up some run stages to ensure the rest of hte catalog applied
[2011/12/16 09:03:11] @ uphillian joined channel #puppet
[2011/12/16 09:03:38] @ Quit: trickyf: Quit: Leaving.
[2011/12/16 09:03:41] <gaahrdner> might be better suited for a one off ssh loop...
[2011/12/16 09:03:45] <_rc_> it's safe enough to do service { "puppet": enabled => false } so it doesn't start on next boot, but ensure => stopped will make it kill itself mid-run
[2011/12/16 09:04:32] @ Quit: uphillian: Client Quit
[2011/12/16 09:04:41] <_rc_> so for the migration from daemon to cron it's a bit fiddly; but ideally once you make the switch it's fine to put that in puppet
[2011/12/16 09:04:58] <_rc_> though you'd make it a provisioning step if you can
[2011/12/16 09:06:25] @ key joined channel #puppet
[2011/12/16 09:06:27] <gaahrdner> yeah, that sounds like a safer way to do it
[2011/12/16 09:09:06] @ Quit: dwalu: Remote host closed the connection
[2011/12/16 09:09:22] @ dwalu joined channel #puppet
[2011/12/16 09:10:10] @ emre` joined channel #puppet
[2011/12/16 09:10:18] <henderb> do puppet agents keep track of exported resources? I just moved my agents to a new puppetmaster by removing /var/lib/puppet/ssl/ and joining them to the new one and they don't seem to be exporting their resources
[2011/12/16 09:10:50] <_rc_> the exported resources are kept by the puppetmaster in their configured database
[2011/12/16 09:11:17] @ Quit: joshcooper: Quit: joshcooper
[2011/12/16 09:13:17] @ cwarden joined channel #puppet
[2011/12/16 09:13:22] <henderb> right, but only the new hosts have resources, the ones that were on the old master don't
[2011/12/16 09:13:47] @ l0n joined channel #puppet
[2011/12/16 09:17:03] <_rc_> yes; the only way to change that would be to have a common storeconfig db between masters
[2011/12/16 09:17:15] @ Quit: pmorillon: Quit: pmorillon
[2011/12/16 09:20:48] @ Quit: rharrison: Remote host closed the connection
[2011/12/16 09:21:58] @ miche joined channel #puppet
[2011/12/16 09:27:20] @ Quit: nan0r: Quit: Leaving.
[2011/12/16 09:29:04] @ Quit: overgrownpuppy: Read error: Connection reset by peer
[2011/12/16 09:31:08] @ Quit: kenperkins: Quit: Computer has gone to sleep.
[2011/12/16 09:32:06] <henderb> how would I make the puppet client forget what it's uploaded?
[2011/12/16 09:32:39] @ langworthy joined channel #puppet
[2011/12/16 09:34:24] @ Quit: maxmartin: Quit: Computer has gone to sleep.
[2011/12/16 09:35:36] @ Quit: ghg: Ping timeout: 244 seconds
[2011/12/16 09:36:32] @ joe-mac joined channel #puppet
[2011/12/16 09:37:03] @ |Majestic| joined channel #puppet
[2011/12/16 09:38:59] @ Quit: danikov: Quit: danikov
[2011/12/16 09:39:12] @ Quit: mogitaff: Quit: Leaving
[2011/12/16 09:39:40] @ Quit: Majestic: Ping timeout: 252 seconds
[2011/12/16 09:40:49] @ Quit: PhilK: Excess Flood
[2011/12/16 09:41:34] @ Quit: lanky: Quit: Leaving
[2011/12/16 09:41:40] @ Quit: freezey: Quit: freezey
[2011/12/16 09:45:11] @ ascarter joined channel #puppet
[2011/12/16 09:45:28] @ brunoleon__ joined channel #puppet
[2011/12/16 09:45:29] @ PhilK joined channel #puppet
[2011/12/16 09:45:55] @ Quit: langworthy: Quit: langworthy
[2011/12/16 09:47:10] @ natewalck joined channel #puppet
[2011/12/16 09:47:50] @ joshcooper joined channel #puppet
[2011/12/16 09:48:41] @ Quit: alanevans: Remote host closed the connection
[2011/12/16 09:50:22] @ Quit: lkoranda: Quit: Ex-Chat
[2011/12/16 09:51:01] @ kermit joined channel #puppet
[2011/12/16 09:52:01] @ Quit: nottings_: Quit: Leaving
[2011/12/16 09:52:52] @ maxmartin joined channel #puppet
[2011/12/16 09:53:49] <fixxxermet> Hey everyone. I've written an openvz module with openvz:: service, config and install. ::install installs a new kernel, which requires a rebooot.
[2011/12/16 09:54:16] <fixxxermet> So for the ::install kernel package, I gave it a notify => exec['reboot']
[2011/12/16 09:54:30] <fixxxermet> Is this going to reboot the server after ::config?
[2011/12/16 09:54:32] @ Quit: ascarter: Quit: Computer has gone to sleep.
[2011/12/16 09:54:55] <Volcane> fixxxermet: require the exec
[2011/12/16 09:55:15] @ djm68 joined channel #puppet
[2011/12/16 09:55:26] <fixxxermet> Volcane: http://pastebin.com/iq728nLN is what I have now
[2011/12/16 09:55:51] <fixxxermet> I read that doing refreshonly w/ notify is a good way to selectively use exec
[2011/12/16 09:56:40] <fixxxermet> Right now nothing in ::config requires ::install
[2011/12/16 09:56:58] <fixxxermet> though ::service does require ::config
[2011/12/16 09:57:04] <Volcane> if u want something to happens before something else then require it
[2011/12/16 09:57:50] @ ianbrandt joined channel #puppet
[2011/12/16 09:57:52] @ althara joined channel #puppet
[2011/12/16 09:58:00] @ nfagerlund joined channel #puppet
[2011/12/16 09:58:21] <fixxxermet> So what happens if ::install, which is required by ::config, does a reboot? will ::config finish?
[2011/12/16 09:58:25] @ lak joined channel #puppet
[2011/12/16 09:58:26] @ Quit: lak: Changing host
[2011/12/16 09:58:26] @ lak joined channel #puppet
[2011/12/16 09:58:49] <Volcane> next run yes
[2011/12/16 09:58:58] <Volcane> after the boot
[2011/12/16 09:59:14] <fixxxermet> ok
[2011/12/16 10:00:34] <Volcane> everything happens on every run
[2011/12/16 10:00:51] <Volcane> so if you reboot before the run ends next run it will do all the stuff
[2011/12/16 10:01:06] <Volcane> but because the ::install will be done already, no notify sent, and the rest will continue
[2011/12/16 10:03:20] <fixxxermet> makese sense
[2011/12/16 10:04:21] @ kenperkins joined channel #puppet
[2011/12/16 10:04:44] @ Quit: konadr: Quit: Leaving
[2011/12/16 10:06:34] @ timyim joined channel #puppet
[2011/12/16 10:06:36] @ rharrison joined channel #puppet
[2011/12/16 10:06:59] @ langworthy joined channel #puppet
[2011/12/16 10:08:58] @ pcarlisle joined channel #puppet
[2011/12/16 10:09:38] @ gadavis joined channel #puppet
[2011/12/16 10:10:21] @ Quit: inecas: Quit: Leaving
[2011/12/16 10:10:57] @ ascarter joined channel #puppet
[2011/12/16 10:11:01] @ Quit: sihil: Ping timeout: 268 seconds
[2011/12/16 10:12:39] @ Quit: lavaman: Remote host closed the connection
[2011/12/16 10:12:59] @ donavanm joined channel #puppet
[2011/12/16 10:14:02] @ donavanm left channel #puppet ()
[2011/12/16 10:15:44] @ djm68 left channel #puppet ()
[2011/12/16 10:16:57] @ lavaman joined channel #puppet
[2011/12/16 10:17:19] @ shadoi joined channel #puppet
[2011/12/16 10:18:16] @ Quit: langworthy: Quit: langworthy
[2011/12/16 10:19:09] @ Quit: jongrocho: Ping timeout: 240 seconds
[2011/12/16 10:21:05] @ beckonconn left channel #puppet ()
[2011/12/16 10:22:06] @ TollTerrain joined channel #puppet
[2011/12/16 10:28:15] @ alanevans joined channel #puppet
[2011/12/16 10:30:44] @ newtMcKerr joined channel #puppet
[2011/12/16 10:30:51] @ Quit: localhost: Remote host closed the connection
[2011/12/16 10:32:01] @ tizzo is now known as tizzo-afk
[2011/12/16 10:32:02] @ localhost joined channel #puppet
[2011/12/16 10:34:01] @ Quit: astrostl:
[2011/12/16 10:39:26] @ Quit: ascarter: Quit: Computer has gone to sleep.
[2011/12/16 10:43:14] @ langworthy joined channel #puppet
[2011/12/16 10:45:30] @ Quit: wmoxam: Disconnected by services
[2011/12/16 10:45:51] @ wmoxam_ joined channel #puppet
[2011/12/16 10:46:46] @ jodok joined channel #puppet
[2011/12/16 10:46:49] @ Quit: jodok: Changing host
[2011/12/16 10:46:50] @ jodok joined channel #puppet
[2011/12/16 10:49:05] @ mrwacky42 joined channel #puppet
[2011/12/16 10:50:06] @ Quit: TollTerrain: Quit: Page closed
[2011/12/16 10:50:36] @ Quit: jodok: Remote host closed the connection
[2011/12/16 10:50:53] @ jodok joined channel #puppet
[2011/12/16 10:50:54] @ Quit: jodok: Changing host
[2011/12/16 10:50:54] @ jodok joined channel #puppet
[2011/12/16 10:50:57] @ Quit: miche: Quit: Computer has gone to sleep.
[2011/12/16 10:51:27] @ ascarter joined channel #puppet
[2011/12/16 10:55:58] @ jodok_ joined channel #puppet
[2011/12/16 10:55:59] @ Quit: jodok_: Changing host
[2011/12/16 10:55:59] @ jodok_ joined channel #puppet
[2011/12/16 10:58:52] @ Quit: jodok: Ping timeout: 252 seconds
[2011/12/16 10:58:52] @ jodok_ is now known as jodok
[2011/12/16 11:01:09] @ erthad left channel #puppet ()
[2011/12/16 11:01:24] @ cosman2001 joined channel #puppet
[2011/12/16 11:01:50] @ Quit: ken_barber: Quit: Leaving.
[2011/12/16 11:04:08] @ miche joined channel #puppet
[2011/12/16 11:04:13] @ cfant joined channel #puppet
[2011/12/16 11:05:35] @ beckonconn joined channel #puppet
[2011/12/16 11:07:56] @ Quit: slap_stick: Quit: This computer has gone to sleep
[2011/12/16 11:09:50] @ Quit: fronlius: Read error: Operation timed out
[2011/12/16 11:12:24] @ pronam joined channel #puppet
[2011/12/16 11:12:25] @ Quit: pronam: Excess Flood
[2011/12/16 11:15:50] @ Quit: kermit: Ping timeout: 244 seconds
[2011/12/16 11:15:52] @ lkoranda joined channel #puppet
[2011/12/16 11:16:37] @ fronlius joined channel #puppet
[2011/12/16 11:24:01] @ shanlar- joined channel #puppet
[2011/12/16 11:24:07] @ kermit joined channel #puppet
[2011/12/16 11:25:42] @ bmahe joined channel #puppet
[2011/12/16 11:26:42] @ Quit: langworthy: Read error: No route to host
[2011/12/16 11:27:13] @ langworthy joined channel #puppet
[2011/12/16 11:27:36] @ Quit: shanlar: Ping timeout: 252 seconds
[2011/12/16 11:27:43] @ Quit: kermit: Remote host closed the connection
[2011/12/16 11:30:19] @ Quit: dfamorato: Read error: Connection reset by peer
[2011/12/16 11:35:16] @ dfamorato joined channel #puppet
[2011/12/16 11:36:22] @ Quit: dfamorato: Read error: Connection reset by peer
[2011/12/16 11:39:56] @ kermit joined channel #puppet
[2011/12/16 11:40:18] @ freezey joined channel #puppet
[2011/12/16 11:45:57] @ jodok_ joined channel #puppet
[2011/12/16 11:46:25] @ Quit: fhd: Remote host closed the connection
[2011/12/16 11:47:13] @ beckonconn left channel #puppet ()
[2011/12/16 11:47:22] @ jodok__ joined channel #puppet
[2011/12/16 11:47:23] @ Quit: jodok__: Changing host
[2011/12/16 11:47:23] @ jodok__ joined channel #puppet
[2011/12/16 11:48:06] @ Quit: joshcooper: Quit: joshcooper
[2011/12/16 11:48:08] @ Quit: jodok: Ping timeout: 252 seconds
[2011/12/16 11:48:08] @ jodok__ is now known as jodok
[2011/12/16 11:48:12] @ Quit: fir31ight: Remote host closed the connection
[2011/12/16 11:48:58] @ fir31ight joined channel #puppet
[2011/12/16 11:49:56] @ Quit: jodok_: Ping timeout: 240 seconds
[2011/12/16 11:50:02] @ Quit: jodok: Remote host closed the connection
[2011/12/16 11:50:18] @ jodok joined channel #puppet
[2011/12/16 11:53:03] @ tizzo-afk is now known as tizzo
[2011/12/16 11:54:11] @ IndyMichaelB_ joined channel #puppet
[2011/12/16 11:56:08] @ dfamorato joined channel #puppet
[2011/12/16 11:56:11] @ jodok_ joined channel #puppet
[2011/12/16 11:56:12] @ Quit: jodok_: Changing host
[2011/12/16 11:56:12] @ jodok_ joined channel #puppet
[2011/12/16 11:56:38] @ Quit: IndyMichaelB: Ping timeout: 240 seconds
[2011/12/16 11:56:38] @ IndyMichaelB_ is now known as IndyMichaelB
[2011/12/16 11:58:23] @ Quit: jodok: Ping timeout: 248 seconds
[2011/12/16 11:58:23] @ jodok_ is now known as jodok
[2011/12/16 12:01:08] @ Quit: madasi: Quit: +++ OK ATH OK
[2011/12/16 12:01:08] <_zack> heya, does 'puppet parser validate' perform an in-depth validation following all include/import ?
[2011/12/16 12:01:09] @ Dr_Memory joined channel #puppet
[2011/12/16 12:01:28] <Dr_Memory> is it possible to introspect a package resource to find out what version puppet believes is current?
[2011/12/16 12:02:09] <Dr_Memory> I'd like to have an exec that triggers only when we cross a certain version threshold.
[2011/12/16 12:03:39] <gaahrdner> i don't think there is an easy way to do that Dr_Memory, save writing a fact: http://projects.puppetlabs.com/projects/1/wiki/Package_Version_Matching_Patterns
[2011/12/16 12:05:21] <gaahrdner> oops i'm wrong, looks like there is a function called "versioncmp"
[2011/12/16 12:05:35] <gaahrdner> http://projects.puppetlabs.com/issues/10934
[2011/12/16 12:05:43] @ Quit: jodok: Remote host closed the connection
[2011/12/16 12:05:43] <Dr_Memory> dissappointment! Followed by Interest!
[2011/12/16 12:05:55] @ jodok joined channel #puppet
[2011/12/16 12:05:56] @ Quit: jodok: Changing host
[2011/12/16 12:05:56] @ jodok joined channel #puppet
[2011/12/16 12:07:26] <Dr_Memory> huh, except that versioncmp is just a string comparison
[2011/12/16 12:07:30] <Dr_Memory> unless I'm misreading this?
[2011/12/16 12:07:35] <Dr_Memory> http://docs.puppetlabs.com/references/stable/function.html#versioncmp
[2011/12/16 12:07:45] <gaahrdner> yeah, i just looked at that, i think you're right :(
[2011/12/16 12:11:00] <gaahrdner> this might help: http://groups.google.com/group/puppet-users/browse_thread/thread/1a75bd09564f7439
[2011/12/16 12:11:39] <pll> Anyone know why puppet would choke on creating a group when manually exec'ing the groupadd command works fine ?
[2011/12/16 12:12:01] <pll> I'm getting 'foogroup' is not a valid group name
[2011/12/16 12:12:33] <pll> Does puppet choke if user/group name is > 8 chars ?
[2011/12/16 12:12:34] <eric0> gaahrdner, Dr_Memory look at zee code, its a little smarter than that.. lib/puppet/util.package.rb
[2011/12/16 12:14:25] @ skm joined channel #puppet
[2011/12/16 12:14:26] @ Quit: |Majestic|: Ping timeout: 252 seconds
[2011/12/16 12:14:32] <Dr_Memory> eric0: sorry, yeah, I get that it's not just a stringwise cmp
[2011/12/16 12:15:17] <Dr_Memory> but can you use it to do something like versioncmp(Package["a"], '0.0.1') ?
[2011/12/16 12:16:57] <Volcane> if only it was documented hey?
[2011/12/16 12:17:01] @ Quit: natewalck: Quit: Outta here
[2011/12/16 12:17:02] @ Mode -o Volcane by Volcane
[2011/12/16 12:17:24] <Dr_Memory> where's the fun in reading documentation? :)
[2011/12/16 12:17:50] <Volcane> enough stupid questions easily answered in one of the 3 major doc pages and no1 will help you anymore :)
[2011/12/16 12:18:03] <Dr_Memory> point
[2011/12/16 12:19:55] <Volcane> really all u need for most of these questions is one of type reference, function reference or languide guide
[2011/12/16 12:20:00] <Volcane> 3 pages, answers most questions
[2011/12/16 12:23:47] @ |Majestic| joined channel #puppet
[2011/12/16 12:26:03] @ Quit: Chowzzf: Quit: Leaving
[2011/12/16 12:27:06] @ Quit: langworthy: Read error: No route to host
[2011/12/16 12:27:58] @ langworthy joined channel #puppet
[2011/12/16 12:28:07] @ Chowzzf joined channel #puppet
[2011/12/16 12:37:13] @ Quit: Chowzzf: Quit: Leaving
[2011/12/16 12:38:54] @ Quit: IndyMichaelB: Remote host closed the connection
[2011/12/16 12:39:07] @ IndyMichaelB joined channel #puppet
[2011/12/16 12:40:49] @ Chowzzf joined channel #puppet
[2011/12/16 12:43:54] @ KaiserBeto1 joined channel #puppet
[2011/12/16 12:44:00] @ bsg_kwolf1 joined channel #puppet
[2011/12/16 12:46:39] @ Quit: skm: Quit: Computer has gone to sleep.
[2011/12/16 12:47:05] @ Quit: fsweetser: Remote host closed the connection
[2011/12/16 12:51:04] @ Quit: rgsteele: Remote host closed the connection
[2011/12/16 12:53:05] @ Quit: sdog: Quit: Leaving.
[2011/12/16 12:53:09] @ sdog joined channel #puppet
[2011/12/16 12:53:25] @ jorhett left channel #puppet ()
[2011/12/16 12:53:30] @ Quit: rcrowley: Quit: Computer has gone to sleep.
[2011/12/16 12:55:41] @ Quit: dfamorato: Ping timeout: 252 seconds
[2011/12/16 12:56:15] @ Quit: miche: Quit: Computer has gone to sleep.
[2011/12/16 13:00:48] @ dan__t_ joined channel #puppet
[2011/12/16 13:00:59] @ danikov joined channel #puppet
[2011/12/16 13:01:11] @ Quit: dan__t: Ping timeout: 252 seconds
[2011/12/16 13:01:53] @ dfamorato joined channel #puppet
[2011/12/16 13:02:09] @ Quit: kubicek: Excess Flood
[2011/12/16 13:02:14] @ kubicek joined channel #puppet
[2011/12/16 13:02:14] @ Quit: kubicek: Excess Flood
[2011/12/16 13:03:33] @ kubicek joined channel #puppet
[2011/12/16 13:03:37] @ paxos joined channel #puppet
[2011/12/16 13:03:58] @ Quit: danikov: Client Quit
[2011/12/16 13:04:18] @ tomdebenning_ joined channel #puppet
[2011/12/16 13:07:10] @ Quit: seekwill: Quit: Leaving
[2011/12/16 13:07:14] <robinbowes> Where are facter facts documented?
[2011/12/16 13:08:48] <Dominic> robinbowes: only in the source files really. The new ones tend to have descriptions about the source data, caveats etc.
[2011/12/16 13:08:56] @ Quit: tmclaugh: Quit: tmclaugh
[2011/12/16 13:09:04] @ Quit: brandon_dacrib: Quit: brandon_dacrib
[2011/12/16 13:09:41] <robinbowes> OK
[2011/12/16 13:10:06] <bsg_kwolf1> I have what I'm sure is going to be a dump question. Shouldn't this result in the servers in the regex having $is_dr_server set to true? http://pastie.org/3028257
[2011/12/16 13:10:15] @ Quit: kelseyhightower: Ping timeout: 255 seconds
[2011/12/16 13:11:19] <Dominic> bsg_kwolf1: you've fallen into trap #1 of node inheritance. Avoid it like the plague :)
[2011/12/16 13:11:19] <gepetto> Dominic: bsg_kwolf1: #1 is http://projects.puppetlabs.com/issues/show/1 "Puppet - Feature #1: Differentiate classes from definitions. It has a status of Closed and is assigned to Luke Kanies"
[2011/12/16 13:12:02] @ kelseyhightower joined channel #puppet
[2011/12/16 13:13:28] <Dominic> bsg_kwolf1: http://docs.puppetlabs.com/guides/troubleshooting.html#node-inheritance-and-variable-scope
[2011/12/16 13:15:06] <bsg_kwolf1> Thanks Dominic. I read that, it just feels like I'm going the other way if that makes sense. I thought I'd be able to define a new var in the node that inherited the parent.
[2011/12/16 13:15:53] <Dominic> bsg_kwolf1: it doesn't change the visibility, you can't see the new var from the parent (which I assume is what you're doing via those included classes)
[2011/12/16 13:16:29] <jetole> Hey guys. I have puppet 0.25.4 running (I know it's probably old) that I had setup a while ago rarely make changes to so pardon the "newbie" question but is it possible to setup rules in a manifest that apply to all servers with exceptions. I guess basically what I mean is can I create a list of hosts and apply the rules to all servers that are not listed as hosts not to receive these updates from?
[2011/12/16 13:16:40] @ Quit: JayTaph: Quit: JayTaph
[2011/12/16 13:16:42] @ Quit: kelseyhightower: Ping timeout: 252 seconds
[2011/12/16 13:16:54] <jetole> Also, is there a way I can list all client systems as well as the last time they checked in with puppetmaster?
[2011/12/16 13:17:15] @ Quit: brtl: Ping timeout: 244 seconds
[2011/12/16 13:19:04] @ Dewin joined channel #puppet
[2011/12/16 13:19:58] <aricg> jetole, http://theforeman.org ?
[2011/12/16 13:20:11] <jetole> thanks. let me take a look
[2011/12/16 13:20:32] @ verwilst joined channel #puppet
[2011/12/16 13:20:59] <jetole> aricg: oh now this looks cool
[2011/12/16 13:21:48] <bsg_kwolf1> Dominic: Yes, essentially, I think anyway. In modules I can't see $is_dr_server at all.
[2011/12/16 13:22:09] <bsg_kwolf1> I need to find time to get an enc or hiera going.
[2011/12/16 13:22:50] @ illsci joined channel #puppet
[2011/12/16 13:22:58] <jetole> foreman looks like something I will implement in the near future but for now, is there a way for me to see all hosts connecting to puppet master and the last time they connected. Also is there a way for me to create rules that apply to all hosts except the ones I ask it not too?
[2011/12/16 13:23:58] @ Jippi joined channel #puppet
[2011/12/16 13:26:38] <aricg> jetole there are reports in /var/lib/puppet/reports
[2011/12/16 13:26:59] @ miche joined channel #puppet
[2011/12/16 13:27:11] <jetole> aricg: Thanks. I'll take a look now
[2011/12/16 13:27:13] @ Quit: langworthy: Read error: Connection reset by peer
[2011/12/16 13:27:39] <jetole> ...hmmmm. not in my case. It's a empty dir
[2011/12/16 13:28:09] <bsg_kwolf1> I think it's different for 0.25, jetole. but I can't remember where they are.
[2011/12/16 13:28:11] @ langworthy joined channel #puppet
[2011/12/16 13:29:58] <bsg_kwolf1> jetole: check /var/lib/puppet/yaml/node
[2011/12/16 13:30:17] <jetole> ah cool
[2011/12/16 13:30:30] <jetole> I was just doing some poking around /var/lib/puppet when you mentioned that
[2011/12/16 13:30:59] <jetole> I see tons of yaml files all with the host names, I'll see if I can figure out how to find a last accessed timestamp from here
[2011/12/16 13:32:04] <Dewin> Hmm. I'd like to make a file resource that does ensure=>absent if a corresponding template does not exist and is otherwise ensure=>present and contents=>template(...). Any ideas on how I might go about this? Disclaimer: I'm very new to Puppet still. We just recently acquired a new server that will eventually replace one of our current ones and I'm essentially trying to transcribe all of the current server's configuration to puppet
[2011/12/16 13:32:09] <ashp> Guys, I need your genius. I want to move towards a model where service providers export information that can be collected on clients to determine what those services are.
[2011/12/16 13:32:19] <ashp> For example, dns resolvers exporting something tagged with their location and ip
[2011/12/16 13:32:26] <ashp> and then on clients I consume those to build resolv.conf
[2011/12/16 13:32:34] <ashp> I can't find a good generic way of doing this, closest I found was http://www.mail-archive.com/puppet-users@googlegroups.com/msg22236.html
[2011/12/16 13:32:44] <ashp> where he's importing and using generate and perl scripts..
[2011/12/16 13:32:51] @ Quit: dfamorato: Remote host closed the connection
[2011/12/16 13:33:38] @ Quit: leifmadsen: Ping timeout: 252 seconds
[2011/12/16 13:35:15] <ashp> I guess I could use concat and export a snippit from each resolver to build resolv.conf
[2011/12/16 13:35:21] <ashp> but I'm not sure that'll cut it for everything
[2011/12/16 13:35:31] <ashp> as sometimes I want to do more with the info than just make a file
[2011/12/16 13:35:52] <robinbowes> What is your source of truth?
[2011/12/16 13:36:07] <illsci> Hey isn't there a cwd property for the cron type?
[2011/12/16 13:36:13] <illsci> how do you set the current working directory for cron
[2011/12/16 13:36:30] <robinbowes> What do the docs say?
[2011/12/16 13:37:07] <ashp> robinbowes: The source of truth would be what the storeconfig collected information?
[2011/12/16 13:37:13] <ashp> robinbowes: i'm not sure I understand.
[2011/12/16 13:37:19] <illsci> im looking at them and I dont see it...
[2011/12/16 13:37:23] <illsci> maybe its the wrong version
[2011/12/16 13:37:47] <robinbowes> No, looks like there isn't such a parameter
[2011/12/16 13:38:32] <robinbowes> How would you set cwd in a crontab *without* using puppet ?
[2011/12/16 13:39:13] <agaffney> cd /path/to && ./my_cmd
[2011/12/16 13:39:15] <illsci> well I can tell you the way im doing it in puppet right now...
[2011/12/16 13:39:21] <illsci> exactly :)
[2011/12/16 13:39:33] <robinbowes> So, that's the way to do it then
[2011/12/16 13:39:35] <illsci> I could have sworn I've used cwd =>
[2011/12/16 13:39:41] <illsci> must have been exec or something
[2011/12/16 13:40:03] @ jodok_ joined channel #puppet
[2011/12/16 13:40:03] <robinbowes> Yes, exec has cwd
[2011/12/16 13:40:04] @ Quit: jodok_: Changing host
[2011/12/16 13:40:04] @ jodok_ joined channel #puppet
[2011/12/16 13:42:18] <robinbowes> ashp: so, if stored configs are your source of truth, then you need to use that information in your consumers
[2011/12/16 13:43:28] <ashp> robinbowes: Well, that's where I struggle to figure out. All I can export are resources, so I'm stuck exporting files, mostly likely, containing the info I need.
[2011/12/16 13:43:46] <ashp> Really however what I want to export are variables or something that can be consumed by clients
[2011/12/16 13:43:54] <ashp> because I could export those and then use them in templates
[2011/12/16 13:44:10] <ashp> I could use concat() with exported resources but I think I lose the ability to easily template things that way, I'm not sure.
[2011/12/16 13:44:20] <robinbowes> http://docs.puppetlabs.com/guides/exported_resources.html
[2011/12/16 13:44:23] @ Quit: jodok: Ping timeout: 268 seconds
[2011/12/16 13:44:23] @ jodok_ is now known as jodok
[2011/12/16 13:44:59] <ashp> But nothing in there specifically answers the question of -what- to export in order to use that information in templates.
[2011/12/16 13:45:27] @ seekwill joined channel #puppet
[2011/12/16 13:45:28] @ Quit: seekwill: Changing host
[2011/12/16 13:45:28] @ seekwill joined channel #puppet
[2011/12/16 13:45:45] <ashp> If I had the dns infrastructure in puppet I could have used that to build up zone information or something and then just had machines check dns to go to the right place (which is probably better in the long run)
[2011/12/16 13:46:21] <ashp> the issue I'm trying to solve is having clusters of services per dc and having machines hit the right ip's for things (like in resolv.conf where you can't just rely on a hostname like x.dc1.company.com
[2011/12/16 13:46:47] @ Quit: ldlework: Ping timeout: 240 seconds
[2011/12/16 13:49:46] @ IndyMichaelB_ joined channel #puppet
[2011/12/16 13:49:48] @ Quit: IndyMichaelB_: Client Quit
[2011/12/16 13:51:48] @ jongrocho joined channel #puppet
[2011/12/16 13:52:53] @ Quit: carlasouza: K-Lined
[2011/12/16 13:53:17] @ Quit: IndyMichaelB: Ping timeout: 240 seconds
[2011/12/16 13:53:56] @ Quit: zenimal: Ping timeout: 244 seconds
[2011/12/16 13:54:23] @ Quit: key: Remote host closed the connection
[2011/12/16 13:54:27] @ Quit: halc: Ping timeout: 240 seconds
[2011/12/16 13:54:33] @ carlasouza joined channel #puppet
[2011/12/16 13:54:39] @ carlasouza is now known as carlaaaaaaaa
[2011/12/16 13:54:43] @ leifmadsen joined channel #puppet
[2011/12/16 13:54:44] @ Quit: illsci: Quit: [BX] Twat?! I cunt hear you!
[2011/12/16 13:54:46] @ Djelibeybi joined channel #puppet
[2011/12/16 13:54:51] @ carlaaaaaaaa left channel #puppet ()
[2011/12/16 13:55:07] @ Quit: jodok: Remote host closed the connection
[2011/12/16 13:55:25] @ jodok joined channel #puppet
[2011/12/16 13:59:03] @ brtl joined channel #puppet
[2011/12/16 13:59:18] @ djbkd joined channel #puppet
[2011/12/16 13:59:48] @ Quit: leifmadsen: Ping timeout: 268 seconds
[2011/12/16 14:00:07] @ ldlework joined channel #puppet
[2011/12/16 14:01:46] @ zenimal joined channel #puppet
[2011/12/16 14:02:47] @ halc joined channel #puppet
[2011/12/16 14:03:43] @ leifmadsen joined channel #puppet
[2011/12/16 14:03:44] @ Quit: katfallond: Quit: katfallond
[2011/12/16 14:05:53] @ Quit: aricg: Quit: Leaving
[2011/12/16 14:12:01] @ Quit: jodok: Remote host closed the connection
[2011/12/16 14:12:18] @ jodok joined channel #puppet
[2011/12/16 14:12:19] @ Quit: jodok: Changing host
[2011/12/16 14:12:19] @ jodok joined channel #puppet
[2011/12/16 14:12:25] <robinbowes> Well, you could have the exported resources write the files, then read them in a template?
[2011/12/16 14:16:21] @ p3rror joined channel #puppet
[2011/12/16 14:16:43] @ Quit: jodok: Remote host closed the connection
[2011/12/16 14:16:57] @ jodok joined channel #puppet
[2011/12/16 14:16:58] @ Quit: jodok: Changing host
[2011/12/16 14:16:58] @ jodok joined channel #puppet
[2011/12/16 14:18:56] @ Quit: lkoranda: Quit: Ex-Chat
[2011/12/16 14:20:29] @ Quit: amoe: Ping timeout: 245 seconds
[2011/12/16 14:23:08] @ Quit: freezey: Quit: freezey
[2011/12/16 14:23:23] @ Quit: verwilst: Quit: Ex-Chat
[2011/12/16 14:25:25] @ Quit: joe-mac: Remote host closed the connection
[2011/12/16 14:25:36] @ Quit: brtl: Ping timeout: 240 seconds
[2011/12/16 14:25:41] <djbkd> Hello, I'm not having a lot of luck finding info on setting up multiple puppet dashboards on a single host (like separate rails apps with their own backends) was curious if somebody here may be able to point me in a direction
[2011/12/16 14:26:20] <djbkd> using apache & passenger
[2011/12/16 14:26:34] @ Quit: |Majestic|: Ping timeout: 276 seconds
[2011/12/16 14:27:30] @ langworthy_ joined channel #puppet
[2011/12/16 14:27:34] @ walterheck joined channel #puppet
[2011/12/16 14:27:49] @ ghg joined channel #puppet
[2011/12/16 14:27:54] @ Quit: marczak: Ping timeout: 252 seconds
[2011/12/16 14:28:34] @ Quit: ghg: Client Quit
[2011/12/16 14:29:23] @ Quit: miche: Quit: Computer has gone to sleep.
[2011/12/16 14:29:23] @ Bass10 joined channel #puppet
[2011/12/16 14:29:38] <walterheck> hello, we're experiencing a strange issue: when we execute puppets -t, it occasionally fails, saying something like: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class xen::server. if we run again 10 seconds later, it completes it's run. Puppet 2.7.9, debian squeeze. Any ideas?
[2011/12/16 14:29:54] <walterheck> it's not always xen::server by the way, it differs
[2011/12/16 14:30:07] @ Quit: langworthy: Ping timeout: 240 seconds
[2011/12/16 14:30:07] @ langworthy_ is now known as langworthy
[2011/12/16 14:30:20] <walterheck> s/puppets/puppetd/
[2011/12/16 14:31:55] @ krish joined channel #puppet
[2011/12/16 14:32:16] @ Quit: spiette: Ping timeout: 252 seconds
[2011/12/16 14:33:12] @ Quit: JStoker: Ping timeout: 244 seconds
[2011/12/16 14:33:42] @ miche joined channel #puppet
[2011/12/16 14:34:36] @ Quit: highclasshole: Read error: Operation timed out
[2011/12/16 14:35:28] @ Demosthenes joined channel #puppet
[2011/12/16 14:35:37] @ Quit: Jippi: Quit: Jippi
[2011/12/16 14:35:39] @ highclasshole joined channel #puppet
[2011/12/16 14:36:56] @ Quit: motomike: Remote host closed the connection
[2011/12/16 14:36:59] @ justin_donaldson left channel #puppet ()
[2011/12/16 14:37:20] @ motomike joined channel #puppet
[2011/12/16 14:38:10] @ Relurk joined channel #puppet
[2011/12/16 14:38:46] @ Quit: highclasshole: Read error: Operation timed out
[2011/12/16 14:39:06] <agaffney> walterheck: that typically happens when puppet "caches" a syntax error
[2011/12/16 14:39:12] @ Quit: krish: Quit: Leaving.
[2011/12/16 14:39:16] @ Quit: gniks: Quit: Leaving.
[2011/12/16 14:39:44] @ highclasshole joined channel #puppet
[2011/12/16 14:40:40] <agaffney> walterheck: if you restart your master, you'll likely get the syntax error on the first few runs after
[2011/12/16 14:40:56] <agaffney> walterheck: or you can look back in your master logs for the initial syntax error
[2011/12/16 14:41:32] <walterheck> agaffney: so you're saying there is a syntax error in our recipes, or there isn't?
[2011/12/16 14:42:30] @ Quit: Relurk:
[2011/12/16 14:42:55] @ relurk` joined channel #puppet
[2011/12/16 14:43:02] @ Quit: kangman: Remote host closed the connection
[2011/12/16 14:44:36] @ Quit: p3rror: Ping timeout: 240 seconds
[2011/12/16 14:44:43] @ Quit: jodok: Read error: Connection reset by peer
[2011/12/16 14:44:46] @ Quit: blentz: Ping timeout: 252 seconds
[2011/12/16 14:45:13] @ jodok joined channel #puppet
[2011/12/16 14:45:13] @ Quit: jodok: Changing host
[2011/12/16 14:45:13] @ jodok joined channel #puppet
[2011/12/16 14:45:41] <agaffney> walterheck: there likely is
[2011/12/16 14:46:08] <agaffney> when the class changes "randomly" and you're fairly sure it's there, always look for syntax errors *somewhere* in your puppet tree
[2011/12/16 14:46:09] <walterheck> agaffney: so how does it not show on every run?
[2011/12/16 14:46:20] <agaffney> because puppet is "special" in this situation :P
[2011/12/16 14:46:34] <walterheck> also, geppetto gives 0 warnings or errors, so it seems unlikely something is wrong
[2011/12/16 14:46:40] <agaffney> I've seen it do this in every version I've used from 0.24.8 to 2.6.7
[2011/12/16 14:46:48] @ Quit: Bass10: Read error: Operation timed out
[2011/12/16 14:47:04] @ Quit: miche: Quit: Computer has gone to sleep.
[2011/12/16 14:47:13] @ Bass10 joined channel #puppet
[2011/12/16 14:48:21] @ relurk` is now known as relurk
[2011/12/16 14:48:48] @ JStoker joined channel #puppet
[2011/12/16 14:49:20] <walterheck> hmmz
[2011/12/16 14:50:37] @ Quit: mcarpent: Quit: Thanks for the fish.
[2011/12/16 14:51:03] @ Quit: mrwacky42: Ping timeout: 255 seconds
[2011/12/16 14:51:27] @ |Majestic| joined channel #puppet
[2011/12/16 14:53:16] @ jodok_ joined channel #puppet
[2011/12/16 14:53:16] @ Quit: jodok_: Changing host
[2011/12/16 14:53:16] @ jodok_ joined channel #puppet
[2011/12/16 14:53:17] @ Quit: jodok: Read error: Connection reset by peer
[2011/12/16 14:53:17] @ jodok_ is now known as jodok
[2011/12/16 14:54:15] @ rideh joined channel #puppet
[2011/12/16 14:54:34] @ Quit: lborda: Quit: Ex-Chat
[2011/12/16 14:55:32] @ Quit: gaahrdner: Remote host closed the connection
[2011/12/16 14:56:10] @ miche joined channel #puppet
[2011/12/16 14:57:03] @ Quit: leifmadsen: Read error: Connection reset by peer
[2011/12/16 14:57:33] @ Quit: newtMcKerr: Quit: Leaving.
[2011/12/16 14:57:40] @ p3rror joined channel #puppet
[2011/12/16 14:58:01] @ Quit: jim80net: Quit: Leaving.
[2011/12/16 14:59:27] @ Quit: rharrison: Quit: Leaving
[2011/12/16 15:00:51] @ Quit: fir31ight: Remote host closed the connection
[2011/12/16 15:02:38] @ fir31ight joined channel #puppet
[2011/12/16 15:03:21] @ Quit: miche: Quit: Computer has gone to sleep.
[2011/12/16 15:04:29] @ miche joined channel #puppet
[2011/12/16 15:07:02] @ Quit: brunoleon__: Remote host closed the connection
[2011/12/16 15:07:36] @ Quit: tomdebenning_: Read error: Operation timed out
[2011/12/16 15:07:43] @ Quit: ascarter: Quit: Textual IRC Client: http://www.textualapp.com/
[2011/12/16 15:08:12] @ Quit: dan__t_: Ping timeout: 252 seconds
[2011/12/16 15:11:21] @ danblack joined channel #puppet
[2011/12/16 15:11:32] @ joshcooper joined channel #puppet
[2011/12/16 15:13:03] @ dan__t joined channel #puppet
[2011/12/16 15:18:39] @ Quit: Stenbryggen: Quit: Leaving.
[2011/12/16 15:19:47] @ Quit: comptona: Ping timeout: 252 seconds
[2011/12/16 15:20:20] @ Quit: csanchez: Quit: csanchez
[2011/12/16 15:24:15] @ Quit: djbkd:
[2011/12/16 15:25:56] @ happymcplaksin left channel #puppet ("ERC Version 5.3 (IRC client for Emacs)")
[2011/12/16 15:27:12] @ IndyMichaelB joined channel #puppet
[2011/12/16 15:31:45] @ Quit: fronlius: Quit: fronlius
[2011/12/16 15:33:51] @ kelseyhightower joined channel #puppet
[2011/12/16 15:34:19] @ Quit: ckauhaus: Quit: Leaving.
[2011/12/16 15:36:59] @ tizzo is now known as tizzo-afk
[2011/12/16 15:38:09] @ pierre1 is now known as pcarrier
[2011/12/16 15:38:27] @ Quit: p3rror: Ping timeout: 240 seconds
[2011/12/16 15:42:26] @ leifmadsen joined channel #puppet
[2011/12/16 15:45:56] @ Quit: rideh: Quit: rideh
[2011/12/16 15:46:59] @ Quit: zwi: Read error: Connection reset by peer
[2011/12/16 15:47:13] @ larstobi1 joined channel #puppet
[2011/12/16 15:47:15] @ zwi joined channel #puppet
[2011/12/16 15:48:53] @ Quit: zwi: Client Quit
[2011/12/16 15:49:04] @ zwi joined channel #puppet
[2011/12/16 15:49:34] @ Quit: larstobi: Ping timeout: 268 seconds
[2011/12/16 15:49:50] @ dbgster joined channel #puppet
[2011/12/16 15:50:00] @ rubic joined channel #puppet
[2011/12/16 15:50:52] @ jodok_ joined channel #puppet
[2011/12/16 15:50:53] @ Quit: jodok_: Changing host
[2011/12/16 15:50:53] @ jodok_ joined channel #puppet
[2011/12/16 15:50:54] @ Quit: jodok_: Remote host closed the connection
[2011/12/16 15:51:26] @ Quit: jodok: Read error: Connection reset by peer
[2011/12/16 15:51:29] @ jodok_ joined channel #puppet
[2011/12/16 15:52:28] @ Quit: miche: Quit: Computer has gone to sleep.
[2011/12/16 15:54:12] @ Quit: motomike: Quit: Leaving.
[2011/12/16 15:54:35] @ newtMcKerr joined channel #puppet
[2011/12/16 15:55:19] @ Quit: neonflux: Quit: Leaving.
[2011/12/16 15:55:58] @ Quit: Djelibeybi: Quit: Textual IRC Client: http://www.textualapp.com/
[2011/12/16 15:55:59] @ Quit: kermit: Quit: Leaving.
[2011/12/16 15:56:13] @ kermit joined channel #puppet
[2011/12/16 15:56:56] @ Quit: bmahe: Quit: Leaving
[2011/12/16 16:00:47] @ Quit: bsg_kwolf1: Quit: Leaving.
[2011/12/16 16:01:12] @ bmahe joined channel #puppet
[2011/12/16 16:01:12] @ Quit: bmahe: Changing host
[2011/12/16 16:01:12] @ bmahe joined channel #puppet
[2011/12/16 16:02:59] @ gniks joined channel #puppet
[2011/12/16 16:03:23] <gepetto> ::redmine:: Wiki edit: Internal_Development_Process (#64) @ http://projects.puppetlabs.com/projects/puppet/wiki/Internal_Development_Process?version=64 (by Jason McKerr)
[2011/12/16 16:04:39] @ Quit: dan__t: Ping timeout: 244 seconds
[2011/12/16 16:08:47] @ Quit: Fai1ure: Ping timeout: 240 seconds
[2011/12/16 16:08:50] @ Quit: kenperkins: Quit: Computer has gone to sleep.
[2011/12/16 16:09:16] @ Quit: |Majestic|: Ping timeout: 276 seconds
[2011/12/16 16:10:47] @ Quit: gabrtv: Quit: gabrtv
[2011/12/16 16:12:53] @ Quit: cwarden: Ping timeout: 240 seconds
[2011/12/16 16:15:41] @ Djelibeybi joined channel #puppet
[2011/12/16 16:16:57] @ Quit: DJClean: Read error: Operation timed out
[2011/12/16 16:23:06] @ Quit: brunoleon: Remote host closed the connection
[2011/12/16 16:23:24] @ lindenle_ joined channel #puppet
[2011/12/16 16:23:29] <lindenle_> Hi all
[2011/12/16 16:23:46] <lindenle_> Having a strange issue ona couple of machines. None of the facts seem to make it up to the master
[2011/12/16 16:23:46] @ Quit: larstobi1: Read error: Connection reset by peer
[2011/12/16 16:23:54] @ larstobi joined channel #puppet
[2011/12/16 16:24:18] <agaffney> lindenle_: none at all, or just custom facts?
[2011/12/16 16:24:39] @ Quit: benjiedmund: Ping timeout: 240 seconds
[2011/12/16 16:24:51] @ Quit: larstobi: Client Quit
[2011/12/16 16:25:18] <lindenle_> agaffney: none at all (the yaml node file has no parameters
[2011/12/16 16:25:49] <agaffney> fun
[2011/12/16 16:25:52] <agaffney> never seen that before
[2011/12/16 16:26:18] <lindenle_> i saw it yesterday and we moved to puppet 2.7.6 from 2.7.3 and it seemed to fix it...but now I am unsre if that actually was it
[2011/12/16 16:27:26] @ comptona joined channel #puppet
[2011/12/16 16:28:31] <lindenle_> Is there some way to tell the client that it must send up facts again? Or to tell the master to drop everything it thinks it knows?
[2011/12/16 16:29:48] <lindenle_> I think this is some caching issue but not sure how to fix it. Facter on the guest seems to be working but they never make it up to the master.
[2011/12/16 16:31:04] <agaffney> lindenle_: the client should send facts on every catalog run
[2011/12/16 16:31:17] <lindenle_> i know...this is strange
[2011/12/16 16:32:18] @ Quit: emre`: Quit: leaving
[2011/12/16 16:33:30] @ dan__t joined channel #puppet
[2011/12/16 16:34:41] @ fronlius joined channel #puppet
[2011/12/16 16:35:46] @ Quit: paxos: Quit: Leaving.
[2011/12/16 16:36:15] @ motomike joined channel #puppet
[2011/12/16 16:40:48] @ dwalu_ joined channel #puppet
[2011/12/16 16:41:07] @ Quit: kelseyhightower: Ping timeout: 240 seconds
[2011/12/16 16:42:16] @ Quit: dwalu_: Client Quit
[2011/12/16 16:42:56] @ corwin joined channel #puppet
[2011/12/16 16:43:08] @ Quit: dwalu: Ping timeout: 240 seconds
[2011/12/16 16:43:18] @ corwin is now known as Guest49688
[2011/12/16 16:44:37] <Guest49688> I'm able to run a puppet module I wrote on a remote machine, but I cannot figure out how to copy a config file over. I thought something like this would work: source => "puppet:///modules/ntp/files/ntp.conf",
[2011/12/16 16:44:50] @ Guest49688 is now known as corwin7
[2011/12/16 16:44:53] <danblack> remove the "files"
[2011/12/16 16:44:58] @ Quit: johnston_: Quit: Page closed
[2011/12/16 16:45:20] <danblack> so puppet://modules/ntp/ntp.conf
[2011/12/16 16:46:12] @ ken_barber joined channel #puppet
[2011/12/16 16:46:15] <corwin7> err: /Stage[main]/Ntp/File[ntp.conf]: Could not evaluate: getaddrinfo: Name or service not known Could not retrieve file metadata for puppet://modules/ntp/ntp.conf: getaddrinfo: Name or service not known at /etc/puppet/modules/ntp/manifests/init.pp:28
[2011/12/16 16:46:35] <corwin7> Looks like I'm getting a different error and it's hosts related....?
[2011/12/16 16:46:37] <danblack> 3 slashes after puppet:/
[2011/12/16 16:47:04] <danblack> 'puppet:///'
[2011/12/16 16:47:35] <danblack> two slashes make it look for the 'modules' server
[2011/12/16 16:48:00] <corwin7> Awesome!!! Thank you very much danblack. :)
[2011/12/16 16:48:56] <danblack> easy - was making the same mistakes a few dayd ago
[2011/12/16 16:49:30] <corwin7> cool. You saved me a bunch of aggrivation.
[2011/12/16 16:52:11] <danblack> np. strace is pretty cool for solving file not found problems in process. strace -fe trace=open -p {processid}
[2011/12/16 16:53:00] <agaffney> strace is a valuable tool for "black box" applications
[2011/12/16 16:54:27] @ Quit: jodok_: Quit: jodok_
[2011/12/16 16:56:24] <corwin7> I hear a lot about dtrace
[2011/12/16 16:57:16] <danblack> depends weither you want to trace libary calls of system calls.
[2011/12/16 16:57:27] @ Quit: wilmoore: Ping timeout: 240 seconds
[2011/12/16 16:58:32] <WALoeIII> I have a custom function in modules/foreman/lib/puppet/....
[2011/12/16 16:58:34] @ dwalu joined channel #puppet
[2011/12/16 16:58:38] <WALoeIII> how do I get to invoke this on my puppetmaster
[2011/12/16 16:58:43] <WALoeIII> I have pluginsync on
[2011/12/16 16:58:46] <WALoeIII> does that move it to lib?
[2011/12/16 16:59:04] @ Quit: fronlius: Quit: fronlius
[2011/12/16 16:59:28] @ Dr_Memory left channel #puppet ()
[2011/12/16 17:01:02] @ Quit: dwalu: Client Quit
[2011/12/16 17:01:21] @ fronlius joined channel #puppet
[2011/12/16 17:02:26] @ johnston joined channel #puppet
[2011/12/16 17:02:40] @ freezey joined channel #puppet
[2011/12/16 17:03:33] @ Quit: MrBIOS: Quit: MrBIOS
[2011/12/16 17:06:57] @ Stenbryggen joined channel #puppet
[2011/12/16 17:08:25] @ Quit: jongrocho: Remote host closed the connection
[2011/12/16 17:09:57] @ jongrocho joined channel #puppet
[2011/12/16 17:10:23] @ Quit: freezey: Quit: freezey
[2011/12/16 17:11:07] @ dwalu joined channel #puppet
[2011/12/16 17:16:16] @ Quit: dwalu: Quit: dwalu
[2011/12/16 17:17:02] @ Quit: nfagerlund: Remote host closed the connection
[2011/12/16 17:17:05] @ Quit: nkts: Quit: leaving
[2011/12/16 17:17:39] <danblack> WALoeIII: on another module recently i needed to do: puppet agent -t --pluginsync --environment production
[2011/12/16 17:18:21] <danblack> on the client. I'd like to understand it more or work out why the puppet.conf setting isn't sufficient at some stage
[2011/12/16 17:18:29] @ Quit: althara: Ping timeout: 240 seconds
[2011/12/16 17:19:39] @ Quit: seekwill: Ping timeout: 245 seconds
[2011/12/16 17:19:55] @ Quit: fronlius: Quit: fronlius
[2011/12/16 17:22:13] @ Quit: maxmartin: Quit: Computer has gone to sleep.
[2011/12/16 17:23:52] @ tilgovi joined channel #puppet
[2011/12/16 17:23:53] @ Quit: tilgovi: Changing host
[2011/12/16 17:23:53] @ tilgovi joined channel #puppet
[2011/12/16 17:28:30] @ Quit: shadoi: Quit: Leaving.
[2011/12/16 17:29:37] @ benjiedmund joined channel #puppet
[2011/12/16 17:30:38] @ Quit: seanh-ansca: Ping timeout: 240 seconds
[2011/12/16 17:32:48] @ rideh joined channel #puppet
[2011/12/16 17:38:54] @ Quit: motomike: Quit: Leaving.
[2011/12/16 17:38:54] @ Quit: joshcooper: Quit: joshcooper
[2011/12/16 17:40:39] @ Quit: benjiedmund: Remote host closed the connection
[2011/12/16 17:40:59] @ Quit: langworthy: Quit: langworthy
[2011/12/16 17:44:07] @ Quit: rideh: Quit: rideh
[2011/12/16 17:46:43] @ maxmartin joined channel #puppet
[2011/12/16 17:49:22] @ Quit: `Kevin: Ping timeout: 276 seconds
[2011/12/16 17:54:01] @ Quit: maxmartin: Quit: Computer has gone to sleep.
[2011/12/16 17:59:04] @ Quit: tilgovi: Ping timeout: 268 seconds
[2011/12/16 18:00:59] @ Quit: lak: Quit: Leaving.
[2011/12/16 18:01:22] @ Quit: pcarlisle: Quit: Computer has gone to sleep.
[2011/12/16 18:02:15] @ Quit: kermit: Read error: Connection reset by peer
[2011/12/16 18:03:40] <danblack> i don't suppose there is a way to interate over a set parameter in a defined type?
[2011/12/16 18:05:51] @ seekwill joined channel #puppet
[2011/12/16 18:06:35] @ Quit: bmahe: Remote host closed the connection
[2011/12/16 18:10:35] @ Quit: newtMcKerr: Quit: Leaving.
[2011/12/16 18:11:30] @ Quit: jongrocho: Remote host closed the connection
[2011/12/16 18:16:29] <danblack> nm. did a local define using $name and it was pretty neat.
[2011/12/16 18:18:05] @ Quit: dan__t: Ping timeout: 240 seconds
[2011/12/16 18:21:51] @ blentz joined channel #puppet
[2011/12/16 18:23:02] @ kermit joined channel #puppet
[2011/12/16 18:23:17] @ jmt_ joined channel #puppet
[2011/12/16 18:23:55] @ jmt_ is now known as mokey
[2011/12/16 18:24:41] @ tilgovi joined channel #puppet
[2011/12/16 18:24:41] @ Quit: tilgovi: Changing host
[2011/12/16 18:24:41] @ tilgovi joined channel #puppet
[2011/12/16 18:24:59] @ mokey is now known as jmt_too
[2011/12/16 18:25:50] <jmt_too> so i'm quite sure there's a better way to do this than how i'm trying to do it, but i'd like to see if anyone has a quick trick to fix my problem.
[2011/12/16 18:26:12] <jmt_too> i'm building a class that rely's on a mostly-stock instance of example42's apache class
[2011/12/16 18:26:37] <jmt_too> i'm trying to test it on a vm before i push it into our version control repo
[2011/12/16 18:27:50] <jmt_too> end result of my "puppet apply --modulepath=/path/to/my/modules -e 'include testclass' is this
[2011/12/16 18:28:33] <jmt_too> Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type config at X
[2011/12/16 18:29:25] <jmt_too> is there a trick i haven't found to get it to pull in the example42 common stuff? it's not defined as a class, the init.pp in that module directory just includes the defines i need.
[2011/12/16 18:30:20] @ carlasouza joined channel #puppet
[2011/12/16 18:31:50] @ Quit: johnston: Ping timeout: 258 seconds
[2011/12/16 18:34:03] @ Quit: ianbrandt: Quit: ianbrandt
[2011/12/16 18:37:55] @ Quit: cfant: Ping timeout: 268 seconds
[2011/12/16 18:38:03] @ `Kevin joined channel #puppet
[2011/12/16 18:40:47] @ skm joined channel #puppet
[2011/12/16 18:50:41] @ p3rror joined channel #puppet
[2011/12/16 18:51:20] @ Quit: alanevans: Remote host closed the connection
[2011/12/16 18:52:38] @ Quit: conner: Remote host closed the connection
[2011/12/16 18:54:18] @ Quit: danblack: Read error: Connection reset by peer
[2011/12/16 18:54:44] @ danblack joined channel #puppet
[2011/12/16 18:55:39] @ Quit: dissipate: Quit: Leaving
[2011/12/16 18:58:09] @ ken_barber1 joined channel #puppet
[2011/12/16 18:58:17] @ Quit: skm: Quit: Computer has gone to sleep.
[2011/12/16 18:59:09] @ maxmartin joined channel #puppet
[2011/12/16 19:01:52] @ Quit: ken_barber: Ping timeout: 244 seconds
[2011/12/16 19:03:34] @ newtMcKerr joined channel #puppet
[2011/12/16 19:04:06] @ Quit: Holocaine:
[2011/12/16 19:06:34] @ Quit: `Kevin: Ping timeout: 252 seconds
[2011/12/16 19:06:53] @ Quit: lindenle_: Ping timeout: 240 seconds
[2011/12/16 19:09:08] @ Quit: filler: Ping timeout: 240 seconds
[2011/12/16 19:11:36] @ KaiserBeto2 joined channel #puppet
[2011/12/16 19:13:00] @ Quit: KaiserBeto1: Ping timeout: 248 seconds
[2011/12/16 19:15:50] @ Quit: KaiserBeto2: Ping timeout: 252 seconds
[2011/12/16 19:27:36] @ Quit: clustermagnet: Ping timeout: 240 seconds
[2011/12/16 19:28:53] @ Quit: adrient: Ping timeout: 240 seconds
[2011/12/16 19:28:56] @ Quit: Djelibeybi: Quit: Textual IRC Client: http://www.textualapp.com/
[2011/12/16 19:30:37] @ adrient joined channel #puppet
[2011/12/16 19:31:39] @ sunshine5 joined channel #puppet
[2011/12/16 19:34:42] @ clustermagnet joined channel #puppet
[2011/12/16 19:35:09] @ Quit: easel: Quit: Computer has gone to sleep.
[2011/12/16 19:38:51] @ skm joined channel #puppet
[2011/12/16 19:40:29] @ kelseyhightower joined channel #puppet
[2011/12/16 19:42:20] @ Quit: tilgovi: Remote host closed the connection
[2011/12/16 19:43:19] @ Quit: kelseyhightower: Client Quit
[2011/12/16 19:46:03] @ Quit: carlasouza: Quit: 'til sunday
[2011/12/16 19:46:10] @ sunshine5 left channel #puppet ()
[2011/12/16 19:57:38] @ `Kevin joined channel #puppet
[2011/12/16 19:57:39] @ Quit: newtMcKerr: Quit: Leaving.
[2011/12/16 19:58:14] @ Quit: oatsport1: Ping timeout: 248 seconds
[2011/12/16 20:00:04] @ oatsport1 joined channel #puppet
[2011/12/16 20:00:21] @ carlasouza joined channel #puppet
[2011/12/16 20:00:21] @ Quit: carlasouza: Changing host
[2011/12/16 20:00:21] @ carlasouza joined channel #puppet
[2011/12/16 20:06:08] @ joshcooper joined channel #puppet
[2011/12/16 20:07:21] @ Quit: joshcooper: Client Quit
[2011/12/16 20:08:00] @ Quit: skm: Quit: Computer has gone to sleep.
[2011/12/16 20:09:33] @ skm joined channel #puppet
[2011/12/16 20:12:19] @ Quit: skm: Client Quit
[2011/12/16 20:31:56] @ newtMcKerr joined channel #puppet
[2011/12/16 20:37:17] @ Quit: jemurray: Remote host closed the connection
[2011/12/16 20:40:47] @ Quit: p3rror: Ping timeout: 240 seconds
[2011/12/16 20:58:24] @ KaiserBeto1 joined channel #puppet
[2011/12/16 20:59:51] @ Quit: carlasouza: Quit: zzz 'til sunday!
[2011/12/16 21:04:10] @ Quit: l0n:
[2011/12/16 21:06:07] @ Quit: ldlework: Ping timeout: 240 seconds
[2011/12/16 21:13:56] @ cfant joined channel #puppet
[2011/12/16 21:20:19] @ ldlework joined channel #puppet
[2011/12/16 21:22:42] @ kenperkins joined channel #puppet
[2011/12/16 21:27:52] @ tmclaugh joined channel #puppet
[2011/12/16 21:31:22] @ Quit: _flex: Remote host closed the connection
[2011/12/16 21:39:39] @ Quit: KaiserBeto1: Ping timeout: 245 seconds
[2011/12/16 21:40:07] @ Quit: tmclaugh: Quit: tmclaugh
[2011/12/16 21:41:13] @ KaiserBeto1 joined channel #puppet
[2011/12/16 21:42:59] @ Quit: dbgster: Quit: dbgster
[2011/12/16 21:46:20] @ countskm_ joined channel #puppet
[2011/12/16 21:49:15] @ milk joined channel #puppet
[2011/12/16 21:50:16] @ Quit: KaiserBeto1: Read error: Connection reset by peer
[2011/12/16 22:12:00] @ Log started by gepetto
[2011/12/16 22:12:00] @ Joined channel #puppet
[2011/12/16 22:12:00] @ Topic is "Puppet Enterprise 2.0 is out: http://bit.ly/PE_2 | Important Security Announcement: http://bit.ly/AltNames | Puppet 2.7.9 and 2.6.13 available at downloads.puppetlabs.com | http://docs.puppetlabs.com | Bugs & Feature Requests http://bit.ly/dKVa0A | November Newsletter http://bit.ly/nl11-11"
[2011/12/16 22:12:00] @ Topic set by haus!haus@reaver.cat.pdx.edu on Mon Dec 12 16:15:35 -0800 2011
[2011/12/16 22:12:12] @ Mode +Ccnt by card.freenode.net
[2011/12/16 22:13:21] @ Quit: gniks: Quit: Leaving.
[2011/12/16 22:14:41] @ Quit: jamesturnbull: Read error: Operation timed out
[2011/12/16 22:16:29] @ alanevans joined channel #puppet
[2011/12/16 22:17:52] <eric0> has anyone successfully found and fixed a dependency problem by looking at a .dot file?
[2011/12/16 22:25:10] @ skm joined channel #puppet
[2011/12/16 22:30:26] <whack> eric0: yes!
[2011/12/16 22:30:37] <whack> but not without help
[2011/12/16 22:31:00] <whack> actually I lied. So there's two methods.
[2011/12/16 22:31:08] <whack> 1) Have a tool that detects cycles in .dot graphs
[2011/12/16 22:31:34] <whack> 2) Have a tool that takes the "Oh snap, dependency cycle!" erroro message from puppet and finds the minimal cycle of that graph
[2011/12/16 22:31:53] <whack> #2 is waaay easyer and I have some hack somewhere as well as nigelk has something somewhere. Lemme see if I can find it.
[2011/12/16 22:31:54] <gepetto> whack: #2 is http://projects.puppetlabs.com/issues/show/2 "Puppet - Feature #2: Add 'link' ability to File. It has a status of Closed and is assigned to Luke Kanies"
[2011/12/16 22:32:44] <whack> gepetto: you are so helpful
[2011/12/16 22:33:13] <eric0> at first i was like :-D but then i was like http://skitch.com/ahpook/g1dyr/puppet-graph
[2011/12/16 22:33:42] <whack> eric0: http://projects.puppetlabs.com/issues/3756 has mine I think
[2011/12/16 22:34:05] @ Quit: danblack: Ping timeout: 276 seconds
[2011/12/16 22:34:51] <eric0> heh my first stab was to take that same error and s/,/\n/ to get something line-oriented
[2011/12/16 22:35:02] @ danblack joined channel #puppet
[2011/12/16 22:35:23] @ Quit: justdave: Ping timeout: 252 seconds
[2011/12/16 22:35:27] @ Quit: ldlework: Ping timeout: 240 seconds
[2011/12/16 22:35:32] <eric0> ah good call using AP
[2011/12/16 22:36:33] @ Quit: maxmartin: Quit: Computer has gone to sleep.
[2011/12/16 22:37:44] @ maxmartin joined channel #puppet
[2011/12/16 22:40:01] @ justdave joined channel #puppet
[2011/12/16 22:40:29] @ Quit: maxmartin: Client Quit
[2011/12/16 22:41:17] <eric0> oh yeah thats way better http://skitch.com/ahpook/g1dy5/just-error-graph
[2011/12/16 22:44:21] <agaffney> the only time I've ever generated a dep graph is when I was having trouble with circular dependencies when trying to add run stages to an existing setup
[2011/12/16 22:44:26] <agaffney> it was an...interesting graph
[2011/12/16 22:45:22] * eric0 installs that script locally as graph-cycle-unfucker.rb
[2011/12/16 22:46:26] @ Quit: danblack: Ping timeout: 276 seconds
[2011/12/16 22:46:41] @ bmahe joined channel #puppet
[2011/12/16 22:46:43] <agaffney> I will have to remember that
[2011/12/16 22:46:49] @ Quit: newtMcKerr: Quit: Leaving.
[2011/12/16 22:46:52] @ dwalu joined channel #puppet
[2011/12/16 22:46:52] @ Quit: bmahe: Changing host
[2011/12/16 22:46:52] @ bmahe joined channel #puppet
[2011/12/16 22:47:34] @ newtMcKerr joined channel #puppet
[2011/12/16 22:49:30] @ Quit: dwalu: Client Quit
[2011/12/16 22:52:16] @ Kazuhiro joined channel #puppet
[2011/12/16 22:53:00] @ scientist_ joined channel #puppet
[2011/12/16 22:53:30] @ rcrowley joined channel #puppet
[2011/12/16 22:53:39] <whack> agaffney: last graph I took a picture of was this: http://semicomplete.com/images/puppet-loggly-graph.png
[2011/12/16 22:53:58] @ Kazuhiro left channel #puppet ()
[2011/12/16 22:54:13] @ Quit: leifmadsen: Ping timeout: 276 seconds
[2011/12/16 22:54:24] <whack> and I think that's a 'small' graph
[2011/12/16 22:54:37] @ leifmadsen joined channel #puppet
[2011/12/16 22:59:37] @ dwalu joined channel #puppet
[2011/12/16 23:00:19] <whack> eric0: that screenshot you posted, see what I Mean about 'minimal' cycle graph?
[2011/12/16 23:00:27] <whack> there's stuff in that graph that *isn't* part of a cycle
[2011/12/16 23:00:30] <whack> which is super annoying
[2011/12/16 23:01:47] @ Quit: scientist_: Ping timeout: 240 seconds
[2011/12/16 23:07:39] <eric0> yeah the error logs friend-of-a-friend level relationships between teh resources that have the problem
[2011/12/16 23:07:48] @ Quit: Dewin: Quit: Leaving.
[2011/12/16 23:09:45] @ Quit: newtMcKerr: Quit: Leaving.
[2011/12/16 23:10:45] <eric0> and in this case, the problem wasnt the two resources that have the loop drawn between them there
[2011/12/16 23:19:12] @ Quit: nul0op: Read error: Connection reset by peer
[2011/12/16 23:20:11] @ danblack joined channel #puppet
[2011/12/16 23:22:15] @ Log started by gepetto
[2011/12/16 23:22:15] @ Joined channel #puppet
[2011/12/16 23:22:15] @ Topic is "Puppet Enterprise 2.0 is out: http://bit.ly/PE_2 | Important Security Announcement: http://bit.ly/AltNames | Puppet 2.7.9 and 2.6.13 available at downloads.puppetlabs.com | http://docs.puppetlabs.com | Bugs & Feature Requests http://bit.ly/dKVa0A | November Newsletter http://bit.ly/nl11-11"
[2011/12/16 23:22:15] @ Topic set by haus!haus@reaver.cat.pdx.edu on Mon Dec 12 16:15:36 -0800 2011
[2011/12/16 23:22:27] @ Mode +Ccnt by adams.freenode.net
[2011/12/16 23:23:33] @ Quit: kenperkins: Quit: Computer has gone to sleep.
[2011/12/16 23:31:38] @ DJClean joined channel #puppet
[2011/12/16 23:32:04] @ LinuxCode joined channel #puppet
[2011/12/16 23:32:54] @ nul0op joined channel #puppet
[2011/12/16 23:33:07] @ Quit: Bass10: Ping timeout: 244 seconds
[2011/12/16 23:33:13] @ Quit: rcrowley: Quit: Computer has gone to sleep.
[2011/12/16 23:37:49] @ Quit: comptona: Quit: Leaving.
[2011/12/16 23:39:30] @ makaay joined channel #puppet
[2011/12/16 23:39:50] @ makaay left channel #puppet ()
[2011/12/16 23:41:00] @ Kazuhiro joined channel #puppet
[2011/12/16 23:42:56] @ Quit: abetterlie: Read error: Operation timed out
[2011/12/16 23:45:21] @ abetterlie joined channel #puppet
[2011/12/16 23:50:15] @ Quit: dwalu: Quit: dwalu
[2011/12/16 23:53:04] @ e1mer joined channel #puppet
[2011/12/16 23:53:43] @ dwalu joined channel #puppet
[2011/12/16 23:54:05] <eric0> all happy now, beertime.
[2011/12/16 23:59:07] @ Quit: e1mer: Ping timeout: 240 seconds
[2011/12/16 23:59:59] @ Quit: abetterlie: Ping timeout: 244 seconds
[2011/12/17 00:02:03] @ Log closed by gepetto (log rotation)

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