Wednesday, 2009-12-23

[2009/12/23 00:01:20] @ Log started by gepetto_
[2009/12/23 00:01:20] @ rickbradley is now known as rickbradley|away
[2009/12/23 00:02:03] @ jmarki joined channel #puppet
[2009/12/23 00:05:34] <eric0> any thoughts on #1464
[2009/12/23 00:05:35] <gepetto_> eric0: #1464 is http://projects.reductivelabs.com/issues/show/1464 "Puppet - Bug #1464: Mount resource complains about missing options field - ReductiveLabs.com"
[2009/12/23 00:09:12] <lancepants> this is a workaround...but if you need results right away you could use automount, then just get puppet to handle the auto.* files
[2009/12/23 00:09:55] <lancepants> autofs*
[2009/12/23 00:10:17] <lancepants> which is what a lot of people use for nfs mounting
[2009/12/23 00:11:01] <eric0> can't use automount in my environment, sadly
[2009/12/23 00:11:35] <lancepants> ahh, that sucks
[2009/12/23 00:12:07] @ siezer joined channel #puppet
[2009/12/23 00:20:47] <eric0> damn i'm just hitting all kinds of weird behaviour tonight
[2009/12/23 00:20:53] <eric0> err: //ntp::client/Service[ntp]/ensure: change from maintenance to running failed: Unmanageable state 'offline*' on service /network/ntp
[2009/12/23 00:21:14] <eric0> with smf Service provider
[2009/12/23 00:34:08] @ Quit: Bevo: "Leaving"
[2009/12/23 00:34:58] @ littleidea joined channel #puppet
[2009/12/23 00:36:44] @ scylla joined channel #puppet
[2009/12/23 00:45:37] @ rickbradley|away is now known as rickbradley
[2009/12/23 00:48:05] @ rmiller4pi81 joined channel #puppet
[2009/12/23 00:54:36] @ Quit: rmiller4pi8: Read error: 60 (Operation timed out)
[2009/12/23 00:55:24] @ Quit: pinoyskull: "Leaving"
[2009/12/23 01:00:54] @ Quit: bug:
[2009/12/23 01:07:53] @ rickbradley is now known as rickbradley|away
[2009/12/23 01:22:00] @ Quit: lero: "Leaving..."
[2009/12/23 01:25:14] @ Quit: jfreeman: Remote closed the connection
[2009/12/23 01:28:02] @ rickbradley|away is now known as rickbradley
[2009/12/23 01:35:56] @ jaredrhine joined channel #puppet
[2009/12/23 01:38:10] @ Quit: philip_: Nick collision from services.
[2009/12/23 01:38:22] @ philip__ joined channel #puppet
[2009/12/23 01:38:34] @ rickbradley is now known as rickbradley|away
[2009/12/23 01:45:12] @ bug joined channel #puppet
[2009/12/23 01:54:05] @ Quit: bug:
[2009/12/23 02:07:38] @ Quit: Bass10: Read error: 110 (Connection timed out)
[2009/12/23 02:18:08] @ mvn071 joined channel #puppet
[2009/12/23 02:20:32] @ rickbradley|away is now known as rickbradley
[2009/12/23 02:26:32] @ rickbradley is now known as rickbradley|away
[2009/12/23 02:29:13] @ rickbradley|away is now known as rickbradley
[2009/12/23 02:32:03] @ Quit: int: Read error: 104 (Connection reset by peer)
[2009/12/23 02:32:27] @ int joined channel #puppet
[2009/12/23 02:49:16] @ francois joined channel #puppet
[2009/12/23 02:56:39] @ giskard joined channel #puppet
[2009/12/23 03:05:59] @ nakano is now known as nakano_
[2009/12/23 03:08:32] @ Quit: giskard: Remote closed the connection
[2009/12/23 03:09:01] @ giskard joined channel #puppet
[2009/12/23 03:12:49] @ Quit: Djelibeybi: "Leaving"
[2009/12/23 03:14:51] @ Quit: giskard: Read error: 60 (Operation timed out)
[2009/12/23 03:18:49] @ friendly12345 joined channel #puppet
[2009/12/23 03:25:54] @ Quit: justdave: Client Quit
[2009/12/23 03:25:58] @ justdave joined channel #puppet
[2009/12/23 03:37:07] @ skiold joined channel #puppet
[2009/12/23 03:39:49] @ giskard joined channel #puppet
[2009/12/23 03:40:05] <gepetto_> ::trac:: Downloading Puppet edited @ http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet?version=95
[2009/12/23 03:40:44] @ Ramonster joined channel #puppet
[2009/12/23 03:44:52] @ Quit: Ramonster: Read error: 60 (Operation timed out)
[2009/12/23 03:46:52] @ Quit: littleidea:
[2009/12/23 03:53:36] @ danielbln joined channel #puppet
[2009/12/23 04:00:13] @ Quit: poison: Remote closed the connection
[2009/12/23 04:06:59] @ tim|macbook joined channel #puppet
[2009/12/23 04:08:41] @ Quit: omry|work: Read error: 110 (Connection timed out)
[2009/12/23 04:11:23] @ nakano_ is now known as nakano
[2009/12/23 04:15:42] @ Quit: whaley: Remote closed the connection
[2009/12/23 04:16:30] @ hy is now known as _silver
[2009/12/23 04:18:45] @ _silver is now known as hy
[2009/12/23 04:21:05] @ Ramonster joined channel #puppet
[2009/12/23 04:29:17] @ Dominic_ is now known as Dominic
[2009/12/23 04:29:41] <duritong> anybody trying out puppet 0.25.2rc1 commit b6b33802b801c71fc7d273c172bf55362c58a1a7 is missing, apply it manually or wait for 0.25.2rc2
[2009/12/23 04:32:46] @ Quit: tim|macbook:
[2009/12/23 04:35:33] @ tim|macbook joined channel #puppet
[2009/12/23 04:36:00] @ Quit: jmarki: Remote closed the connection
[2009/12/23 04:38:37] @ Robbie_ joined channel #puppet
[2009/12/23 04:42:21] @ poison joined channel #puppet
[2009/12/23 04:55:37] @ Quit: FiXion: "leaving"
[2009/12/23 04:57:08] @ MattyM joined channel #puppet
[2009/12/23 04:59:14] @ Welsh_Dwarf joined channel #puppet
[2009/12/23 04:59:19] @ FiXion joined channel #puppet
[2009/12/23 04:59:42] @ Quit: jds2001: Remote closed the connection
[2009/12/23 04:59:54] @ Quit: alexine_dsouza: Read error: 54 (Connection reset by peer)
[2009/12/23 04:59:54] @ jds2001 joined channel #puppet
[2009/12/23 05:04:08] @ Quit: friendly12345: "Leaving."
[2009/12/23 05:09:42] <fluxdude> I've got errors like this in the logs of my new puppetmaster:
[2009/12/23 05:09:59] <fluxdude> puppetmasterd[3480]: (/Settings[/etc/puppet/puppet.conf]/Settings[ca]/File[/var/lib/puppet/ssl/ca/ca_crl.pem]/owner) Cannot manage ownership unless running as root
[2009/12/23 05:10:28] <Volcane> u can ignore them
[2009/12/23 05:10:35] <fluxdude> over and over for lots of files under /var/lib/puppet/ssl/ca
[2009/12/23 05:10:39] <fluxdude> what does it mean?
[2009/12/23 05:10:44] <fluxdude> puppetmaster is running as puppet
[2009/12/23 05:10:48] <fluxdude> and the files are owned as puppet
[2009/12/23 05:10:49] <Volcane> generally happenes when you change the config file
[2009/12/23 05:10:52] <Volcane> and it rereads it
[2009/12/23 05:11:02] <Volcane> it then tries to go fix up all its paths like it does when it starts up
[2009/12/23 05:11:07] <fluxdude> never noticed that before in the last puppet environment I built up
[2009/12/23 05:11:19] <Volcane> but since its already at user puppet it cant anymore
[2009/12/23 05:13:17] @ Quit: alban3: Read error: 113 (No route to host)
[2009/12/23 05:15:38] @ alban3 joined channel #puppet
[2009/12/23 05:18:39] * monachus is in limbo.
[2009/12/23 05:19:00] * danielbln raises the bar.
[2009/12/23 05:19:37] @ pinoyskull joined channel #puppet
[2009/12/23 05:20:25] @ Quit: pinoyskull: Client Quit
[2009/12/23 05:23:45] @ Quit: poison: "Leaving..."
[2009/12/23 05:25:46] @ Quit: tim|macbook:
[2009/12/23 05:28:02] @ tim|macbook joined channel #puppet
[2009/12/23 05:28:47] @ groove joined channel #puppet
[2009/12/23 05:30:34] @ poison joined channel #puppet
[2009/12/23 05:30:38] @ Quit: poison: Remote closed the connection
[2009/12/23 05:42:01] @ poison joined channel #puppet
[2009/12/23 06:15:46] @ Quit: skiold:
[2009/12/23 06:31:38] @ tomjmalone joined channel #puppet
[2009/12/23 06:38:08] <groove> hey i'm just new to stored configs
[2009/12/23 06:38:31] <groove> can someone give me an example or point me in the right direction of how to export and collect the host rsa AND dsa ssh keys?
[2009/12/23 06:42:18] <barn> groove: I was trying to do that a few months ago!
[2009/12/23 06:42:26] <barn> (so please let me know if someone does!)
[2009/12/23 06:42:47] <groove> hmm, actually now that i think about it i'm not sure if it is possible
[2009/12/23 06:42:53] <groove> because it would create duplicate resources
[2009/12/23 06:49:00] @ Quit: Cyis: "Leaving"
[2009/12/23 07:04:56] @ pacalm joined channel #puppet
[2009/12/23 07:13:26] <fluxdude> I'm getting a complaint:
[2009/12/23 07:13:27] <fluxdude> puppetmasterd[3480]: Unrecognised escape sequence '\d' in file
[2009/12/23 07:13:40] <fluxdude> but that \d is in an exec and is double quoted
[2009/12/23 07:13:45] <fluxdude> should I try to make it single quoted?
[2009/12/23 07:13:58] <fluxdude> problem is the exec is running a command, which requires single quotes itself...
[2009/12/23 07:14:09] <Volcane> normal shell style escapes apply
[2009/12/23 07:14:16] <Volcane> "foo \\d foo"
[2009/12/23 07:15:23] <fluxdude> ok that is sensible
[2009/12/23 07:15:28] <fluxdude> however, it worked without it
[2009/12/23 07:15:36] <fluxdude> but now at least my puppetmaster doesn't moan about it
[2009/12/23 07:23:15] @ Quit: dyresen: Remote closed the connection
[2009/12/23 07:27:55] <fluxdude> I am managing files like /etc/sysconfig/keyboard to make sure it is set to the right thing, is this best done with a module called say sysconfig and have all misc sysconfig files in there that are not related to daemons which have their own modules, or is it better done some other way?
[2009/12/23 07:28:41] <Volcane> that sounds like a good way yes
[2009/12/23 07:29:47] @ Quit: pacalm:
[2009/12/23 07:34:18] @ Anon078 joined channel #puppet
[2009/12/23 07:34:34] <Anon078> hey people was wonderin if you could check my tracks at www.myspace.com/meic140284 like to know wats thought
[2009/12/23 07:34:38] @ Quit: Anon078: "www.ozhiphop.com biatch!"
[2009/12/23 07:35:14] <danielbln> target audience: missed.
[2009/12/23 07:35:18] <Volcane> heh
[2009/12/23 07:36:41] <danielbln> service -> subscribe -> file -> source puppetmaster
[2009/12/23 07:36:54] <danielbln> I use this common setup to deploy snmp configuration files
[2009/12/23 07:37:25] <danielbln> it fails pretty often though, almost as if puppet tries to restart the service before the configuration file has been transferred completely from the mater
[2009/12/23 07:37:46] <danielbln> anyone else having problems with service subscription while using config files deployed from the fileserver?
[2009/12/23 07:38:21] <Volcane> certainly not like u describe though
[2009/12/23 07:38:22] <groove> can you pastie the manifest and error messages?
[2009/12/23 07:38:29] <Volcane> but best to get code and errors
[2009/12/23 07:38:29] <danielbln> sure, sec
[2009/12/23 07:40:49] <fluxdude> I'm using modules, and I added a module for something, then ran on my test box, puppet --test --verbose --tags someothermodule
[2009/12/23 07:41:10] <fluxdude> and it crapped out with an error about the module I just edited even though that wasn't what it was supposed to be using
[2009/12/23 07:41:25] <fluxdude> I thought the whole point of modules was that if one of them was broken it didn't affect the rest of them?
[2009/12/23 07:41:46] <fluxdude> perhaps the syntax error prevented puppetmaster from compiling the catalog?
[2009/12/23 07:42:18] <fluxdude> it was +> that caused a syntax error... is that only available in 0.25 onwards or something?
[2009/12/23 07:42:20] <danielbln> regarding service subscription problem: http://pastebin.com/m2abffc50
[2009/12/23 07:43:26] <fluxdude> no, 0.23.i onwards according to the online language tut
[2009/12/23 07:43:38] <fluxdude> wonder why it crapped out for me running 0.24 then...
[2009/12/23 07:45:01] <Volcane> danielbln: but thats all fine though, files finished then the service. but for some or other reason the start/stop didnt work well, probably cos it started too soon after a stop which is probably a bug in the rc script if i had to guess
[2009/12/23 07:45:05] <fluxdude> the resource parameter was an array and I did... parameter +> [ "additional", "items" ]
[2009/12/23 07:47:12] @ nakano is now known as nakano_
[2009/12/23 07:47:23] @ nakano_ is now known as nakano
[2009/12/23 07:47:56] <danielbln> Volcane: weird, because if I daisy chain the start stop commands at the shell level, I can't reproduce that behaviour
[2009/12/23 07:48:33] <Volcane> def though by the time it gets there the files are done copying
[2009/12/23 07:48:47] <Volcane> puppet isnt multi threaded in a way that multiple actions gets done at once, serial all the way
[2009/12/23 07:49:11] <danielbln> alright, that's at least something I can disregard then, good
[2009/12/23 07:49:33] <danielbln> I think I need to add some verbosity to my failing init scripts to get to the bottom of this
[2009/12/23 07:49:43] <Volcane> yeah probably the way to go
[2009/12/23 07:50:14] <danielbln> pushing an update just to have 250 servers going apeshit on the monitoring team until the next cycle is rather bad :D
[2009/12/23 07:51:09] <Volcane> hehe
[2009/12/23 07:53:02] <danielbln> let's see if "hasrestart" works as a workaround here
[2009/12/23 07:53:35] @ marcoecc joined channel #puppet
[2009/12/23 07:55:43] <danielbln> Volcane: did you try the current dashboard yet?
[2009/12/23 07:55:53] <Volcane> yes
[2009/12/23 07:56:00] <Volcane> reports work now
[2009/12/23 07:56:06] <Volcane> well imporing reports work
[2009/12/23 07:56:13] <Volcane> not sure about the integration to master yet
[2009/12/23 07:56:24] <danielbln> live aggregation works, I have that setup running here
[2009/12/23 07:56:39] <danielbln> I'd wish I could delete old reports though, they really start to stack up
[2009/12/23 07:56:47] <Volcane> yeah
[2009/12/23 07:56:59] <Volcane> saw someone - you i guess - filed a bug
[2009/12/23 07:57:13] <groove> jamesturnbull: re bug #2975, you are right that rails pulls in activerecord
[2009/12/23 07:57:13] <gepetto_> groove: jamesturnbull: #2975 is http://projects.reductivelabs.com/issues/show/2975 "Puppet - Bug #2975: UsingStoredConfiguration page makes no mention of requirement for ActiveRecord gem - ReductiveLabs.com"
[2009/12/23 07:57:13] <danielbln> yes
[2009/12/23 07:57:24] <Volcane> its good though i like the dev model, rather move a bit slow and get user feedbck on needs
[2009/12/23 07:57:29] <Volcane> than have one person anticipate it all
[2009/12/23 07:57:42] <groove> i didn't realise that rails was not installed, but storedconfigs appear to be working regardless...
[2009/12/23 07:58:07] <groove> is rails definitely required?
[2009/12/23 07:58:50] <jamesturnbull> groove: def.
[2009/12/23 07:59:04] <groove> how could my storedconfigs be working without it?
[2009/12/23 07:59:52] <jamesturnbull> groove: it can't? :)
[2009/12/23 07:59:58] <groove> it is
[2009/12/23 08:00:10] <Volcane> not possible, it logs an error if it cant find rails
[2009/12/23 08:00:18] <groove> admittedly it is only thin configs, and i only have a single collect ssh host keys resource, but it was working
[2009/12/23 08:00:22] <groove> no errors from the clients at least
[2009/12/23 08:01:59] @ Quit: Ramonster: Read error: 110 (Connection timed out)
[2009/12/23 08:02:28] <groove> and the storedconfig database was being populated
[2009/12/23 08:03:00] <Volcane> u got rails somewhere, face it :)
[2009/12/23 08:04:38] <groove> if i remove the rails gem it still works... unless something else provides the rails functionality somehow
[2009/12/23 08:05:27] <Volcane> and restarted the master after reoving the rails gem?
[2009/12/23 08:06:49] <groove> yes
[2009/12/23 08:08:09] @ Quit: tim|macbook: Read error: 60 (Operation timed out)
[2009/12/23 08:09:10] <groove> could it be that it only requires activerecord, and not the entire rails suite?
[2009/12/23 08:09:26] <duritong> and activesupport and so on
[2009/12/23 08:09:36] <groove> yes
[2009/12/23 08:09:48] <groove> i can't find a single "require 'rails'" in the puppet tree
[2009/12/23 08:12:15] <duritong> groove: http://github.com/rails/rails/blob/master/rails.gemspec the rails gem doesn't include much
[2009/12/23 08:12:20] <duritong> it just have a lot of dependecies
[2009/12/23 08:12:29] <duritong> which are still installed if your uninstall the rails gem
[2009/12/23 08:12:44] <duritong> s/your/you/
[2009/12/23 08:13:12] <groove> ok, i understand
[2009/12/23 08:13:25] <groove> my fault for not reading the docs completely
[2009/12/23 08:13:48] <groove> but the first error it came up with mentioned a lack of activerecord, which i didn't see anywhere on the storedconfigs page
[2009/12/23 08:16:09] @ suchu joined channel #puppet
[2009/12/23 08:17:25] <gepetto_> ::trac:: Downloading Puppet edited @ http://reductivelabs.com/trac/puppet/wiki/DownloadingPuppet?version=96
[2009/12/23 08:18:44] @ kolla joined channel #puppet
[2009/12/23 08:22:52] @ Quit: ssm: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:22:53] @ Quit: halenger: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:22:54] @ Quit: hggh: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:22:54] @ Quit: |Mike|: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:22:54] @ Quit: madduck: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:22:55] @ Quit: Berge: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:22:56] @ Quit: FiXion: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:22:57] @ Quit: opqdonut: kubrick.freenode.net irc.freenode.net
[2009/12/23 08:24:04] @ opqdonut joined channel #puppet
[2009/12/23 08:24:04] @ Berge joined channel #puppet
[2009/12/23 08:24:04] @ madduck joined channel #puppet
[2009/12/23 08:24:04] @ |Mike| joined channel #puppet
[2009/12/23 08:24:04] @ FiXion joined channel #puppet
[2009/12/23 08:24:04] @ ssm joined channel #puppet
[2009/12/23 08:24:04] @ halenger joined channel #puppet
[2009/12/23 08:24:05] @ hggh joined channel #puppet
[2009/12/23 08:25:33] <jamesturnbull> groove: it isn't "require" it uses Puppet's feature system
[2009/12/23 08:25:47] <jamesturnbull> groove: lib/puppet/feature/
[2009/12/23 08:25:54] <danielbln> Volcane: regarding the service restart problem from before: using hasrestart worked on all affected services
[2009/12/23 08:26:24] <Volcane> danielbln: sweet
[2009/12/23 08:27:06] <danielbln> does anyone know if having a restart option is part of the LSB?
[2009/12/23 08:27:14] @ Quit: scylla: "Connection timed out"
[2009/12/23 08:27:19] <Volcane> yeah more or less
[2009/12/23 08:27:32] <danielbln> good enough then
[2009/12/23 08:27:39] <Volcane> lsb says it should be there, debian has lsb* packages that doesnt make it compliant
[2009/12/23 08:32:55] @ bug joined channel #puppet
[2009/12/23 08:38:52] @ rmiller4pi8 joined channel #puppet
[2009/12/23 08:40:12] @ rmiller4pi82 joined channel #puppet
[2009/12/23 08:41:02] @ whaley joined channel #puppet
[2009/12/23 08:42:46] @ tim|macbook joined channel #puppet
[2009/12/23 08:45:42] @ Quit: rmiller4pi82: "Leaving."
[2009/12/23 08:48:41] @ fzzzt joined channel #puppet
[2009/12/23 08:51:39] <fzzzt> Morning. I have an app, DDS, which is basically a Java app that can have any number of instances which use it AND there can be multiple DDSes on a host. In other words, it's kind of like a library. I'm thinking about implementing this as dds::container(), which installs /usr/local/dds-${title}. The instances would be dds::instance, with their config files, etc., but I'm wondering if there is a way to organize it such that dds::instance inher
[2009/12/23 08:52:23] @ Quit: raphink: Read error: 113 (No route to host)
[2009/12/23 08:52:23] @ rraphink joined channel #puppet
[2009/12/23 08:52:27] @ rsquared joined channel #puppet
[2009/12/23 08:55:01] @ littleidea joined channel #puppet
[2009/12/23 08:56:13] @ skiold joined channel #puppet
[2009/12/23 08:56:59] @ Quit: rmiller4pi81: Read error: 110 (Connection timed out)
[2009/12/23 08:58:57] @ Quit: rmiller4pi8: Read error: 110 (Connection timed out)
[2009/12/23 09:02:16] <fzzzt> hrmm further constrained by the tomcat module...
[2009/12/23 09:02:21] @ Cyis joined channel #puppet
[2009/12/23 09:02:35] <fzzzt> tomcat::dds::{container|instance}
[2009/12/23 09:02:46] <fzzzt> i'll need a way to pass in the name to be appended to a tomcat app...
[2009/12/23 09:03:21] @ jmarki joined channel #puppet
[2009/12/23 09:04:04] <fzzzt> I think I need to restructure my whole Tomcat module.
[2009/12/23 09:04:40] @ joe-mac joined channel #puppet
[2009/12/23 09:04:41] <fzzzt> instead of having tomcat apps within the tomcat module, governed by tomcat(), maybe make them external
[2009/12/23 09:04:46] <fzzzt> just thinking out loud
[2009/12/23 09:06:55] <groove> you know your first line got cut off
[2009/12/23 09:07:33] <groove> after about 446 characters
[2009/12/23 09:20:11] @ Quit: whaley: Remote closed the connection
[2009/12/23 09:22:26] @ lero joined channel #puppet
[2009/12/23 09:29:49] @ Bass10 joined channel #puppet
[2009/12/23 09:30:07] @ themurph joined channel #puppet
[2009/12/23 09:46:44] @ groove left channel #puppet ()
[2009/12/23 09:48:10] @ pheezy joined channel #puppet
[2009/12/23 09:49:37] @ rraphink is now known as raphink
[2009/12/23 09:53:16] @ francois left channel #puppet ()
[2009/12/23 09:55:20] @ Quit: maxagaz: SendQ exceeded
[2009/12/23 09:55:42] @ vizzord joined channel #puppet
[2009/12/23 09:57:09] @ laomao joined channel #puppet
[2009/12/23 09:57:15] @ JM joined channel #puppet
[2009/12/23 09:57:39] <laomao> hello - does someone have an example of a host entry, using the host type?
[2009/12/23 09:58:04] <Volcane> type: ralsh host
[2009/12/23 09:58:06] <Volcane> on a node
[2009/12/23 09:59:08] <laomao> cool!
[2009/12/23 10:00:30] @ Quit: Bass10: Read error: 60 (Operation timed out)
[2009/12/23 10:02:19] @ whaley joined channel #puppet
[2009/12/23 10:03:00] @ alfism joined channel #puppet
[2009/12/23 10:05:32] @ rmiller4pi8 joined channel #puppet
[2009/12/23 10:06:50] <fzzzt> oh interesting, so if i have tomcat::app::dds, both tomcat and tomcat::app get evaluated before dds
[2009/12/23 10:10:22] @ stewartl42 joined channel #puppet
[2009/12/23 10:11:18] <stewartl42> Is there a way in puppet to add a kernel argument to grub.conf? for example, I want to add "ramdisk_size=500000" to every kernel line in grub.conf.
[2009/12/23 10:11:35] @ Quit: mvn071: "Leaving"
[2009/12/23 10:12:01] @ Quit: rmiller4pi8: "Leaving."
[2009/12/23 10:14:51] <fzzzt> hmm but maybe you can't nest definitions
[2009/12/23 10:14:56] @ rmiller4pi8 joined channel #puppet
[2009/12/23 10:14:57] <stewartl42> or maintaining a ramdisk in fstab. centralizing fstab files could be problematic...
[2009/12/23 10:20:37] @ Quit: _nono_: "Leaving"
[2009/12/23 10:22:16] <fzzzt> you may be able to use the mount type isntead
[2009/12/23 10:22:54] @ omry|work joined channel #puppet
[2009/12/23 10:24:58] @ Quit: MattyM: "ta ta"
[2009/12/23 10:27:40] @ Quit: tripoux: Remote closed the connection
[2009/12/23 10:32:22] @ diranged joined channel #puppet
[2009/12/23 10:32:45] @ Quit: danielbln: "Leaving."
[2009/12/23 10:33:09] <diranged> ok for some reason, osx 10.5 AD clients see AD groups in all lower case... i need a way to take <%= allowed_groups.join(" ") %> and instead of just joining all the elements with a " ", convert them to lowercase...
[2009/12/23 10:33:15] <diranged> can i throw a regex in there somehow?
[2009/12/23 10:34:52] <Volcane> allowed_groups.join(" ").downcase
[2009/12/23 10:35:00] <diranged> geezus, really?
[2009/12/23 10:35:05] <Volcane> ruby's hot shit
[2009/12/23 10:37:24] <diranged> ok lets make it more complicated... how about, inside the template... if $operatingsystem=darwin, use template A... if not, uise template B?
[2009/12/23 10:37:25] <diranged> :P
[2009/12/23 10:37:49] <Volcane> template("foo.${operatingsystem}.erb")
[2009/12/23 10:38:14] <diranged> yeah... i know that one.. this is just a one-off that i hate to deal with supporting like that
[2009/12/23 10:38:26] <diranged> im trying to remember how to do a source list with templates... like file{} can
[2009/12/23 10:38:37] <Volcane> use a selector
[2009/12/23 10:38:46] <Volcane> templates cant on their own
[2009/12/23 10:38:56] <stewartl42> anyone using puppet to manage brub.conf or kernel options?
[2009/12/23 10:39:01] <stewartl42> grub.conf
[2009/12/23 10:39:19] <monachus> content => $operatingsystem ? { darwin => template("blah.erb"), default => template("other.erb") }
[2009/12/23 10:39:31] <Volcane> diranged: i wrote a template() that can do it, but just put in a selector, something like $template = ... yes what monachus said
[2009/12/23 10:39:47] <diranged> monachus: oh cool, i didnt know i could throw it in like that
[2009/12/23 10:39:48] <diranged> thanks
[2009/12/23 10:40:08] <monachus> np
[2009/12/23 10:40:47] @ Quit: skiold:
[2009/12/23 10:41:23] @ Quit: tomjmalone:
[2009/12/23 10:43:38] * Volcane args at old puppet deploys
[2009/12/23 10:43:58] <Volcane> cant share code with new ones cos of the $%^&% change in file source specification
[2009/12/23 10:44:35] * Volcane goes to get food, just one more thing to do in the new year, upgrade 100s of debian machines
[2009/12/23 10:45:22] @ stewartl42 left channel #puppet ()
[2009/12/23 10:45:49] @ pacalm joined channel #puppet
[2009/12/23 10:47:03] @ dyresen joined channel #puppet
[2009/12/23 10:47:17] <diranged> ok along the lines with the selector.. can i somehow say .. content => "only if $operatinsystem != darwin"?
[2009/12/23 10:47:26] <diranged> so basically on darwin os's, make sure the file is there.. but dont touch it
[2009/12/23 10:50:40] <fzzzt> i think you would need the logic outside the resource and have two resources, one with content and one withou
[2009/12/23 10:51:19] <Volcane> diranged: set content => undef on darwin using a selector
[2009/12/23 10:51:22] <fzzzt> unless you can set it to nil or something...i dont know if that works
[2009/12/23 10:51:24] <fzzzt> nm
[2009/12/23 10:51:32] <fzzzt> :)
[2009/12/23 10:52:06] <Volcane> def works well on 25, not sure on 0.24
[2009/12/23 10:52:32] <monachus> undef works on 0.24 - i use it
[2009/12/23 10:54:44] @ Quit: markl_: Remote closed the connection
[2009/12/23 10:59:15] @ notbrien joined channel #puppet
[2009/12/23 11:01:27] @ Quit: pacalm:
[2009/12/23 11:02:00] <diranged> hmm ok i have <%= login_groups.join(" ".downcase %> ... lets say i want to change the " " to be " $login_domain". obviously the $login_domain doesnt work... but i tried throwing in an embedded <%= login_domain %> and that fails too
[2009/12/23 11:04:29] <diranged> i guess this works: <% login_groups.flatten.each do |group| -%><%= ldap_domain_prefix%>\<%= group %><% end -%>
[2009/12/23 11:06:23] @ markl_ joined channel #puppet
[2009/12/23 11:06:42] @ Quit: joe-mac: "Leaving."
[2009/12/23 11:08:22] @ lilmatt joined channel #puppet
[2009/12/23 11:08:41] @ Quit: suchu: "ChatZilla 0.9.86 [Firefox 3.5.6/20091201220228]"
[2009/12/23 11:12:14] @ Quit: tim|macbook:
[2009/12/23 11:13:49] @ rmiller4pi81 joined channel #puppet
[2009/12/23 11:16:20] @ rmiller4pi82 joined channel #puppet
[2009/12/23 11:20:00] @ jab_doa joined channel #puppet
[2009/12/23 11:30:57] @ Quit: p3rror: Read error: 60 (Operation timed out)
[2009/12/23 11:31:33] @ alban3 is now known as alban2
[2009/12/23 11:31:50] @ Quit: rmiller4pi8: Read error: 110 (Connection timed out)
[2009/12/23 11:32:29] <ashp> someone pay me $100,000 to just sit at home and knock out puppet manifests :D
[2009/12/23 11:32:30] @ grantk joined channel #puppet
[2009/12/23 11:32:52] <grantk> ls
[2009/12/23 11:33:07] <grantk> woops, sorry! Goodmorning
[2009/12/23 11:33:09] <ashp> files/
[2009/12/23 11:35:14] @ Quit: rmiller4pi81: Read error: 110 (Connection timed out)
[2009/12/23 11:45:41] @ Quit: barn: "Lost terminal"
[2009/12/23 11:47:44] @ Quit: ninjazjb_: "Lost terminal"
[2009/12/23 11:49:19] @ Quit: Welsh_Dwarf: Remote closed the connection
[2009/12/23 11:55:05] <grantk> Anyone have any idea why a module that has been deleted would still be running, I have a module that was to install the java jdk, It was removed but executes every time I run puppetd. I have removed all entries from my node.pp file and grepped my puppetmaster looking for the word java and found nothing.
[2009/12/23 11:55:38] <Volcane> should happen but sometimes the master just doesnt notice changes
[2009/12/23 11:55:41] <Volcane> a restart sorts it
[2009/12/23 11:55:46] <Volcane> s/should/shouldnt/
[2009/12/23 11:55:49] <grantk> yeah, have not tried that
[2009/12/23 11:57:14] @ Quit: Robbie_: Remote closed the connection
[2009/12/23 11:57:33] <diranged> can i use an inline template inside a command line?
[2009/12/23 11:57:38] <grantk> restart did not catch it.
[2009/12/23 11:57:40] <diranged> (wierd.. i know)
[2009/12/23 11:58:01] <Volcane> grantk: well then u have not removed it properly somehow
[2009/12/23 11:58:03] @ barn joined channel #puppet
[2009/12/23 11:58:10] <diranged> i essentially want to take $servers = [ "servera","serverb" ] and run command => "runthis.sh servera serverb"
[2009/12/23 11:58:29] <Volcane> diranged: $var = inline_template(...) \n command => "runthis.sh ${var}"
[2009/12/23 11:59:07] <diranged> ah good clal
[2009/12/23 11:59:21] @ Quit: rsquared: "Leaving"
[2009/12/23 12:07:23] <grantk> Volcan: symlink set up improperly so I was removing from a non-production puppetmaster
[2009/12/23 12:07:58] @ danielbln joined channel #puppet
[2009/12/23 12:08:04] <Volcane> :)
[2009/12/23 12:08:07] @ sHaggY_caT joined channel #puppet
[2009/12/23 12:13:08] <sHaggY_caT> Hi all! How i my use switch of templates with file brakets? content => $var ? { value1 => ("module/template1.erb"), value2 => ("module/template2.erb"), } does'nt work: http://paste.org.ru/?dph8kn
[2009/12/23 12:13:20] <sHaggY_caT> *how i may use
[2009/12/23 12:15:50] @ Quit: f3ew: Read error: 104 (Connection reset by peer)
[2009/12/23 12:19:11] @ BarnacleBob joined channel #puppet
[2009/12/23 12:22:58] @ bobbyz joined channel #puppet
[2009/12/23 12:24:19] @ Quit: vizzord: Remote closed the connection
[2009/12/23 12:29:11] @ jes5 joined channel #puppet
[2009/12/23 12:35:22] @ kakashi_ joined channel #puppet
[2009/12/23 12:36:18] <kakashi_> HI
[2009/12/23 12:36:38] <kakashi_> is there any wiki for gec2
[2009/12/23 12:36:55] <kakashi_> I actually want to build a gentoo image from scratch
[2009/12/23 12:39:23] <Volcane> sure u didnt want #gentoo?
[2009/12/23 12:43:38] <kakashi_> Volcane: for Amazon EC2
[2009/12/23 12:44:25] <Volcane> ah, no dont recall seeing any end to end howto style stuff for puppet and ec2
[2009/12/23 12:45:08] <kakashi_> ah
[2009/12/23 12:45:32] <kakashi_> just the readme
[2009/12/23 12:45:59] <kakashi_> hmm... anyways thanks Volcane
[2009/12/23 12:46:49] <Volcane> puppet fas facts for ec2 already
[2009/12/23 12:46:59] <Volcane> but all the ssl stuff and doing it securely is hard
[2009/12/23 12:47:28] @ mfoster joined channel #puppet
[2009/12/23 12:49:32] @ Quit: poison: Remote closed the connection
[2009/12/23 12:55:03] @ Quit: kakashi_: "Page closed"
[2009/12/23 12:57:50] <fluxdude> ls
[2009/12/23 12:58:15] <fluxdude> Volcane: were you referring earlier to the source change from 0.24 to 0.25?
[2009/12/23 12:58:35] <fluxdude> seems you have to put /modules/ in 0.25 source =>
[2009/12/23 12:58:39] <fluxdude> not cool
[2009/12/23 13:00:26] <Volcane> yup
[2009/12/23 13:00:38] <Volcane> that one
[2009/12/23 13:02:38] @ Quit: danielbln: "Leaving."
[2009/12/23 13:05:08] @ toi joined channel #puppet
[2009/12/23 13:05:15] @ Quit: ghg: Read error: 60 (Operation timed out)
[2009/12/23 13:06:57] <lero> Volcane, how does puppet scales?
[2009/12/23 13:07:10] <lero> or there's a document talking about this?
[2009/12/23 13:07:14] <Volcane> ppl run thousands and thousands of nodes with it
[2009/12/23 13:07:52] <lero> today we use cfengine to take care of 3k servers... and we are trying puppet
[2009/12/23 13:08:13] <Volcane> it'll be harder and need more kit with puppet cos its a different model
[2009/12/23 13:08:34] <lero> the syntax of puppet is nice, but the memory usage of ruby and the slowness hurts :/
[2009/12/23 13:08:44] <Volcane> though if u can arrange for your puppet manifests to get onto the machines - say with rsync - you can just run it without the central server
[2009/12/23 13:11:36] <lero> hmm
[2009/12/23 13:12:03] @ ambroff joined channel #puppet
[2009/12/23 13:12:16] <Volcane> and thats a lot faster natually and will scale to truely massive sizes of machines
[2009/12/23 13:12:39] <Volcane> but for the traditinal central server model, depending on your manifests, 500 to 800 nodes per fairly big puppetmaster server
[2009/12/23 13:13:28] <BarnacleBob> i got 800 on a machine thats loaded down doing tons of other stuff. its a big machine tho
[2009/12/23 13:13:36] <lero> Volcane, you mean to have the configuration of the server in the server itself, instead of a puppet server
[2009/12/23 13:13:43] <Volcane> lero: yes
[2009/12/23 13:14:07] <lero> hmm
[2009/12/23 13:14:16] <lero> today we manage 3k server using a p4 machine hehe
[2009/12/23 13:14:21] <lero> with cf2
[2009/12/23 13:14:40] <BarnacleBob> how often do your changes go out?
[2009/12/23 13:14:45] <BarnacleBob> by default puppet runs every 30 minutes
[2009/12/23 13:14:57] <Volcane> yeah, if u built the same model with puppet - pusht he code to the machines and compile/execute/serve locally puppet will do the same
[2009/12/23 13:15:01] <BarnacleBob> so you get a lot of activity
[2009/12/23 13:17:53] <lero> today we are discussing what will be choose to use, cf3 or puppet and we need arguments.. that why i'm testing it and asking too :D
[2009/12/23 13:18:15] @ Quit: giskard: Remote closed the connection
[2009/12/23 13:20:32] @ Quit: bobbyz: Read error: 60 (Operation timed out)
[2009/12/23 13:22:53] @ Quit: whaley: Remote closed the connection
[2009/12/23 13:29:13] @ Quit: jaredrhine: Read error: 110 (Connection timed out)
[2009/12/23 13:30:07] @ Quit: fluxdude: Read error: 110 (Connection timed out)
[2009/12/23 13:31:52] @ jaredrhine joined channel #puppet
[2009/12/23 13:34:48] @ skiold joined channel #puppet
[2009/12/23 13:38:47] @ nakano is now known as nakano_
[2009/12/23 13:40:38] @ jfreeman joined channel #puppet
[2009/12/23 13:43:00] @ re__ joined channel #puppet
[2009/12/23 13:46:18] @ joe-mac joined channel #puppet
[2009/12/23 13:47:48] @ mvn071 joined channel #puppet
[2009/12/23 13:47:59] <diranged> hmm this came up randomly.. i dont think i changed anything, but maybe i did..
[2009/12/23 13:48:08] <diranged> err: //ssh/Service[openssh-server]: Failed to retrieve current state of resource: Unimplemented element
[2009/12/23 13:48:09] <diranged> err: //ssh/Service[openssh-server]: Failed to retrieve current state of resource: Unimplemented element
[2009/12/23 13:48:12] <diranged> (ack! sorry!)
[2009/12/23 13:48:21] <diranged> (kick me)
[2009/12/23 13:48:25] @ Quit: mvn071: Read error: 104 (Connection reset by peer)
[2009/12/23 13:52:13] <tim|imac> masterzen: are you okay with pastie.org using your Textmate puppet thingies for puppet support?
[2009/12/23 13:55:02] <diranged> how do i make an exec[] that ONLY runs if its called specifically?
[2009/12/23 13:55:28] <re__> I just updated to 0.25.1 .. I added a node to the cluster, run puppetd --waitforcert 300 .. when I run puppetca --list on the master, it no longer shows that my new node registered. has anyone else come across this?
[2009/12/23 13:56:17] <Volcane> diranged: look at refreshonly
[2009/12/23 13:56:23] <Volcane> diranged: then it will only run when notified
[2009/12/23 13:56:52] <diranged> ah thats right..
[2009/12/23 13:57:08] @ jusfreeman joined channel #puppet
[2009/12/23 13:57:08] @ Quit: jfreeman: Read error: 104 (Connection reset by peer)
[2009/12/23 13:57:09] <diranged> ok im getting this error now on 3 different modules.. randomly
[2009/12/23 13:57:10] <diranged> Failed to retrieve current state of resource: Unimplemented element
[2009/12/23 13:58:06] <Volcane> diranged: no idea about that
[2009/12/23 13:58:13] <Volcane> diranged: no hints about what file its on about?
[2009/12/23 13:58:32] @ Quit: toi: Read error: 113 (No route to host)
[2009/12/23 13:58:37] @ Quit: kaptk2: "Leaving."
[2009/12/23 14:04:10] <re__> does 0.25.1 have cert issues? I can't seem to get new nodes to register with the master
[2009/12/23 14:05:03] <Volcane> not seen any issues since early betas
[2009/12/23 14:05:08] <Volcane> or rc's or whatever
[2009/12/23 14:07:28] <re__> Volcane: hmm ok thanks. i'm probably just doing something wrong
[2009/12/23 14:17:14] <re__> anyone know why puppetd --waitforcert 60 --test complains about: "Exiting; no certificate found and waitforcert is disabled"? is there a new config directive i'm missing in puppet.conf that would enable it?
[2009/12/23 14:19:43] <Volcane> what version did u upgrade from?
[2009/12/23 14:20:03] <Volcane> or is this a brand new install?
[2009/12/23 14:20:54] <re__> I upgraded the master from 0.24.8 to 0.25.1
[2009/12/23 14:21:28] <Volcane> and the client with the probelm is?
[2009/12/23 14:22:06] <re__> and I'm trying to add a new node. well I used to run puppetd --test --waitforcert 60 and then on the server i'd see the client come in with puppetca --list
[2009/12/23 14:22:25] <re__> however, the new node i'm adding when I run puppetd --test --waitforcert 60 just says this:
[2009/12/23 14:22:56] <re__> http://www.pastie.org/754798
[2009/12/23 14:23:45] <Volcane> hmm
[2009/12/23 14:23:56] <Volcane> i am not seeing that --waitorcert is a accepted option anymore
[2009/12/23 14:24:41] <Volcane> testing
[2009/12/23 14:25:27] <re__> oh really? it shows up in puppetd --help
[2009/12/23 14:25:38] <re__> on 0.25.1 and earlier
[2009/12/23 14:25:56] <Volcane> yeah hold
[2009/12/23 14:26:19] <Volcane> same behavior here
[2009/12/23 14:26:42] <Volcane> its a bug
[2009/12/23 14:26:49] @ grantk left channel #puppet ()
[2009/12/23 14:27:28] <Volcane> if you file it quickly, it might be fixed for 0.25.2
[2009/12/23 14:27:41] <re__> ok thanks, i'll do that
[2009/12/23 14:28:05] <re__> hmm, you know, i wonder if there's another problem with my master that i just noticed. if I run puppetd --test --debug on the master (which worked as of 0.24.8) I seem to get errors: http://www.pastie.org/754806
[2009/12/23 14:29:18] <Volcane> u mean the pson not support etc?
[2009/12/23 14:30:16] @ tim|macbook joined channel #puppet
[2009/12/23 14:31:31] <re__> yeah
[2009/12/23 14:31:49] @ Quit: tim|macbook: Client Quit
[2009/12/23 14:31:50] <Volcane> u can ignore that
[2009/12/23 14:31:55] <re__> ahh ok cool
[2009/12/23 14:31:56] <Volcane> over zealous logging
[2009/12/23 14:32:26] <re__> eheh =) oh yeah, so for that waitforcert bug, is there any way around it?
[2009/12/23 14:32:27] <Volcane> they're "debug"
[2009/12/23 14:32:43] <re__> ahh yeah gotchya
[2009/12/23 14:34:43] @ Quit: ambroff: Read error: 110 (Connection timed out)
[2009/12/23 14:43:13] <re__> Volcane: do you have any idea if there's a workaround for that bug so that I can add nodes?
[2009/12/23 14:44:58] @ Quit: jusfreeman: Read error: 60 (Operation timed out)
[2009/12/23 14:45:00] <Volcane> the cert is surely still showing up on the master with puppetca right?
[2009/12/23 14:45:05] <Volcane> sign it, run puppet?
[2009/12/23 14:45:30] <re__> doh, yeah it's showing up now. god i'm a noob
[2009/12/23 14:45:40] <re__> Volcane: thanks again for the help =)
[2009/12/23 14:45:46] @ jusfreeman joined channel #puppet
[2009/12/23 14:45:56] <Volcane> heh
[2009/12/23 14:46:08] <Volcane> admitting your problems is the first step :P
[2009/12/23 14:46:14] <re__> lol =)
[2009/12/23 14:50:31] @ Quit: jmarki: Remote closed the connection
[2009/12/23 14:55:51] @ ambroff joined channel #puppet
[2009/12/23 15:02:14] @ justinfreeman joined channel #puppet
[2009/12/23 15:02:24] @ brothers joined channel #puppet
[2009/12/23 15:03:26] @ fzzzt left channel #puppet ()
[2009/12/23 15:04:13] @ Quit: jusfreeman: Read error: 60 (Operation timed out)
[2009/12/23 15:07:10] <agaffney> is there a way I can set a "global" variable in a class?
[2009/12/23 15:07:36] <agaffney> I've got servers in 4 locations, and I want to jujst be able to 'include location::foo' for any given node to set a few variables that are accessible from any other class
[2009/12/23 15:07:40] <Cyis> Volcane, you use any daemontools services in your puppet config?
[2009/12/23 15:07:57] <monachus> @agaffney you can ref vars in other classes by full class name
[2009/12/23 15:08:06] <monachus> like: global::location::foo:variable
[2009/12/23 15:08:21] <agaffney> in this case, I don't know which clas
[2009/12/23 15:08:31] <agaffney> a node could include either location::foo or location::bar
[2009/12/23 15:08:34] <Cyis> monachus, what about if the value of the variable is dynamically assigned within the class?
[2009/12/23 15:08:37] <agaffney> either will set the same variable
[2009/12/23 15:09:01] <monachus> @cyis - as long as the class has been evaluated before and the var isn't within a define, it's been set
[2009/12/23 15:09:07] <Cyis> I was looking at a similar situation and just went with using extlookup
[2009/12/23 15:09:33] <Volcane> extlookup is like the uber global variables :P
[2009/12/23 15:09:37] <monachus> @agaffney - location will have to be determined at some point, right? can you select after that criteria has been established?
[2009/12/23 15:10:53] <Cyis> Volcane, extlookup works fine for me as most of my stuff is defined either on a per-host, per-site or generic basis...
[2009/12/23 15:11:01] <Cyis> and the values are for use within templates
[2009/12/23 15:11:16] <Volcane> why only for use in templates?
[2009/12/23 15:11:19] <agaffney> hmm, I'd rather not use an extra module
[2009/12/23 15:11:46] <Cyis> Volcane, that was where I had primary need for the translations
[2009/12/23 15:12:00] <monachus> @agaffney - i guess i don't understand your topology. if there's anything in there, you can use if() based on defines, or tags
[2009/12/23 15:13:08] <Cyis> just now looking at using daemontools service type provider as we have a few services that are started using it...
[2009/12/23 15:13:09] <Volcane> Cyis: ah
[2009/12/23 15:13:17] <Volcane> i dont use daemontools
[2009/12/23 15:13:25] <Cyis> the previous guy that had been working on puppet config was doing it via Exec { } blocks
[2009/12/23 15:13:28] <Volcane> i fix whatever crashes and so dont need such monstrous things :P
[2009/12/23 15:13:41] <monachus> i use daemontools
[2009/12/23 15:13:54] <monachus> ironically, for puppet, mostly
[2009/12/23 15:13:58] <Cyis> monachus, in your puppet configs ?
[2009/12/23 15:13:58] <monachus> b/c we had issues with it just dying
[2009/12/23 15:14:03] <monachus> yeah, in my puppet convigs
[2009/12/23 15:14:05] <monachus> * configs
[2009/12/23 15:14:22] <monachus> our LDAP servers are under supervision.
[2009/12/23 15:14:36] <monachus> things that shouldn't die
[2009/12/23 15:15:14] <Cyis> yeah these are services that could potentially die but need to be restarted
[2009/12/23 15:15:14] <monachus> i have a daemontools module that controls the symlinks and the contents of the directories, and then services with the daemontools provider
[2009/12/23 15:15:16] @ Quit: Filbert: Read error: 60 (Operation timed out)
[2009/12/23 15:16:52] <Cyis> right now the deployment/installation instructions use a set_service shell script that set it up... I want to make it puppet config
[2009/12/23 15:19:26] @ Quit: skiold:
[2009/12/23 15:19:32] <monachus> it's pretty easy. how do i get a pastie link from the bot again?
[2009/12/23 15:20:04] @ Quit: rmiller4pi82: Read error: 110 (Connection timed out)
[2009/12/23 15:20:44] <monachus> got it
[2009/12/23 15:21:04] <monachus> pastie: url
[2009/12/23 15:21:46] <Cyis> for most of our daemontools services the /etc/service/* content is a symlink to a directory inside the package that has been installed providing the service (under /opt)
[2009/12/23 15:22:10] @ toi joined channel #puppet
[2009/12/23 15:22:21] <Cyis> essentially I have to figure out to duplicate that in a puppet config
[2009/12/23 15:23:52] <BarnacleBob> there is a daemontools service provider
[2009/12/23 15:23:56] <BarnacleBob> don't kno whow it works tho
[2009/12/23 15:24:45] @ Quit: phantez_: "leaving"
[2009/12/23 15:24:49] <Cyis> yeah that's what I'm trying to figure out
[2009/12/23 15:25:28] <monachus> give me a minute to put some doc in my daemontools modules and i'll post it up for you to look at. maybe it'll help
[2009/12/23 15:26:11] <Cyis> kewl thanks... looking through the provider/service/daemontools.rb now and it's actually giving me some ideas to try for my provider/aptrepo/parsed.rb code
[2009/12/23 15:26:39] <re__> in 0.25.1 is there a way to clear out all the stored configs info in the DB of a decommissioned node?
[2009/12/23 15:26:54] @ Quit: duritong: Remote closed the connection
[2009/12/23 15:27:54] <BarnacleBob> not yet
[2009/12/23 15:27:56] <BarnacleBob> one se
[2009/12/23 15:27:58] <BarnacleBob> i have a script
[2009/12/23 15:28:14] @ Quit: diranged: "Leaving"
[2009/12/23 15:28:50] <BarnacleBob> re__, don't remember where i found this but took me like a half hour to find it yesterday
[2009/12/23 15:28:51] <BarnacleBob> http://pastie.org/754897
[2009/12/23 15:29:11] <re__> BarnacleBob: thanks!!
[2009/12/23 15:29:48] <BarnacleBob> np
[2009/12/23 15:31:08] <re__> wow, sweet! that script worked like a charm
[2009/12/23 15:31:39] @ bobbyz joined channel #puppet
[2009/12/23 15:32:50] <agaffney> monachus: I'm just being lazy and setting a variable in nodes.pp
[2009/12/23 15:32:52] <agaffney> for each box
[2009/12/23 15:38:48] <re__> does 0.25.1 no longer use /var/lib/puppet/state/localconfig.yaml ?
[2009/12/23 15:41:24] <re__> anyone? I had nagios watching state.yaml and localconfig.yaml in 0.24.8. 0.25.1 doesn't seem to create a localconfig.yaml .. was wondering if it had changed so I can remove the nagios checks
[2009/12/23 15:41:52] @ Demosthenex joined channel #puppet
[2009/12/23 15:42:08] <Volcane> /var/lib/puppet/client_yaml/fqdn.yaml
[2009/12/23 15:43:40] <re__> Volcane: ahh ty!
[2009/12/23 15:43:47] <Cyis> monachus, did you get that example?
[2009/12/23 15:44:34] <monachus> yeah - i thought the bot was supposed to paste it in here
[2009/12/23 15:44:36] @ Quit: Demosthenes: Read error: 60 (Operation timed out)
[2009/12/23 15:44:43] <monachus> http://pastie.org/754926
[2009/12/23 15:44:48] <monachus> someday i'll learn how to use that thing.
[2009/12/23 15:45:08] <monachus> we have a somewhat complicated structure since we have one puppetmaster for all of our clients
[2009/12/23 15:45:27] <monachus> so we have generic global classes (which you're looking at), and then client-specific classes where variables are overridden prior to defines being called
[2009/12/23 15:46:20] <monachus> each host can potentially belong to a cluster, which is defined in its basenode, etc, so that's why you see the multiple puppet sources below, going from most to least-specific
[2009/12/23 15:46:53] <monachus> you're interested in setup_env at the bottom
[2009/12/23 15:47:31] <Cyis> monachus, so you're not actually using the puppet daemontools service provider if I'm reading this correct
[2009/12/23 15:47:51] <monachus> this is just setting up the environment
[2009/12/23 15:48:02] <monachus> once it's running, then yes. let me find an example of that.
[2009/12/23 15:48:09] @ rmiller4pi81 joined channel #puppet
[2009/12/23 15:48:34] * monachus wonders if he can befriend the bot again
[2009/12/23 15:48:41] <monachus> pastie can i have a url please?
[2009/12/23 15:48:49] <monachus> fek.
[2009/12/23 15:48:51] <monachus> pastie: url
[2009/12/23 15:50:17] @ poison joined channel #puppet
[2009/12/23 15:50:28] <pastie> http://pastie.org/754935 by monachus.
[2009/12/23 15:50:32] <monachus> ha!
[2009/12/23 15:50:38] * monachus does a victory dance
[2009/12/23 15:50:45] <monachus> oh - and it has fancy prettyprinting now too!
[2009/12/23 15:51:17] <monachus> so there's an example where we have ldap servers under supervision, except those that aren't, so we wrap it in a define
[2009/12/23 15:51:21] <monachus> those that are use the daemontools provider
[2009/12/23 15:51:51] <monachus> but the actual service.d directory and the symlink we do ourselves. i don't know if the daemontools service provider will make the symlink - i don't see how it can since it doesn't know the target
[2009/12/23 15:52:04] <monachus> i presume it just runs svc -d and svc -u and such
[2009/12/23 15:52:45] @ _3rdman joined channel #puppet
[2009/12/23 15:59:48] @ Quit: littleidea:
[2009/12/23 16:02:09] @ Filbert joined channel #puppet
[2009/12/23 16:02:37] @ Filbert is now known as Guest7950
[2009/12/23 16:04:12] @ danielbln joined channel #puppet
[2009/12/23 16:05:12] <lilmatt> awww... I just tried to create a page on the puppet trac wiki and failed with not enough privs
[2009/12/23 16:05:32] <jrojas> lilmatt: i think thats because of the spam problem
[2009/12/23 16:05:59] <lilmatt> I'm trying to upload a puppet recipe for Amazon EC2 I created, which is different than the one already up there.
[2009/12/23 16:06:15] <lilmatt> I didn't think I should add to the other page
[2009/12/23 16:07:28] <Volcane> lilmatt: chat to jamesturnbull he'll sort you out
[2009/12/23 16:07:50] <lilmatt> Volcane: ty
[2009/12/23 16:09:16] <Cyis> bah.. just realized that box has 0.24.5 and doesn't have daemontools service provider :)
[2009/12/23 16:09:46] @ Djelibeybi joined channel #puppet
[2009/12/23 16:11:30] <jamesturnbull> lilmatt: pong
[2009/12/23 16:12:39] @ Quit: rmiller4pi81: "Leaving."
[2009/12/23 16:15:42] @ miah is now known as mmiah
[2009/12/23 16:15:46] @ mmiah is now known as miah
[2009/12/23 16:17:21] <gepetto_> ::trac:: Recipes/Amazon-EC2-Recipe created @ http://reductivelabs.com/trac/puppet/wiki/Recipes/Amazon-EC2-Recipe?version=1
[2009/12/23 16:17:59] @ Quit: poison: Remote closed the connection
[2009/12/23 16:25:57] <gepetto_> ::trac:: Recipes/Amazon-EC2-Recipe edited @ http://reductivelabs.com/trac/puppet/wiki/Recipes/Amazon-EC2-Recipe?version=2
[2009/12/23 16:26:06] <explody> When I create a definition, is there a way to manipulate what parameters I can call it with, aside from the global defaults? Specifically, I'm doing something like "define thing { exec { stuff} }" and I'd like to say "thing { onlyif: something }" instead of putting the "onlyif" inside the exec statement
[2009/12/23 16:29:14] @ duritong joined channel #puppet
[2009/12/23 16:29:57] <lilmatt> explody: I think I was trying to do something like that a month or so ago, but couldn't easily.
[2009/12/23 16:31:14] <explody> yeah it's hard to explain. This is what I mean: http://pastebin.ca/1725301
[2009/12/23 16:32:16] <explody> I'm trying to remove and install a *ton* of software, and right now all I can get it to do is run "unless" or "onlyif" tests for each individual package, as I call exec{}
[2009/12/23 16:37:49] <jrojas> explody: why are you using exec to remove packages? is your provider not supported?
[2009/12/23 16:41:01] @ poison joined channel #puppet
[2009/12/23 16:42:25] <jamesturnbull> explody: if/else statement>?
[2009/12/23 16:45:07] <BarnacleBob> explody, you can
[2009/12/23 16:45:11] <explody> jrojas: so I could use "onlyif"
[2009/12/23 16:45:39] <jrojas> hmm
[2009/12/23 16:45:52] <BarnacleBob> explody, http://pastie.org/755020
[2009/12/23 16:46:06] <BarnacleBob> explody, that will let you override it
[2009/12/23 16:46:21] <BarnacleBob> by doing mything{blah: onlyif=>"asdf"} or mything{foo: }
[2009/12/23 16:46:58] <explody> oh hell yeah
[2009/12/23 16:48:19] <explody> jrojas: also, in this case, it's removing a bunch of packages, not installing. I don't need any packaging system features, just a one-liner command. All my installs do use package {} though
[2009/12/23 16:51:50] <explody> One of my predecessors thought that the best way to manage software on Sun boxen was to install absolutely *everything* on every CD he could find. To the tune of 1.5-2K pkgs per system, of which we actually need maybe 20%.
[2009/12/23 16:51:57] @ rickbradley is now known as rickbradley|away
[2009/12/23 16:52:22] <BarnacleBob> lol
[2009/12/23 16:52:34] <BarnacleBob> i love fixing things with a 10lb sledge hammer
[2009/12/23 16:53:23] <explody> Sometimes they just need fixin'
[2009/12/23 16:53:50] <BarnacleBob> i personally would do that fixing with a script outside of puppet
[2009/12/23 16:54:04] <jrojas> my base OS install is extremely tiny. I dont even install the "base" that centos normally installs.
[2009/12/23 16:54:05] <BarnacleBob> just a long for loop with some shared ssh keys till its done
[2009/12/23 16:54:21] <BarnacleBob> oh god base pisses me off in centos
[2009/12/23 16:54:25] @ Quit: lilmatt: Client Quit
[2009/12/23 16:54:35] <Cyis> heading home... later
[2009/12/23 16:54:37] @ Quit: Cyis: "Ex-Chat"
[2009/12/23 16:54:37] <BarnacleBob> it installs lsb something or other that leaks in cups that leaks in x11 libraries
[2009/12/23 16:54:42] <explody> BarnacleBob: yep, I do that half my day :P
[2009/12/23 16:54:52] <explody> omfg !cups
[2009/12/23 16:55:15] <jrojas> http://pastie.org/755036
[2009/12/23 16:55:20] <jrojas> thats my %packages for my kickstart
[2009/12/23 16:55:25] <BarnacleBob> i'm currently resolving the differences of our scripts folder across all our machines
[2009/12/23 16:55:44] <BarnacleBob> ive got up to 20 different copies of the same scripts
[2009/12/23 16:55:48] <explody> "I think I'll install vim" => secret dependency on gtk => gtk brings in something gnome-y => now I have a full printing system on a firewall! yay!
[2009/12/23 16:56:14] <BarnacleBob> jrojas, is #@core a package group or is it commented out?
[2009/12/23 16:56:18] <explody> or something like that
[2009/12/23 16:56:31] <jrojas> BarnacleBob: its commented, not sure what it was..
[2009/12/23 16:56:49] <BarnacleBob> wow i'm surprised you can get a working install with just that stuff
[2009/12/23 16:56:57] <BarnacleBob> yum must include most of that stuff
[2009/12/23 16:57:31] <BarnacleBob> in my ubuntu vm install script that i hacked together i managed to get some package selection group that doesn't even include man
[2009/12/23 16:57:53] <jrojas> BarnacleBob: yeah there are no man pages on my systems
[2009/12/23 16:58:07] <Volcane> yeah --nobase will strip a redhat box pretty bare, still several 100 megs though
[2009/12/23 16:58:13] <Volcane> but a very nice starting point
[2009/12/23 16:58:23] <jrojas> Volcane: exactly
[2009/12/23 16:58:43] <Volcane> everything starts like that for me too
[2009/12/23 16:58:46] <Volcane> puppet takes it from there
[2009/12/23 16:59:01] <jrojas> Volcane: same here.
[2009/12/23 17:00:41] @ Tuf8 joined channel #puppet
[2009/12/23 17:01:55] <Tuf8> heya all..I'm a newb and have a quick question.
[2009/12/23 17:03:18] @ Quit: lero: "Leaving"
[2009/12/23 17:03:55] <Tuf8> Im seeing some errors when recursing a directory:
[2009/12/23 17:04:06] <Tuf8> Failed to retrieve current state of resource: No specified source was found from puppet://puppet/dns/var/named/zones/64.94.212.zone
[2009/12/23 17:04:29] <Tuf8> the weird thing is that theres plenty of other zone files in that dir that get copied over just fine
[2009/12/23 17:04:55] <Tuf8> its odd that it would be having issues with just a few of the files
[2009/12/23 17:05:15] <Tuf8> my totally n00b manifest:
[2009/12/23 17:05:15] <Tuf8> http://pastie.org/755045
[2009/12/23 17:05:45] <whack> Tuf8: I assume you have modules/dns/files/var/named/zones/64.94.212.zone ?
[2009/12/23 17:05:56] <whack> and it's definitely on the puppet master?
[2009/12/23 17:06:35] <Tuf8> it must be there right?
[2009/12/23 17:06:43] <Tuf8> how else would it know about it
[2009/12/23 17:06:58] <whack> oh you're saying the recursion is failing and giving that error?
[2009/12/23 17:07:01] <Tuf8> I was asking myself the same thing but its recursing
[2009/12/23 17:07:02] <whack> that's odd
[2009/12/23 17:07:04] <Tuf8> right
[2009/12/23 17:07:07] <whack> (I just read your manifest)
[2009/12/23 17:07:11] <whack> yeah, nto sure what's going on there.
[2009/12/23 17:07:24] <whack> check file permissions? run your puppetmasterd in --debug and --trace?
[2009/12/23 17:07:24] <Tuf8> its always the same files, doesnt seem random
[2009/12/23 17:08:55] <Tuf8> oooh
[2009/12/23 17:09:13] <Tuf8> the file is 600
[2009/12/23 17:09:24] <Tuf8> what user does puppet do its stuff as?
[2009/12/23 17:09:33] <Tuf8> I assumed it was root
[2009/12/23 17:09:42] <Tuf8> but the particular files have different group perms
[2009/12/23 17:10:15] @ Quit: toi: Read error: 60 (Operation timed out)
[2009/12/23 17:10:23] <Tuf8> thats probably it
[2009/12/23 17:10:27] <Tuf8> ill change it and test
[2009/12/23 17:12:42] <Tuf8> actually thats not it
[2009/12/23 17:12:55] <Tuf8> debug: //Node[admin]/dns/File[/var/named/chroot/var/named/zones/64.94.212.zone]: File does not exist
[2009/12/23 17:13:05] @ littleidea joined channel #puppet
[2009/12/23 17:13:06] <Tuf8> yet it does :)
[2009/12/23 17:14:00] <Volcane> does all the parent dirs exist on the node?
[2009/12/23 17:14:07] <Volcane> is selinux not messing you around?
[2009/12/23 17:14:28] <Tuf8> seliniux is off, and the parent dirs are there yeah
[2009/12/23 17:15:03] <Tuf8> I thought of that, and maybe I wasnt requiring something to finish, but this is on subsequent runs and the packages have already created the proper tree
[2009/12/23 17:16:12] <Tuf8> I see a lot of this:
[2009/12/23 17:16:13] <Tuf8> http://pastie.org/755065
[2009/12/23 17:16:25] <Tuf8> does it seem like its having an issue or something there?
[2009/12/23 17:16:46] <Tuf8> thats in the client log
[2009/12/23 17:16:50] <Volcane> some file isnt there, convinced of it :)
[2009/12/23 17:16:53] @ Quit: bobbyz: Read error: 110 (Connection timed out)
[2009/12/23 17:17:05] <Tuf8> but its successful with other files in the same dir
[2009/12/23 17:18:00] @ tokyojoe joined channel #puppet
[2009/12/23 17:18:11] <tokyojoe> hello
[2009/12/23 17:20:18] <Tuf8> Volcane: heres one showing one file failing while the next works
[2009/12/23 17:20:19] <Tuf8> http://pastie.org/755070
[2009/12/23 17:20:31] <Tuf8> theyre all there, on the puppetmaster
[2009/12/23 17:21:02] <Volcane> i dont know, have u showed your code yet?
[2009/12/23 17:21:24] <Volcane> gota run
[2009/12/23 17:21:29] <Tuf8> yeah
[2009/12/23 17:21:37] <Tuf8> http://pastie.org/755045
[2009/12/23 17:22:12] <Tuf8> its my fist ever manifest btw so please forgive me :)
[2009/12/23 17:24:47] @ Quit: themurph: Read error: 110 (Connection timed out)
[2009/12/23 17:26:13] @ lak joined channel #puppet
[2009/12/23 17:28:06] @ lilmatt joined channel #puppet
[2009/12/23 17:28:23] <tokyojoe> Tuf8: so it copies all the file in the zones directory except fot that one 'aplus1.sharkle.com.zone' ?
[2009/12/23 17:28:45] * eric0 in passenger gem hell :\
[2009/12/23 17:28:47] <Tuf8> a few others
[2009/12/23 17:28:59] <Tuf8> tokyojoe: theres maybe like 10 out of 40 files it bombs on
[2009/12/23 17:29:35] <tokyojoe> nothing to do with the files'permissions ?
[2009/12/23 17:30:31] <Tuf8> I cant spot any discernible differences
[2009/12/23 17:30:40] <Tuf8> I changed them all to the same perms, restarted puppetmaster
[2009/12/23 17:31:38] @ lero joined channel #puppet
[2009/12/23 17:32:07] <tokyojoe> are there othere files in the OLD directory that get installed ?
[2009/12/23 17:32:42] <Volcane> Tuf8: very odd, what version?
[2009/12/23 17:33:35] <Tuf8> tokyojoe: yes, theres some in there too that work fine
[2009/12/23 17:33:39] <Tuf8> that one pastie shows it
[2009/12/23 17:33:50] <explody> actually, looks like http://pastie.org/755020 ends up calling 'onlyif' for every argument after all.
[2009/12/23 17:33:53] <Tuf8> http://pastie.org/755070
[2009/12/23 17:34:06] <Tuf8> that shows a broke one up top, and a working one at the bottom
[2009/12/23 17:34:32] <Tuf8> Volcane: 0.24.8
[2009/12/23 17:35:47] <explody> this works though: http://pastebin.ca/1725370
[2009/12/23 17:35:54] <tokyojoe> can you do a 'ls -lR' of that dir in a pastie ?
[2009/12/23 17:36:00] <Volcane> no errors other than file not found stuff on the master logs?
[2009/12/23 17:36:28] <Tuf8> Volcane: those were from a debug on the client side
[2009/12/23 17:36:30] @ Guest7950 is now known as Filbert
[2009/12/23 17:36:41] <Tuf8> nothing popped up on the master
[2009/12/23 17:36:45] <Tuf8> in the logs
[2009/12/23 17:38:59] <Tuf8> lots of what looks like good webrick stuff but nothing to indicate a problem
[2009/12/23 17:42:15] <Tuf8> oh jeez nevermind
[2009/12/23 17:42:22] <Tuf8> its a perms thing
[2009/12/23 17:42:27] <Volcane> heh
[2009/12/23 17:42:31] <Tuf8> ack
[2009/12/23 17:43:00] <Tuf8> sorry guys :)
[2009/12/23 17:45:22] <Tuf8> wont be the first one im sure!
[2009/12/23 17:45:41] <Tuf8> buy hey my first stab at a module actually worked, aside from the perms business..what are the odds
[2009/12/23 17:46:25] <Tuf8> I gotta say, its very tough to wrap ones head around puppet enough to squeeze out the first real module
[2009/12/23 17:46:50] <Tuf8> once you do it though its like you see the light :)
[2009/12/23 17:47:59] <Volcane> Tuf8: not sure if you care, but u can save a bit on typeing like here: http://pastie.org/755111
[2009/12/23 17:48:15] <Tuf8> I absolutely care
[2009/12/23 17:48:31] <Tuf8> best practices is one of the toughest things ive found with puppet so far
[2009/12/23 17:48:36] @ Quit: pheezy: "Leaving..."
[2009/12/23 17:49:06] <Tuf8> Volcane: do those file args get processed in any particular order?
[2009/12/23 17:49:13] <Volcane> Tuf8: i ramble on my blog about this stuff here http://www.devco.net/archives/tag/puppet
[2009/12/23 17:49:16] <Tuf8> ie: how much should I require thing
[2009/12/23 17:49:31] <Volcane> Tuf8: some stuff automagically require, but it cant harm to add lots
[2009/12/23 17:50:00] <Volcane> Tuf8: and it also helps to make lots of classes, cos you can do file{"/etc/named.conf": require => Class["named::installed"] }
[2009/12/23 17:50:28] <Volcane> Tuf8: and the file will only get done once *everything* in the named::install class is succesfully completed, again saves on typing and makes it easier to refactor
[2009/12/23 17:50:50] <Volcane> cos u can just add to the named::install class more resources and everything else magically gets them required
[2009/12/23 17:50:51] @ Quit: lero: Read error: 60 (Operation timed out)
[2009/12/23 17:50:55] <Tuf8> in that example of the file entries, could I override owner for example in the file section?
[2009/12/23 17:50:59] <Volcane> yes
[2009/12/23 17:51:06] <Tuf8> it looks like youre setting some defaults there
[2009/12/23 17:51:06] <Volcane> the File{....} thing sets a default
[2009/12/23 17:51:09] <Tuf8> ahhh awesomeness
[2009/12/23 17:51:27] <Volcane> Tuf8: http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#resource-defaults
[2009/12/23 17:51:50] <Tuf8> also good advice on the classes there too...I saw that in some examples but wasnt getting it
[2009/12/23 17:52:21] <Volcane> Tuf8: u can also notify => Class["foo"] and evertyhing in that class will get notifies, say you had exec and services in there, everything would get a notify
[2009/12/23 17:53:00] @ Quit: notbrien:
[2009/12/23 17:53:19] <Tuf8> I need to read up on notify I dunno what it is
[2009/12/23 17:53:47] <Volcane> service{"named": ensure => running} file{"/etc/nmed.conf": notify => Service["named"]}
[2009/12/23 17:53:57] <Volcane> if named.conf change - say a new one gets coied out from the master
[2009/12/23 17:54:02] <Volcane> then the service gets restarted
[2009/12/23 17:56:10] <Tuf8> let me ask, you use semicolons on the end of those statements..ive only seen commas used up to this point
[2009/12/23 17:56:14] <Tuf8> are they interchangable?
[2009/12/23 17:56:32] <Volcane> ; at the end if you want to do multiple ones like that in a single file { .... }
[2009/12/23 17:56:33] <Tuf8> http://pastie.org/755111
[2009/12/23 17:56:43] <Tuf8> so the last entry there
[2009/12/23 17:57:02] <Volcane> ah, well sptted
[2009/12/23 17:57:07] <Volcane> the last one should be a ;
[2009/12/23 17:57:11] <Volcane> line 20
[2009/12/23 17:57:25] <Tuf8> ok so its like a sql table creation syntax
[2009/12/23 17:57:31] <Tuf8> all commas until the end
[2009/12/23 17:57:39] <Volcane> erm yeah i guess :)
[2009/12/23 18:02:55] <explody> does it make anyone else insane when debian puts version stamps in the *name* of a package
[2009/12/23 18:03:10] <Volcane> yes
[2009/12/23 18:03:19] @ Quit: future-dead:
[2009/12/23 18:03:19] <Volcane> i can never tell what a package name is looking at deb files heh
[2009/12/23 18:03:37] <Volcane> their ruby stuff is so crap
[2009/12/23 18:03:45] <Volcane> today i installed a package
[2009/12/23 18:03:52] <Volcane> some ruby code
[2009/12/23 18:04:02] <Volcane> on half the machines it thought for some f'n reason it clashed with puppet
[2009/12/23 18:04:09] <Volcane> so when puppet installed my new code, it uninstalled itself
[2009/12/23 18:04:12] <Volcane> awesome
[2009/12/23 18:06:45] @ Quit: justinfreeman: Connection timed out
[2009/12/23 18:11:15] @ Quit: bevans5446:
[2009/12/23 18:12:20] @ Quit: Tuf8:
[2009/12/23 18:19:07] <explody> eh, wat? err: State got corrupted
[2009/12/23 18:20:02] <explody> start -> err -> auto restart -> err -> auto restart -> err. manual stop, manual start -> runs fine
[2009/12/23 18:30:25] @ m3t3or joined channel #puppet
[2009/12/23 18:31:03] <m3t3or> hello
[2009/12/23 18:33:30] <m3t3or> what is the filebucket for?
[2009/12/23 18:34:01] @ Quit: lak:
[2009/12/23 18:35:08] @ Quit: poison: Remote closed the connection
[2009/12/23 18:36:32] @ Quit: LapTop006: Read error: 60 (Operation timed out)
[2009/12/23 18:41:32] <BarnacleBob> m3t3or, for saving your ass when you screw up
[2009/12/23 18:41:41] <BarnacleBob> at least thats what its done for me
[2009/12/23 18:45:33] @ justinfreeman joined channel #puppet
[2009/12/23 18:45:47] @ mfoster left channel #puppet ()
[2009/12/23 18:45:56] <lilmatt> If I have a class foo_bar::baz with a file { "filename.txt": inside it, how do I reference that from elsewhere? Foo_bar::Baz::File["filename.txt"] doesn't seem to work
[2009/12/23 18:46:37] <BarnacleBob> just File["filename.txt"]
[2009/12/23 18:46:51] <lilmatt> from another class entirely?
[2009/12/23 18:47:33] <whack> yep
[2009/12/23 18:47:50] @ m3t3or left channel #puppet ()
[2009/12/23 18:48:51] <lilmatt> thanks
[2009/12/23 18:50:18] @ Quit: justinfreeman: Read error: 60 (Operation timed out)
[2009/12/23 18:53:04] <tokyojoe> Tuf8: did you find what the problem was ?
[2009/12/23 19:01:03] @ tokyojoe left channel #puppet ()
[2009/12/23 19:02:44] @ Quit: jaredrhine: Read error: 110 (Connection timed out)
[2009/12/23 19:03:47] @ mutage1 left channel #puppet ()
[2009/12/23 19:05:24] @ Quit: littleidea:
[2009/12/23 19:05:41] @ Quit: brothers:
[2009/12/23 19:05:55] @ Cyis joined channel #puppet
[2009/12/23 19:08:09] @ ChrisR2d2 joined channel #puppet
[2009/12/23 19:08:11] @ friendly12345 joined channel #puppet
[2009/12/23 19:08:20] <ChrisR2d2> How are chef and puppet different?
[2009/12/23 19:08:34] <danielbln> well, there's the name
[2009/12/23 19:08:44] <Cyis> then the langauge
[2009/12/23 19:08:51] <Cyis> the syntax and structure
[2009/12/23 19:09:01] <Cyis> really kinda like apples and oranges
[2009/12/23 19:09:02] <danielbln> also, paradigm
[2009/12/23 19:09:19] <whack> funny, I kind of seem them the same :(
[2009/12/23 19:09:45] <danielbln> how do you manage puppet upgrade btw.?
[2009/12/23 19:09:47] <whack> chef v puppet, facter v ohai, etc.
[2009/12/23 19:09:58] <ChrisR2d2> Chef has 1/10th the code size of puppet
[2009/12/23 19:10:01] <danielbln> test infrastructure and then loop to get all the clients up2date?
[2009/12/23 19:10:16] @ tjoe joined channel #puppet
[2009/12/23 19:10:57] <danielbln> since 0.25.2 is getting ready, and I'm a little anxious on how to go about updating the framework files properly
[2009/12/23 19:11:09] <danielbln> especially pre-tests to verify that my manifests still work
[2009/12/23 19:13:00] * Cyis needs to get back to figuring out why his aptrepo provider isn't functioning properly...
[2009/12/23 19:13:41] <Cyis> think I may start fresh and take another look at it
[2009/12/23 19:24:19] @ Quit: Djelibeybi: "Leaving"
[2009/12/23 19:25:48] @ Quit: tjoe: "leaving"
[2009/12/23 19:27:45] @ Quit: mattdelves: "User pushed the X - because it's Xtra, baby"
[2009/12/23 19:29:40] @ jbu joined channel #puppet
[2009/12/23 19:30:08] @ jbu left channel #puppet ()
[2009/12/23 19:31:12] @ tjoe joined channel #puppet
[2009/12/23 19:33:16] @ Quit: jab_doa: "Verlassend"
[2009/12/23 19:40:21] @ jaredrhine joined channel #puppet
[2009/12/23 19:44:52] @ nentis joined channel #puppet
[2009/12/23 19:45:45] <nentis> say I have $myfile = [ "file1", "file2" ], how can I iterate over this list with a file type in a definition?
[2009/12/23 19:46:07] <nentis> I want to send the definition a list of files I want present.
[2009/12/23 19:48:01] @ Quit: danielbln: "Leaving."
[2009/12/23 19:48:46] @ jbu joined channel #puppet
[2009/12/23 19:48:49] @ Quit: jbu: Client Quit
[2009/12/23 19:49:29] <monachus> @nentis - i'm not sure if you can iterate over them in a definition
[2009/12/23 19:49:31] @ Quit: tjoe: "leaving"
[2009/12/23 19:49:37] @ jbu joined channel #puppet
[2009/12/23 19:49:46] <monachus> but you can use the array as the namevar for file
[2009/12/23 19:50:16] <monachus> well...i read your ? differently
[2009/12/23 19:50:19] @ jbu is now known as tjoe
[2009/12/23 19:50:28] <monachus> if you have a var $myfile like you say, and you pass that to a definition
[2009/12/23 19:50:46] <monachus> then just saying file { $myfile: ensure => present } should work
[2009/12/23 19:50:58] <monachus> because that works anyway
[2009/12/23 19:51:09] <nentis> It's concatenating them.
[2009/12/23 19:51:19] <nentis> the actual use is dnscache.
[2009/12/23 19:51:30] <nentis> I'm trying to pass a list of files to create under /etc/dnscache/root/ip
[2009/12/23 19:51:34] <monachus> ah, then it's because arrays are simple objects that don't survive the pass to the definition
[2009/12/23 19:51:47] <monachus> you can get all fancy and pass them with a custom separator and then break them up into an array in the define again
[2009/12/23 19:51:55] <nentis> dnscache { dnscache: rootip => [ "192.168", "10" ], }
[2009/12/23 19:51:58] <nentis> is in my node manifest
[2009/12/23 19:52:28] <monachus> try
[2009/12/23 19:52:44] <whack> yeah, a custom define may be best, there.
[2009/12/23 19:53:16] <whack> though I only have like 5 or 6 files under IP/ for dnscache, so I specified them all manually
[2009/12/23 19:53:31] <monachus> rootip = "192.168!!10" and then in your dnscache define breaking it up with split into an array inside the define
[2009/12/23 19:53:36] <monachus> if you have to have them in an array
[2009/12/23 19:54:32] <monachus> though i still think it's an array inside the define the way you have it.
[2009/12/23 19:54:36] <monachus> what do you do with rootip?
[2009/12/23 19:54:52] <monachus> ah - you touch files. got it.
[2009/12/23 19:55:05] <monachus> so inside the define, when you call file { $rootip: } it concats.
[2009/12/23 19:55:28] <monachus> try the split
[2009/12/23 19:55:39] <monachus> $ipfiles = split($rootip, '!!')
[2009/12/23 19:56:42] <BarnacleBob> yeah i do that. its kinda a hack but works fine
[2009/12/23 19:58:03] <nentis> hm. ok, I'll try.
[2009/12/23 19:58:17] <nentis> whack, I would manually, but I'm deploying this over multiple remote sites. Would like to automate. :)
[2009/12/23 19:58:38] <whack> nentis: right, I meant I put them all in my puppet manifest manually
[2009/12/23 19:58:41] <whack> no magic defines
[2009/12/23 19:58:46] <whack> since they're unlikely to ever change for me
[2009/12/23 19:59:43] @ hornet136 joined channel #puppet
[2009/12/23 20:00:34] <hornet136> does anyone know of a site that has a "demo" version of puppet dashboard up? I'm too lazy to install it
[2009/12/23 20:02:23] <nentis> less flexible, but my remote sites are always going to use 192.168.x.x or 10.x.x.x addressing. I might just statically touch "192.168" and "10".
[2009/12/23 20:04:24] <nentis> is ${var} the preferred way to define variables, vs. $var?
[2009/12/23 20:04:27] @ pting joined channel #puppet
[2009/12/23 20:04:48] <nentis> suppose learning ruby would help with a lot of these syntax issues. :)
[2009/12/23 20:10:24] <whack> $var vs ${var} is a puppet thing
[2009/12/23 20:10:25] <whack> not ruby
[2009/12/23 20:10:45] <lancepants> quick one regarding hasstatus, i've noticed if i set hasstatus => false but have ensure => running, the process is still detected as running and is started if necessary. This is even if I don't have a status => "detection command" defined
[2009/12/23 20:11:09] <lancepants> i'm curious as to what method puppet uses to detect if something is running without running a 'status' against its init script
[2009/12/23 20:11:37] <whack> lancepants: may depend on the platform, but I'd have to check the code to tell you :(
[2009/12/23 20:11:55] <lancepants> thats somewhat what i expected :) no probs im not THAT interested
[2009/12/23 20:15:35] @ shadoi joined channel #puppet
[2009/12/23 20:19:16] @ Quit: bug:
[2009/12/23 20:20:03] @ pting_ joined channel #puppet
[2009/12/23 20:21:38] @ Quit: felipe`: Client Quit
[2009/12/23 20:22:53] @ Quit: jaredrhine: Read error: 110 (Connection timed out)
[2009/12/23 20:23:17] @ bobbyz joined channel #puppet
[2009/12/23 20:23:19] @ Djelibeybi joined channel #puppet
[2009/12/23 20:24:20] @ Quit: mboyd: "Read error: 131 (Connection reset by beer)"
[2009/12/23 20:30:22] <tjoe> I want to assign a variable the output of a command at the start of a class manifest, such as $running_kernel = grubby --default-kernel
[2009/12/23 20:30:34] <tjoe> what is the best way to do that, you need to be root to run grubby
[2009/12/23 20:30:54] <tjoe> I tried with generate but it tries to run the command as the puppet user I think
[2009/12/23 20:31:10] <nentis> are you trying to find what the running kernel version is?
[2009/12/23 20:31:49] <nentis> tjoe, --^
[2009/12/23 20:35:19] @ littleidea joined channel #puppet
[2009/12/23 20:36:07] @ Quit: pting: Connection timed out
[2009/12/23 20:38:13] @ bug joined channel #puppet
[2009/12/23 20:41:53] @ barn_ joined channel #puppet
[2009/12/23 20:41:54] @ Quit: barn: Read error: 104 (Connection reset by peer)
[2009/12/23 20:42:35] <tjoe> nentis: yes
[2009/12/23 20:43:00] <nentis> AFAIK, you get all the facter variables available to you, which includes the running kernel
[2009/12/23 20:43:08] <nentis> manually run `facter |grep kernel`
[2009/12/23 20:43:24] <nentis> $kernelrelease for example
[2009/12/23 20:44:30] @ Quit: pting_: "Ex-Chat"
[2009/12/23 20:44:55] <tjoe> nentis: great, thanks
[2009/12/23 20:45:23] <nentis> run facter without the grep to see all the other var's you can use.
[2009/12/23 20:48:00] @ Quit: bug:
[2009/12/23 20:48:08] @ Quit: kennobak1: Remote closed the connection
[2009/12/23 20:48:11] @ kennobaka joined channel #puppet
[2009/12/23 20:48:18] @ Quit: phellarv_: Remote closed the connection
[2009/12/23 20:48:29] @ phellarv joined channel #puppet
[2009/12/23 20:56:35] @ Quit: littleidea:
[2009/12/23 21:05:55] @ Quit: ambroff: Read error: 110 (Connection timed out)
[2009/12/23 21:12:06] @ Quit: vinci: Read error: 110 (Connection timed out)
[2009/12/23 21:18:53] @ scylla joined channel #puppet
[2009/12/23 21:23:35] @ joe-mac1 joined channel #puppet
[2009/12/23 21:31:56] @ jfreeman joined channel #puppet
[2009/12/23 21:37:18] @ rickbradley|away is now known as rickbradley
[2009/12/23 21:37:58] @ Quit: BarnacleBob: "This computer has gone to sleep"
[2009/12/23 21:38:00] @ lero joined channel #puppet
[2009/12/23 21:38:39] @ felipe` joined channel #puppet
[2009/12/23 21:39:13] <hornet136> Anyone interested in an external node script for http://opennetadmin.com
[2009/12/23 21:39:28] <hornet136> ... I intend to write one...
[2009/12/23 21:39:52] @ whaley joined channel #puppet
[2009/12/23 21:40:17] @ happymcplaksin joined channel #puppet
[2009/12/23 21:40:58] @ johnf joined channel #puppet
[2009/12/23 21:44:29] @ Quit: lilmatt: Client Quit
[2009/12/23 21:46:52] @ johnf left channel #puppet ("Leaving.")
[2009/12/23 21:48:23] @ littleidea joined channel #puppet
[2009/12/23 21:56:23] @ Quit: Djelibeybi: "Leaving"
[2009/12/23 21:59:34] @ Quit: tjoe: "leaving"
[2009/12/23 22:02:30] @ jbu joined channel #puppet
[2009/12/23 22:05:04] @ Quit: _3rdman:
[2009/12/23 22:16:45] @ alexine_dsouza joined channel #puppet
[2009/12/23 22:19:12] @ Quit: alexine_dsouza: Read error: 54 (Connection reset by peer)
[2009/12/23 22:22:30] @ Quit: jfreeman: Read error: 60 (Operation timed out)
[2009/12/23 22:24:00] @ rickbradley is now known as rickbradley|away
[2009/12/23 22:25:10] @ Quit: littleidea:
[2009/12/23 22:34:55] @ littleidea joined channel #puppet
[2009/12/23 22:36:33] @ Quit: nentis: "... packet dropped."
[2009/12/23 22:39:04] @ Quit: littleidea: Client Quit
[2009/12/23 22:53:49] @ littleidea joined channel #puppet
[2009/12/23 23:00:00] @ rickbradley|away is now known as rickbradley
[2009/12/23 23:03:31] @ Quit: bobbyz: Remote closed the connection
[2009/12/23 23:08:15] @ Quit: JM: Read error: 60 (Operation timed out)
[2009/12/23 23:28:39] @ jayvee joined channel #puppet
[2009/12/23 23:30:29] <jayvee> The documentation is horribly vague on this subject, so I'll ask it bluntly here.
[2009/12/23 23:30:29] <jayvee> Does file { "/root/.ssh/authorized_keys": recurse => true, } behave like `mkdir -p`? It's stuffing up because the .ssh directory is not present, but it is ignoring the recurse command.
[2009/12/23 23:44:25] @ Quit: whaley: Remote closed the connection
[2009/12/23 23:52:06] @ Quit: Disconnect: No route to host
[2009/12/23 23:52:36] @ Quit: ChrisR2d2: Read error: 113 (No route to host)

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