Wednesday, 2010-02-24

[2010/02/24 00:00:07] @ Log started by gepetto
[2010/02/24 00:00:07] @ jes5 joined channel #puppet
[2010/02/24 00:00:14] @ Quit: jes5: Client Quit
[2010/02/24 00:01:37] @ qwebirc45254 joined channel #puppet
[2010/02/24 00:01:52] <qwebirc45254> puts "hello"
[2010/02/24 00:07:34] <qwebirc45254> --help
[2010/02/24 00:07:38] <qwebirc45254> help
[2010/02/24 00:07:49] <qwebirc45254> hellp
[2010/02/24 00:07:50] <qwebirc45254> hello
[2010/02/24 00:07:56] <qwebirc45254> ls -l
[2010/02/24 00:08:53] @ Quit: qwebirc45254: Quit: Page closed
[2010/02/24 00:12:53] @ lak joined channel #puppet
[2010/02/24 00:13:17] @ Quit: WALoeIII: Quit: Bai.
[2010/02/24 00:19:02] <nigelk> That was ... interesting.
[2010/02/24 00:19:44] @ bodepd joined channel #puppet
[2010/02/24 00:20:02] <rodjek> indeed
[2010/02/24 00:21:03] @ Quit: OpenMedia: Quit: Leaving.
[2010/02/24 00:21:32] @ Quit: Bass10: Ping timeout: 256 seconds
[2010/02/24 00:24:07] @ plathrop is now known as plathrop-away
[2010/02/24 00:27:27] @ Quit: RageLink: Quit: up up and away
[2010/02/24 00:27:27] @ Quit: bug: Quit: bug
[2010/02/24 00:29:00] @ Quit: rcrowley: Quit: rcrowley
[2010/02/24 00:36:02] @ Quit: pheezy: Remote host closed the connection
[2010/02/24 00:45:19] @ mayday_jay joined channel #puppet
[2010/02/24 00:49:06] <zahna> do backticks not work in an Exec[]?
[2010/02/24 00:49:29] @ tonyskapunk joined channel #puppet
[2010/02/24 00:49:37] <zahna> i'm trying to run Exec[gem sources -r `gem sources | grep http://gems.rubyforge.org`]
[2010/02/24 00:55:56] @ QtPlatypus joined channel #puppet
[2010/02/24 00:57:09] @ mqr joined channel #puppet
[2010/02/24 01:02:31] @ Quit: tonyskapunk: Quit: Leaving
[2010/02/24 01:04:13] @ gwar9999 joined channel #puppet
[2010/02/24 01:04:18] @ Quit: gwar99991: Ping timeout: 248 seconds
[2010/02/24 01:08:21] @ suchu joined channel #puppet
[2010/02/24 01:08:50] <Djelibeybi> zahna: is gem in your path for an exec?
[2010/02/24 01:08:52] @ gwar99991 joined channel #puppet
[2010/02/24 01:09:21] @ Quit: gwar9999: Ping timeout: 245 seconds
[2010/02/24 01:10:08] @ artista_frustrad joined channel #puppet
[2010/02/24 01:10:23] @ Quit: erm: Ping timeout: 265 seconds
[2010/02/24 01:15:29] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/02/24 01:20:05] @ m1nish joined channel #puppet
[2010/02/24 01:20:06] @ Quit: pugnacity: Read error: Connection reset by peer
[2010/02/24 01:24:39] @ tjoe joined channel #puppet
[2010/02/24 01:26:05] <tjoe> hi, I have a few questions about the reports in puppet
[2010/02/24 01:26:57] <tjoe> I don't really how it works, but in our setup we have ruby scripts in /usr/lib/ruby/site_ruby/1.8/puppet/reports/ and puppet is supposet to use them
[2010/02/24 01:27:03] <tjoe> I would like to know how
[2010/02/24 01:27:07] <tjoe> it works
[2010/02/24 01:27:45] @ artista_frustrad joined channel #puppet
[2010/02/24 01:28:24] @ rcrowley joined channel #puppet
[2010/02/24 01:32:09] @ Quit: artista_frustrad: Ping timeout: 245 seconds
[2010/02/24 01:39:18] @ pugnacity joined channel #puppet
[2010/02/24 01:39:50] @ Quit: blahdeblah: Quit: Leaving.
[2010/02/24 01:42:29] @ Quit: cwebber: Quit: cwebber
[2010/02/24 01:43:06] @ blahdeblah joined channel #puppet
[2010/02/24 01:46:38] @ Quit: Spads: Read error: Operation timed out
[2010/02/24 01:50:51] @ rasputnik joined channel #puppet
[2010/02/24 01:52:40] <rasputnik> If I needed to lookup an IP dynamically, I'd need to write my own function, right?
[2010/02/24 02:00:45] @ Quit: lak: Quit: lak
[2010/02/24 02:07:37] @ lucky__ joined channel #puppet
[2010/02/24 02:09:25] @ Quit: swygue: Ping timeout: 264 seconds
[2010/02/24 02:10:11] @ Quit: rasputnik: Quit: Leaving
[2010/02/24 02:20:37] @ Quit: rcrowley: Quit: rcrowley
[2010/02/24 02:21:09] @ Quit: Djelibeybi: Quit: Leaving
[2010/02/24 02:30:38] @ TREllis joined channel #puppet
[2010/02/24 02:33:50] @ Quit: scavara: Quit: Leaving
[2010/02/24 02:34:22] @ scavara joined channel #puppet
[2010/02/24 02:41:03] <nigelk> tjoe: that's a pretty vague question... what do you want to know?
[2010/02/24 02:44:36] @ giskard joined channel #puppet
[2010/02/24 02:47:34] @ alban2 joined channel #puppet
[2010/02/24 02:51:07] @ PsychoSid joined channel #puppet
[2010/02/24 02:59:59] @ Quit: tjoe: Quit: leaving
[2010/02/24 03:01:17] @ Spads joined channel #puppet
[2010/02/24 03:04:47] @ Quit: brothers: Quit: brothers
[2010/02/24 03:05:00] @ Quit: bodepd: Quit: bodepd
[2010/02/24 03:06:21] @ Ramonster joined channel #puppet
[2010/02/24 03:06:24] @ bug joined channel #puppet
[2010/02/24 03:08:43] @ Quit: giskard: Remote host closed the connection
[2010/02/24 03:21:00] @ Quit: murkk: Quit: murkk
[2010/02/24 03:31:17] <nico> anyone having some provider development skills around ?
[2010/02/24 03:31:20] <nico> jamesturnbull: ?
[2010/02/24 03:34:34] @ giskard joined channel #puppet
[2010/02/24 03:34:41] <masterzen> nico: I might be able to help, although I didn't wrote a provider since the daemontools stuff 2 years ago...
[2010/02/24 03:34:50] @ francois joined channel #puppet
[2010/02/24 03:35:07] <nico> masterzen: cool
[2010/02/24 03:35:21] <nico> masterzen: I'm trying to write a provider for pkgin
[2010/02/24 03:35:30] <nico> (the pkgsrc binary handler)
[2010/02/24 03:35:42] <masterzen> nico: ok
[2010/02/24 03:35:44] <nico> I based it on openbsd.rn
[2010/02/24 03:35:46] <nico> .rb
[2010/02/24 03:35:46] @ mattwynne joined channel #puppet
[2010/02/24 03:36:07] <masterzen> nico: brb, coffee time here
[2010/02/24 03:36:15] <nico> masterzen: http://pastie.org/840179
[2010/02/24 03:36:18] <nico> masterzen: ok
[2010/02/24 03:36:20] <asenchi> nico: jamesturnbull tweeted this earlier http://github.com/reductivelabs/puppet-lvm
[2010/02/24 03:36:24] <asenchi> might be helpful
[2010/02/24 03:36:38] <asenchi> unrelated part of the system, but may provide a good example
[2010/02/24 03:37:40] <nico> asenchi: http://www.kartar.net/2010/02/puppet-types-and-providers-are-easy/ <= this is my reference
[2010/02/24 03:38:14] <asenchi> yep, that would work also. figured i'd link some more examples :)
[2010/02/24 03:39:40] @ mfournier joined channel #puppet
[2010/02/24 03:40:58] @ Quit: PsychoSid: Ping timeout: 265 seconds
[2010/02/24 03:42:32] @ Quit: blahdeblah: Quit: Leaving.
[2010/02/24 03:45:39] @ geekatcmu left channel #puppet ()
[2010/02/24 03:47:52] @ Quit: nakano: Quit: Coyote finally caught me
[2010/02/24 03:48:01] @ bodepd joined channel #puppet
[2010/02/24 03:48:23] @ Quit: bug: Quit: bug
[2010/02/24 03:53:24] @ Robbie_ joined channel #puppet
[2010/02/24 04:02:35] <masterzen> nico: I'm back. What's the issue?
[2010/02/24 04:02:53] <nico> masterzen: making a pastie
[2010/02/24 04:03:00] @ Quit: tim|imac: Quit: tim|imac
[2010/02/24 04:03:21] @ Quit: bodepd: Quit: bodepd
[2010/02/24 04:04:22] @ majeru joined channel #puppet
[2010/02/24 04:04:49] <majeru> hello, how can I call a facter method from an .erb template?
[2010/02/24 04:04:57] <nico> masterzen: http://pastie.org/840205
[2010/02/24 04:05:05] <nico> majeru: a facter method ?
[2010/02/24 04:06:00] <majeru> nico: for example Facter::Util::IP.get_interface_value(name, "netmask")
[2010/02/24 04:06:02] <masterzen> nico: your provider is not known.
[2010/02/24 04:06:07] <masterzen> nico: where did you put it?
[2010/02/24 04:06:20] @ tim|imac joined channel #puppet
[2010/02/24 04:06:37] <nico> modules/custom/plugins/puppet/provider/pkgin.rb
[2010/02/24 04:06:39] <masterzen> majeru: you might need a: require 'facter/util/ip' maybe?
[2010/02/24 04:06:46] <majeru> thanks
[2010/02/24 04:07:02] <masterzen> nico: has the plugin been transfered to your client?
[2010/02/24 04:07:10] <nico> masterzen: yes
[2010/02/24 04:07:26] <nico> checking twice
[2010/02/24 04:07:36] <nico> notice: /File[/var/puppet/lib/puppet/provider/pkgin.rb]/source: replacing from source puppet://puppet.qualigaz-int/plugins/puppet/provider/pkgin.rb with contents {md5}de5317622d437c085cab696961e39027
[2010/02/24 04:07:40] <nico> oops
[2010/02/24 04:07:46] <nico> sorry
[2010/02/24 04:07:51] <SyTonnerre> nico, a pkgin provider?
[2010/02/24 04:07:56] <SyTonnerre> nico, where where where?
[2010/02/24 04:08:01] <nico> SyTonnerre: yes
[2010/02/24 04:08:16] <nico> SyTonnerre: trying to make it work ATM :D
[2010/02/24 04:08:28] <SyTonnerre> nico, the neatism! I was going to do that as well
[2010/02/24 04:08:37] <masterzen> nico: hmm, do you have other plugins at the same place that are working?
[2010/02/24 04:08:42] <masterzen> nico: is it 0.25?
[2010/02/24 04:08:57] <nico> server is 0.25 but client is 0.24.7 /
[2010/02/24 04:09:36] <masterzen> nico: could it be possible that you have a syntax error in the pkgin.rb file?
[2010/02/24 04:10:33] <masterzen> nico: can you: RUBYLIB=/path/to/plugins:/path/to/rubylib irb
[2010/02/24 04:10:40] <masterzen> nico: then; require 'puppet'
[2010/02/24 04:10:57] <masterzen> then require 'puppet/provider/pkgin' and see if it spits out an error?
[2010/02/24 04:11:18] <nico> masterzen: yup, on phone brb
[2010/02/24 04:11:24] <masterzen> nico: ok
[2010/02/24 04:13:44] @ Quit: kolla: Ping timeout: 268 seconds
[2010/02/24 04:14:42] <Spads> I'm trying to use puppet to configure a service on a few basic classes of machine, with a fairly simple inheritance structure (in my head anyway) but I'm running into some of the scoping and permanent-binding properties of variables in my modules. Is there a Right Way to do this? It seems like most signs point toward using defines instead of $variables in some way, but I'm wondering which is best.
[2010/02/24 04:16:01] @ Quit: jbooth_: Ping timeout: 264 seconds
[2010/02/24 04:17:39] @ gebi joined channel #puppet
[2010/02/24 04:18:09] @ agy joined channel #puppet
[2010/02/24 04:18:27] <Spads> I found http://www.devco.net/archives/2010/02/19/building_files_from_fragments_with_puppet.php which seems relevant, but I'm wondering if that's a good approach (leaving aside the shell script bit, which I'm not interested in)
[2010/02/24 04:19:55] <nico> raaaaah
[2010/02/24 04:19:57] <masterzen> Spads: more and more people are using Volcane's extlookup
[2010/02/24 04:20:07] <masterzen> nico: lovely?
[2010/02/24 04:20:12] <nico> no irb on this "#@#@#! solaris
[2010/02/24 04:20:27] <nico> it *really* lacks some things
[2010/02/24 04:20:32] <masterzen> try it on your dev computer
[2010/02/24 04:23:24] <Spads> masterzen: Ah that looks useful, actually. Thanks!
[2010/02/24 04:23:56] <masterzen> Spads: it is, I think you'll find some samples on Volcane's blog.
[2010/02/24 04:27:11] @ Welsh_Dwarf joined channel #puppet
[2010/02/24 04:27:26] @ Quit: mattwynne: Quit: Leaving...
[2010/02/24 04:28:26] @ jbooth_ joined channel #puppet
[2010/02/24 04:28:39] @ pacalm joined channel #puppet
[2010/02/24 04:29:05] <nico> masterzen: kaboom ! http://pastie.org/840221
[2010/02/24 04:29:31] <abien> Lets say i changed the hostname of a puppet client -- and id like to start from scratch with it. Whats a good way to reset all the SSL stuff to zero?
[2010/02/24 04:30:00] <JD_> abien: reinstall
[2010/02/24 04:30:26] <masterzen> nico: @resource is nil
[2010/02/24 04:30:46] <masterzen> nico: you can't suppose there is always a bound resource (especially when loading the class).
[2010/02/24 04:31:17] <nico> I don't understand :D at least @resource[:name] should be set non ?
[2010/02/24 04:33:07] <masterzen> no, not when it loads the provider class
[2010/02/24 04:33:24] @ MattyM joined channel #puppet
[2010/02/24 04:33:41] <masterzen> nico: the first thing it has to do before using the provider is to load the class (ie the code). There is no resource yet.
[2010/02/24 04:33:48] <nico> okay
[2010/02/24 04:34:00] <masterzen> because it needs for instance to check suitability or stuff like that
[2010/02/24 04:34:19] <masterzen> comment the if, then see how it goes
[2010/02/24 04:34:27] <nico> done that, works
[2010/02/24 04:35:54] <nico> now, make it work in a class
[2010/02/24 04:35:59] <nico> thanks !
[2010/02/24 04:37:47] @ rasputnik joined channel #puppet
[2010/02/24 04:42:21] @ lanky joined channel #puppet
[2010/02/24 04:43:03] <rasputnik> has anyone got a link to the 'writing your own functons' page on the reductive labs wiki?
[2010/02/24 04:44:33] <rasputnik> ah, found it. sorry.
[2010/02/24 04:44:51] <gebi> rasputnik: http://www.google.com/search?q=puppet+reductivelabs+writing+your+own+function ;)
[2010/02/24 04:44:59] <gebi> just a braindump away
[2010/02/24 04:48:42] @ Quit: Pirate_Hunter: Quit: Oh nO! wHo pUlleD ThE pLUg?
[2010/02/24 04:50:12] @ kolla joined channel #puppet
[2010/02/24 04:52:11] @ benlovell joined channel #puppet
[2010/02/24 04:55:36] @ PsychoSid joined channel #puppet
[2010/02/24 04:59:32] @ Quit: mfournier: Ping timeout: 246 seconds
[2010/02/24 05:02:07] @ ckauhaus joined channel #puppet
[2010/02/24 05:03:12] @ erm joined channel #puppet
[2010/02/24 05:03:52] @ idimmu joined channel #puppet
[2010/02/24 05:04:27] <idimmu> hi, is there a webbased gui that can be used to maintain the contents of a database used for stored configuration?
[2010/02/24 05:14:17] <idimmu> or any command line tools i can use?!
[2010/02/24 05:14:19] <idimmu> le sigh
[2010/02/24 05:16:03] @ manish__ joined channel #puppet
[2010/02/24 05:16:36] <lanky> idimmu: which database?
[2010/02/24 05:16:56] @ mattwynne joined channel #puppet
[2010/02/24 05:17:09] <lanky> I'm fairly sure there's nothing puppet-specific, but there should be web frontends for many of the major DBs
[2010/02/24 05:17:18] <lanky> i.e MySQL -> phpmyadmin etc
[2010/02/24 05:17:30] @ Quit: m1nish: Ping timeout: 240 seconds
[2010/02/24 05:17:53] <idimmu> well its mysql
[2010/02/24 05:18:00] <idimmu> but the tables are so relational
[2010/02/24 05:18:25] <idimmu> deleting one resource means deleting about 20 rows across 3 different tables
[2010/02/24 05:19:35] <idimmu> so a representational tool is really what's needed, rather than a phpmyadmin style generic db admin tool
[2010/02/24 05:19:46] <abien> Uuhhhh fedorapeople.org down :(
[2010/02/24 05:21:27] <f3ew> idimmu ON DELETE CASCADE
[2010/02/24 05:21:57] <nasrat> abien: try #fedora-admin
[2010/02/24 05:25:11] <masterzen> idimmu: if you need to just remove an host, then there's a script in ext/ which can do it for you.
[2010/02/24 05:25:24] <masterzen> f3ew: there are no foreign keys on the schema :-)
[2010/02/24 05:30:40] <nico> debugging puppet, first circle of hell
[2010/02/24 05:31:16] <f3ew> masterzen oops :)
[2010/02/24 05:32:15] <masterzen> nico: oh, then I'm at evil level 7 or sth :-)
[2010/02/24 05:32:26] <nico> :)
[2010/02/24 05:32:50] @ Quit: biertie: Ping timeout: 265 seconds
[2010/02/24 05:39:09] <nico> masterzen: providers are only 'evaluated' on client ?
[2010/02/24 05:39:25] <masterzen> nico: I think so.
[2010/02/24 05:40:24] <nico> damn :/
[2010/02/24 05:40:46] <nico> my require 'puppet/provider/pkgin' works on client but I still get an error
[2010/02/24 05:40:48] <nico> err: Could not create uno: Parameter provider failed: Invalid package provider 'pkgin'
[2010/02/24 05:41:18] <nico> the pluginsync works fine
[2010/02/24 05:41:59] <nico> looks like the client does not see it has a "custom" provider
[2010/02/24 05:44:58] @ Quit: manish__: Quit: Leaving
[2010/02/24 05:46:18] @ Quit: ckauhaus: Quit: Leaving.
[2010/02/24 05:57:10] @ Quit: jmeeuwen: Quit: Disconnecting from stoned server.
[2010/02/24 05:57:46] <JD_> idimmu: sucks to be you
[2010/02/24 06:00:05] @ Quit: xerxas: Quit: Leaving.
[2010/02/24 06:01:24] @ Quit: nigelk: Quit: nigelk
[2010/02/24 06:02:32] @ pierre` joined channel #puppet
[2010/02/24 06:02:36] <pierre`> hi
[2010/02/24 06:04:38] @ jab_doa joined channel #puppet
[2010/02/24 06:04:42] @ Quit: gebi: Ping timeout: 252 seconds
[2010/02/24 06:05:28] <idimmu> jd sure does :)
[2010/02/24 06:06:55] @ Quit: kolla: Remote host closed the connection
[2010/02/24 06:08:53] @ artista_frustrad joined channel #puppet
[2010/02/24 06:09:32] <tim|imac> hm... nagios_host can't set the name setting?
[2010/02/24 06:10:03] @ lucky__ left channel #puppet ("Leaving...")
[2010/02/24 06:13:42] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/02/24 06:15:17] @ Bryce_ left channel #puppet ()
[2010/02/24 06:21:38] @ xerxas joined channel #puppet
[2010/02/24 06:24:02] @ Quit: ssm: Ping timeout: 256 seconds
[2010/02/24 06:24:55] @ jmeeuwen joined channel #puppet
[2010/02/24 06:28:54] <SyTonnerre> Hi kanarip
[2010/02/24 06:29:16] * idimmu pokes jd
[2010/02/24 06:31:54] @ teyo joined channel #puppet
[2010/02/24 06:36:49] * JD_ strokes idimmu
[2010/02/24 06:44:10] @ Quit: mizzy: Quit: SIGTERM received; exit
[2010/02/24 06:44:55] @ mizzy joined channel #puppet
[2010/02/24 06:45:13] @ Quit: Spads: Ping timeout: 276 seconds
[2010/02/24 06:46:02] @ Quit: benlovell: Quit: benlovell
[2010/02/24 06:52:36] @ Quit: maxagaz: Quit: Ex-Chat
[2010/02/24 06:53:51] @ Quit: Welsh_Dwarf: Remote host closed the connection
[2010/02/24 06:57:40] @ elementai joined channel #puppet
[2010/02/24 07:04:37] @ bug joined channel #puppet
[2010/02/24 07:04:57] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/02/24 07:05:53] @ kolla joined channel #puppet
[2010/02/24 07:09:28] @ pacalm_ joined channel #puppet
[2010/02/24 07:09:28] @ Quit: pacalm: Read error: Connection reset by peer
[2010/02/24 07:09:29] @ pacalm_ is now known as pacalm
[2010/02/24 07:09:41] @ nigelk joined channel #puppet
[2010/02/24 07:12:57] @ pacalm_ joined channel #puppet
[2010/02/24 07:12:58] @ Quit: pacalm: Read error: Connection reset by peer
[2010/02/24 07:12:58] @ pacalm_ is now known as pacalm
[2010/02/24 07:14:10] @ ckauhaus joined channel #puppet
[2010/02/24 07:28:08] @ Quit: suchu: Ping timeout: 265 seconds
[2010/02/24 07:28:34] @ Spads joined channel #puppet
[2010/02/24 07:34:47] @ Quit: nigelk: Quit: nigelk
[2010/02/24 07:40:10] @ sparagos_away is now known as sparagos
[2010/02/24 07:40:37] @ Quit: ckauhaus: Quit: Leaving.
[2010/02/24 07:44:41] @ biertie joined channel #puppet
[2010/02/24 07:46:55] @ benlovell joined channel #puppet
[2010/02/24 07:48:20] @ Quit: p3rror: Read error: Operation timed out
[2010/02/24 07:49:47] @ happymcplaksin joined channel #puppet
[2010/02/24 07:50:29] @ happymcplaksin left channel #puppet ()
[2010/02/24 07:53:53] @ RSpacePope joined channel #puppet
[2010/02/24 07:55:13] <nico> wow wow wow
[2010/02/24 07:55:22] <nico> puppetmaster is killing my mysql
[2010/02/24 07:56:39] <nico> upgraded to 0.25.4 this morning. I think I saw someone reporting that puppet used many connections to the mysql server. Anyone having a ticket number ?
[2010/02/24 08:02:27] <TheAvatar> I use package { "package/lenny-backports": ensure => installed } to get a package from backports. Installing works, but puppet fails to see that it is there (as it should check for 'package', not 'package/distrib'. Any ideas of how I can get to manage a backports package through puppet?
[2010/02/24 08:04:09] <tim|imac> TheAvatar: we use pinning in /etc/apt/preferences
[2010/02/24 08:04:34] <tim|imac> nico: no ticket numer as far as i know, i reported it and nigel promised me to investigate... haven't chased him about it yet
[2010/02/24 08:04:37] @ p3rror joined channel #puppet
[2010/02/24 08:04:39] <tim|imac> or rather, i have, but not recently
[2010/02/24 08:04:56] <nico> tim|imac: I'm opening a ticket then
[2010/02/24 08:05:02] @ ckauhaus joined channel #puppet
[2010/02/24 08:05:22] <tim|imac> let me know the number and I'll chime in
[2010/02/24 08:05:37] <tim|imac> nico: are you on lenny too?
[2010/02/24 08:05:38] <TheAvatar> F~tim|imac, okay, thought so - that other way was just so much easier
[2010/02/24 08:05:47] <nico> tim|imac: yup, with squeeze packages
[2010/02/24 08:05:55] <TheAvatar> except, can I use pinning, so it also just accepts the dependencies I need
[2010/02/24 08:06:07] <TheAvatar> without I have to "pin" all packages, dependencies or not
[2010/02/24 08:06:21] <tim|imac> TheAvatar: yeah, you can pin on a per package basis
[2010/02/24 08:06:46] <tim|imac> TheAvatar: Package: package\nPin: release a=lenny-backports\nPin-Priority: 999
[2010/02/24 08:06:46] <TheAvatar> so, if I pin e.g. openvas-server, it will install the required dependencies, without having those present in the preferences file as well?
[2010/02/24 08:07:20] <TheAvatar> I'll try give that a shot, thanks
[2010/02/24 08:07:46] @ Quit: Volcane: Ping timeout: 248 seconds
[2010/02/24 08:10:28] <nico> tim|imac: #3238 opened
[2010/02/24 08:10:28] <gepetto> nico: tim|imac: #3238 is http://projects.reductivelabs.com/issues/show/3238 "Puppet - Bug #3238: puppetmaster uses to many mysql connections - ReductiveLabs.com"
[2010/02/24 08:11:04] <tim|imac> nico: thx
[2010/02/24 08:11:52] <nico> you're welcome
[2010/02/24 08:14:42] @ Volcane joined channel #puppet
[2010/02/24 08:15:33] @ ahasenack joined channel #puppet
[2010/02/24 08:18:30] @ Quit: n0ts: Ping timeout: 256 seconds
[2010/02/24 08:20:28] @ madaemo joined channel #puppet
[2010/02/24 08:20:42] @ madaemo left channel #puppet ("Leaving...")
[2010/02/24 08:20:48] <nico> tim|imac: did you try to install rails from squeeze ?
[2010/02/24 08:21:46] <tim|imac> no
[2010/02/24 08:21:53] <tim|imac> did it solve the problem?
[2010/02/24 08:22:50] <tim|imac> i did install libmysql-ruby1.8, though, which didn't solve the problem
[2010/02/24 08:23:26] @ n0ts joined channel #puppet
[2010/02/24 08:26:05] @ Quit: teyo: Quit: teyo
[2010/02/24 08:26:30] @ Bass10 joined channel #puppet
[2010/02/24 08:26:50] <nico> testing ATM, but it does seems good
[2010/02/24 08:27:00] <nico> will know in ~15/20 minutes
[2010/02/24 08:28:51] <tim|imac> for me it opens a new connection for every puppet client connection, so you can speed things up by manually kicking puppetd on a machine a few times :)
[2010/02/24 08:29:02] @ Quit: PsychoSid: Ping timeout: 265 seconds
[2010/02/24 08:29:32] <nico> yup, that's what I added in the ticket. will make the overload
[2010/02/24 08:31:05] <nico> got a puppet running in while loop, the number of connections stays at 20
[2010/02/24 08:31:46] <tim|imac> you got 20 puppetmasterds running?
[2010/02/24 08:31:57] <nico> 4
[2010/02/24 08:32:14] <nico> 4 mongrels to be precise
[2010/02/24 08:32:17] <tim|imac> hm, i'd expect it to be 4 connections, then
[2010/02/24 08:32:24] <tim|imac> i might be wrong, though
[2010/02/24 08:32:24] <nico> if they use 5 connections each
[2010/02/24 08:32:27] <shine> the max_pool is 5
[2010/02/24 08:32:41] <nico> so we get it
[2010/02/24 08:32:46] <tim|imac> ah
[2010/02/24 08:32:57] <nico> apt-get install -t squeeze rails should do the trick
[2010/02/24 08:33:01] <shine> i set the max_pool to 50, with 3 puppetmasterd i have 150 connections on the mysql server ...
[2010/02/24 08:33:20] <nico> tim|imac: if it works for you I'll add the workaround to the ticket and will defect it
[2010/02/24 08:33:50] <tim|imac> ok, checking, just a sec
[2010/02/24 08:38:07] @ artista_frustrad joined channel #puppet
[2010/02/24 08:39:07] <idimmu> f3ew: doesnt look like puppet created the mysql database with any kind of foreignkey integrity so ON DELETE CASCADE WILL NOT WORK woot
[2010/02/24 08:39:21] @ Quit: rasputnik: Ping timeout: 246 seconds
[2010/02/24 08:39:23] <idimmu> also i didnt mean to put the last bit in caps
[2010/02/24 08:39:45] <tim|imac> nico: running my puppetd client, installed rails from backports
[2010/02/24 08:40:08] <nico> does it blow up your mysql ?
[2010/02/24 08:41:38] <tim|imac> checking, need to work up to 15 connections ;-)
[2010/02/24 08:43:12] <f3ew> idimmu ALTER TABLE is your friend :P
[2010/02/24 08:44:03] <tim|imac> nico: staying at 15
[2010/02/24 08:44:18] @ nakano joined channel #puppet
[2010/02/24 08:44:32] @ rasputnik joined channel #puppet
[2010/02/24 08:45:07] <idimmu> f3ew: lol
[2010/02/24 08:45:50] <idimmu> is there an explanation somewhere of the database schema puppet uses
[2010/02/24 08:45:54] <tim|imac> nico: ok, using rails from backports seems to solve the issue for me
[2010/02/24 08:45:57] <idimmu> or do i have to guess
[2010/02/24 08:45:57] <tim|imac> thanks for the tip
[2010/02/24 08:46:01] * idimmu is getting tired of guessing
[2010/02/24 08:47:29] <f3ew> !help
[2010/02/24 08:47:29] <gepetto> f3ew: help topics: 10 core modules: auth, basics, config, filters, httputil, irclog, remote, unicode, userdata, wordlist; 9 plugins: debug, hudson, nickserv, redmineurls, rss, seen, shortenurls, time, tracurls; 79 plugins ignored: use help ignored plugins to see why (help <topic> for more info)
[2010/02/24 08:47:53] <f3ew> !config
[2010/02/24 08:47:53] <gepetto> f3ew: incorrect usage, ask for help using 'gepetto: help config'
[2010/02/24 08:48:01] <f3ew> gepetto help config
[2010/02/24 08:48:01] <gepetto> f3ew: config module - bot configuration. usage: list, desc, get, set, unset, add, rm
[2010/02/24 08:48:16] <f3ew> gepetto schema
[2010/02/24 08:48:26] <f3ew> gah
[2010/02/24 08:48:55] <nareshov> it's an rbot
[2010/02/24 08:49:03] @ vermeer joined channel #puppet
[2010/02/24 08:49:20] <idimmu> :o
[2010/02/24 08:49:24] @ Quit: vermeer: Remote host closed the connection
[2010/02/24 08:49:39] <nico> tim|imac: closed #3238
[2010/02/24 08:49:40] <gepetto> nico: tim|imac: #3238 is http://projects.reductivelabs.com/issues/show/3238 "Puppet - Bug #3238: puppetmaster uses to many mysql connections - ReductiveLabs.com"
[2010/02/24 08:50:29] @ vermeer_ joined channel #puppet
[2010/02/24 08:50:40] <rasputnik> If I'm creating a custom function, that only needs to live on the puppetmaster, right?
[2010/02/24 08:50:45] @ Quit: vermeer_: Remote host closed the connection
[2010/02/24 08:51:05] @ vermeer_ joined channel #puppet
[2010/02/24 08:51:07] @ Quit: vermeer_: Remote host closed the connection
[2010/02/24 08:52:39] @ vermeer joined channel #puppet
[2010/02/24 08:54:16] @ a55 joined channel #puppet
[2010/02/24 08:54:58] <f3ew> http://reductivelabs.com/trac/puppet/attachment/wiki/UsingStoredConfiguration/20080606a.png @ idimmu
[2010/02/24 08:55:02] @ vermeer_ joined channel #puppet
[2010/02/24 08:55:13] @ Quit: vermeer_: Client Quit
[2010/02/24 08:55:35] <f3ew> that, ladies and gentlemen, is why actually designing your database is important for relational databases
[2010/02/24 08:55:38] @ Quit: vermeer: Remote host closed the connection
[2010/02/24 08:55:49] @ vermeer joined channel #puppet
[2010/02/24 08:58:58] @ Quit: tripoux: Ping timeout: 248 seconds
[2010/02/24 09:01:10] @ uphillian1 joined channel #puppet
[2010/02/24 09:02:17] <masterzen> f3ew: thanks for the ER diagram :-)
[2010/02/24 09:03:34] @ malraid joined channel #puppet
[2010/02/24 09:04:27] <f3ew> masterzen I asked Google
[2010/02/24 09:12:13] @ tripoux joined channel #puppet
[2010/02/24 09:12:56] <masterzen> f3ew: then this google is a very nice guy :-)
[2010/02/24 09:12:58] @ joe-mac1 joined channel #puppet
[2010/02/24 09:13:10] <f3ew> lol
[2010/02/24 09:27:30] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/02/24 09:28:07] @ londo__ is now known as londo
[2010/02/24 09:33:59] @ pheezy joined channel #puppet
[2010/02/24 09:36:07] @ cmoates joined channel #puppet
[2010/02/24 09:36:16] @ PsychoSid joined channel #puppet
[2010/02/24 09:37:08] @ unxfrek joined channel #puppet
[2010/02/24 09:38:22] @ Quit: mayday_jay: Read error: Connection reset by peer
[2010/02/24 09:41:24] @ Quit: pacalm: Quit: pacalm
[2010/02/24 09:42:10] @ pacalm joined channel #puppet
[2010/02/24 09:44:51] @ notbrien joined channel #puppet
[2010/02/24 09:50:54] @ Quit: benlovell: Ping timeout: 245 seconds
[2010/02/24 10:01:54] @ RageLink joined channel #puppet
[2010/02/24 10:02:11] @ swygue joined channel #puppet
[2010/02/24 10:02:31] @ cwebber joined channel #puppet
[2010/02/24 10:06:10] @ murkk joined channel #puppet
[2010/02/24 10:06:26] @ Quit: murkk: Client Quit
[2010/02/24 10:07:32] @ Spruit_elf joined channel #puppet
[2010/02/24 10:08:58] @ kaptk2 joined channel #puppet
[2010/02/24 10:12:50] @ benlovell joined channel #puppet
[2010/02/24 10:13:04] @ Quit: Phibs: Remote host closed the connection
[2010/02/24 10:14:47] @ Phibs joined channel #puppet
[2010/02/24 10:15:13] @ Quit: benlovell: Client Quit
[2010/02/24 10:16:20] @ Quit: elijahwright: Remote host closed the connection
[2010/02/24 10:17:57] @ Quit: Spruit_elf: Quit: Spruit_elf
[2010/02/24 10:19:37] @ jmccune joined channel #puppet
[2010/02/24 10:24:16] @ Quit: elementai: Quit: Lost terminal
[2010/02/24 10:26:31] <jamesturnbull> Volcane: re wordpress and feed thingies - what was the plugin called to turn WP into a planet?
[2010/02/24 10:28:25] <nico> is puppet-dev list broken ?
[2010/02/24 10:28:52] <Volcane> jamesturnbull: FeedWordPress
[2010/02/24 10:29:39] <ashp> I feel stupid every time I try to use a davids module
[2010/02/24 10:29:48] <ashp> his way of working is so different to mine that I find his modules hard to understand
[2010/02/24 10:29:56] <ashp> I think I'll make my own broken collectd module instead
[2010/02/24 10:31:03] @ chrisg joined channel #puppet
[2010/02/24 10:31:06] <chrisg> hai thar
[2010/02/24 10:33:41] <duritong> nico: no but puppet-bugs
[2010/02/24 10:35:36] <chrisg> has anyone noticed a fix for ssh::auth ?
[2010/02/24 10:35:43] <chrisg> or know what the latest version is that it'll work properly with?
[2010/02/24 10:36:46] @ rene joined channel #puppet
[2010/02/24 10:37:14] @ rene is now known as Guest83373
[2010/02/24 10:38:06] @ pheezy_ joined channel #puppet
[2010/02/24 10:38:06] @ Quit: pheezy: Read error: Connection reset by peer
[2010/02/24 10:38:10] <jamesturnbull> rasputnik: correct
[2010/02/24 10:38:48] <jamesturnbull> nico: list not broken by your email was moderated
[2010/02/24 10:38:54] <jamesturnbull> nico: cleared now
[2010/02/24 10:39:26] <jamesturnbull> chrisg: not sure I understand?
[2010/02/24 10:39:44] <jamesturnbull> chrisg: what's broken? what version are you using? what's an ssh::auth - a module?
[2010/02/24 10:40:14] <RedPepper> i think he referrs to the ssh authorized_key module/recipe in the docs
[2010/02/24 10:40:15] * jamesturnbull needs coffee
[2010/02/24 10:40:24] <jamesturnbull> RedPepper: ah ha
[2010/02/24 10:40:36] <jamesturnbull> chrisg: then can you tell me what's broken?
[2010/02/24 10:40:44] <chrisg> erm
[2010/02/24 10:41:14] <ashp> ssh::auth is an existing module
[2010/02/24 10:41:18] <ashp> I tried to use it recently myself
[2010/02/24 10:41:18] <chrisg> yea
[2010/02/24 10:41:24] <ashp> i couldn't get it working properly :)
[2010/02/24 10:41:28] <ashp> chrisg: what issue were you having with it?
[2010/02/24 10:41:31] <chrisg> it's not working correctly with puppet 0.24
[2010/02/24 10:41:35] <ashp> oh
[2010/02/24 10:41:40] <ashp> i tested under 0.25, sorry
[2010/02/24 10:41:46] <chrisg> ah
[2010/02/24 10:41:53] <RedPepper> what is the error message you get when compiling it
[2010/02/24 10:42:17] <chrisg> Syntax error at '{'; expected '}' at /puppet/development/modules/ssh/manifests/init.pp:111
[2010/02/24 10:42:24] <chrisg> but it's linked i think to an issue i found on google groups
[2010/02/24 10:42:25] <chrisg> two tics
[2010/02/24 10:42:40] <chrisg> http://groups.google.com/group/puppet-users/browse_thread/thread/9b461ffbbb4a1552/d03cc01d90735096?lnk=raot
[2010/02/24 10:42:43] <chrisg> this issue here
[2010/02/24 10:42:47] <jamesturnbull> chrisg: so that's a syntax error
[2010/02/24 10:43:04] <chrisg> yeah
[2010/02/24 10:43:15] <chrisg> in the code for that module
[2010/02/24 10:43:21] <chrisg> not a puppet problem per-se
[2010/02/24 10:43:30] <RedPepper> yes
[2010/02/24 10:43:32] <chrisg> just wondered if anyone was using it and had got it working again :)
[2010/02/24 10:44:10] <RedPepper> hmmh
[2010/02/24 10:44:31] <jamesturnbull> chrisg: let me look
[2010/02/24 10:45:05] <chrisg> i'm using puppet 0.24.8 from EPEL stable
[2010/02/24 10:45:15] <jamesturnbull> argh alice and bob
[2010/02/24 10:45:51] <chrisg> i'd rather not use 0.25 till it's in EPEL stable, as i have automated sync with epel package updates
[2010/02/24 10:47:53] @ JuddJudd joined channel #puppet
[2010/02/24 10:48:15] <chrisg> other than that I guess I could consider downgrading puppet :s
[2010/02/24 10:48:29] @ markl_ joined channel #puppet
[2010/02/24 10:48:37] <jamesturnbull> chrisg: wow - that's a convoluted bit of code
[2010/02/24 10:48:42] <chrisg> lol
[2010/02/24 10:48:48] <jamesturnbull> chrisg: my suggestion? email Andrew
[2010/02/24 10:48:56] <chrisg> fair enough
[2010/02/24 10:49:02] <chrisg> i'll respond to that thing on puppet-users
[2010/02/24 10:49:04] <chrisg> :)
[2010/02/24 10:49:09] <jamesturnbull> I had no idea that collection syntax with params worke
[2010/02/24 10:49:09] <jamesturnbull> d
[2010/02/24 10:49:11] <jamesturnbull> weird
[2010/02/24 10:49:24] <markl_> ok i have a question; how do i override the behavior of a class? e.g. i have an sshd_config file that every host inherits from a base class; but for one particular host i want it to be a little different. puppet is griping about a conflict
[2010/02/24 10:50:06] <jamesturnbull> markl_: pastie code and error?
[2010/02/24 10:52:08] <jamesturnbull> markl_: also http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#class-inheritance-and-variable-scope
[2010/02/24 10:52:37] <markl_> ok thanks, i'll try that and come back if i can't figure it out :)
[2010/02/24 10:52:55] @ Quit: grim_radical: Remote host closed the connection
[2010/02/24 10:53:26] @ grim_radical joined channel #puppet
[2010/02/24 10:56:12] @ benlovell joined channel #puppet
[2010/02/24 10:58:05] <chrisg> hm, will puppet 0.24 clients work with a puppet 0.25 server?
[2010/02/24 10:58:16] <tim|imac> chrisg: yes
[2010/02/24 10:58:52] @ rcrowley joined channel #puppet
[2010/02/24 10:58:57] <chrisg> and reductivelabs consider 0.25 as release quality right
[2010/02/24 10:59:06] <jamesturnbull> chrisg: yes
[2010/02/24 10:59:17] <jamesturnbull> chrisg: it's in EPEL testing, it'll be in the new Ubuntu release etc etc
[2010/02/24 10:59:25] <chrisg> cool :)
[2010/02/24 10:59:25] <jamesturnbull> chrisg: 0.25.4 is current stable production
[2010/02/24 10:59:33] <chrisg> basically to try and use that ssh::auth
[2010/02/24 10:59:53] @ Quit: kolla: Remote host closed the connection
[2010/02/24 11:00:14] @ kolla joined channel #puppet
[2010/02/24 11:02:01] <ashp> wow, this collectd module is way beyond me with custom parsers and stuff
[2010/02/24 11:02:05] <ashp> does anyone else here use collectd?
[2010/02/24 11:02:23] <tim|imac> not yet, but considering switching
[2010/02/24 11:02:33] <ashp> I was looking at Reconnoiter as a possible 'gathering stats' frontend and assumed collectd is the best to collect all the stats
[2010/02/24 11:02:53] <ashp> i wonder if reconnoniter has ways to gather this stuff directly, hmm
[2010/02/24 11:07:02] <wastrel> hrm
[2010/02/24 11:08:26] @ lilmatt joined channel #puppet
[2010/02/24 11:11:07] @ Quit: biertie: Quit: I'm off :)
[2010/02/24 11:16:16] @ phips joined channel #puppet
[2010/02/24 11:18:09] @ alfism joined channel #puppet
[2010/02/24 11:18:30] <pastamancer> ashp: collectd is nice
[2010/02/24 11:18:43] <pastamancer> ashp: not quite in production here yet though
[2010/02/24 11:22:14] <ashp> I'm probably going to do things the hard way and just install it everywhere, then hope it doesn't break anything
[2010/02/24 11:22:17] <ashp> that's my idea of 'testing' these days
[2010/02/24 11:22:49] @ Quit: rcrowley: Quit: rcrowley
[2010/02/24 11:23:08] @ Quit: bug: Quit: bug
[2010/02/24 11:23:29] @ Quit: JuddJudd: Quit: Leaving
[2010/02/24 11:24:13] <pastamancer> ashp: I've only been using it for snmp and running it on one host
[2010/02/24 11:32:11] @ rcrowley joined channel #puppet
[2010/02/24 11:32:25] @ BarnacleBob joined channel #puppet
[2010/02/24 11:32:58] @ Quit: BarnacleBob: Client Quit
[2010/02/24 11:33:14] @ Quit: Robbie_: Remote host closed the connection
[2010/02/24 11:35:44] <chrisg> ah bugger, i'm using multiple environments, but i just realised using that ssh:auth thing ill need to have three different boxes to manage key generation for each environment!
[2010/02/24 11:36:23] @ Quit: gwar99991: Quit: Leaving.
[2010/02/24 11:38:29] @ Quit: unxfrek: Ping timeout: 265 seconds
[2010/02/24 11:39:30] <eric0> ashp: curious to know how you get on with reconnoiter, it looks quite excellent but also somewhat vapour
[2010/02/24 11:40:36] @ Quit: rasputnik: Quit: This computer has gone to sleep
[2010/02/24 11:41:28] @ Quit: TREllis: Quit: leaving
[2010/02/24 11:42:53] @ lak joined channel #puppet
[2010/02/24 11:42:54] <ashp> eric0: Yeah, I hope it's not as vapourish as it looks. I mean there's a bunch of presentations and evidence it works, but...
[2010/02/24 11:43:12] <ashp> eric0: I haven't seen any other decent alternatives to get a bunch of info on disk, mysql connections, that kind of graph stuff
[2010/02/24 11:43:28] <ashp> err: Could not load downloaded file /var/lib/puppet/lib/puppet/provider/collectd_conf/parsed.rb: undefined method `provide' for nil:NilClass
[2010/02/24 11:43:33] <ashp> damn, I knew this wouldn't be easy.
[2010/02/24 11:44:06] @ Quit: benlovell: Quit: benlovell
[2010/02/24 11:44:11] <eric0> the other one that crossed my radar in puppet/ruby context is linday's http://http://flapjack-project.com/
[2010/02/24 11:44:27] <eric0> doublehttp!
[2010/02/24 11:44:44] <ashp> oh, i never heard of this one
[2010/02/24 11:44:49] <chrisg> mmm flapjack
[2010/02/24 11:44:56] <ashp> time to have a read, i don't want to invest a ton of time into rolling something out
[2010/02/24 11:45:05] <ashp> so I'm looking for something relatively simple
[2010/02/24 11:45:16] <ashp> just a server/client setup where they forward to the server and i get pretty trend graphs for my boss
[2010/02/24 11:45:19] <eric0> (this is more ##infra-talk fodder than #puppet)
[2010/02/24 11:46:43] <ashp> I didn't even know that place existed.
[2010/02/24 11:47:08] @ Quit: kolla: Remote host closed the connection
[2010/02/24 11:49:36] <ashp> Hmm, did the path that modules 'plugins' have to be in move with 0.25?
[2010/02/24 11:50:12] <ashp> Or is my problem bigger than that :)
[2010/02/24 11:50:19] @ Quit: pheezy_: Remote host closed the connection
[2010/02/24 11:50:34] @ Quit: PsychoSid: Quit: Leaving.
[2010/02/24 11:53:41] @ Quit: Ramonster: Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/
[2010/02/24 11:54:32] @ unxfrek joined channel #puppet
[2010/02/24 11:56:34] <tim|imac> it's quiet on the mailinglist!
[2010/02/24 11:57:13] <tim|imac> lol... no... google's interface is borken :S
[2010/02/24 11:58:14] @ teyo joined channel #puppet
[2010/02/24 11:58:22] @ Quit: unxfrek: Client Quit
[2010/02/24 12:01:21] @ bodepd joined channel #puppet
[2010/02/24 12:01:53] @ Quit: jmccune: Remote host closed the connection
[2010/02/24 12:03:32] @ Quit: bodepd: Client Quit
[2010/02/24 12:18:12] @ Quit: Spads: Ping timeout: 256 seconds
[2010/02/24 12:18:40] @ Quit: lanky: Remote host closed the connection
[2010/02/24 12:27:52] @ Bryce_ joined channel #puppet
[2010/02/24 12:28:30] @ bug joined channel #puppet
[2010/02/24 12:31:01] @ Quit: MattyM: Quit: ta ta
[2010/02/24 12:31:18] @ BarnacleBob joined channel #puppet
[2010/02/24 12:34:48] @ bodepd joined channel #puppet
[2010/02/24 12:38:54] @ Quit: Guest83373: Ping timeout: 260 seconds
[2010/02/24 12:39:38] @ Quit: pacalm: Quit: pacalm
[2010/02/24 12:41:52] @ francois left channel #puppet ()
[2010/02/24 12:50:01] <jamesturnbull> Volcane: http://www.planetdevops.net/
[2010/02/24 12:52:56] @ benlovell joined channel #puppet
[2010/02/24 12:57:55] @ unxfrek joined channel #puppet
[2010/02/24 13:04:47] @ lludwig joined channel #puppet
[2010/02/24 13:05:10] @ Quit: lludwig: Client Quit
[2010/02/24 13:05:24] @ Quit: giskard: Remote host closed the connection
[2010/02/24 13:09:37] @ eshamow joined channel #puppet
[2010/02/24 13:09:51] @ TREllis joined channel #puppet
[2010/02/24 13:15:02] @ Quit: vermeer: Read error: Connection reset by peer
[2010/02/24 13:15:24] @ keds joined channel #puppet
[2010/02/24 13:17:44] @ Quit: tag: Quit: ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.1.8/20100214235958]
[2010/02/24 13:20:04] @ Quit: bodepd: Quit: bodepd
[2010/02/24 13:21:29] <nico> jamesturnbull: thanks !
[2010/02/24 13:21:56] @ plathrop-away is now known as plathrop
[2010/02/24 13:24:31] @ Quit: lak: Quit: lak
[2010/02/24 13:25:14] @ Quit: xerxas: Ping timeout: 256 seconds
[2010/02/24 13:25:41] @ bodepd joined channel #puppet
[2010/02/24 13:36:02] @ toi joined channel #puppet
[2010/02/24 13:36:03] @ mfournier joined channel #puppet
[2010/02/24 13:36:14] @ Quit: teyo: Quit: teyo
[2010/02/24 13:37:36] @ nigelk joined channel #puppet
[2010/02/24 13:38:15] @ Quit: TREllis: Quit: leaving
[2010/02/24 13:39:47] @ rellis joined channel #puppet
[2010/02/24 13:40:49] @ biertie joined channel #puppet
[2010/02/24 13:42:24] @ Quit: phips: Quit: phips
[2010/02/24 13:44:47] @ shadoi joined channel #puppet
[2010/02/24 13:52:01] @ Quit: toi: Ping timeout: 264 seconds
[2010/02/24 13:52:37] @ rasputnik joined channel #puppet
[2010/02/24 13:53:49] @ xerxas joined channel #puppet
[2010/02/24 13:58:15] @ Quit: mfournier: Ping timeout: 252 seconds
[2010/02/24 13:58:49] @ jmccune joined channel #puppet
[2010/02/24 14:00:32] @ rgsteele joined channel #puppet
[2010/02/24 14:01:44] <rgsteele> If I have two exec resources, say A and B, and B requires A, will B be executed if A has an onlyif attribute that rprevents it from running in a particular scope?
[2010/02/24 14:02:25] @ Quit: benlovell: Quit: benlovell
[2010/02/24 14:02:36] @ benlovell joined channel #puppet
[2010/02/24 14:03:08] <joe-mac1> good question, i would say no cause if onlyif isn't satisfied the resource isn't applied
[2010/02/24 14:03:14] <jmccune> rgsteele: I believe B will still run
[2010/02/24 14:03:26] <plathrop> rgsteele: I suggest trying it out
[2010/02/24 14:03:40] <jmccune> require relationships mean "If the resource is in the desired state"
[2010/02/24 14:03:50] <jmccune> But yeah, I'd definitely just try a simple script.
[2010/02/24 14:03:56] <rgsteele> I can always add the same onlyif requirement to B, I was just curious, and will definitely be testing it out.
[2010/02/24 14:04:05] <rgsteele> Just thought I'd throw it out there while writing the manifest.
[2010/02/24 14:04:40] * joe-mac1 chews caffeine gum to keep from passing out
[2010/02/24 14:04:51] <rgsteele> My initial thought was what joe-mac1 said.
[2010/02/24 14:04:51] @ Spruit_elf joined channel #puppet
[2010/02/24 14:04:53] <joe-mac1> man the jetlag from lax back tro boston is teh worst
[2010/02/24 14:04:54] <rgsteele> But, we'll see.
[2010/02/24 14:06:21] <BarnacleBob> how i can i tell if the stomp stuff is working at all?
[2010/02/24 14:06:31] @ vermeer joined channel #puppet
[2010/02/24 14:07:00] @ Quit: mattwynne: Remote host closed the connection
[2010/02/24 14:07:15] @ Quit: rasputnik: Quit: This computer has gone to sleep
[2010/02/24 14:07:21] @ Quit: benlovell: Ping timeout: 265 seconds
[2010/02/24 14:07:37] <rgsteele> plathrop, jmccune: Actually, I would kind of expect it not to, the more I think about it, because it should behave the same way as "notify", in the same way that a service which is notified by a file is only done so if the file changes.
[2010/02/24 14:07:57] @ Quit: unxfrek: Ping timeout: 260 seconds
[2010/02/24 14:11:06] @ autowidget joined channel #puppet
[2010/02/24 14:11:21] <jmccune> rgsteele: I see where you're coming from, but notify is a different relationship than requires
[2010/02/24 14:12:22] <jmccune> rgsteele: I think it does fit nicely with the thought "B requires A to be in a managed state"
[2010/02/24 14:12:47] <jmccune> If there's an error executing A, or some other problem, then the requirement isn't satisfied.
[2010/02/24 14:13:45] @ mvn071 joined channel #puppet
[2010/02/24 14:13:57] <jmccune> Whether or not A actually executed anything isn't really what we're trying to get at, but rather the state of the resource.
[2010/02/24 14:21:27] @ teyo joined channel #puppet
[2010/02/24 14:21:46] @ unxfrek joined channel #puppet
[2010/02/24 14:21:55] @ andrewmaier joined channel #puppet
[2010/02/24 14:22:09] @ Quit: andrewmaier: Client Quit
[2010/02/24 14:22:56] @ Quit: unxfrek: Client Quit
[2010/02/24 14:26:03] <zahna> how do i manually make a puppet client request a cert signing from the server?
[2010/02/24 14:26:19] <zahna> it doesn't seem to be requesting a signing
[2010/02/24 14:26:59] <joe-mac1> zahna: clear out the ssldir and run puppetd -t
[2010/02/24 14:27:04] <joe-mac1> or
[2010/02/24 14:27:05] <joe-mac1> -dt
[2010/02/24 14:27:12] <joe-mac1> should see if generate a csr and send it to the master
[2010/02/24 14:27:47] <zahna> ah, so the existing csr should be deleted?
[2010/02/24 14:28:13] <joe-mac1> yea if there is already a csr and puppet might think it might be ont he master
[2010/02/24 14:28:21] <BarnacleBob> when running with stomp queue enabled wouldn't i see messages about stomp in the puppetmasterd when i run with --debug --verbose --no-daemonize?
[2010/02/24 14:28:28] <zahna> ok, i think that's the case here
[2010/02/24 14:28:29] <joe-mac1> what does puppetca -l say on the master or in ssldir on the master there is a csr dir
[2010/02/24 14:28:44] <joe-mac1> something like that, this behavior changed from .24 to .25
[2010/02/24 14:28:45] <zahna> puppetca -la doesn't show the client in question
[2010/02/24 14:28:56] @ Quit: uphillian1: Ping timeout: 245 seconds
[2010/02/24 14:29:09] <joe-mac1> may have gone to a different server? or the client isn't sending it because it thinks it already has for some reason
[2010/02/24 14:29:27] <zahna> i only have 1 server
[2010/02/24 14:29:41] @ Quit: omry_|work: Ping timeout: 246 seconds
[2010/02/24 14:29:45] <zahna> i'm going to delete the csr and see how that goes
[2010/02/24 14:29:51] <zahna> didn't think of trying that
[2010/02/24 14:31:12] @ jes5 joined channel #puppet
[2010/02/24 14:32:12] @ omry_|work joined channel #puppet
[2010/02/24 14:32:21] <zahna> joe-mac1: bingo. thanks joe-mac
[2010/02/24 14:32:55] <joe-mac1> np
[2010/02/24 14:38:03] <inveratulo> if you do something like package { "httpd": ensure => present } is this platform agnostic? or should I provide a means for it to supply that package to all platforms?
[2010/02/24 14:38:24] <joe-mac1> well no, because on debian the package is called apache2-common or something retarded
[2010/02/24 14:38:54] <joe-mac1> to be totally platform agnostic you need look into using teh name parameter with what's called a selector
[2010/02/24 14:39:26] <joe-mac1> or, you can break an httpd module into subclasses that work for each OS, people do either of those
[2010/02/24 14:40:05] <inveratulo> i expect using 4 different OSes, so which do you think is best
[2010/02/24 14:40:10] @ pting joined channel #puppet
[2010/02/24 14:40:51] @ lak joined channel #puppet
[2010/02/24 14:41:51] <BarnacleBob> when running with stomp queue enabled wouldn't i see messages about stomp in the puppetmasterd when i run with --debug --verbose --no-daemonize? does stomp stuff work being specified on the command line?
[2010/02/24 14:50:04] @ Quit: nigelk: Quit: nigelk
[2010/02/24 14:51:28] @ toi joined channel #puppet
[2010/02/24 14:52:31] @ mattwynne joined channel #puppet
[2010/02/24 14:55:52] <tim|imac> are custom functions available in templates?
[2010/02/24 14:56:03] <tim|imac> and if so, how should I call them?
[2010/02/24 14:58:04] <RedPepper> the templates are erb based
[2010/02/24 14:58:12] <RedPepper> so all ruby erb functions are available
[2010/02/24 14:58:43] <jmccune> submissions@puppetcamp.org appears to be bouncing mail.
[2010/02/24 14:58:46] <RedPepper> see : http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/
[2010/02/24 14:59:23] <plathrop> So, I'm beginning to make liveral use of generate() scripts for fetching information from our external config database.
[2010/02/24 14:59:34] <plathrop> I'm trying to figure out the best way to handle distribution of these scripts
[2010/02/24 15:00:24] <plathrop> Obviously, the scripts for a module should be located within that module, but how do you make sure your resources know the path to them? Can you use $vardir ?
[2010/02/24 15:00:42] <tim|imac> RedPepper: but not a custom function?
[2010/02/24 15:00:46] <RedPepper> nope
[2010/02/24 15:00:57] <RedPepper> yust erb syntax
[2010/02/24 15:01:47] @ Quit: autowidget: Remote host closed the connection
[2010/02/24 15:02:06] @ autowidget joined channel #puppet
[2010/02/24 15:02:09] <tim|imac> RedPepper: ah, it's possible, apparantly: http://serialized.net/2010/01/using-custom-functions-in-puppet-templates/
[2010/02/24 15:02:24] <RedPepper> err ok
[2010/02/24 15:02:47] <RedPepper> err you are right
[2010/02/24 15:03:14] @ Quit: mattwynne: Remote host closed the connection
[2010/02/24 15:03:47] <tim|imac> RedPepper: I wouldn't have thought about that either ;-)
[2010/02/24 15:07:19] @ rasputnik joined channel #puppet
[2010/02/24 15:07:31] <tim|imac> meh... seems not to work, though... getting Error 400 on SERVER: Failed to parse template nagios/host-template.erb: undefined method `[]' for nil:NilClass
[2010/02/24 15:08:15] @ nigelk joined channel #puppet
[2010/02/24 15:09:01] <nico> tim|imac: do you have definition with a null name ?
[2010/02/24 15:09:22] @ Djelibeybi joined channel #puppet
[2010/02/24 15:09:29] <tim|imac> not as far as I can see
[2010/02/24 15:09:33] @ raz joined channel #puppet
[2010/02/24 15:10:55] <tim|imac> also, it only started after I added <% Puppet::Parser::Functions.autoloader.loadall %> to a erb template
[2010/02/24 15:11:04] <nico> ho
[2010/02/24 15:11:13] <Chiku> any document about all options for puppet.conf?
[2010/02/24 15:11:35] <Chiku> I want to know for auto add ca
[2010/02/24 15:11:35] <nico> Chiku: puppetd --genconfig gives you the information you need
[2010/02/24 15:11:47] <Chiku> ok thx
[2010/02/24 15:11:48] <nico> and it's autosign.conf
[2010/02/24 15:12:18] <Chiku> never see this file
[2010/02/24 15:12:20] <tim|imac> Chiku: also look at http://docs.reductivelabs.com/references/0.25.1rc2/configuration.html
[2010/02/24 15:12:25] <Chiku> new file ?
[2010/02/24 15:12:31] <Chiku> for 0.25
[2010/02/24 15:13:49] @ Quit: Spruit_elf: Quit: Spruit_elf
[2010/02/24 15:14:20] <nico> nope, already exists in previous versions
[2010/02/24 15:14:21] @ Quit: lilmatt: Quit: lilmatt
[2010/02/24 15:15:19] <Chiku> what options for this file?
[2010/02/24 15:16:11] @ Spruit_elf joined channel #puppet
[2010/02/24 15:19:10] <tim|imac> fixed one thing to run into the next one... Failed to parse template nagios/host-template.erb: undefined method `[]' for true:TrueClass
[2010/02/24 15:22:22] @ eshamow is now known as away
[2010/02/24 15:28:46] @ magnachef joined channel #puppet
[2010/02/24 15:31:32] @ Quit: magnachef: Client Quit
[2010/02/24 15:34:45] @ mattwynne joined channel #puppet
[2010/02/24 15:36:47] @ unxfrek joined channel #puppet
[2010/02/24 15:38:54] @ paxos joined channel #puppet
[2010/02/24 15:39:54] @ Quit: bodepd: Quit: bodepd
[2010/02/24 15:40:41] @ weaselkeeper joined channel #puppet
[2010/02/24 15:43:35] <weaselkeeper> how do I revoke access for a client node, to the puppet server? I thought that doing a puppetca --clean <fqdn> would do it, but the client can still connect and run the catalogue
[2010/02/24 15:43:40] @ Quit: lak: Quit: lak
[2010/02/24 15:43:48] <jb> puppetca --revoke
[2010/02/24 15:43:54] <Chiku> any better way to write the file ressource ? http://www.pastie.org/841160
[2010/02/24 15:43:56] <jb> puppetca --revoke <node>
[2010/02/24 15:44:45] @ bodepd joined channel #puppet
[2010/02/24 15:44:55] <weaselkeeper> doh! how did I miss that. Sorry folks
[2010/02/24 15:45:04] @ TREllis joined channel #puppet
[2010/02/24 15:45:19] @ lilmatt joined channel #puppet
[2010/02/24 15:45:40] <Chiku> [$path/zshrc, $path/zshrc,.... ]: for title?
[2010/02/24 15:46:24] <bodepd> arrays are fine for the title, but they need to be unique.
[2010/02/24 15:47:49] @ plathrop is now known as plathrop-away
[2010/02/24 15:48:11] <Chiku> but how I write about source => ?
[2010/02/24 15:48:29] <jrojas> Chiku: class zsh { file "/etc/zsh": recurse = true, source => "puppet:///modules/zsh", require package..
[2010/02/24 15:48:38] <jrojas> you dont ahve tos pecify each file unless you want to
[2010/02/24 15:49:03] <Chiku> oh just copy all folder so ?
[2010/02/24 15:49:12] @ Quit: mattwynne: Remote host closed the connection
[2010/02/24 15:49:14] <Chiku> all files in the folder
[2010/02/24 15:49:26] <Chiku> ok that's good
[2010/02/24 15:50:11] <jrojas> Chiku: http://www.pastie.org/841184
[2010/02/24 15:50:37] <jrojas> Chiku: its also best practice to make sure you set a mode and owner/group perms on the file call too so nothing gets funky
[2010/02/24 15:50:43] <rasputnik> heh, just wrote my first function. Puppetmaster crashed for the first time in 9 months :D
[2010/02/24 15:51:11] <jrojas> Chiku: also, you dont need /modules
[2010/02/24 15:51:18] <jrojas> you can do puppet:///zsh
[2010/02/24 15:51:51] <Chiku> default perm is root:root 644 right? it's what I read inside /etc/zsh
[2010/02/24 15:52:01] @ Quit: Spruit_elf: Quit: Spruit_elf
[2010/02/24 15:52:13] <Chiku> jrojas, are you sure about /modules? for 0.25 ?
[2010/02/24 15:52:22] <jrojas> yeah pretty sure.
[2010/02/24 15:52:30] <Chiku> for 0.24 you don't need it
[2010/02/24 15:52:34] <jb> yes you do
[2010/02/24 15:52:39] <jb> its being deprecated soon
[2010/02/24 15:52:44] <jb> so you might as well start using it :)
[2010/02/24 15:52:46] @ keyur joined channel #puppet
[2010/02/24 15:52:56] <Chiku> ok
[2010/02/24 15:53:31] <Chiku> so since which version you need /modules and since which one it's deprecated?
[2010/02/24 15:53:53] <jb> starting in 0.25, puppetd will throw a deprecation notice if you don't use /modules
[2010/02/24 15:54:13] <jb> it hasn't been deprecated yet..
[2010/02/24 15:54:19] <jrojas> jb: umm...i think you have that backwards, i dont have a single /modules for any of my file sources, and i see no error
[2010/02/24 15:54:23] <jrojas> or warning msg
[2010/02/24 15:54:57] <jb> erm
[2010/02/24 15:55:00] <jb> what version are you running?
[2010/02/24 15:55:08] @ Quit: vermeer: Ping timeout: 265 seconds
[2010/02/24 15:55:12] <jrojas> 0.25.4
[2010/02/24 15:55:14] <Chiku> 0.25.4
[2010/02/24 15:56:34] <Chiku> omg I did :wq on my notepad++
[2010/02/24 15:58:06] <jrojas> jb: you are right
[2010/02/24 15:58:12] <jb> yeah i was just testing'
[2010/02/24 15:58:15] <jrojas> jb: i was backward on my understaing about it
[2010/02/24 15:58:18] <jb> you should use modules from now on
[2010/02/24 15:58:20] <jb> in your source's
[2010/02/24 15:58:22] <jrojas> Notice that the file source path includes a modules/ component. Beginning in version 0.25, you must include this component in source paths in order to serve files from modules. Puppet 0.25 will still accept source paths without it, but it will warn you with a deprecation notice about "Files found in modules without specifying 'modules' in file path". In versions 0.24 and earlier, source paths should not include the modules/ component.
[2010/02/24 15:59:52] <raz> ever considered to rewrite puppet from scratch without all the insanity? :P
[2010/02/24 16:00:15] <jrojas> raz: insanity is the only thing i have left. ;)
[2010/02/24 16:00:29] <eric0> somebody tried, you can see the results at opscode.com
[2010/02/24 16:00:41] <jrojas> eric0: oooohhh burrrrn
[2010/02/24 16:00:45] <raz> at first i tought "oh great, someone finally made a usable cfengine"... now looking at this i can only wonder what kinda crack you guys are on
[2010/02/24 16:00:54] <jb> raz: ?
[2010/02/24 16:01:04] <jb> raz: what is hard about puppet?
[2010/02/24 16:01:09] <jrojas> raz: sounds like you are a programmer
[2010/02/24 16:01:18] <raz> jb: not even sure where to start. ;)
[2010/02/24 16:01:34] <jb> raz: you obviously haven't given it a chance :)
[2010/02/24 16:01:39] <Chiku> so what do you suggest ? write with modules/ or not? I'm fresh puppet use, and testing mode, learning puppet language
[2010/02/24 16:01:43] <raz> well, i'll try today :)
[2010/02/24 16:01:44] <jrojas> raz: wiki:GettingStarted
[2010/02/24 16:01:45] <gepetto> jrojas: raz: wiki:GettingStarted is http://reductivelabs.com/trac/puppet/wiki/GettingStarted
[2010/02/24 16:01:56] <jb> raz: don't think it's something you can accomplish in one day, though..
[2010/02/24 16:01:59] <jrojas> Chiku: yes use /modules
[2010/02/24 16:02:02] <Chiku> ok
[2010/02/24 16:02:27] <raz> yup. i'm past the "advanced puppet recipe". which is not so very advanced, in that it pretty much does nothing but already invented a couple of files with various strange interactions.
[2010/02/24 16:02:44] @ Quit: bodepd: Quit: bodepd
[2010/02/24 16:03:02] <raz> i will now try to work something out that does something useful. and see if the result makes any more sense ;)
[2010/02/24 16:03:24] <tim|imac> should a class be able to require any resource or can it only require another class?
[2010/02/24 16:04:26] <raz> what i'm constantly wondering is have you guys seen babushka? the basic approach of using small atoms with a dependency tree seems to much more sensible. i have a hard time getting over why the heck there's so much conceptual baggage in puppet (classes, modules, mountains of special syntax.. what the heck)
[2010/02/24 16:04:49] <jb> the syntax is simple
[2010/02/24 16:04:50] @ elijahwright joined channel #puppet
[2010/02/24 16:05:07] <jb> and classes and modules allow it to be.. well, moduluar :)
[2010/02/24 16:05:10] <jrojas> raz: babushka? got a link?
[2010/02/24 16:05:31] <raz> jrojas: http://babushka.me/#demo
[2010/02/24 16:05:50] <jrojas> raz: its also very hard to say for this host use this this this this this this and those files too, where in puppet you can do for this host use this class
[2010/02/24 16:06:29] <raz> jrojas: yea well. it's hard to even talk about these things for me, due to the overall complexity. i think i just came here out of frustration to whine a little. ;)
[2010/02/24 16:06:45] <jrojas> raz: ah good.
[2010/02/24 16:06:56] @ pheezy joined channel #puppet
[2010/02/24 16:09:00] @ Quit: elijahwright: Remote host closed the connection
[2010/02/24 16:09:07] @ elijahwright joined channel #puppet
[2010/02/24 16:09:46] <jrojas> raz: with babushka, the "big nested dependencies" seems to be painful to read like XML
[2010/02/24 16:10:46] <raz> jrojas: not at all. see http://github.com/benhoskings/babushka under "how is dep formed"
[2010/02/24 16:11:20] <raz> my prob with babush is that i don't like the implementation. he started with something really good and then added too much
[2010/02/24 16:11:47] <raz> i.e. ported shell commands to ruby.. /facepalm
[2010/02/24 16:12:16] <jrojas> raz: its very similar to puppet's dsl in a way. but its like this hybrid mix of ruby and puppet its kinda weird.
[2010/02/24 16:12:55] <raz> well, thing is, his tool is fully explained in one screen of text. puppet seems to be insanely overengineered to me.
[2010/02/24 16:13:30] <raz> the nasty part is that i need a tool, and puppet/chef seem to be about the same level of idiocy, babush is the more promising but alpha-quality project
[2010/02/24 16:13:50] @ plathrop-away is now known as plathrop
[2010/02/24 16:14:37] <Chiku> jrojas, about the directory zsh, I use svn so there is the directory .svn how I can exclude it ?
[2010/02/24 16:14:54] <jrojas> Chiku: exclude =>" .svn"
[2010/02/24 16:14:58] <Chiku> oh
[2010/02/24 16:15:16] <jrojas> err
[2010/02/24 16:15:16] <jrojas> no
[2010/02/24 16:15:18] <jrojas> ignore
[2010/02/24 16:15:20] <jrojas> not exclude
[2010/02/24 16:15:22] <jrojas> sorry
[2010/02/24 16:15:24] <jrojas> http://docs.reductivelabs.com/references/stable/type.html#file
[2010/02/24 16:15:27] <jrojas> :P
[2010/02/24 16:15:29] <Chiku> kk
[2010/02/24 16:15:41] @ PhabX joined channel #puppet
[2010/02/24 16:16:24] @ PhabX left channel #puppet ()
[2010/02/24 16:16:29] @ PhabX joined channel #puppet
[2010/02/24 16:20:30] @ Guest83373 joined channel #puppet
[2010/02/24 16:20:59] @ Quit: toi: Quit: Ex-Chat
[2010/02/24 16:21:51] @ Quit: unxfrek: Remote host closed the connection
[2010/02/24 16:29:24] <tim|imac> raz: halfway through the babushka video, but it seems a lot of work to set that up on 100+ servers... I don't really see anything that makes it better than puppet (although I might be biased, because we've invested about three years into our puppet manifests)
[2010/02/24 16:30:31] @ hobbsc joined channel #puppet
[2010/02/24 16:30:59] <raz> tim|imac: well, it's young and as said a bit on a bad path imo. what i like very much is that it works from a very small number of building blocks that can be combined to achieve pretty much everything. throw in host-awareness and get rid of the idiotic "shell commands implemented in ruby" and it looks like a damn good idea.
[2010/02/24 16:31:33] <jrojas> raz: throw in host awareness and get rid of shell commands and you end up with puppet.
[2010/02/24 16:31:36] <jrojas> ;)
[2010/02/24 16:31:37] <tim|imac> raz: yeah, but "small building blocks that can be combined" is exactly like puppet modules?
[2010/02/24 16:32:09] <raz> well, puppet has quite a vocabulary to learn and i'm still a bit confused between classes, modules, strange::syntax and such
[2010/02/24 16:32:09] @ mattwynne joined channel #puppet
[2010/02/24 16:32:14] <tim|imac> I mean, I'm not out for a war here, if you like it, more power to you, but I do not see any benefit over puppet
[2010/02/24 16:32:42] <jrojas> raz: there is a bit of a learning curve, but once it clicks, its pretty awesome.
[2010/02/24 16:32:45] @ Spads joined channel #puppet
[2010/02/24 16:33:07] <raz> well, i'll keep pushing forward today
[2010/02/24 16:33:31] <jrojas> raz: plus with puppet's age, a LOT of scalability challenges have been met and resovled. But it is always a good idea to explore multiple solutions to see what will fit your organization
[2010/02/24 16:33:35] <raz> some more real world examples would be really helpful. the "advanced recipe" left me with, well, nothing useful really.
[2010/02/24 16:33:39] <tim|imac> puppet's DSL is really fairly small... not that hard to learn... we recently hired a new guy and he understood it within a week or two, I believe... mastering it is another matter entirely, of course, but there's lots around to copy from and edit
[2010/02/24 16:34:07] <jrojas> raz: http://www.example42.com/
[2010/02/24 16:34:14] <tim|imac> raz: http://puppet.kumina.nl is our repo
[2010/02/24 16:34:22] <tim|imac> although I'm currently in the process of rewriting it all
[2010/02/24 16:34:28] <raz> oh thanks jro, that looks like it might be something
[2010/02/24 16:34:31] @ ShiNboi joined channel #puppet
[2010/02/24 16:34:44] <tim|imac> http://git.black.co.at/ is a good one too, btw
[2010/02/24 16:35:02] <jb> raz: and devco.net for tips on organizing your modules, environments, etc.
[2010/02/24 16:35:04] <jrojas> there is plenty out there, and some of the things over-lap but is always good to see the same thing written differnetly
[2010/02/24 16:35:09] <raz> tim|imac: yeah that's part of the problem. there are tons of modules linked, but it's hard to tell what of it is good, some stuff refers to specific puppet versions or tries to be "smart" in ways that don't look right
[2010/02/24 16:35:45] <tim|imac> raz: true, but they should be easy enough to read to cherry pick the stuff you want
[2010/02/24 16:35:46] @ xorl joined channel #puppet
[2010/02/24 16:35:48] <raz> like, many contain ruby classes that are apparently imported to extend puppet itself.. sorry but that seems so wrong
[2010/02/24 16:35:51] @ bodepd joined channel #puppet
[2010/02/24 16:35:53] @ Quit: nexx: Quit: quit
[2010/02/24 16:36:16] <tim|imac> raz: depends on what you want to do... making custom facts is fairly common
[2010/02/24 16:36:43] <tim|imac> i actually wrote a little puppet function myself this week to convert values like "true" and "false" to "1" and "0", to ease with my nagios deploy
[2010/02/24 16:37:00] <tim|imac> puppet 'plugins' is one of the nice things, i think
[2010/02/24 16:37:04] <raz> tim|imac: <systems-guy-hat> there should be a defined interface for that then, one should not mess with the innards of the tool to add.. well, basic system info </hat>
[2010/02/24 16:37:40] <tim|imac> yeah, it's facts :)
[2010/02/24 16:37:41] <raz> however, i'm strongly opinionated on these things as i tend to write such tools myself. just not in a mood to write on the size of puppet from scratch currently ;)
[2010/02/24 16:37:50] <raz> one the size*
[2010/02/24 16:38:59] * tim|imac is going to bed
[2010/02/24 16:39:01] <tim|imac> later all :)
[2010/02/24 16:39:17] <jrojas> tim|imac: booo...stay and help me brainwash
[2010/02/24 16:39:20] <jrojas> ;)
[2010/02/24 16:39:48] <raz> heh
[2010/02/24 16:40:00] <tim|imac> jrojas: i gave up brainwashing long ago... people seem to have their own opinions and however wrong they are, they seem to want to keep 'em... i'll be damned if i know why ;-)
[2010/02/24 16:40:33] <jrojas> haha
[2010/02/24 16:41:10] <tim|imac> but as an end point, raz, try it for a week and see what you think then... we manage about 500 hosts with puppet, most of them very different from each other and puppet serves us well
[2010/02/24 16:41:21] <tim|imac> so there's gotta be something in there worthwhile ;-))
[2010/02/24 16:41:46] <raz> i don't doubt there is. i have seen 5k host cfengine deploys. it's all boils down to pain treshold. :)
[2010/02/24 16:43:19] @ ohadlevy joined channel #puppet
[2010/02/24 16:43:30] <PhabX> join #ruby
[2010/02/24 16:43:42] <jrojas> no.
[2010/02/24 16:45:44] <ashp> DO IT DO IT NOW
[2010/02/24 16:49:51] <ohadlevy> volcane: any updates in extlookup db support ? :)
[2010/02/24 16:50:32] @ kolla joined channel #puppet
[2010/02/24 16:50:57] @ Quit: rasputnik: Quit: Leaving
[2010/02/24 16:52:10] @ mfoster joined channel #puppet
[2010/02/24 16:53:00] @ blahdeblah joined channel #puppet
[2010/02/24 16:57:10] @ giskard joined channel #puppet
[2010/02/24 17:02:17] @ sparagos is now known as sparagos_away
[2010/02/24 17:02:57] @ Quit: rgsteele: Remote host closed the connection
[2010/02/24 17:02:58] @ PhabX left channel #puppet ()
[2010/02/24 17:04:17] @ Quit: ShiNboi: Quit: Verlassend
[2010/02/24 17:04:21] @ cowbud joined channel #puppet
[2010/02/24 17:04:26] @ Quit: mvn071: Quit: Leaving
[2010/02/24 17:04:35] <cowbud> is there a way to run puppet over a nodes.pp sans the server? as in disitribute the files myself to each puppet client?
[2010/02/24 17:05:13] <cwebber> so not really sure... but is puppet dashboard a rails app?
[2010/02/24 17:06:21] @ lak joined channel #puppet
[2010/02/24 17:06:21] <cowbud> nevermind I think I may have a way to do what I want
[2010/02/24 17:08:22] <whack> cowbud: many folks run puppet in a masterless configuration as you are describing
[2010/02/24 17:09:24] <jrojas> cowbud: its puppet not puppetd :)
[2010/02/24 17:09:37] <cowbud> hrm but the config has to reside in /etc/puppet?
[2010/02/24 17:09:40] <jrojas> puppet manifest.pp and it will run whats in the manifest
[2010/02/24 17:10:03] <cowbud> or how can I tell it where everything is hiding
[2010/02/24 17:10:04] @ mrchucho joined channel #puppet
[2010/02/24 17:10:10] <stahnma> jrojas: you may need to specify --modulepath etc
[2010/02/24 17:10:18] <cowbud> ah
[2010/02/24 17:10:21] <stahnma> etc, meaning et al
[2010/02/24 17:10:21] <jrojas> stahnma: correct depending on what you are doing
[2010/02/24 17:10:24] <stahnma> not actually /etc
[2010/02/24 17:10:53] <cowbud> yep thanks
[2010/02/24 17:11:00] <ohadlevy> cwebber: yeah it is
[2010/02/24 17:11:19] <cwebber> ohadlevy: yay
[2010/02/24 17:12:06] @ Quit: paxos: Quit: paxos
[2010/02/24 17:12:14] <mrchucho> I'm trying to follow the puppet "style guidelines", but I'm not sure where I should put classes that are *specific* to my setup... /manifests/classes/? I believe /modules/ is intended for distributable/reusable classes.
[2010/02/24 17:12:43] <ohadlevy> cwebber: why?
[2010/02/24 17:13:06] @ tjoe joined channel #puppet
[2010/02/24 17:13:12] <cwebber> ohadlevy: just another one of those things that I need to learn
[2010/02/24 17:13:14] <jrojas> mrchucho: modules/mod_name/manifests/{init.pp,classname.pp,etc.pp}
[2010/02/24 17:13:17] @ OpenMedia joined channel #puppet
[2010/02/24 17:13:39] <ohadlevy> mrchucho: thats correct
[2010/02/24 17:14:04] <cwebber> there seems to be these huge assumptions made when it comes time to anything ruby
[2010/02/24 17:14:15] <mrchucho> ohadlevy: what is? /manifest/classes for my "personal" stuff, /modules/* for the reusable stuff?
[2010/02/24 17:14:36] <ohadlevy> cwebber:rails ?
[2010/02/24 17:14:44] @ Quit: swygue: Quit: Ex-Chat
[2010/02/24 17:14:55] <mrchucho> jrojas: I understand how to make a module, just curious about what is suggested for non-module classes
[2010/02/24 17:14:57] <cwebber> ohadlevy: ?
[2010/02/24 17:15:14] <whack> mrchucho: I put everything in modules
[2010/02/24 17:15:22] <zahna> mrchucho: i put everything in modules too
[2010/02/24 17:15:28] <mrchucho> heh, k
[2010/02/24 17:15:33] <ohadlevy> mrchucho: I use modules all the time, not my point IMHO to use plain classes at all (e.g. in /etc/puppet/manifests)
[2010/02/24 17:15:37] <whack> even stuff that only runs on one server gets a module
[2010/02/24 17:15:52] <ohadlevy> cwebber: i asked if you meant you need to learn rails :)
[2010/02/24 17:16:05] <jrojas> mrchucho: i sort fo do as well, but i have a "base" that all hosts get that is outside of my modules dir
[2010/02/24 17:16:11] <jrojas> fo = of
[2010/02/24 17:16:32] <cwebber> ohadlevy: not rails persay but i am guessing I am going to need to learn how it behaves and interacts with apache
[2010/02/24 17:16:51] <mrchucho> am I correct in understanding that it's generally accepted to use modules for pretty much everything, then?
[2010/02/24 17:17:04] <ohadlevy> cwebber: ah, there are a few modules for that
[2010/02/24 17:17:16] <cwebber> ohadlevy: it really is more a matter of the puppet dashboard install docs assume you understand the rake and rails stuff
[2010/02/24 17:17:26] <cwebber> ohadlevy: it is just one more thing to learn
[2010/02/24 17:17:27] <zahna> mrchucho: it will make your life much easier down the road, yes
[2010/02/24 17:17:45] <mrchucho> ok, sounds reasonable. thx!
[2010/02/24 17:18:00] <ohadlevy> cwebber: yeah, I created a puppet module for foreman installation - kind of make sense to use puppet for this kind of stuff ;)
[2010/02/24 17:19:24] <cwebber> ohadlevy: I would agree... but as is the joy of unix our shop does things "weird" and adapting applications to behave a certian way is always fun
[2010/02/24 17:20:03] <cwebber> like it would appear (havent poked around much yet) that puppet dashboard just assumes that there is a mysql instance running locally
[2010/02/24 17:20:10] <ohadlevy> cwebber: well, I'm guessing most puppet admins review modules they find somewhere :)
[2010/02/24 17:20:31] <whack> I don't have anything found from elsewhere :(
[2010/02/24 17:20:49] <ohadlevy> whack: what are you looking for ?:)
[2010/02/24 17:20:54] <whack> nothing ;)
[2010/02/24 17:21:54] @ Quit: Guest83373: Ping timeout: 248 seconds
[2010/02/24 17:22:35] @ Quit: nigelk: Quit: nigelk
[2010/02/24 17:23:12] @ unxfrek joined channel #puppet
[2010/02/24 17:23:29] @ artista_frustrad joined channel #puppet
[2010/02/24 17:25:58] @ Quit: Bevo: Quit: Leaving
[2010/02/24 17:28:43] @ Quit: artista_frustrad: Ping timeout: 276 seconds
[2010/02/24 17:29:14] @ Quit: ohadlevy: Ping timeout: 245 seconds
[2010/02/24 17:30:26] @ Quit: bug: Quit: bug
[2010/02/24 17:35:13] @ Quit: TREllis: Quit: leaving
[2010/02/24 17:36:02] <pheezy> If I've got multiple environments defined, I should only have to declare what manifest = in site.pp right? Doesn't puppet automatically figure out where manifestdir is based on where that manifest is?
[2010/02/24 17:43:30] <cowbud> if I am getting no such file to load -- facter/util/plist is it due to an old version of facter being installed?
[2010/02/24 17:44:02] @ Alagar joined channel #puppet
[2010/02/24 17:46:24] @ qwebirc38291 joined channel #puppet
[2010/02/24 17:46:50] <jrojas> cowbud: possibly, never seen that error before.
[2010/02/24 17:47:03] <jrojas> pheezy: well in each environment you should be specifying which site.pp to use for that environment.
[2010/02/24 17:47:18] @ Quit: qwebirc38291: Client Quit
[2010/02/24 17:47:21] <pheezy> yeah i do that
[2010/02/24 17:47:51] <pheezy> it seems i can't include a class with a nomenclature like class::subclass for some reason...
[2010/02/24 17:48:53] <jrojas> pdd
[2010/02/24 17:48:54] <pheezy> for instance in my development environment i'll have a module called "users," however I only want to include the "users::services" class
[2010/02/24 17:49:16] <pheezy> this doesn't seem to work unless i explicitly tell puppet to import that module
[2010/02/24 17:49:37] <pheezy> versus just depending on it to figure out how it should work via the location of "manifest = etc"
[2010/02/24 17:50:58] <cowbud> jrojas: just for posterity I updated to the latest facter and bam jam sam the errors went away :)
[2010/02/24 17:51:05] @ Quit: \ask: Remote host closed the connection
[2010/02/24 17:51:33] @ Quit: unxfrek: *.net *.split
[2010/02/24 17:51:34] @ Quit: keyur: *.net *.split
[2010/02/24 17:51:35] @ Quit: cmoates: *.net *.split
[2010/02/24 17:51:36] @ Quit: ahasenack: *.net *.split
[2010/02/24 17:51:37] @ Quit: alban2: *.net *.split
[2010/02/24 17:51:38] @ Quit: bgupta: *.net *.split
[2010/02/24 17:51:38] @ Quit: nevyn: *.net *.split
[2010/02/24 17:51:39] @ Quit: jheiss: *.net *.split
[2010/02/24 17:51:47] @ \ask joined channel #puppet
[2010/02/24 17:53:18] @ unxfrek joined channel #puppet
[2010/02/24 17:53:18] @ keyur joined channel #puppet
[2010/02/24 17:53:18] @ cmoates joined channel #puppet
[2010/02/24 17:53:19] @ ahasenack joined channel #puppet
[2010/02/24 17:53:19] @ alban2 joined channel #puppet
[2010/02/24 17:53:19] @ bgupta joined channel #puppet
[2010/02/24 17:53:19] @ nevyn joined channel #puppet
[2010/02/24 17:53:19] @ jheiss joined channel #puppet
[2010/02/24 17:54:04] <jrojas> nice
[2010/02/24 18:01:35] @ Quit: notbrien: Quit: notbrien
[2010/02/24 18:02:16] @ Quit: malraid: Quit: malraid
[2010/02/24 18:03:33] @ Quit: giskard: Remote host closed the connection
[2010/02/24 18:05:47] @ Quit: biertie: Remote host closed the connection
[2010/02/24 18:07:06] @ biertie joined channel #puppet
[2010/02/24 18:09:48] <mrchucho> do the modules in /modules/ get imported by default or do I need to explicit import them?
[2010/02/24 18:10:49] <jamesturnbull> mrchucho: automatically
[2010/02/24 18:11:02] <mrchucho> jamesturnbull: thx
[2010/02/24 18:11:03] <jamesturnbull> mrchucho: everything that is a valid module in modulepath is auto-loaded
[2010/02/24 18:12:35] @ Quit: lak: Quit: lak
[2010/02/24 18:14:56] @ Quit: away: Quit: away
[2010/02/24 18:15:08] @ Quit: blahdeblah: Remote host closed the connection
[2010/02/24 18:15:37] @ blahdeblah joined channel #puppet
[2010/02/24 18:16:15] <plathrop> grrrr
[2010/02/24 18:16:22] <plathrop> generate() is upsetting me
[2010/02/24 18:23:49] @ swygue joined channel #puppet
[2010/02/24 18:25:29] <mrchucho> if I'm checking the syntax of my manifests w/ puppet, will THAT autoload everything in /modules/? (I'm thinking it may not...)
[2010/02/24 18:28:24] @ Quit: kaptk2: Quit: Leaving.
[2010/02/24 18:29:00] @ Quit: shine: Read error: Connection reset by peer
[2010/02/24 18:29:55] @ Aniya joined channel #puppet
[2010/02/24 18:31:06] <mrchucho> ah, specifying the modulepath worked: puppet -dv --modulepath modules/ manifests/site.pp
[2010/02/24 18:32:19] @ Quit: biertie: Ping timeout: 265 seconds
[2010/02/24 18:32:53] <plathrop>
[2010/02/24 18:33:35] @ Quit: ckauhaus: Quit: Leaving.
[2010/02/24 18:34:01] @ shine joined channel #puppet
[2010/02/24 18:34:32] * eric0 agrees with the gentleman from digg
[2010/02/24 18:34:32] @ biertie joined channel #puppet
[2010/02/24 18:35:51] @ Quit: pheezy: Remote host closed the connection
[2010/02/24 18:38:49] <jamesturnbull> mrchucho: yep that's the way to do it
[2010/02/24 18:39:18] @ Quit: biertie: Ping timeout: 252 seconds
[2010/02/24 18:39:38] @ biertie joined channel #puppet
[2010/02/24 18:42:23] @ Quit: unxfrek: Quit: Leaving
[2010/02/24 18:44:36] @ orbit joined channel #puppet
[2010/02/24 18:45:10] @ ezmobius joined channel #puppet
[2010/02/24 18:47:18] @ Quit: alban2: Ping timeout: 265 seconds
[2010/02/24 18:50:47] @ unxfrek joined channel #puppet
[2010/02/24 18:52:58] @ bwood joined channel #puppet
[2010/02/24 18:53:04] @ Quit: jmccune: Quit: leaving
[2010/02/24 18:53:18] @ Quit: Aniya:
[2010/02/24 18:56:09] @ Quit: shine: Ping timeout: 240 seconds
[2010/02/24 18:59:23] <cwebber> any1 know why I might be seeing this "rake reports:import REPORT_DIR /var/inst/puppet/var/reports"
[2010/02/24 18:59:25] <cwebber> sorry
[2010/02/24 18:59:30] <cwebber> when I run rake reports:import REPORT_DIR /var/inst/puppet/var/reports
[2010/02/24 18:59:45] <cwebber> I get Don't know how to build task 'REPORT_DIR'
[2010/02/24 19:00:18] <Volcane> REPORT_DIR=/var/inst/puppet/var/reports rake reports:import
[2010/02/24 19:00:51] <cwebber> Volcane: awesome thanks
[2010/02/24 19:01:13] @ Quit: mattwynne: Remote host closed the connection
[2010/02/24 19:01:14] <Volcane> REPORT_DIR is an environment variable
[2010/02/24 19:01:25] @ Quit: lilmatt: Quit: lilmatt
[2010/02/24 19:01:31] <cwebber> Volcane: should I submit a bug report for the documentation?
[2010/02/24 19:02:00] <Volcane> is it dashboard?
[2010/02/24 19:03:20] @ mrchucho left channel #puppet ()
[2010/02/24 19:04:17] @ mfoster left channel #puppet ()
[2010/02/24 19:07:21] @ shine joined channel #puppet
[2010/02/24 19:08:35] <raz> my puppet client says Failed to generate additional resources during transaction: Certificates were not trusted: hostname was not match with the server certificate
[2010/02/24 19:08:48] <raz> what gives?
[2010/02/24 19:10:03] @ Quit: autowidget: Ping timeout: 246 seconds
[2010/02/24 19:14:54] @ Quit: unxfrek: Quit: Leaving
[2010/02/24 19:18:10] <raz> i'm liking this less and less
[2010/02/24 19:19:37] <Volcane> you probably tried to specify a custom server option or --server without understanding the implications that has on ssl
[2010/02/24 19:19:38] @ Quit: londo: Read error: Operation timed out
[2010/02/24 19:19:49] <raz> no.
[2010/02/24 19:20:00] <raz> the client connects to "puppet" (which via /etc/hosts points to the master host)
[2010/02/24 19:20:20] <raz> that's host own idea of his hostname is something completely different (not puppet)
[2010/02/24 19:20:25] @ Quit: jfryman: Quit: ZNC - http://znc.sourceforge.net
[2010/02/24 19:20:50] @ londo joined channel #puppet
[2010/02/24 19:20:55] @ jfryman joined channel #puppet
[2010/02/24 19:21:02] <raz> it seems the puppet devs didn't understand the implications of enforcing hostname validation in SSL, in a situation where that makes absolutely zero sense
[2010/02/24 19:21:38] <raz> i'm now trying to generate a cert that says "puppet" on the server, but the commands are not helpful (none of the puppet commands bothers to provide a meaningful response to -h --help, much less a man page) and the google search is still going
[2010/02/24 19:22:16] @ mrchucho joined channel #puppet
[2010/02/24 19:22:26] <raz> considering this is supposed to be a systems tool, to make my sysadmin duty easier, i'm still underwhelmed so far
[2010/02/24 19:23:02] <raz> so how the heck do i tell this "puppet ca" to generate a keypair that simply says "puppet" because that's what the clients will expect?
[2010/02/24 19:23:06] <whack> raz: you should just need to set certname in puppet.conf and the puppetmaster will do that
[2010/02/24 19:23:23] <whack> ie; set certname in puppet.conf, blow away your ssl dir, run puppetmaster, it'll do everything
[2010/02/24 19:23:30] <raz> whack: certname=foo ?
[2010/02/24 19:23:44] <raz> because my puppet.conf doesn't have a line like that, yet. and i dunno where to find docs about puppet.conf
[2010/02/24 19:24:17] <raz> oh wait.. google found a puppet.conf man-page.. hmm.. why don't i have that on my debian host
[2010/02/24 19:24:26] <whack> fwiw, my puppetmaster's hostname isn't puppet, but it uses 'puppet' for a cert name
[2010/02/24 19:24:27] <plathrop> raz: puppetd --genconfig will give you a nicely commented puppet.conf - you have a valid point about the docs being sub-par.
[2010/02/24 19:24:49] <raz> i also have a valid point about TURN THE FUCKING HOSTNAME VALIDATION OFF
[2010/02/24 19:24:54] <raz> oops, sorry caps
[2010/02/24 19:25:28] <plathrop> raz: Not really. 99% of the time the puppet SSL stuff Just Works. When it doesn't it is 99% of the time a weird setup responsible for it.
[2010/02/24 19:25:41] <whack> [puppetmasterd]
[2010/02/24 19:25:44] <whack> certname = puppet
[2010/02/24 19:25:50] <plathrop> SSL makes my brain bleed. I've said it before I'll say it again.
[2010/02/24 19:26:04] <Volcane> whack: thats the default - unless this is a oldish ubuntu package
[2010/02/24 19:26:23] <whack> beats me, it's still in my puppet.conf for like 1.5 years
[2010/02/24 19:26:33] <raz> plathrop: that's not the point. the point is that puppet does something extraordinarily stupid with the potential to cause problems in many situations (google the error msg and you see that's already the case).
[2010/02/24 19:26:46] <raz> whack: thx, trying
[2010/02/24 19:26:53] <whack> what version of puppet are you on?
[2010/02/24 19:27:15] <raz> 0.20 according to dpkg
[2010/02/24 19:27:25] <raz> i chose to try a shrinkwrapped version first
[2010/02/24 19:27:51] * raz counts the seconds before he is told that he needs to upgrade to latest git HEAD for $reason
[2010/02/24 19:28:24] <whack> raz: I've never run on git head, though 0.20 seems quite old
[2010/02/24 19:28:40] <whack> I can't convey any experiences with that version
[2010/02/24 19:28:58] <whack> 0.23 (I think?) worked well for me with ssl stuff
[2010/02/24 19:29:05] <plathrop> 0.20 is ANCIENT
[2010/02/24 19:29:25] <whack> 0.24.8 in a brand new environment worked well too
[2010/02/24 19:29:36] @ Quit: mrchucho: Quit: mrchucho
[2010/02/24 19:29:38] <plathrop> raz: You need to upgrade. This has little to do with Puppet doing something stupid and a lot to do with Debian moving at a glacial pace.
[2010/02/24 19:30:30] <raz> the ssl problem is unrelated to versioning (unless you turned hostname validation off in a newer version)
[2010/02/24 19:30:37] <plathrop> raz: 0.24.8 is very stable, but is missing a lot of goodness. 0.25.4 is the latest stable.
[2010/02/24 19:30:47] <whack> raz: I don't know if 'certname=puppet' was default in 0.20
[2010/02/24 19:31:00] <whack> so all this pain you may be experiencing may be due to 'lack of sane defaults' that I cannot confirm
[2010/02/24 19:31:10] <raz> okay, fair call
[2010/02/24 19:31:11] <plathrop> raz: Actually, is can be completely related to versioning. Puppet does a lot f things that are smart now that it didn't do in earlier versions
[2010/02/24 19:31:17] <raz> looking if debian has a newer pkg somewhere
[2010/02/24 19:31:32] <whack> plathrop: agreed
[2010/02/24 19:31:36] <Volcane> raz: 0.20 is no doubt broken - and when upgrading clear out all the packages and all files in /etc/pupppet, the install the new packages else you'll have issues
[2010/02/24 19:32:13] <plathrop> To my knowledge Debian's official versions are still way behind, but there are debian-built packages for the newer versions.
[2010/02/24 19:32:48] <raz> yup i'm a bit confused right now because apparently 0.24.5 is in stable, checking why me box doesn't see it
[2010/02/24 19:33:04] <raz> ah got it
[2010/02/24 19:33:50] @ bitmonk joined channel #puppet
[2010/02/24 19:35:37] @ unxfrek joined channel #puppet
[2010/02/24 19:38:32] @ biertie_laptop joined channel #puppet
[2010/02/24 19:38:43] @ Quit: biertie: Ping timeout: 276 seconds
[2010/02/24 19:42:01] @ Quit: unxfrek: Quit: Leaving
[2010/02/24 19:44:35] <RedPepper> in gentoo which is almost bleeding edge the stable version is 0.24.8
[2010/02/24 19:44:41] <RedPepper> all others are masked
[2010/02/24 19:45:09] <raz> hm, cert problem is sorted out
[2010/02/24 19:45:14] <raz> first thing it tells me now is Failed to generate additional resources during transaction: Cannot access mount[plugins]
[2010/02/24 19:46:09] <raz> ah ok, learned about plugins
[2010/02/24 19:47:31] <whack> RedPepper: 0.25 has been out for a few months now
[2010/02/24 19:47:34] <whack> 0.25.x anyway
[2010/02/24 19:47:43] <raz> there is no "dry run" in puppet, right?
[2010/02/24 19:47:53] <raz> i'm supposed to run two puppetmasters and git between them?
[2010/02/24 19:47:56] <whack> there's --noop
[2010/02/24 19:48:18] <BarnacleBob> there is environments too
[2010/02/24 19:48:22] <raz> well i mean, when i say, edit site.pp and make a temporary save. then that will blow up on the clients, right?
[2010/02/24 19:48:48] <BarnacleBob> yes
[2010/02/24 19:48:48] <whack> probably not?
[2010/02/24 19:48:51] <BarnacleBob> perhaps
[2010/02/24 19:48:57] <whack> I don't know what you mean b y blow up
[2010/02/24 19:49:07] <whack> changing site.pp only will blow up if there are syntax errors
[2010/02/24 19:49:27] <raz> yea, let's say i accidently include a recipe that does rm -rf, or so
[2010/02/24 19:49:42] <raz> anyways, i get the idea
[2010/02/24 19:51:10] <BarnacleBob> raz
[2010/02/24 19:52:05] <BarnacleBob> the way i've setup things is i have 2 environments, but one puppet master. one environment points to /etc/puppet the other to /home/me/pupppet i test by doing a puppetd --test --environment=me to switch to my home dir. then i do an svn commit from home dir and an svn checkout in /etc/puppet
[2010/02/24 19:52:35] <raz> yup thx, i'll get something like that going if i go with puppet :)
[2010/02/24 19:53:09] <BarnacleBob> and you can combine that with --noop wich will only show the changes. not perform them
[2010/02/24 19:54:43] @ somnoliento joined channel #puppet
[2010/02/24 19:55:52] <somnoliento> Has anyone managed to install Skype through a puppet module? (I'm using Ubuntu)
[2010/02/24 19:56:31] <nevyn> BarnacleBob: ok that's shiny
[2010/02/24 19:58:17] <raz> ok, so to get started with this. what would be the puppet module to manage rc.local?
[2010/02/24 19:58:31] <BarnacleBob> well
[2010/02/24 19:58:37] <BarnacleBob> you can just copy the source file across
[2010/02/24 19:58:46] <BarnacleBob> or you can manage individual lines using some other trickery
[2010/02/24 19:59:03] <raz> copying full files (perhaps templated) would be good enough for a start :)
[2010/02/24 19:59:18] <raz> i looked through example42.com, but it's still all fairly greeky to me
[2010/02/24 19:59:35] <nevyn> copying full files is better (IMHO) than attempting to edit files with puppet
[2010/02/24 19:59:39] <nevyn> that way lies madness.
[2010/02/24 19:59:40] <nevyn> srsly
[2010/02/24 19:59:45] <BarnacleBob> yeah
[2010/02/24 19:59:48] <BarnacleBob> i avoid editing
[2010/02/24 19:59:51] <BarnacleBob> i have to edit grub.com
[2010/02/24 19:59:59] <raz> nevyn: i'll go there with authorized_keys, not looking forward to it :P
[2010/02/24 20:00:36] @ Quit: bevans5446: Quit: bevans5446
[2010/02/24 20:00:39] <nevyn> raz: template for authorized keys would be way more sensible. (if you can centralise the whole function)
[2010/02/24 20:01:07] <raz> well, later. right now i'd just like a simple module to copy a templated file to my hosts
[2010/02/24 20:01:31] <raz> imho that would also make a good example for those docs, instead of that amazingly useless "sudoer" example
[2010/02/24 20:02:08] <nevyn> well the useless sudoer example does copy a sudoers iirc
[2010/02/24 20:02:25] <weaselkeeper> I am trying to set up apache/passenger for puppetmaster, I had it working with puppet 0.24.8 and passenger 2.2.9, but when I upgraded to puppet 0.25.4 it broke. So I cleaned everything off, tried a fresh install of puppet 0.25.4 and passenger (installed via gem, now at v2.2.10) but am getting an error about " Got 2 failure(s) while initializing:" when making a puppet run from a client. suggestions?
[2010/02/24 20:03:47] <raz> well, yes, it copies a raw file, but doesn't tell about templating
[2010/02/24 20:04:02] <raz> not even about how to use a different file for each host
[2010/02/24 20:04:37] <nevyn> raz: ok so that's straightforward in my world these days but I get what you're saying
[2010/02/24 20:05:48] <weaselkeeper> (puppetmaster works fine, with built in webserver)
[2010/02/24 20:07:56] <raz> yea well, so where do i start about this?
[2010/02/24 20:08:25] <raz> and where do i learn about the filebucket stuff? the advanced example drops a few lines in there (to "allow file backups to the server") but doesn't tell a word about wtf that means
[2010/02/24 20:09:40] @ mrchucho joined channel #puppet
[2010/02/24 20:09:53] <weaselkeeper> filebucket is awesome, but yeah, it's like totally glossed over in the docs.
[2010/02/24 20:11:44] <raz> "docs" is an euphemism
[2010/02/24 20:13:20] @ Quit: mrchucho: Client Quit
[2010/02/24 20:14:20] <jamesturnbull> weaselkeeper: it's pretty clearly explained in the wiki:TypeReference
[2010/02/24 20:14:38] <jamesturnbull> weaselkeeper: but please feel free to log a ticket with areas you'd like explained more
[2010/02/24 20:15:16] <jamesturnbull> raz: you can try my book - that may help you further - http://tinyurl.com/pupbook
[2010/02/24 20:15:17] <weaselkeeper> appreciated, but right now I am focusing on beating up passenger and puppet to make them play nice for me :P
[2010/02/24 20:15:30] <raz> jamesturnbull: lol. no, i will not buy your book.
[2010/02/24 20:16:04] <raz> if i want bookselling technology then i'll go mess with some java crap, i hoped puppet was supposed to help me, not the other way round
[2010/02/24 20:16:05] @ mrchucho joined channel #puppet
[2010/02/24 20:16:37] <raz> so far i'm ~6 hours in and it hasn't written a single file for me. close to calling it a day.
[2010/02/24 20:16:57] <jamesturnbull> raz: so what's the issue?
[2010/02/24 20:17:18] <jamesturnbull> raz: do you have a specific error? or a use case I can explain?
[2010/02/24 20:17:20] @ Quit: cwebber: Quit: cwebber
[2010/02/24 20:17:21] <raz> a complete lack of meaningful beginner documentation
[2010/02/24 20:17:53] <jamesturnbull> raz: have you read Volcane's tutorial?
[2010/02/24 20:17:53] <raz> well, i'll pastebin what i have
[2010/02/24 20:18:14] <raz> hmm url?
[2010/02/24 20:18:59] <jamesturnbull> raz: http://www.devco.net/pubwiki/Puppet/GettingStarted/1
[2010/02/24 20:19:02] @ Quit: rellis: Remote host closed the connection
[2010/02/24 20:19:29] <raz> ahh, that's looking better at a glance, will follow that now
[2010/02/24 20:20:18] @ gwar9999 joined channel #puppet
[2010/02/24 20:21:04] <gwar9999> hey puppet gurus, can I do a require on a user defined function?
[2010/02/24 20:21:46] <kjetilho> on a define, yes
[2010/02/24 20:22:05] <kjetilho> what do you want to do?
[2010/02/24 20:22:08] <gwar9999> so it would be require => Define['name_of_func'] ?
[2010/02/24 20:22:17] <jamesturnbull> raz: Volcane who wrote that is around too and happy to answer questions
[2010/02/24 20:22:40] <raz> yea thx for the pointer, working on it right now
[2010/02/24 20:22:46] <jamesturnbull> raz: and you may find the book useful - your derision aside - feel free not to take my word for it and ask anyone in the channel
[2010/02/24 20:23:04] <gwar9999> The function adds a line to /etc/fstab and then I want to mount the fs. Obviously, the function needs to happen first.
[2010/02/24 20:23:04] <kjetilho> if you have a define like define webhost { file { "/var/www/$name": } }
[2010/02/24 20:23:08] * jamesturnbull is personally not fussed if you buy - anyone who thinks he makes money off it is smoking something I want to be smoking
[2010/02/24 20:23:17] <kjetilho> you can require => Webhost["somename"]
[2010/02/24 20:23:40] <raz> a question in the meantime: is the puppet fileserver secure insofar as that it will only allow clients to pull files that are part of their node definition? or can a hacked client pull *any* file it wants? (underlying question: is it safe to use a single puppetmaster for unrelated host groups of different projects)
[2010/02/24 20:23:42] <gwar9999> kjetilho: cool, thanks for the pointer
[2010/02/24 20:24:02] <jamesturnbull> raz: you can lock the fileserver down to IP/netmask
[2010/02/24 20:24:25] <raz> okay i'll take that as a no. so it'll have to be one puppetmaster per project/customer.
[2010/02/24 20:24:29] <jamesturnbull> raz: but if a client in the netspace is hacked .. well they can get any file for which that client has access
[2010/02/24 20:25:09] <kjetilho> if you use client modules, you don't have that finegrained access control, do you?
[2010/02/24 20:25:17] <kjetilho> except perhaps in the new auth.conf
[2010/02/24 20:25:32] <jamesturnbull> kjetilho: in the new auth.conf you do yes but not in 0.24.x
[2010/02/24 20:25:57] <raz> well, the question is if a single puppetmaster can be safely used to serve multiple unrelated host groups (isolating the files from one another, even if one of the groups is malicious and tries to get at the other groups' files)
[2010/02/24 20:26:11] <jamesturnbull> raz: yes
[2010/02/24 20:26:39] <jamesturnbull> raz: the client will only have access to the files it has access too - if can't access a file for which it hasn't got a resource defined for
[2010/02/24 20:26:50] <raz> ah okay, that sounds good
[2010/02/24 20:27:28] <jamesturnbull> raz: as it's Plain Old SSL (Tm) each client is also authenticated and encrypted from eavesdropping
[2010/02/24 20:28:05] <raz> yea, i do trust that part. ;) the question is how secure the puppetmaster is in that regard (i.e. does it actually enforce those rules)
[2010/02/24 20:28:13] <raz> you say yes, that's good :)
[2010/02/24 20:29:39] <jamesturnbull> raz: well the client connects and says "send me all the configuration data meant for me" - it can't pretend to be another client without that client's cert and key
[2010/02/24 20:30:19] <raz> yup, that's the easy part (SSL). the hard part is puppet actually verifying which files a given client is allowed to see :)
[2010/02/24 20:31:08] @ mrchucho left channel #puppet ()
[2010/02/24 20:31:34] @ synack- joined channel #puppet
[2010/02/24 20:34:06] <jamesturnbull> raz: yes - because it only sees files for which it has a resource defined
[2010/02/24 20:34:26] <raz> jamesturnbull: is that check in the client or in the puppetmaster?
[2010/02/24 20:34:33] <jamesturnbull> raz: the master
[2010/02/24 20:34:35] @ notbrien joined channel #puppet
[2010/02/24 20:34:36] <raz> k
[2010/02/24 20:36:36] @ pheezy joined channel #puppet
[2010/02/24 20:42:20] <raz> hm, is there a way to get a useful error msg out of the fileserver?
[2010/02/24 20:42:45] <raz> "Could not find server files" it says
[2010/02/24 20:43:10] <raz> so it seems to be able to connect, but can't see the file
[2010/02/24 20:43:19] <raz> followed the tutorial 1:1
[2010/02/24 20:44:22] @ Quit: Djelibeybi: Quit: Leaving
[2010/02/24 20:44:43] <eric0> you're missing a / in your puppet:///files/url/
[2010/02/24 20:45:17] <raz> hmm
[2010/02/24 20:45:39] <raz> source => "puppet:///files/bin_util/motd"
[2010/02/24 20:45:41] <raz> gives me
[2010/02/24 20:45:49] <raz> Cannot access mount[files]
[2010/02/24 20:46:12] @ sebas891 joined channel #puppet
[2010/02/24 20:46:48] <raz> oh...shoot
[2010/02/24 20:46:51] <raz> my bad, ignore me
[2010/02/24 20:47:03] <raz> had the allow line in the wrong section
[2010/02/24 20:47:44] <raz> ha. i just overwrote my first file. :)
[2010/02/24 20:47:59] @ Quit: \ask: Remote host closed the connection
[2010/02/24 20:48:58] @ \ask joined channel #puppet
[2010/02/24 20:49:37] @ plathrop is now known as plathrop-away
[2010/02/24 20:50:19] <somnoliento> I'm trying to install Skype through a puppet module. Is anyone here doing that? (I'm using Ubuntu)
[2010/02/24 20:53:20] <somnoliento> It seems skype doesn't sign their .deb packages, so I'm running up against unauthenticated install.
[2010/02/24 20:54:32] @ Quit: keyur: Read error: Connection reset by peer
[2010/02/24 20:55:24] <somnoliento> Should I create my own repo? Can I then sign *their* packages? Any other ideas?
[2010/02/24 20:57:05] <BarnacleBob> yeah you can sign it
[2010/02/24 20:58:08] @ Quit: teyo: Quit: teyo
[2010/02/24 20:58:09] <raz> can't you force install it? (complete puppet noob here, but my immediate reflex)
[2010/02/24 20:58:58] <BarnacleBob> not really
[2010/02/24 20:59:10] <BarnacleBob> puppet doesn't run the force command for you
[2010/02/24 20:59:26] <somnoliento> raz, I think puppet doesn't allow unauthenticated packages
[2010/02/24 20:59:40] <raz> sounds like a flaw to me then :)
[2010/02/24 20:59:48] <somnoliento> (see feature #556)
[2010/02/24 20:59:48] <gepetto> somnoliento: #556 is http://projects.reductivelabs.com/issues/show/556 "Puppet - Feature #556: apt provider should support --allow-unauthenticated option - ReductiveLabs.com"
[2010/02/24 20:59:51] <raz> (shame on skype, but puppet should allow flexibility no?)
[2010/02/24 21:00:40] @ Quit: pheezy: Remote host closed the connection
[2010/02/24 21:02:28] <somnoliento> Luke's last comment on that bug is pretty telling: I should be running my own repo. I was unsure whether I could sign someone else's package
[2010/02/24 21:03:05] <somnoliento> Or whether there was another way to handle Skype
[2010/02/24 21:03:43] <tessier> Wow, lots of cool puppet modules at http://git.black.co.at/ Unfortunately I don't know enough ruby or puppet to not be scared to death of installing any of this.
[2010/02/24 21:04:02] <raz> well, running your own apt repo as a prerequisite to puppet should not be the case
[2010/02/24 21:04:12] <tessier> But I really could use a quick and easy way to push munin out there
[2010/02/24 21:06:09] <somnoliento> raz, I agree.. there should be a --force option for apt. I was reading "My Own Private Debian Repository" and it doesn't look too scary
[2010/02/24 21:06:42] <raz> no, an apt repository is rather easy with debmirror
[2010/02/24 21:07:28] <raz> but puppet is clearly the one who must learn the flexibility. it doesn't make sense to start customizing your systems for puppet...
[2010/02/24 21:08:04] <raz> <-- all my vocal but irrelevant outsider opinion
[2010/02/24 21:08:19] @ pheezy joined channel #puppet
[2010/02/24 21:09:05] @ Quit: BarnacleBob: Quit: This computer has gone to sleep
[2010/02/24 21:09:18] <somnoliento> Well, it's mostly Skype's fault here. Puppet handles free software in a much cleaner way.
[2010/02/24 21:09:29] <somnoliento> Thanks.
[2010/02/24 21:09:31] @ Quit: somnoliento: Quit: Ex-Chat
[2010/02/24 21:10:37] <tessier> I think I had better just configure my own naive munin module for puppet rather than mess with stuff which is probably better but I don't understand.
[2010/02/24 21:15:19] @ rgsteele joined channel #puppet
[2010/02/24 21:15:40] @ alexine_dsouza joined channel #puppet
[2010/02/24 21:19:29] @ Quit: ahasenack: Quit: Leaving
[2010/02/24 21:26:04] @ Quit: Alagar: Ping timeout: 268 seconds
[2010/02/24 21:29:07] <rgsteele> I have a custom function that's returning the following array and storing it as a variable: ["foo","bar","baz"]. However, when I use a template that uses that variable, instead of iterating through the array, it just prints the literal array representation (i.e., ["foo","bar","baz"]). Here's the template, function and manifest if anybody can spot the issue: http://pastie.org/841696 I use...
[2010/02/24 21:29:09] <rgsteele> ...other templates with array variables, although this is the only array being returned by a custom function.
[2010/02/24 21:30:38] @ Quit: weaselkeeper: Quit: Leaving.
[2010/02/24 21:30:47] <rgsteele> Oh, and I checked the template syntax with erb and it says it's okay
[2010/02/24 21:33:13] @ Quit: \ask: Quit: Leaving...
[2010/02/24 21:33:34] <shadoi> You'd have to use eval to make it an array magically. You should use Array.new(var)
[2010/02/24 21:34:30] <rgsteele> shadoi: Oh - didn't think that would be the case. Lemme give it a shot. Thanks.
[2010/02/24 21:35:58] <rgsteele> shadoi: I can do that directly with the args passed to the function, skipping all that args.each business, right?
[2010/02/24 21:36:33] <shadoi> yeah but you have to do it before you iterate over it with that .each
[2010/02/24 21:37:03] <shadoi> hacf_nodelist should be the array right?
[2010/02/24 21:37:32] <rgsteele> shadoi: Oh, actually, I'm not passing in an array. I'm just passing in a string, and using that string to call an external Perl script that returns a Puppet-formatted array.
[2010/02/24 21:38:12] <shadoi> well whatever is accepting that "array" from perl needs to create a new Ruby array with it.
[2010/02/24 21:38:14] <rgsteele> shadoi: So, I'd have to call Array.new(hostlist) in the function definition, if I follow you correctly.
[2010/02/24 21:38:19] <shadoi> yeah
[2010/02/24 21:38:28] <rgsteele> shadoi: Gotcha, okay, lemme give it a shot.
[2010/02/24 21:39:35] <shadoi> a more sane way to do it would be to have your perl emit a JSON representation and have the ruby parse that. So you know you actually have an array.
[2010/02/24 21:39:51] <shadoi> But I'm a little pedantic. :)
[2010/02/24 21:40:59] @ Quit: pheezy: Remote host closed the connection
[2010/02/24 21:41:03] <rgsteele> shadoi: Yeah, I would rather do that. But as a baby step (getting it working), will having the Perl script emit a syntactically correct representation be legal fodder for Array.new()?
[2010/02/24 21:41:13] <shadoi> yeah
[2010/02/24 21:41:32] <shadoi> err.. wait
[2010/02/24 21:41:38] <shadoi> sort of glossed over that
[2010/02/24 21:42:08] <shadoi> yeah it does
[2010/02/24 21:42:24] <rgsteele> shadoi: If the Perl script returns ["foo","bar","baz"], I can call Array.new without throwing an exception, basically?
[2010/02/24 21:42:35] <shadoi> Array.new ["asdf","bads"]
[2010/02/24 21:42:42] <shadoi> works for me in irb :)
[2010/02/24 21:43:40] <shadoi> if it still treats it as a string you'll need to use eval for the dirty hack
[2010/02/24 21:44:09] <rgsteele> shadoi: Keen, works. Thanks for the tip. I'll definitely be refactoring to emit JSON instead of cheating :)
[2010/02/24 21:44:17] <rgsteele> shadoi: Oh crap, no it doesn't
[2010/02/24 21:44:23] <rgsteele> Shucks
[2010/02/24 21:44:29] <shadoi> yeah figured it'd be quoted
[2010/02/24 21:44:40] <shadoi> eval is the ugly way, it'll work fine though
[2010/02/24 21:44:51] <shadoi> eval '["foo","bar","baz"]'
[2010/02/24 21:45:30] <rgsteele> shadoi: Hm, do I still need to call Array.new, then?
[2010/02/24 21:45:33] <shadoi> nope
[2010/02/24 21:47:15] <rgsteele> shadoi: Hm... doing "eval hostlist" (sans quotes) still treats it literally.
[2010/02/24 21:47:30] @ pheezy joined channel #puppet
[2010/02/24 21:47:44] <shadoi> eval("#{hostlist}")
[2010/02/24 21:47:46] <shadoi> try that
[2010/02/24 21:48:26] <shadoi> assuming hostlist actually has the string that looks like an array. :)
[2010/02/24 21:48:59] <rgsteele> shadoi: No dice.
[2010/02/24 21:49:04] <rgsteele> But, it does look like an array
[2010/02/24 21:49:15] <shadoi> So you must be in the puppet parser context
[2010/02/24 21:49:20] <shadoi> in which case I don't think that'll work.
[2010/02/24 21:49:33] <shadoi> Only in an erb template
[2010/02/24 21:50:36] <rgsteele> shadoi: Hm, well, is there any way to get Puppet to (for lack of a better term) typecast the return value? Obviously, it's treating it as a quoted string.
[2010/02/24 21:50:57] <shadoi> Nope, there aren't any language features in puppet for doing that kind of craziness. :)
[2010/02/24 21:51:05] <rgsteele> I tried surrounding the call to fetchNodes in square brackets in the manifest, but it didn't help.
[2010/02/24 21:51:41] <shadoi> You need to have your custom function do all the heavy lifting in the ruby context
[2010/02/24 21:52:42] <rgsteele> shadoi: Shouldn't be too hard, I just need to figure out exactly what the lifting entails.
[2010/02/24 21:52:57] @ Quit: jes5: Quit: Leaving.
[2010/02/24 21:53:15] <shadoi> Are you using external_nodes?
[2010/02/24 21:53:51] <rgsteele> shadoi: Nope
[2010/02/24 21:55:34] <rgsteele> shadoi: Looking at http://reductivelabs.com/trac/puppet/wiki/LDAPNodes and they do what I'm looking for there.
[2010/02/24 21:55:59] <rgsteele> Returning arrays from functions, anyways
[2010/02/24 21:57:16] <rgsteele> shadoi: I bet I can get the function to convert the string returned by the Perl script to an array
[2010/02/24 21:57:20] <shadoi> hmm... yeah I think I'd still use an external_node script to get the nodes I want out of LDAP... Anyway, you probably want someone who's intimately familiar with puppet functions to help you.
[2010/02/24 21:57:21] <rgsteele> And solve the problem that way
[2010/02/24 21:57:38] <shadoi> Yeah, thats basically what I thought you were doing to begin with. ;)
[2010/02/24 21:58:09] <rgsteele> shadoi: I was just blindly returning the thing-that-looks-like-an-array-but-is-obviously-not :)
[2010/02/24 21:58:17] <shadoi> yeah
[2010/02/24 21:58:24] <shadoi> you can eval it at that point before you return it.
[2010/02/24 21:59:24] <rgsteele> shadoi: I think the issue is that the returned value from the Perl script has double-quoted elements.
[2010/02/24 21:59:30] <rgsteele> I bet if I stripped them out, the eval would work
[2010/02/24 22:00:31] <shadoi> no that shouldn't matter
[2010/02/24 22:00:46] <shadoi> eval('["foo","bar","baz"]') works fine
[2010/02/24 22:02:20] @ Quit: rgsteele: Remote host closed the connection
[2010/02/24 22:03:15] @ rgsteele joined channel #puppet
[2010/02/24 22:03:49] <rgsteele> shadoi: Sorry, client freaked.
[2010/02/24 22:03:57] <rgsteele> Last thing I saw was "it shouldn't matter"
[2010/02/24 22:05:04] <tessier> If I want to create a ton of symlinks from a list can I some how use an array in a file { } type?
[2010/02/24 22:05:42] <tessier> file { "/etc/opt/munin/plugins/$plugins": ensure => "/opt/munin/lib/plugins/$plugins" } with $plugins=["cpu","df_inode","entropy"] is just getting me one huge symlink named cpudf_inodeentropy
[2010/02/24 22:06:00] @ Quit: jab_doa: Quit: Verlassend
[2010/02/24 22:06:26] @ Quit: mizzy: Ping timeout: 245 seconds
[2010/02/24 22:06:56] <shadoi> yeah, it's printing the array as a string
[2010/02/24 22:07:05] <tessier> Yep.
[2010/02/24 22:07:12] <shadoi> you can't use real ruby language constructs in the puppet language.
[2010/02/24 22:07:16] <shadoi> it's a completely different parser.
[2010/02/24 22:07:27] <tessier> Maybe I need a define...
[2010/02/24 22:07:34] @ Quit: alexine_dsouza: Read error: Connection reset by peer
[2010/02/24 22:07:45] <tessier> shadoi: I know. But the puppet language does have some minimal facility for arrays.
[2010/02/24 22:07:46] @ Quit: nareshov: Read error: Connection reset by peer
[2010/02/24 22:07:54] <shadoi> yeah
[2010/02/24 22:08:07] <tessier> I have found a couple of examples but none that quite do what I want. Although this define might be close...
[2010/02/24 22:08:17] <rgsteele> shadoi: You know what - in irb, eval(hostlist) works
[2010/02/24 22:08:29] <rgsteele> So, it *is* passing an array back from the function
[2010/02/24 22:08:33] <shadoi> rgsteele: yeah I was surprised you were having issues, it's because you weren't in ruby.
[2010/02/24 22:08:36] @ alexine_dsouza joined channel #puppet
[2010/02/24 22:08:47] <shadoi> well eval turns it into one
[2010/02/24 22:08:54] <shadoi> eval works with strings
[2010/02/24 22:09:00] @ naresh joined channel #puppet
[2010/02/24 22:09:03] <shadoi> to convert them into language constructs
[2010/02/24 22:10:17] <rgsteele> shadoi: It's supposed to?
[2010/02/24 22:10:23] <shadoi> yes, that's it's purpose
[2010/02/24 22:10:47] <shadoi> eval("1").is_a? Integer => true
[2010/02/24 22:10:50] <rgsteele> Into Puppet language constructs you mean?
[2010/02/24 22:10:53] <shadoi> no, ruby.
[2010/02/24 22:11:09] <shadoi> puppet functions are written in ruby.
[2010/02/24 22:11:12] <rgsteele> Oh, yeah.
[2010/02/24 22:11:15] <rgsteele> Yep.
[2010/02/24 22:11:34] <rgsteele> But apparently, puppet interprets everything returned from functions as a string?
[2010/02/24 22:11:51] <shadoi> by default, probably
[2010/02/24 22:12:01] <zahna> when setting ownership on a file, puppet should use users available on the client system, right?
[2010/02/24 22:12:02] <shadoi> I can't remember if there are ways to create puppet language constructs in a function
[2010/02/24 22:12:13] <shadoi> I think you can for the Types
[2010/02/24 22:12:31] <shadoi> Puppet::Type.new("file", object) or something similar
[2010/02/24 22:12:54] @ autowidget joined channel #puppet
[2010/02/24 22:13:05] <zahna> i have my users in ldap, but i'm getting a "Could not find
[2010/02/24 22:13:08] <zahna> user" message
[2010/02/24 22:13:29] <zahna> i know the user exists because running a "getent passwd" shows it
[2010/02/24 22:13:35] <shadoi> zahna: does the puppet client run as a user that can do a lookup via ldap?
[2010/02/24 22:13:59] <tessier> php::pear { ["ldap", "mysql", "ps", "snmp", "sqlite", "tidy", "xmlrpc"]: } What is that : on the end there for?
[2010/02/24 22:14:06] <tessier> From http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#arrays
[2010/02/24 22:14:18] <zahna> shadoi: any user can do an ldap lookup, via nsswitch, so yes
[2010/02/24 22:14:29] <shadoi> tessier: because it's using that as a puppet "name"
[2010/02/24 22:14:34] <tessier> I am using that example with my own array values and a File instead of a package and getting a syntax error.
[2010/02/24 22:14:45] <tessier> Hmm...
[2010/02/24 22:14:49] <shadoi> it's a puppet construct that says (all of these things) are part of this definition
[2010/02/24 22:15:27] <tessier> So http://pastebin.ca/1808991 needs to be done differently?
[2010/02/24 22:16:35] <shadoi> ... man it's been a while since I looked at puppet stuff. I think it should work...
[2010/02/24 22:17:08] <shadoi> maybe no []
[2010/02/24 22:17:12] <tessier> It doesn't. :) puppetd[29426]: Could not retrieve catalog: Syntax error at '/'; expected ']' at /etc/puppet/modules/munin/manifests/init.pp:86 on node
[2010/02/24 22:17:46] @ autonomouswidget joined channel #puppet
[2010/02/24 22:18:49] <tessier> bbiab...
[2010/02/24 22:18:50] <shadoi> try putting the plugins back in your array and using that like plugins {$array_of_plugins:}
[2010/02/24 22:19:18] <tessier> putting the plugins back in?
[2010/02/24 22:19:41] <shadoi> $array_of_plugins = ["cpu", "df_inode" ... ]
[2010/02/24 22:20:52] @ Quit: keds: Read error: Connection reset by peer
[2010/02/24 22:20:58] <rgsteele> shadoi: Check out the last function here - looks possible: http://reductivelabs.com/trac/puppet/wiki/Recipes/cron.
[2010/02/24 22:21:07] @ Quit: autowidget: Ping timeout: 240 seconds
[2010/02/24 22:21:07] @ autonomouswidget is now known as autowidget
[2010/02/24 22:21:27] @ artista_frustrad joined channel #puppet
[2010/02/24 22:21:35] <shadoi> rgsteele: yeah, no problem
[2010/02/24 22:21:38] @ mizzy joined channel #puppet
[2010/02/24 22:21:54] <shadoi> just take that string that your perl func returns, run eval on it, and it's an array you can return then.
[2010/02/24 22:23:17] <rgsteele> shadoi: Yeah, but unfortunately, in the template, it still evaluates it as a string
[2010/02/24 22:23:43] <rgsteele> So, that means what I have *currently* is being treated as a string, not an Array
[2010/02/24 22:23:51] <rgsteele> Hopefully with some tweaking, I can change that
[2010/02/24 22:24:02] @ Quit: ashp: Ping timeout: 268 seconds
[2010/02/24 22:24:06] @ ashp joined channel #puppet
[2010/02/24 22:24:29] <shadoi> paste your Parser::Function how you have it now
[2010/02/24 22:26:04] <rgsteele> http://pastie.org/841769
[2010/02/24 22:26:14] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/02/24 22:26:46] <shadoi> I suppose it's possible that when you get it out of the parser function in puppet it's converted back to a string
[2010/02/24 22:26:59] <shadoi> in which case, in your template if you want it to be an array, use eval again.
[2010/02/24 22:27:17] <shadoi> <%= eval(hostlist) %>
[2010/02/24 22:27:41] <shadoi> so you can iterate over it
[2010/02/24 22:30:08] @ bodepd left channel #puppet ()
[2010/02/24 22:31:26] <rgsteele> shadoi: Closer - for some reason, it only printed the last two elements of the array. In the template I used <% eval(hacf_nodelist).each do |val| -%>
[2010/02/24 22:31:34] <rgsteele> shadoi: I'm gonna keep tinkering with it.
[2010/02/24 22:31:41] <rgsteele> THanks so much for your input, it's been truly helpful
[2010/02/24 22:32:04] <shadoi> no problem. sorry, I'm not as familiar with puppet specifics as I used to be. :)
[2010/02/24 22:34:28] <rgsteele> shadoi: No worries. It's a step in the right direction. I think the eval isn't doing quite what I expect in the template.
[2010/02/24 22:34:44] <rgsteele> It does the same thing if I return the string from the function, and just eval in the template.
[2010/02/24 22:36:21] @ Azrael joined channel #puppet
[2010/02/24 22:36:40] @ mordy joined channel #puppet
[2010/02/24 22:37:13] @ maxagaz joined channel #puppet
[2010/02/24 22:38:04] @ autonomouswidget joined channel #puppet
[2010/02/24 22:39:05] <rgsteele> shadoi: Oh, it works!
[2010/02/24 22:41:16] <rgsteele> shadoi: Converting in to an array in the function was useless, because Puppet quotes whatever you return. So, I was able to simply eval the string in the template and it had no problem evaluating in in a Ruby-ish context.
[2010/02/24 22:41:34] <shadoi> *nod*
[2010/02/24 22:41:35] <shadoi> cool
[2010/02/24 22:42:32] @ Quit: autowidget: Ping timeout: 269 seconds
[2010/02/24 22:42:32] @ autonomouswidget is now known as autowidget
[2010/02/24 22:43:57] <rgsteele> shadoi: Hah! It works when I use --noop, but when I actually run it, it complains about converting an Array into a String (i.e., it already thinks it's an array, even though it prints it as a String literal).
[2010/02/24 22:44:00] <rgsteele> Weeeeiirrd
[2010/02/24 22:44:25] <shadoi> yeah, bizarre.
[2010/02/24 22:45:02] <shadoi> external_nodes ftw. :)
[2010/02/24 22:45:24] <shadoi> gotta run
[2010/02/24 22:47:58] <rgsteele> shadoi: See ya
[2010/02/24 22:49:28] @ Quit: cliff-hm: Ping timeout: 256 seconds
[2010/02/24 22:53:23] <rgsteele> shadoi: Finally got it
[2010/02/24 22:53:35] <rgsteele> I had to manipulate the string in the function before returning it.
[2010/02/24 22:53:53] <zahna> shadoi: ugh. i think i figured it out. sorry. this was the first boot of a new server just getting done being kickstarted. puppet installs ldap and i didn't restart puppetd after that first run, so the user didn't pick up the new nsswitch settings.
[2010/02/24 22:54:00] <rgsteele> It was the formatting. I stripped the brackets and quotes, then split on the comma, and reeeturneeed that value
[2010/02/24 22:54:51] <zahna> i'm wondering if i should perform an initial puppet run right after the kickstart install and before the machine reboots...
[2010/02/24 22:55:56] @ artista_frustrad joined channel #puppet
[2010/02/24 22:57:06] @ Quit: pheezy: Remote host closed the connection
[2010/02/24 22:57:26] @ Quit: shadoi: Quit: Leaving.
[2010/02/24 23:00:33] @ Quit: artista_frustrad: Ping timeout: 265 seconds
[2010/02/24 23:04:13] @ Quit: pting: Quit: Ex-Chat
[2010/02/24 23:17:48] @ autonomouswidget joined channel #puppet
[2010/02/24 23:19:09] @ Quit: autowidget: Read error: Connection reset by peer
[2010/02/24 23:19:19] @ autowidget joined channel #puppet
[2010/02/24 23:19:36] @ Quit: autowidget: Client Quit
[2010/02/24 23:19:44] @ jimi_c joined channel #puppet
[2010/02/24 23:20:54] <raz> anyone here using nagios? are you generally happy with it?
[2010/02/24 23:21:49] <jimi_c> yes, and define happy...
[2010/02/24 23:22:16] @ Quit: autonomouswidget: Ping timeout: 245 seconds
[2010/02/24 23:22:27] <jimi_c> it works, it's very customizable, but it's also kind of a pain in the ass to setup
[2010/02/24 23:22:36] <jimi_c> for instance, it's always a pain to add new systems
[2010/02/24 23:22:58] <raz> ah, so would you theoretically look at a hosted solution if it did the same things but nicer?
[2010/02/24 23:22:59] <jimi_c> the fact that they haven't added an official database backend after all these years (i started using it in 2002) is odd
[2010/02/24 23:23:11] <raz> i'm asking because i'm pondering to build such a thing (after being sorta fed up with munin, nagios and the ilk)
[2010/02/24 23:23:29] <jimi_c> there are some other options as well, but I haven't tried them out
[2010/02/24 23:24:14] <jimi_c> i'd love an enterprise-grade monitoring solution, something that'd scale to thousands of systems easily, nagios definitely doesn't fit that bill
[2010/02/24 23:24:15] <raz> i've sort-of-settled on munin for now, but mostly because it seems to be the least pita, not because it's particularly good ;)
[2010/02/24 23:24:30] <raz> jimi_c: would you pay for it?
[2010/02/24 23:24:36] @ Quit: sebas891: Quit: Leaving.
[2010/02/24 23:24:47] <stahnma> icinga releases officially in like 6 days or something
[2010/02/24 23:24:57] <stahnma> which is monitoring (fork of nagios)
[2010/02/24 23:25:06] <stahnma> if I get some time, I'd like t play with that
[2010/02/24 23:25:24] <raz> a fork..hmm.. not betting too much of that
[2010/02/24 23:25:29] <raz> imo they really need to get rid of that codebase
[2010/02/24 23:25:58] <stahnma> they dropped a lot of the code from what I have read...but I haven't played with it yet
[2010/02/24 23:26:12] <jimi_c> i wouldn't pay for it, but i generally work for the kinds of companies that like to pay for support so they can blame then when things break :)
[2010/02/24 23:26:32] <raz> hehe, yea
[2010/02/24 23:26:49] <raz> well, building one would be serious undertaking, i'd probably shoot for a hosted service to make some money off it
[2010/02/24 23:27:14] <raz> but then again..not sure if there's even a market
[2010/02/24 23:27:20] <raz> so far everyone seems to be putting up with nagios
[2010/02/24 23:27:23] <stahnma> http://flapjack-project.com is another one that's been getting some attention
[2010/02/24 23:27:54] <stahnma> raz: some use zabbix, or some million dollar tivoli, openview, unicenter type stuff
[2010/02/24 23:28:05] <stahnma> it's kind of a saturated market
[2010/02/24 23:28:13] <jimi_c> i hadn't seen munin before, looks more like a cacti replacement than a nagios replacement
[2010/02/24 23:28:30] <raz> yea munin is only for graphs, can do alerting but rather weak
[2010/02/24 23:28:41] <jimi_c> cacti is kind of a bear to setup too
[2010/02/24 23:28:56] <raz> hmm flapjack looks... wierd
[2010/02/24 23:29:12] <jimi_c> we use both nagios and cacti right now, transitioning to a closed-source solution now
[2010/02/24 23:29:25] <raz> jimi_c: which one if i may ask?
[2010/02/24 23:29:29] <jimi_c> spectrum
[2010/02/24 23:29:59] <raz> hmm is that any good?
[2010/02/24 23:30:12] <raz> the page looks very enterprisey with no screenshots
[2010/02/24 23:30:59] <jimi_c> it seems ok, it's a computer associates product... so of course it's enterprisey
[2010/02/24 23:34:55] <jimi_c> we do 90% of our stuff with snmp right now, so just about anything could be a drop in replacement
[2010/02/24 23:35:13] <jimi_c> i want more of an snmptrap system though, rather than a polling setup like we have now
[2010/02/24 23:36:26] <raz> hmm snmp. never got warm with that.
[2010/02/24 23:38:08] <nevyn> jimi_c: spectrum WHAT?
[2010/02/24 23:38:35] <jimi_c> huh?
[2010/02/24 23:38:49] <nevyn> spectrum is a ca brand not a product
[2010/02/24 23:38:57] <nevyn> there's like 15 spectrum products
[2010/02/24 23:39:31] <nevyn> so CA have 3 big brands Spectrum, Unicentre, and Wiley
[2010/02/24 23:40:27] <nevyn> on the up side.. spectrum is doing away with agents for the most part (YAY)
[2010/02/24 23:40:35] <raz> just looking at their web page gives me the chills
[2010/02/24 23:41:06] <raz> i mean, that's the stuff that you don't even get to look at without inviting a team of suits with a beamer and ppt slides, right?
[2010/02/24 23:41:32] * nevyn is about to head off to what I call the "CA/<Mycompany> lovefests" which happen montly
[2010/02/24 23:41:45] <nevyn> or candlelit suppers
[2010/02/24 23:41:51] <jimi_c> gotcha, it's actually being handled by a new team.. i'm just on the linux team. they just called it spectrum, but i'm assuming it's the infrastructure manager product
[2010/02/24 23:42:12] <raz> is there..like.. a screenshot of that, anywhere? ;)
[2010/02/24 23:42:31] <raz> i'd be curious to know what it even is
[2010/02/24 23:42:51] <nevyn> so spectrum seems to be not terrible. we had enormous scaling problems with NSM (that said we were aqbusing it terribly)
[2010/02/24 23:42:54] @ cwebber joined channel #puppet
[2010/02/24 23:42:55] <raz> once got a glimpse at a hideously expensive monitoring thingy from ibm and that was quite a joke. a bad joke with a win32 gui.
[2010/02/24 23:43:04] <jimi_c> raz: http://www.ca.com/files/Demos/spectrum-flash-demo_204342.swf
[2010/02/24 23:43:35] <jimi_c> that's the whole spectrum overview i think...
[2010/02/24 23:44:13] <jimi_c> nm, that's the automation manager...
[2010/02/24 23:44:39] <raz> well, the short glimpses at the ui don't even look to bad
[2010/02/24 23:45:00] <raz> but seeing all the idiotic stock photo pretty people i'm glad i have the sound off
[2010/02/24 23:45:03] <nevyn> the shiny things are stuff like Spectrum SSA which provide a business view portal of "availibility" and health of services
[2010/02/24 23:45:14] <nevyn> and SAM looks really neat.
[2010/02/24 23:45:43] <nevyn> SAM has a workflow system that mere mortals can comprehend and use.
[2010/02/24 23:46:24] <jimi_c> yeah SAM is what we're using: http://ca.com/media/sam/Start_CA_SAM.html
[2010/02/24 23:47:11] <nevyn> sam is shiny..
[2010/02/24 23:47:30] <raz> what does it do?
[2010/02/24 23:47:31] <nevyn> particularly when combined with something like VMware Orchestrator
[2010/02/24 23:48:00] <nevyn> raz: it allows you to do "shopping cart" style system deployments
[2010/02/24 23:48:09] @ Quit: notbrien: Quit: notbrien
[2010/02/24 23:48:50] <nevyn> so it hooks to your service desk and virtualisation platform and let's you create a workflow to do stuff like
[2010/02/24 23:49:33] <nevyn> fred in development wants a set of machines to do UAT for 3 weeks with oracle on one and websphere on another and apache/php on the third
[2010/02/24 23:50:07] <nevyn> and does stuff like mail him when the 3 weeks is up. and say "your machines are about to expire"
[2010/02/24 23:50:22] <nevyn> so cloudy deployment and reabsortion type stuff
[2010/02/24 23:50:49] <raz> hmm yea.. well.. watching that flash cast how it drills down all the way to a "webservice call" (probably some java thing) i can just not imagine how that can ever possibly work
[2010/02/24 23:51:11] <nevyn> heh
[2010/02/24 23:51:12] <raz> i guess you must either be smoking immense amount of crack, or build your entire infrastructure around this stuff
[2010/02/24 23:51:28] <nevyn> I work in a CA shop
[2010/02/24 23:51:46] <nevyn> and that causes much consternation and gnashing of teeth
[2010/02/24 23:51:59] <nevyn> but the high level concept stuff is suitably awesome
[2010/02/24 23:52:24] <raz> yea absolutely. who doesn't love to get a little "business risk" gauge on their dashboard
[2010/02/24 23:52:37] <nevyn> raz: right.
[2010/02/24 23:52:38] <raz> but i mean, wtf? i feel bullshitted like when watching one of these "foreman grill" ads on tv
[2010/02/24 23:53:04] <nevyn> don't get me wrong. there are things about CA's stuff that are ugly and stupid.
[2010/02/24 23:53:07] <raz> or rather "hyper duster" or "snuggie2000", "uber mob" .. all rolled into one
[2010/02/24 23:53:23] <nevyn> the Unicenter NSM stuff caused much much pain
[2010/02/24 23:53:53] <raz> but i can totally see how they sell this stuff on the exec level, probably for 6 digit figures
[2010/02/24 23:54:12] <nevyn> jimi_c: do not let a seperate team run spectrum.
[2010/02/24 23:54:44] <nevyn> jimi_c: the people running spectrum need to be sysadmins or friends with sysadmins this is the biggest thing that's gone horribly wrong here.
[2010/02/24 23:55:52] <raz> lol... that CA SAM video is hilarious.. and it just won't stop
[2010/02/24 23:56:20] <jimi_c> out of my hands unfortunately :/
[2010/02/24 23:56:33] <nevyn> jimi_c: make these people your friends
[2010/02/24 23:56:38] <raz> next they will sarah will fix iraq from her service dashboard and the risk to quality will finally be eliminated
[2010/02/24 23:57:15] <nevyn> that doesn't sound like same that sounds like SSA
[2010/02/24 23:57:43] @ Quit: cwebber: Quit: cwebber
[2010/02/24 23:57:50] <raz> does SAM work *anywhere* near like they show in that video?
[2010/02/24 23:57:57] <nevyn> yes.

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