| [2009/04/16 00:07:25] @ Log started by gepetto | ||
| [2009/04/16 00:07:25] @ Quit: rdaugherty: Read error: 113 (No route to host) | ||
| [2009/04/16 00:07:37] @ pdt joined channel #puppet | ||
| [2009/04/16 00:10:33] @ Quit: fsweetser: Remote closed the connection | ||
| [2009/04/16 00:10:59] @ fsweetser joined channel #puppet | ||
| [2009/04/16 00:13:35] @ lak joined channel #puppet | ||
| [2009/04/16 00:15:59] @ fujin- is now known as fujin | ||
| [2009/04/16 00:21:42] @ Quit: axisys: Read error: 110 (Connection timed out) | ||
| [2009/04/16 00:30:14] @ twocs left channel #puppet () | ||
| [2009/04/16 00:30:31] <cwebber> can you set noop => true on a node? | ||
| [2009/04/16 00:34:04] @ pipes joined channel #puppet | ||
| [2009/04/16 00:34:07] @ Quit: ethan_rowe: "Lack of interest wins out." | ||
| [2009/04/16 00:34:56] @ Quit: pipes: Client Quit | ||
| [2009/04/16 00:38:00] @ Quit: pdt: | ||
| [2009/04/16 00:39:25] @ axisys joined channel #puppet | ||
| [2009/04/16 00:58:21] @ Quit: lak: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 01:10:48] @ Quit: cwebber: | ||
| [2009/04/16 01:36:11] @ Innocenti joined channel #puppet | ||
| [2009/04/16 01:38:08] @ chip__ is now known as atlan_ | ||
| [2009/04/16 01:40:16] @ lak joined channel #puppet | ||
| [2009/04/16 01:41:42] @ Quit: andrewcshafer: | ||
| [2009/04/16 01:42:07] @ andrewcshafer joined channel #puppet | ||
| [2009/04/16 01:42:10] @ Quit: axisys: Read error: 110 (Connection timed out) | ||
| [2009/04/16 01:46:38] @ Quit: fujin: "Leaving..." | ||
| [2009/04/16 01:48:44] @ Quit: andrewcshafer: | ||
| [2009/04/16 01:49:22] @ WALoeIII joined channel #puppet | ||
| [2009/04/16 01:50:46] @ Quit: tuf: "Look whos tuf now.." | ||
| [2009/04/16 01:52:44] @ pleemans joined channel #puppet | ||
| [2009/04/16 01:53:35] @ Quit: Innocenti: Connection timed out | ||
| [2009/04/16 02:00:38] @ kibaho1 joined channel #puppet | ||
| [2009/04/16 02:02:42] @ Quit: lak: | ||
| [2009/04/16 02:33:44] @ kolla joined channel #puppet | ||
| [2009/04/16 02:39:25] @ Quit: raphink: Remote closed the connection | ||
| [2009/04/16 02:40:35] @ raphink joined channel #puppet | ||
| [2009/04/16 02:44:36] @ stijnbe joined channel #puppet | ||
| [2009/04/16 02:55:28] @ edwardam joined channel #puppet | ||
| [2009/04/16 02:57:43] @ axisys joined channel #puppet | ||
| [2009/04/16 03:01:27] @ madrescher joined channel #puppet | ||
| [2009/04/16 03:01:32] @ mikepea joined channel #puppet | ||
| [2009/04/16 03:06:41] @ Innocenti joined channel #puppet | ||
| [2009/04/16 03:08:25] @ MattyM joined channel #puppet | ||
| [2009/04/16 03:09:30] <FiXion> hmm - I seem to have a problem that is related to using puppet 0.24.5 on client and 0.24.4 on server | ||
| [2009/04/16 03:09:33] <FiXion> :( | ||
| [2009/04/16 03:10:00] <FiXion> http://pastebin.com/m228ca85a | ||
| [2009/04/16 03:10:15] <FiXion> on a 0.24.4 client everything works perfectly - no complaining | ||
| [2009/04/16 03:11:16] <Djelibeybi> FiXion: server is always supposed to be a higher version than clients. That's why you need to upgrade the server first. | ||
| [2009/04/16 03:11:20] @ Quit: drmikecrowe: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 03:12:54] <FiXion> Djelibeybi: ok - I'll try that. | ||
| [2009/04/16 03:14:00] @ Quit: madrescher: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 03:22:52] @ DerekW joined channel #puppet | ||
| [2009/04/16 03:24:34] @ PaulWay left channel #puppet () | ||
| [2009/04/16 03:27:41] @ cirquitz joined channel #puppet | ||
| [2009/04/16 03:31:05] @ Quit: cirquitz: Read error: 113 (No route to host) | ||
| [2009/04/16 03:34:37] @ fbe_ joined channel #puppet | ||
| [2009/04/16 03:38:10] @ Quit: mikepea: | ||
| [2009/04/16 03:39:55] @ Sisys joined channel #puppet | ||
| [2009/04/16 03:40:04] @ HarryCalahan joined channel #puppet | ||
| [2009/04/16 03:41:54] @ Quit: Sisys: Client Quit | ||
| [2009/04/16 03:42:01] <ohadlevy> can I inherit a define and override a file inside it? | ||
| [2009/04/16 03:42:07] @ nakano_ is now known as nakano | ||
| [2009/04/16 03:51:08] @ Quit: fbe: Read error: 110 (Connection timed out) | ||
| [2009/04/16 03:51:40] @ nakano is now known as nakano_ | ||
| [2009/04/16 03:59:19] @ Quit: Djelibeybi: "Leaving" | ||
| [2009/04/16 04:07:47] @ Quit: edwardam: Remote closed the connection | ||
| [2009/04/16 04:11:04] @ mvn071 joined channel #puppet | ||
| [2009/04/16 04:15:54] @ fbe_ is now known as fbe | ||
| [2009/04/16 04:20:21] @ Quit: raphink: Read error: 54 (Connection reset by peer) | ||
| [2009/04/16 04:21:46] @ raphink joined channel #puppet | ||
| [2009/04/16 04:31:34] @ Quit: DarkFlib: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 04:32:47] @ DarkFlib joined channel #puppet | ||
| [2009/04/16 04:37:50] @ keithlard joined channel #puppet | ||
| [2009/04/16 04:41:48] @ mikepea joined channel #puppet | ||
| [2009/04/16 04:43:03] @ Quit: maxagaz: Remote closed the connection | ||
| [2009/04/16 04:43:24] @ maxagaz joined channel #puppet | ||
| [2009/04/16 04:53:34] @ alban2 joined channel #puppet | ||
| [2009/04/16 05:04:43] @ Quit: maxagaz: Read error: 54 (Connection reset by peer) | ||
| [2009/04/16 05:07:02] @ maxagaz joined channel #puppet | ||
| [2009/04/16 05:22:25] @ Quit: keithlard: | ||
| [2009/04/16 05:26:59] @ glaw joined channel #puppet | ||
| [2009/04/16 05:28:22] @ pipes joined channel #puppet | ||
| [2009/04/16 05:35:24] @ Quit: mellen: Read error: 110 (Connection timed out) | ||
| [2009/04/16 05:44:55] @ Berge joined channel #puppet | ||
| [2009/04/16 05:45:22] @ aymerick joined channel #puppet | ||
| [2009/04/16 05:46:06] <Berge> Greetings! Are there any way of making resources such as file { "/foo/bar/baz": ensure => directory, } recursive? | ||
| [2009/04/16 05:46:26] <Berge> It can be hacked around with mkdir -p, of course, but a recursive option would be far more elegant. | ||
| [2009/04/16 05:48:44] <Volcane> file{["/foo", "/foo/bar"]: ensure => directory} | ||
| [2009/04/16 05:49:02] <Volcane> you can file a feature request on projects.reductivelabs.com | ||
| [2009/04/16 05:49:13] <Berge> Ah, of course! Still bit of a work-around, perhaps, but better yet than mkdir -p. | ||
| [2009/04/16 05:50:12] <Volcane> we get asked this twice a day at least, time that all those people start doing feature requests i think :P | ||
| [2009/04/16 05:50:36] <Berge> There's been a feature request on it before: http://markmail.org/message/m3pru4pz6mikaspy | ||
| [2009/04/16 05:50:57] <Volcane> #668 | ||
| [2009/04/16 05:50:58] <gepetto> Volcane: #668 is http://projects.reductivelabs.com/issues/show/668 "Puppet - Bug #668: Using File with ensure => directory fails if there's no parent directory - ReductiveLabs.com" | ||
| [2009/04/16 05:51:26] <Volcane> well so go comment on the existing ones | ||
| [2009/04/16 05:51:35] <Volcane> #86 is the root of it | ||
| [2009/04/16 05:51:36] <gepetto> Volcane: #86 is http://projects.reductivelabs.com/issues/show/86 "Puppet - Feature #86: Directory creation fails if parent directory does not exist - ReductiveLabs.com" | ||
| [2009/04/16 05:51:38] <Berge> Oh, there. I couldn't get the search box working on http://reductivelabs.com/trac/puppet | ||
| [2009/04/16 05:51:53] <Volcane> the more people who show support the more likely it will get done | ||
| [2009/04/16 05:52:12] <Berge> Will really more "me too!" responses help? | ||
| [2009/04/16 05:52:22] <nasrat> Berge: tickets are in redmine not in trac | ||
| [2009/04/16 05:52:26] <Volcane> worth a try | ||
| [2009/04/16 05:52:45] <chillitom> anyone seeing this warning when running factor: /usr/lib/ruby/site_ruby/1.8/facter/util/ip.rb:145: command not found: | ||
| [2009/04/16 05:52:48] <Berge> Of course, a patch would probably be best. | ||
| [2009/04/16 05:52:58] <chillitom> the line contains: require 'ipaddr' | ||
| [2009/04/16 05:53:06] <Berge> nasrat: oh, but I can still search for tickets in Trac, just not access them, it seems. | ||
| [2009/04/16 05:53:16] <Volcane> chillitom: ipaddr is part of your base ruby generally | ||
| [2009/04/16 05:53:17] <nasrat> chillitom: facter version? | ||
| [2009/04/16 05:53:22] <chillitom> 1.5.4 | ||
| [2009/04/16 05:53:27] <nasrat> and that's an odd error for a require | ||
| [2009/04/16 05:53:35] <Volcane> yeah | ||
| [2009/04/16 05:53:55] @ fujin joined channel #puppet | ||
| [2009/04/16 05:54:27] <chillitom> weirdly I only get the error on some machines and not others | ||
| [2009/04/16 05:54:40] <chillitom> both ruby 1.8.5 (2006-08-25) [i386-linux] | ||
| [2009/04/16 05:54:47] <chillitom> Centos 5.3 | ||
| [2009/04/16 05:56:10] <nasrat> chillitom: can you try this in irb | ||
| [2009/04/16 05:56:14] <nasrat> require 'ipaddr' | ||
| [2009/04/16 05:56:35] <chillitom> true | ||
| [2009/04/16 05:57:06] <nasrat> ok | ||
| [2009/04/16 05:57:20] <nasrat> so that sounds as if that's working | ||
| [2009/04/16 05:57:29] <nasrat> let me see if I can replicate on a rhel/centos box | ||
| [2009/04/16 05:58:37] <chillitom> i notice that the first thing ipaddr does is require 'socket' | ||
| [2009/04/16 05:58:42] <chillitom> then some stuff about IPV6 | ||
| [2009/04/16 05:59:01] <chillitom> how can I check whether i have ipv6 enabled on both boxes? | ||
| [2009/04/16 05:59:17] <nasrat> that shouldn't matter | ||
| [2009/04/16 05:59:21] @ ohadlevy left channel #puppet () | ||
| [2009/04/16 05:59:26] <nasrat> if you don't get the error doing it in irb it's not the library | ||
| [2009/04/16 06:00:42] <nasrat> one thought is FACTERLIB set on those boxes? | ||
| [2009/04/16 06:01:09] <chillitom> neither | ||
| [2009/04/16 06:01:44] <nasrat> ok | ||
| [2009/04/16 06:01:47] <nasrat> can you do | ||
| [2009/04/16 06:01:48] <nasrat> irb | ||
| [2009/04/16 06:01:52] <nasrat> require 'facter' | ||
| [2009/04/16 06:01:55] <nasrat> Facter.loadfacts | ||
| [2009/04/16 06:02:07] @ tim|mb joined channel #puppet | ||
| [2009/04/16 06:02:09] <chillitom> true | ||
| [2009/04/16 06:02:10] <chillitom> true | ||
| [2009/04/16 06:02:44] <nasrat> ok which is odd as that should load all the facts | ||
| [2009/04/16 06:04:32] @ mellen joined channel #puppet | ||
| [2009/04/16 06:05:49] <Baum> i created a config template but now im getting an error when i use the subscripe parameter for a service | ||
| [2009/04/16 06:05:52] <Baum> Parameter subscribe failed: Relationships must be resource references | ||
| [2009/04/16 06:06:16] <Baum> cant i use templates like that? | ||
| [2009/04/16 06:06:50] <chillitom> http://pastie.org/448345 -- the good and the bad facter runs | ||
| [2009/04/16 06:08:28] <nasrat> chillitom: connextra? I used to work for them! | ||
| [2009/04/16 06:08:35] <chillitom> You serious!? | ||
| [2009/04/16 06:10:27] <nasrat> chillitom: back in 2002 ish | ||
| [2009/04/16 06:10:40] <chillitom> small world | ||
| [2009/04/16 06:11:17] <chillitom> Puppet has been a god send I'll tell you... this stuff was is a mess! | ||
| [2009/04/16 06:11:34] @ keithlard joined channel #puppet | ||
| [2009/04/16 06:11:55] <chillitom> Colville says hi. | ||
| [2009/04/16 06:12:28] <nasrat> chillitom: can you try ruby --debug -S /usr/bin/facter --debug | ||
| [2009/04/16 06:12:33] <nasrat> and put that into pastie | ||
| [2009/04/16 06:14:52] <chillitom> http://pastie.org/448345 | ||
| [2009/04/16 06:14:53] @ Quit: tim|mb: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 06:16:20] <nasrat> hmm is rubygems installed on the working box? | ||
| [2009/04/16 06:18:40] <chillitom> don't think it is installed on either | ||
| [2009/04/16 06:21:16] @ ethan_rowe joined channel #puppet | ||
| [2009/04/16 06:21:40] <nasrat> chillitom: ok so we can figure what command it's failing on can you do strace -e execve -f /usr/bin/ruby -S /usr/bin/facter > /dev/null | ||
| [2009/04/16 06:25:35] <chillitom> http://pastie.org/448358 | ||
| [2009/04/16 06:27:10] <chillitom> error is at line 401 | ||
| [2009/04/16 06:28:44] <chillitom> which fails to find lspci on both boxes | ||
| [2009/04/16 06:28:51] <chillitom> i thought it might be that | ||
| [2009/04/16 06:32:44] <nasrat> can you confirm that's the difference between the boxes | ||
| [2009/04/16 06:32:54] <nasrat> the error reporting for that sucks a little though | ||
| [2009/04/16 06:35:24] <mrrx> is it safe to assume all files created by the file provider to be owned by root:root ? | ||
| [2009/04/16 06:35:46] <mrrx> file resource | ||
| [2009/04/16 06:36:06] <HarryCalahan> mrrx: define a default File resource | ||
| [2009/04/16 06:36:19] <HarryCalahan> then you are sure | ||
| [2009/04/16 06:37:22] <mrrx> I can't reuse File/file in my definition right? | ||
| [2009/04/16 06:38:05] <mrrx> kinda weird, is there a reason why this assumption shouldn't be made possible in puppet? | ||
| [2009/04/16 06:38:51] <HarryCalahan> define globally File { mode => "0644", owner => "root", group => "root" } | ||
| [2009/04/16 06:39:05] <HarryCalahan> then you only need to override it for files you want to differ. | ||
| [2009/04/16 06:39:25] <mrrx> i see | ||
| [2009/04/16 06:39:36] <mrrx> that's neat, thank you | ||
| [2009/04/16 06:39:44] <HarryCalahan> learned it yesterday ;) | ||
| [2009/04/16 06:40:02] <mrrx> heh, i must be lucky today | ||
| [2009/04/16 06:42:50] @ tim|mb joined channel #puppet | ||
| [2009/04/16 06:43:20] <mrrx> does that apply to "file" as well? | ||
| [2009/04/16 06:43:53] <HarryCalahan> with "File { }" you create the defaults for all "file { }" resources | ||
| [2009/04/16 06:44:04] <mrrx> ah | ||
| [2009/04/16 06:44:17] <HarryCalahan> goes for any resource | ||
| [2009/04/16 06:44:27] <mrrx> and if i redefined file {}, then it wouldn't apply to File{} | ||
| [2009/04/16 06:45:56] <HarryCalahan> you don't redifine file { "foo:" }. You create one resource. You can reference to it with File["foo"]. Any parameters of File["foo"] that are not explicitly defined are pulled from defaults defined by File {} | ||
| [2009/04/16 06:46:19] <mrrx> umm | ||
| [2009/04/16 06:46:22] <mrrx> ok | ||
| [2009/04/16 06:50:03] <nasrat> chillitom: #2078 | ||
| [2009/04/16 06:50:04] <gepetto> nasrat: chillitom: #2078 is http://projects.reductivelabs.com/issues/show/2078 "Facter - Bug #2078: ip.rb errors command not found - ReductiveLabs.com" | ||
| [2009/04/16 06:50:59] <chillitom> nasrat, the boxes seem identical in terms of lspci | ||
| [2009/04/16 06:51:12] <chillitom> nasrat, looking at the bug report now | ||
| [2009/04/16 06:52:08] <nasrat> it's probably not lspci that is failing | ||
| [2009/04/16 06:52:20] <chillitom> ahh so it's fixed on trunk | ||
| [2009/04/16 06:52:23] <chillitom> that's good | ||
| [2009/04/16 06:52:26] <nasrat> yes | ||
| [2009/04/16 06:52:34] <chillitom> still interesting that it fails on one box and not the other | ||
| [2009/04/16 06:56:16] <chillitom> nasrat, thanks for your help | ||
| [2009/04/16 07:03:19] <nasrat> np, I'll mail puppet users about a meetup | ||
| [2009/04/16 07:11:50] @ madrescher joined channel #puppet | ||
| [2009/04/16 07:18:24] @ pdt joined channel #puppet | ||
| [2009/04/16 07:43:56] @ Quit: maxagaz: Remote closed the connection | ||
| [2009/04/16 07:44:58] @ _lunix_ joined channel #puppet | ||
| [2009/04/16 07:54:57] <FiXion> arghhh | ||
| [2009/04/16 07:55:10] <FiXion> I have puppet 0.24.8 on ubuntu hardy and jaunty | ||
| [2009/04/16 07:55:18] <FiXion> my rules work perfectly on hardy | ||
| [2009/04/16 07:55:23] <FiXion> on jaunty I get some path errors | ||
| [2009/04/16 07:55:33] <FiXion> but it tells me absolutely nothing about which modules the errors are in. | ||
| [2009/04/16 07:55:46] <FiXion> not even when I run the client with --test --verbose --trace | ||
| [2009/04/16 07:56:19] <FiXion> how can I get puppet to tell me where it actually encounters the errors - instead of spitting dumb errors out with out any file/linenumbers ? | ||
| [2009/04/16 07:57:45] <FiXion> can I somehow configure puppet to spit out context with the eror message? | ||
| [2009/04/16 07:58:05] <FiXion> so when it logs the error message - it would prepend the file it was parsing/running when it happened ? | ||
| [2009/04/16 07:58:39] <jenza> Not seeing anything on the puppetserver at the same time? | ||
| [2009/04/16 07:59:43] <FiXion> nothing - only "compiled catalog for .. in xx seconds" | ||
| [2009/04/16 08:00:08] <FiXion> I guess I'll post a feature request for some proper error logging | ||
| [2009/04/16 08:00:26] <FiXion> it should not be hard (for someone who have ever actually coded ruby :) to prepend the "current file" | ||
| [2009/04/16 08:00:34] <FiXion> so I have hopes for it being added :) | ||
| [2009/04/16 08:05:24] * ricky usually uses puppetd -t -d | ||
| [2009/04/16 08:05:49] <ricky> Although puppetd -t is usally verbose enoguh for me to begin with. | ||
| [2009/04/16 08:05:53] <ricky> **enough | ||
| [2009/04/16 08:06:59] <FiXion> ricky: how do you figure out which .pp file the error is from? | ||
| [2009/04/16 08:07:49] <mikepea> FiXion: can you pastie your error, and it will give us a bit more context as to the problem. | ||
| [2009/04/16 08:08:28] <ricky> I usally grep for resource names that I see in the error | ||
| [2009/04/16 08:09:56] <FiXion> http://pastebin.com/f617e2427 | ||
| [2009/04/16 08:10:43] <ricky> Um. That doesn't look like an error with the manifests | ||
| [2009/04/16 08:11:05] <ricky> Actually, I'm not sure | ||
| [2009/04/16 08:11:50] @ jief- joined channel #puppet | ||
| [2009/04/16 08:12:21] <FiXion> I ensured that it was an error in the manifests | ||
| [2009/04/16 08:12:29] <FiXion> by making a donothing class | ||
| [2009/04/16 08:12:44] <FiXion> donothing node | ||
| [2009/04/16 08:12:51] <FiXion> and making my client inherit that instead | ||
| [2009/04/16 08:12:58] <FiXion> the donothing node includes nothing | ||
| [2009/04/16 08:13:01] <FiXion> and then it doesn't fail | ||
| [2009/04/16 08:13:07] <ricky> Yeah, sorry, I'm wrong | ||
| [2009/04/16 08:13:18] <FiXion> np :) | ||
| [2009/04/16 08:13:24] @ iTonnerre joined channel #puppet | ||
| [2009/04/16 08:14:16] * ricky wonders if some relative paths are messing it up | ||
| [2009/04/16 08:15:15] <FiXion> I check for distro version in my modules | ||
| [2009/04/16 08:15:31] <FiXion> as I don't want to do something if I'm running on a distro that is unsupported | ||
| [2009/04/16 08:15:59] <FiXion> so I have a few case sentences in the beginning of each module - that defines paths and other vars, which change depending on distro. | ||
| [2009/04/16 08:16:16] <FiXion> and if it's an undefined distro, they are set to something invalid. | ||
| [2009/04/16 08:16:17] <ricky> Do all of those paths begin with /? That's the check that puppet is dying on | ||
| [2009/04/16 08:16:22] <bob2> might be time to pastebin the whole config | ||
| [2009/04/16 08:16:24] <FiXion> to make sure it doesn't try to do anything. | ||
| [2009/04/16 08:16:25] @ Quit: pdt: | ||
| [2009/04/16 08:16:26] <bob2> or point at the github url | ||
| [2009/04/16 08:16:41] <FiXion> I'm very sure it's because I've missed adding support for jaunty in one of the modules | ||
| [2009/04/16 08:16:53] <FiXion> so the fix is easy enough - if I just knew which of all my modules it was in. | ||
| [2009/04/16 08:17:06] <FiXion> that's why I was hoping puppet could tell me which file tripped that error message | ||
| [2009/04/16 08:17:08] <ricky> If I were really desperate to track this down, I'd modify /usr/lib/ruby/1.8/puppet/type/file.rb to print the offending path :-) | ||
| [2009/04/16 08:17:24] <FiXion> I've never coded ruby before :( | ||
| [2009/04/16 08:17:28] <ricky> Which could also serve as a patch to send the puppet devs :-) | ||
| [2009/04/16 08:17:31] * ricky neither :-/ | ||
| [2009/04/16 08:17:33] <FiXion> but I figure it would be easy for a ruby coder | ||
| [2009/04/16 08:18:01] * HarryCalahan gets crazy with opening and closing all those {}. hope i never need to code ruby ;) | ||
| [2009/04/16 08:18:49] <ricky> Here is my guess for how to get it to print the error: | ||
| [2009/04/16 08:18:51] <ricky> raise Puppet::Error, "File paths must be fully qualified: %s" % value | ||
| [2009/04/16 08:19:26] <ricky> On line 31 | ||
| [2009/04/16 08:19:40] <FiXion> ricky: I'll try that - thank you :) | ||
| [2009/04/16 08:21:58] @ m0zzzy left channel #puppet () | ||
| [2009/04/16 08:22:29] @ kambiz_away is now known as kambiz | ||
| [2009/04/16 08:26:10] <elementai> Folks, i need a suggestion. I have, for example, sudo module that puts sudoers file on server, it can put different file depending on server's OS or fqdn. But now i have a bunch of servers ( ~50 ) and i need same sudoers on them all. How do you think, is it better to create 50 identical files for them, put tags option in their puppetd.conf, create another sudoers module ? | ||
| [2009/04/16 08:26:34] <elementai> or maybe something else ? | ||
| [2009/04/16 08:26:42] <Volcane> you could define a variable in the node like $role = "foo" | ||
| [2009/04/16 08:26:46] <Volcane> and make suders.foo | ||
| [2009/04/16 08:27:00] <Hollow> facter variables are really starting to drive me crazy ... i have a fact that tells me if i'm in a virtual server or not, and the variable is correct in the templates, still if/else does not work with it (see http://paste.linux-vserver.org/12837) how can this happen? | ||
| [2009/04/16 08:27:01] @ Quit: SyTonnerre: Read error: 110 (Connection timed out) | ||
| [2009/04/16 08:27:01] @ iTonnerre is now known as SyTonnerre | ||
| [2009/04/16 08:27:14] <Hollow> i've already "solved" this one by accident somehow | ||
| [2009/04/16 08:27:21] <Hollow> but now it drives me nuts again | ||
| [2009/04/16 08:27:29] <FiXion> ricky: the proposed change doesn't change the error output :( | ||
| [2009/04/16 08:28:15] <FiXion> nothing worse than accidental fixes :) | ||
| [2009/04/16 08:29:58] <Hollow> indeed :) | ||
| [2009/04/16 08:30:15] @ cirquitz joined channel #puppet | ||
| [2009/04/16 08:30:48] <ricky> So absolutely not change? Not even an extra colon at the end? | ||
| [2009/04/16 08:31:58] @ Quit: mvn071: "Leaving" | ||
| [2009/04/16 08:36:37] <HarryCalahan> if i use a erb template for a file resource. How can i have default values for variables inside of the template. like insert value of $foo here or 42 if $foo not defined | ||
| [2009/04/16 08:37:01] <Volcane> if has_variable?("foo") | ||
| [2009/04/16 08:41:18] <HarryCalahan> <% if has_variable?("foo") then %><%= foo %><% else %>42<% end %> | ||
| [2009/04/16 08:43:17] <HarryCalahan> no shortcut for this? | ||
| [2009/04/16 08:44:34] <Volcane> has_variable?("foo") ? foo : 42 | ||
| [2009/04/16 08:44:44] <Volcane> that might work | ||
| [2009/04/16 08:45:29] <Hollow> it seems all facter variables are strings inside erb templates ... how sucky is that | ||
| [2009/04/16 08:45:38] <Hollow> is_virtual == "false" works | ||
| [2009/04/16 08:45:55] <HarryCalahan> Volcane: syntax is correct. will try it. | ||
| [2009/04/16 08:46:09] <Volcane> Hollow: all facter variables are strings, period. | ||
| [2009/04/16 08:46:18] <Hollow> this really sucks bad | ||
| [2009/04/16 08:46:23] * HarryCalahan at the end of the month i will give up and read a ruby introduction. | ||
| [2009/04/16 08:46:24] <Hollow> that"s the sqlite way of not doing things | ||
| [2009/04/16 08:46:49] <Volcane> Hollow: the plans for facter 2.0 is being discussed now, its on the dev list, chip in with wants/needs : | ||
| [2009/04/16 08:46:50] <Volcane> :) | ||
| [2009/04/16 08:47:30] <Hollow> ok :) | ||
| [2009/04/16 08:47:47] <Volcane> "now" is more like recently, but i am sure you can resurrect the thread | ||
| [2009/04/16 08:49:35] @ Quit: Demosthenes: Read error: 113 (No route to host) | ||
| [2009/04/16 08:54:20] <FiXion> ricky: yes - an extra colon - sorry being daft here :) | ||
| [2009/04/16 08:56:16] @ mccune joined channel #puppet | ||
| [2009/04/16 08:57:15] <FiXion> so I just need to find the right variable :) | ||
| [2009/04/16 08:57:26] <ricky> FiXion: Try value.inspect instead | ||
| [2009/04/16 08:57:41] @ erm_ joined channel #puppet | ||
| [2009/04/16 08:58:35] <FiXion> so % value.inspect | ||
| [2009/04/16 08:58:38] @ Bass10 joined channel #puppet | ||
| [2009/04/16 08:59:03] <FiXion> what's the % in front of the varname for? | ||
| [2009/04/16 08:59:28] <FiXion> now it adds : "" | ||
| [2009/04/16 08:59:32] <FiXion> instead of just : | ||
| [2009/04/16 09:00:06] <FiXion> why isn't puppet written in a language I know :) | ||
| [2009/04/16 09:00:48] <SyTonnerre> FiXion, do you know any? | ||
| [2009/04/16 09:00:51] <HarryCalahan> would this http://pastie.org/448465 be the ruby way to handle slightly different php config files on multiple hosts? | ||
| [2009/04/16 09:01:45] <Volcane> HarryCalahan: php::config{${fqdn}: memory_limit => "100M" } | ||
| [2009/04/16 09:01:53] <Volcane> HarryCalahan: defines get used just like normal resources | ||
| [2009/04/16 09:02:04] <HarryCalahan> ok. | ||
| [2009/04/16 09:02:30] <Volcane> make that $fqdn not ${fqdn} | ||
| [2009/04/16 09:02:59] <HarryCalahan> and what about the idea of this setup? Is it the puppet-ic way to do this? | ||
| [2009/04/16 09:03:13] <Volcane> kind of :) | ||
| [2009/04/16 09:03:29] @ Quit: fujin: "Leaving..." | ||
| [2009/04/16 09:03:29] <Volcane> its ok | ||
| [2009/04/16 09:03:42] <Volcane> I have use facts or node variables for this kind of thing | ||
| [2009/04/16 09:03:57] <Volcane> so in the node I'd have $php_memory_limit = "100M" | ||
| [2009/04/16 09:04:12] <Volcane> and later in php::config class i check them and set defaults, then just use a template for the ini file | ||
| [2009/04/16 09:04:24] <FiXion> SyTonnerre: bash, perl, php and "used to code are the most common ones | ||
| [2009/04/16 09:04:34] <HarryCalahan> alternative would be something like file { source => "puppet:///php/php.ini.$fqdn, puppet:///php/php.ini.default" } | ||
| [2009/04/16 09:04:37] <FiXion> SyTonnerre: bash, perl, php and used to code c and c++ 2F | ||
| [2009/04/16 09:04:42] * FiXion is one big typo today | ||
| [2009/04/16 09:04:51] <HarryCalahan> FiXion: fix it ;) | ||
| [2009/04/16 09:05:02] <Volcane> HarryCalahan: yeah though that becomes a pain quickly if you have many different machines with subtle differences | ||
| [2009/04/16 09:05:16] * FiXion doesn't feel like forking puppet :) | ||
| [2009/04/16 09:05:25] <FiXion> forking+rewriting | ||
| [2009/04/16 09:05:42] <HarryCalahan> FiXion: rewrite it in python and i will use it... | ||
| [2009/04/16 09:05:47] <HarryCalahan> Volcane: ok. hope i get my head around puppet. | ||
| [2009/04/16 09:06:03] <Volcane> HarryCalahan: something similar http://pastie.org/448473 | ||
| [2009/04/16 09:06:06] <ricky> FiXion: OK, so I assume it's getting a blank string for a path | ||
| [2009/04/16 09:06:13] <ricky> FiXion: Which is why it thinks it's not absolute | ||
| [2009/04/16 09:07:02] <Volcane> HarryCalahan: and so in a node I just do $nrpe_mailq_warn = 50 if i wanted to adjust the monitoring on that node | ||
| [2009/04/16 09:07:15] <HarryCalahan> Volcane: if i wanted to use facts to handle those variables. i would add them to the environment variables of the target host FACTER_PHP_MEMORY_LIMIT = "100M" | ||
| [2009/04/16 09:07:31] <Volcane> HarryCalahan: or write something that just reads /etc/facts.txt | ||
| [2009/04/16 09:07:39] <Volcane> and pop them all ito the file | ||
| [2009/04/16 09:07:47] <HarryCalahan> Volcane: hehe. thought about that already. | ||
| [2009/04/16 09:08:31] <Volcane> HarryCalahan: http://pastie.org/448479 | ||
| [2009/04/16 09:08:40] <HarryCalahan> Volcane: but then i thought about my non existing ruby knowledge and dropped the idea | ||
| [2009/04/16 09:09:30] <HarryCalahan> ... and then i idled around on irc and Volcane dropped the code right in front of me | ||
| [2009/04/16 09:09:37] <Volcane> :) | ||
| [2009/04/16 09:10:53] <FiXion> ricky: yes - but I'd like it to tell me what file it was parsing when it encounted that empty variable | ||
| [2009/04/16 09:11:07] <FiXion> any idea what the variable name is for "current file" ? | ||
| [2009/04/16 09:11:46] <FiXion> unless parsing and that loop is decoupled so that it can no longer tell? | ||
| [2009/04/16 09:12:04] * ricky has no idea, but I wouldn't be surprised if you couldn't get it at that leve. | ||
| [2009/04/16 09:12:07] <ricky> **level | ||
| [2009/04/16 09:12:24] <HarryCalahan> Volcane: why did you use a class and not a define in http://pastie.org/448473 ? | ||
| [2009/04/16 09:12:32] @ joe-mac joined channel #puppet | ||
| [2009/04/16 09:12:37] <HarryCalahan> i'm not sure when to use define and when to use a class | ||
| [2009/04/16 09:13:17] <Volcane> HarryCalahan: classes are collections of resources, defines are resources. So my common::monitor class also (not shown) sets up general nagios client stuff, and set up a whole load of nagios::nrpe_command resources | ||
| [2009/04/16 09:13:50] <Volcane> so nagios::nrpe_command is a define, the class contains many nagios::nrpe_command resources | ||
| [2009/04/16 09:14:08] <HarryCalahan> ok. then i get it. | ||
| [2009/04/16 09:14:12] <HarryCalahan> thanks again | ||
| [2009/04/16 09:14:22] <Volcane> i suck at explaining, the language tutorial has something that shows the difffernces | ||
| [2009/04/16 09:15:40] <FiXion> ricky: perhaps it could tell which "class" it was currently within.. ? | ||
| [2009/04/16 09:15:53] <FiXion> as the class name would make it easy to find the file :) | ||
| [2009/04/16 09:16:07] <Volcane> FiXion: since i think 0.24.8 $name will be the class you're in | ||
| [2009/04/16 09:16:30] <ricky> Sorry, I have no idea, I don't know ruby or puppet internals :-/ | ||
| [2009/04/16 09:16:56] <Volcane> but not sure about accessing that in a provider or whatever | ||
| [2009/04/16 09:16:56] <FiXion> Volcane: perfect - I'll try that :) | ||
| [2009/04/16 09:18:33] @ rdaugherty joined channel #puppet | ||
| [2009/04/16 09:19:34] <HarryCalahan> so i have a php class that will install php and configure all the parts that are static on all my systems (doing multiple resources) and then i would call my config definition twice to generate cli and mod_php files. http://pastie.org/448465 | ||
| [2009/04/16 09:20:46] <Volcane> dont use $ in erb | ||
| [2009/04/16 09:21:01] <HarryCalahan> oh. sorry. | ||
| [2009/04/16 09:21:32] <HarryCalahan> i just started to get used to prefixing everthing with a $ again (manifest variables). ;) | ||
| [2009/04/16 09:22:43] <HarryCalahan> ah and i guess my two php::config calls in the node need to have different names so i can't use $fqdn but ${fqdn}-cli and ${fqdn}-mod. | ||
| [2009/04/16 09:22:55] <FiXion> Volcane: % name just gives me : path | ||
| [2009/04/16 09:23:00] <FiXion> not a real path or anything | ||
| [2009/04/16 09:23:09] <FiXion> but not empty either | ||
| [2009/04/16 09:23:49] <Volcane> FiXion: hehe, well i dont know about coding providers etc, not had time to get into it so cant help that much, dev list is probably a good port of call | ||
| [2009/04/16 09:24:10] <FiXion> fair enough :) - thank you for all your help anyway.. | ||
| [2009/04/16 09:24:18] <FiXion> I found the issue and have fixed it.. | ||
| [2009/04/16 09:24:40] <FiXion> hope for a response to the feature request for now :) | ||
| [2009/04/16 09:26:40] <FiXion> any of you ever need to "run puppet update now" ? | ||
| [2009/04/16 09:26:53] <Volcane> puppetrun | ||
| [2009/04/16 09:27:00] <FiXion> I was thinking of making a script using ssh keys with a "command" in the other end | ||
| [2009/04/16 09:27:09] <FiXion> so I could make puppet run immediately on all or certain servers | ||
| [2009/04/16 09:27:15] * FiXion goes googleing puppetrun | ||
| [2009/04/16 09:28:11] <FiXion> how does it connect to other hosts? | ||
| [2009/04/16 09:28:21] @ Quit: teratoma: Read error: 110 (Connection timed out) | ||
| [2009/04/16 09:28:21] <FiXion> the puppetd doesn't listen on a port AFAIK | ||
| [2009/04/16 09:28:22] <Volcane> you run puppetd in listen mode | ||
| [2009/04/16 09:28:40] <Volcane> and then auth is via namespaces.auth and the ssl certs etc | ||
| [2009/04/16 09:28:54] <FiXion> hmm.. | ||
| [2009/04/16 09:29:07] * FiXion thinks he'd rather have ssh keys with a set command which is the only thing that key can run. | ||
| [2009/04/16 09:29:15] <FiXion> would improve security | ||
| [2009/04/16 09:29:27] <FiXion> instead of adding yet another service with potential remote exploits :) | ||
| [2009/04/16 09:30:00] <Volcane> yeah | ||
| [2009/04/16 09:30:02] <Volcane> agree | ||
| [2009/04/16 09:30:18] <jenza> At least that way you can catch the puppet output and look for errors | ||
| [2009/04/16 09:30:37] <Volcane> for i in ${hosts}; do ssh root@${i} pkill -1 puppetd; done | ||
| [2009/04/16 09:30:37] <Volcane> :P | ||
| [2009/04/16 09:30:54] <FiXion> jenza: a -t run still logs to the daemon.log AFAIK ? | ||
| [2009/04/16 09:31:06] <FiXion> and as I have reports setup - it sends the errors to the puppetserver | ||
| [2009/04/16 09:31:21] <FiXion> so if the catalog run completes - I'd have the output lines in puppetview also | ||
| [2009/04/16 09:31:24] <jenza> Sure but I'd rather tie it into the actual request that calls the run rather than having to troll logs | ||
| [2009/04/16 09:31:47] * Volcane 's always surprised at how many ppl use puppetview | ||
| [2009/04/16 09:31:49] <FiXion> I need to control my logs anyhow - am setting up a central syslog server - which runs logwatch on all logfiles for all hosts | ||
| [2009/04/16 09:31:51] <Volcane> u never hear from them :P | ||
| [2009/04/16 09:31:57] <jenza> I run puppetview :x | ||
| [2009/04/16 09:32:00] <FiXion> Volcane: you knew I was running it :) | ||
| [2009/04/16 09:32:02] <jenza> Just heavily modified | ||
| [2009/04/16 09:32:07] * Volcane forgets | ||
| [2009/04/16 09:32:14] <FiXion> jenza: remember to send your mods to Volcane :) | ||
| [2009/04/16 09:32:55] <jenza> Mine isn't really too useful for people given I run all my servers in no client mode | ||
| [2009/04/16 09:32:58] * FiXion also flush unimportant info out of his brain quite frequently :) | ||
| [2009/04/16 09:33:18] <jenza> The only actual puppet runs, apart from noop ones are kicked off from puppetview | ||
| [2009/04/16 09:33:51] @ masterzen joined channel #puppet | ||
| [2009/04/16 09:36:07] @ teratoma joined channel #puppet | ||
| [2009/04/16 09:39:20] @ Omahn joined channel #puppet | ||
| [2009/04/16 09:39:54] <jief-> with the typereference sshkey, can i manage my users keys? | ||
| [2009/04/16 09:39:58] <jief-> http://reductivelabs.com/trac/puppet/wiki/TypeReference#sshkey | ||
| [2009/04/16 09:40:07] <jief-> this pages says it can't, but im not sure if the info is still valid or not | ||
| [2009/04/16 09:40:38] <jenza> ssh_authorized_key | ||
| [2009/04/16 09:40:48] <jenza> for users | ||
| [2009/04/16 09:40:49] <Volcane> puppetdoc -r type | ||
| [2009/04/16 09:40:56] <Volcane> shows you up to date docs for your version of puppet :P | ||
| [2009/04/16 09:41:54] <jief-> jenza: boy do i need more coffee, that was just above lol | ||
| [2009/04/16 09:42:03] <FiXion> how do I force restart of a service - when I update a config file? | ||
| [2009/04/16 09:42:10] @ kibaho1 left channel #puppet () | ||
| [2009/04/16 09:42:14] <jenza> :) | ||
| [2009/04/16 09:42:18] <FiXion> puppet updates my nrpe config - but it only "ensures" it's running - doesn't restart it | ||
| [2009/04/16 09:42:20] <jenza> Subscribe | ||
| [2009/04/16 09:42:23] <Volcane> notify => Service["foo"] | ||
| [2009/04/16 09:42:26] <Volcane> or in the service | ||
| [2009/04/16 09:42:28] <Superfly_> notify => Service['cron'] | ||
| [2009/04/16 09:42:30] <jenza> er I meant notify | ||
| [2009/04/16 09:42:35] <Volcane> subscribe => File["/path/to/file"] | ||
| [2009/04/16 09:42:35] <jenza> :P | ||
| [2009/04/16 09:42:39] <FiXion> Thank you :) | ||
| [2009/04/16 09:44:26] <FiXion> I have a subscribe to the config file | ||
| [2009/04/16 09:44:49] <Volcane> dd=http://yourserver/foo.img | ||
| [2009/04/16 09:44:51] <Volcane> oop | ||
| [2009/04/16 09:44:54] <FiXion> but it doesn't restart the client when it updates the config file | ||
| [2009/04/16 09:45:20] <jenza> it should do | ||
| [2009/04/16 09:45:38] <jenza> I think most people use notify in the file {} config to be honest | ||
| [2009/04/16 09:45:39] <Volcane> yeah it should, unless it cant see the service is running i think | ||
| [2009/04/16 09:45:42] <jenza> although subscribe should work | ||
| [2009/04/16 09:45:43] <Volcane> what service is it? | ||
| [2009/04/16 09:46:07] <FiXion> nagios-nrpe-service | ||
| [2009/04/16 09:46:21] <Volcane> yeah, debians great isnt it :P | ||
| [2009/04/16 09:46:30] <Volcane> you need to tell service{} how to figure out the service is running | ||
| [2009/04/16 09:46:34] <FiXion> nagios-nrpe-server :) | ||
| [2009/04/16 09:47:00] <Volcane> cos debian lacks any kind of sane option, it names services != daemon names and it has no status on its rc scripts | ||
| [2009/04/16 09:47:07] <Hollow> .oO(apt-get install the-package-that-has-all-that-funny-network-stuff-essential) | ||
| [2009/04/16 09:48:07] <Hollow> anyway ... is there a way to capture exec output and use it as a template variable?, i'm currently using exec { "echo foo >> bar.conf" } but this generates the config on every run since checksums don't match | ||
| [2009/04/16 09:48:39] <FiXion> I fixed that for apache before.. I'll go look :) | ||
| [2009/04/16 09:48:40] @ Quit: fbe: Remote closed the connection | ||
| [2009/04/16 09:48:49] @ fbe joined channel #puppet | ||
| [2009/04/16 09:49:04] <Hollow> debian should implement openrc and get rid of all that custom init spaghetti | ||
| [2009/04/16 09:49:12] <Hollow> or any other sane init system :o | ||
| [2009/04/16 09:49:20] <FiXion> hmm or I didn't | ||
| [2009/04/16 09:49:25] <FiXion> I just added hasrestart => true | ||
| [2009/04/16 09:49:31] <FiXion> different problem | ||
| [2009/04/16 09:49:35] <joe-mac> debian's init system sucks based purely on waht Volcane mentioned | ||
| [2009/04/16 09:49:51] <FiXion> how do I get puppet to restart the nrpe-nagios-server service? | ||
| [2009/04/16 09:49:57] <jief-> debian's not what it used to be | ||
| [2009/04/16 09:50:02] <Hollow> joe-mac: and it has no dependencies | ||
| [2009/04/16 09:50:16] <FiXion> notify => Service["nagios-nrpe-server"] ? | ||
| [2009/04/16 09:50:40] @ Guest78494 joined channel #puppet | ||
| [2009/04/16 09:50:57] @ fbe is now known as nuloop | ||
| [2009/04/16 09:51:01] <joe-mac> i hear ya loud and clear, coming from an rh background and thrown into a shitty deb/ubuntu infrastructure was/is painful | ||
| [2009/04/16 09:51:06] <FiXion> and a hasrestart => true | ||
| [2009/04/16 09:51:22] <joe-mac> it's the little things too... sure you get around them and move on, but it's like death by a thousand cuts | ||
| [2009/04/16 09:51:25] <Volcane> debian doesnt have restart | ||
| [2009/04/16 09:51:29] <Volcane> so you cant say hasrestart | ||
| [2009/04/16 09:51:42] <joe-mac> haha, some scripts do have restart, btu i wuoldn't rely on it | ||
| [2009/04/16 09:51:47] <joe-mac> debian is for cowboys | ||
| [2009/04/16 09:51:53] <FiXion> Volcane: my nagios-nrpe-server has restart atlesat - and the apache2 service as well | ||
| [2009/04/16 09:52:16] <Volcane> yeah policy has it, policy seems to be something along the lines of "install lsb compliance, but then laugh in its face just dont bother being lsb compliant" | ||
| [2009/04/16 09:52:22] @ cwebber joined channel #puppet | ||
| [2009/04/16 09:52:26] @ nearthal joined channel #puppet | ||
| [2009/04/16 09:52:27] <Volcane> ie. things just dont have status or restart | ||
| [2009/04/16 09:53:11] <Volcane> joe-mac: you probably need to specify in general something like pattern => to tell it what to look for in the ps list | ||
| [2009/04/16 09:53:27] <Volcane> joe-mac: personally i just run nrpe in xinetd cos i gave up getting debian to do sane things | ||
| [2009/04/16 09:53:47] <joe-mac> Volcane: funny you should mention it i gotta fix my apache class for service status, isn't it ju st status => to specify a command that tells you if it's running or not? | ||
| [2009/04/16 09:54:04] <joe-mac> i use nsca ;-) | ||
| [2009/04/16 09:54:13] <Volcane> if you do pattern => "apache2" it might work | ||
| [2009/04/16 09:54:14] <joe-mac> seems like i am the minority | ||
| [2009/04/16 09:54:19] <Volcane> but i think on debian apache service is apache2 as well | ||
| [2009/04/16 09:54:21] <joe-mac> it runs as httpd i think | ||
| [2009/04/16 09:54:23] <Volcane> so at least it should work normal | ||
| [2009/04/16 09:54:28] <joe-mac> this works "ps -p `cat /var/run/apache2.pid`" | ||
| [2009/04/16 09:54:41] <joe-mac> actually it does run as apache2 | ||
| [2009/04/16 09:54:49] <Volcane> yeah | ||
| [2009/04/16 09:55:12] <Volcane> at least in the odd cases - like nfs - where redhats scripts are not service name = process name you can just do hasstatus | ||
| [2009/04/16 09:55:46] <jenza> can you do pattern => | ||
| [2009/04/16 09:55:48] <jenza> ? | ||
| [2009/04/16 09:55:52] <Volcane> yes | ||
| [2009/04/16 09:55:55] <jenza> Can't you, even | ||
| [2009/04/16 09:57:09] <Volcane> yeah, i said earlier pattern will work :) | ||
| [2009/04/16 09:57:26] <FiXion> how does pattern => work? | ||
| [2009/04/16 09:57:47] <Volcane> "The pattern to search for in the process table. This is used for stopping services on platforms that do not support init scripts, and is also used for determining service status on those service whose init scripts do not include a status command." | ||
| [2009/04/16 09:58:02] <FiXion> perfect - thanks :) | ||
| [2009/04/16 09:58:11] <FiXion> hasrestart => true works for me on ubuntu | ||
| [2009/04/16 09:58:41] <Volcane> doubt all ubuntu scripts has status and restart, this might be an anomaly | ||
| [2009/04/16 09:59:12] <Omahn> The server developers are working towards adding 'status' to all the Ubuntu init scripts, I suspect it's going to take some time though. | ||
| [2009/04/16 09:59:20] <HarryCalahan> i can confirm that not all ubuntu init scripts have status and restart | ||
| [2009/04/16 10:00:04] <jenza> volane: except on redhat/centos nfs hasstatus doesn't work | ||
| [2009/04/16 10:00:12] <HarryCalahan> i wish i'm back on redhat. rpm development is much more fun then deb | ||
| [2009/04/16 10:00:15] <FiXion> Volcane: where's the definitions for those commands? I'm looking for the definition for Subscribe | ||
| [2009/04/16 10:00:17] <Volcane> jenza: afaik thats fixed in late 5.2 not sure | ||
| [2009/04/16 10:00:19] <FiXion> I get an odd error: | ||
| [2009/04/16 10:00:21] <jenza> as the return code is 0 from a status request even if the process isn't running | ||
| [2009/04/16 10:00:22] <jenza> oh, 5.2 | ||
| [2009/04/16 10:00:28] <jenza> Yeah we're still on 5.1 here. | ||
| [2009/04/16 10:00:39] <FiXion> Found dependency cycles in the following relationships: Service[nagios-nrpe-server] => Service[nagios-nrpe-server] | ||
| [2009/04/16 10:00:42] <Volcane> but yeah, I've patched the nfs script and push out a fixed on, pity | ||
| [2009/04/16 10:00:53] <Volcane> FiXion: yeah, a cant depend on a | ||
| [2009/04/16 10:00:56] <jenza> You want Service to require Package | ||
| [2009/04/16 10:02:34] <FiXion> odd thing is I don't think I am | ||
| [2009/04/16 10:02:34] @ Quit: tim|mb: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 10:02:35] <FiXion> http://pastebin.com/m33e76147 | ||
| [2009/04/16 10:02:36] <jenza> Nice, udev exploit | ||
| [2009/04/16 10:02:46] <FiXion> I just took the recipe from the wiki | ||
| [2009/04/16 10:02:48] @ tim|mb joined channel #puppet | ||
| [2009/04/16 10:02:58] <FiXion> and added the notify | ||
| [2009/04/16 10:03:16] <jenza> http://pastie.org/ | ||
| [2009/04/16 10:03:19] <jenza> paste your config | ||
| [2009/04/16 10:04:19] <FiXion> jenza: I just did on pastebin | ||
| [2009/04/16 10:04:55] <jenza> oh so you did | ||
| [2009/04/16 10:05:22] <jenza> remove the notify | ||
| [2009/04/16 10:05:23] <jenza> it's wrong | ||
| [2009/04/16 10:05:29] <FiXion> I did that. | ||
| [2009/04/16 10:05:32] <FiXion> it fixed it. | ||
| [2009/04/16 10:05:35] <FiXion> I was just wondering why | ||
| [2009/04/16 10:05:36] <jenza> the notify should go under the file{} definition | ||
| [2009/04/16 10:05:43] <FiXion> ohh | ||
| [2009/04/16 10:05:44] <jenza> so when the file changes it notifies the service | ||
| [2009/04/16 10:05:46] <jenza> in that way | ||
| [2009/04/16 10:05:55] <FiXion> jenza: thank you for explaining that | ||
| [2009/04/16 10:06:05] <jenza> where as a service can subscribe to a file, so the subscribe goes into the service {} definition | ||
| [2009/04/16 10:06:09] <jenza> no worries. | ||
| [2009/04/16 10:06:09] <Omahn> Is it possible to handle undefined variables from a 'case' statement? or do I just need to wrap my case section with an 'if' to check if the variable is valid first? | ||
| [2009/04/16 10:06:26] <jenza> omahn: I think so | ||
| [2009/04/16 10:06:43] <joe-mac> default Om? | ||
| [2009/04/16 10:06:49] <joe-mac> Omahn... | ||
| [2009/04/16 10:07:04] <Omahn> Unfortunately I'm using default to catch certain variable states. | ||
| [2009/04/16 10:07:36] <barn> okay, why has vim stopped colouring in my puppet files ): | ||
| [2009/04/16 10:07:49] <joe-mac> check if your vimrc got updated recently | ||
| [2009/04/16 10:07:59] <barn> it was fine yesterday! ): | ||
| [2009/04/16 10:08:09] <jenza> can't you go $variable = $variable ? { default => false } then check to see if it's false? | ||
| [2009/04/16 10:08:15] <jenza> That might be horribly wrong tho | ||
| [2009/04/16 10:08:40] <joe-mac> i do a weird thing volcane showed me with a selector and default values for variables inside defines, which may or may not help... | ||
| [2009/04/16 10:08:46] <Omahn> Ah, I suspect that might be possible with later releases. | ||
| [2009/04/16 10:09:06] <Omahn> But we're running a slightly older release that doesn't have that logic. | ||
| [2009/04/16 10:09:19] <Omahn> joe-mac: Might be useful, could you paste somewhere? | ||
| [2009/04/16 10:09:25] @ unxfrek joined channel #puppet | ||
| [2009/04/16 10:09:38] <joe-mac> yea hold on one second Omahn | ||
| [2009/04/16 10:09:48] <Omahn> Thanks | ||
| [2009/04/16 10:11:54] @ chillitom_ joined channel #puppet | ||
| [2009/04/16 10:12:53] @ rzm102 joined channel #puppet | ||
| [2009/04/16 10:12:55] @ Quit: chillitom_: Client Quit | ||
| [2009/04/16 10:13:44] @ chillitom_ joined channel #puppet | ||
| [2009/04/16 10:14:38] @ jc3` joined channel #puppet | ||
| [2009/04/16 10:14:53] @ Quit: chillitom_: Client Quit | ||
| [2009/04/16 10:15:40] <jc3`> hi, for testing is it possible to force a facter variable like hostname to be something else when I invoke puppet? | ||
| [2009/04/16 10:15:50] <rzm102> Having some issues running puppetmasterd on OS X. Getting these errors: /Library/Ruby/Site/1.8/puppet/util/settings.rb:1042:in `parse_file': Could not match line [main] at /etc/puppet/puppet.conf:[main] (Puppet::Error) | ||
| [2009/04/16 10:16:10] <Volcane> you can try FACTER_hostname=foo puppet | ||
| [2009/04/16 10:16:36] @ Quit: tim|mb: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 10:16:55] @ tim|mb joined channel #puppet | ||
| [2009/04/16 10:19:55] <jc3`> Volcane: that doesn't seem to work. :-( | ||
| [2009/04/16 10:20:05] <Volcane> nods, figures | ||
| [2009/04/16 10:20:12] <Volcane> there was a discussion on the list about this recently | ||
| [2009/04/16 10:20:17] <Volcane> not sure if they found anything i didnt follow it | ||
| [2009/04/16 10:20:21] <Volcane> about hostname specifically | ||
| [2009/04/16 10:20:35] <jc3`> k, i'll check, thx anyway | ||
| [2009/04/16 10:26:04] <joe-mac> Omahn: http://www.pastie.org/448570 | ||
| [2009/04/16 10:26:37] <joe-mac> notice the selector at the top, and how i get around default vars, may not be right for your situation at all, but since the technique was shown to me it saved me in a couple other weird spots | ||
| [2009/04/16 10:26:57] <chillitom> Volcane, remember this from yesterday? http://gist.github.com/96420 | ||
| [2009/04/16 10:27:13] <Volcane> sadly :P | ||
| [2009/04/16 10:27:34] <chillitom> ;-) Are you sure that the sysctl rules will be reloaded before the logical interfaces are brought up | ||
| [2009/04/16 10:27:36] <chillitom> ? | ||
| [2009/04/16 10:27:58] <chillitom> i tried this and ARP poisoned our entire cluster | ||
| [2009/04/16 10:28:03] <Volcane> add the require to the exec as well | ||
| [2009/04/16 10:28:55] <chillitom> so requiring a Class will make sure that all of the configuration of that class is applied first? | ||
| [2009/04/16 10:29:18] <f3ew> yes | ||
| [2009/04/16 10:29:19] <Volcane> yeah, theres some odd cases with virtual resources but you're not using those | ||
| [2009/04/16 10:29:34] <chillitom> thanks guys | ||
| [2009/04/16 10:29:54] <chillitom> I used to feel really comfortable with all this.. it's amazing what ~12 months away from it will do. | ||
| [2009/04/16 10:30:13] <Volcane> wooh++ | ||
| [2009/04/16 10:30:19] <Volcane> ah, wrong # | ||
| [2009/04/16 10:30:29] <chillitom> i liked it anyway | ||
| [2009/04/16 10:30:50] <Omahn> joe-mac: Aha, clever. Thanks. | ||
| [2009/04/16 10:31:12] <HarryCalahan> i have a question about requires. The following class http://pastie.org/448575 is included by a node. I expected the node to import my sign key, then run apt-get update, before he tries to install anything using apt. But it didn't. | ||
| [2009/04/16 10:32:12] <Volcane> HarryCalahan: we concluded yesterday already that it doesnt work | ||
| [2009/04/16 10:32:24] <Volcane> ah wait, you took out the refreshonlies | ||
| [2009/04/16 10:32:24] <joe-mac> np | ||
| [2009/04/16 10:32:40] <HarryCalahan> Volcane: yes sometimes i listen ;) | ||
| [2009/04/16 10:33:00] <Volcane> HarryCalahan: theres some scoping issues, if you set defaults in a class, it doesnt affect the defaults in other classes... | ||
| [2009/04/16 10:34:08] <FiXion> can I do a case $operatingsystem { "Debian|Ubuntu": ? | ||
| [2009/04/16 10:34:23] <FiXion> instead of having seperate (and duplicate) matches for those two | ||
| [2009/04/16 10:34:24] <Volcane> doubt it | ||
| [2009/04/16 10:34:39] <FiXion> can I do "Debian": | ||
| [2009/04/16 10:34:47] <FiXion> and then have "Ubuntu": { .. } below | ||
| [2009/04/16 10:34:55] <FiXion> and then Debian would run what's in Ubuntu | ||
| [2009/04/16 10:34:59] <FiXion> as a "normal" cas | ||
| [2009/04/16 10:35:00] <FiXion> e | ||
| [2009/04/16 10:35:02] <HarryCalahan> "Debian", "Ubuntu": | ||
| [2009/04/16 10:35:08] <FiXion> HarryCalahan: thank you | ||
| [2009/04/16 10:35:37] @ Quit: tim|mb: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 10:35:55] <HarryCalahan> but on a ubuntu system $operatingsystem is "Debian" | ||
| [2009/04/16 10:36:27] <HarryCalahan> at least with facter 1.3.8 and ubuntu 8.04 | ||
| [2009/04/16 10:36:40] <Volcane> i think thats different in later facters | ||
| [2009/04/16 10:37:00] @ tim|mb joined channel #puppet | ||
| [2009/04/16 10:38:02] <FiXion> HarryCalahan: it changed in 9.04 :) | ||
| [2009/04/16 10:38:20] <HarryCalahan> is there a definite guide on variable and default value scoping in puppet? | ||
| [2009/04/16 10:38:41] * HarryCalahan takes a postit and writes "check puppet rules before upgrading to 9.04" | ||
| [2009/04/16 10:39:16] <jief-> FiXion: you can have Debian,Ubuntu: also\ | ||
| [2009/04/16 10:39:20] <FiXion> HarryCalahan: I have variable declarations in all modules - so they fail if run on another distro | ||
| [2009/04/16 10:39:23] <jief-> you can specify more than one case | ||
| [2009/04/16 10:39:44] <FiXion> jief-: but if I want to do the same for two cases - it would be bad to have several cases with duplicate content in them | ||
| [2009/04/16 10:39:55] <FiXion> "Debian", "Ubuntu": works like a charm :) | ||
| [2009/04/16 10:40:04] <jief-> that's what we do here | ||
| [2009/04/16 10:40:18] <HarryCalahan> jief is saying the same thing. just without quotes ;) | ||
| [2009/04/16 10:40:18] <jief-> case $operatingsystem { Debian,Ubuntu: etc } | ||
| [2009/04/16 10:40:19] <FiXion> I have a factsync module - it distributes our own extra facts to the clients | ||
| [2009/04/16 10:40:25] @ Quit: pugnacity: "Leaving." | ||
| [2009/04/16 10:40:26] <FiXion> it works on 8.04 | ||
| [2009/04/16 10:40:44] <FiXion> but in 9.04 it's distributed - but when the client sends facts to the server - the extra facts aren't included :( | ||
| [2009/04/16 10:40:53] <FiXion> any ideas as to how I should debug that? | ||
| [2009/04/16 10:41:03] <FiXion> I don't see any error messages from the puppetd client run | ||
| [2009/04/16 10:41:14] <Volcane> how do you distribute them? factsync? pluginsync? | ||
| [2009/04/16 10:41:19] <FiXion> and they aren't in a normal facter run, as the FACTERLIB is set to something else I guess. | ||
| [2009/04/16 10:41:20] <HarryCalahan> Volcane: how would i set the Package default values but only on specific nodes? | ||
| [2009/04/16 10:41:35] <Volcane> HarryCalahan; node "foo" { Package..... } | ||
| [2009/04/16 10:41:43] <FiXion> Volcane: have amodule called factsync with a plugins/facter dir | ||
| [2009/04/16 10:41:43] <Volcane> sux | ||
| [2009/04/16 10:41:51] <jief-> FiXion: if you're talking about custom facts, they aren't displayed by default | ||
| [2009/04/16 10:42:04] <jief-> they will show up only if you export FACTERLIB | ||
| [2009/04/16 10:42:06] <HarryCalahan> FiXion: there is a -p switch for newer facters if i remember that correctly | ||
| [2009/04/16 10:42:08] <jief-> but they will still work | ||
| [2009/04/16 10:42:10] <FiXion> jief-: not when run in the CLI - but when the puppetd runs it - it should be there. | ||
| [2009/04/16 10:42:25] <jief-> FiXion: mine are, and im starting to have quite a few custom facts | ||
| [2009/04/16 10:42:26] <FiXion> on the 8.04 clients the puppetd client includes the new facts | ||
| [2009/04/16 10:42:42] <jief-> we only run LTS here, wouldn't know about 9.04 | ||
| [2009/04/16 10:42:50] <jief-> you'd be crazy to run something else than a LTS in prod | ||
| [2009/04/16 10:42:53] <FiXion> jief-: 9.04 is LTS :) | ||
| [2009/04/16 10:42:58] <HarryCalahan> FiXion: its not | ||
| [2009/04/16 10:43:00] <jief-> ah | ||
| [2009/04/16 10:43:06] <FiXion> jief-: I need bnx2x drivers | ||
| [2009/04/16 10:43:11] <jief-> i thought it was jaunty +1 that was going to be | ||
| [2009/04/16 10:43:19] <jief-> FiXion: just build a custom .deb for your custom kernel | ||
| [2009/04/16 10:43:36] <FiXion> jief-: that was the other approach - wasn't my choice. | ||
| [2009/04/16 10:43:45] <jief-> kk | ||
| [2009/04/16 10:43:45] <HarryCalahan> Volcane: but i don't want to type them for every node. that was the idea of having the apt class. | ||
| [2009/04/16 10:43:56] <FiXion> HarryCalahan: is a new LTS 10.04 and not before? | ||
| [2009/04/16 10:44:00] <Volcane> HarryCalahan: yeah, hence te "sux" after my suggestion :P | ||
| [2009/04/16 10:44:05] @ lak joined channel #puppet | ||
| [2009/04/16 10:44:14] <Volcane> HarryCalahan: how do you decide if they should have it or not? | ||
| [2009/04/16 10:44:27] <FiXion> jief-: where do you export the FACTERLIB variable? | ||
| [2009/04/16 10:44:29] <masterzen> lak: hi | ||
| [2009/04/16 10:44:38] <FiXion> and still that does not explain why it works on my 8.04 clients :( | ||
| [2009/04/16 10:45:00] <FiXion> it says it loads them | ||
| [2009/04/16 10:45:03] <FiXion> on the puppetd run | ||
| [2009/04/16 10:45:44] <FiXion> I'm blind | ||
| [2009/04/16 10:45:47] <FiXion> the extra facts are there | ||
| [2009/04/16 10:46:13] @ bajan joined channel #puppet | ||
| [2009/04/16 10:46:17] <FiXion> odd | ||
| [2009/04/16 10:46:24] <HarryCalahan> Volcane: for now i could do a check with the operating system. So i could get away with a basenode where i do the Package and then inherit this node? | ||
| [2009/04/16 10:46:24] <FiXion> I had to run the puppetd a few times before it picked them up | ||
| [2009/04/16 10:46:29] @ bajan left channel #puppet () | ||
| [2009/04/16 10:46:37] <HarryCalahan> FiXion: i think that is the plan for LTS | ||
| [2009/04/16 10:46:45] <Volcane> HarryCalahan: or make a my_package{} define and use that instead | ||
| [2009/04/16 10:47:02] <masterzen> lak: regarding the rack stuff... Christian seems to be working on the patch, so I'll focus on the next level (ie moving everything behing/below/above rack). | ||
| [2009/04/16 10:47:46] <lak> masterzen: you could also skip it until 0.26, since that part isn't as urgent | ||
| [2009/04/16 10:48:23] <masterzen> lak: ok, anything urgent for 0.25? | ||
| [2009/04/16 10:48:46] * masterzen is looking at .25 tickets | ||
| [2009/04/16 10:48:57] <HarryCalahan> FiXion: the first run will sync them, but they are not available, the second run will load them. | ||
| [2009/04/16 10:49:13] @ andrewcshafer joined channel #puppet | ||
| [2009/04/16 10:50:17] <HarryCalahan> Volcane: so how is the scoping? If i define defaults globaly, they are global, if i define them in a class they are there and in any class that inherits them? how about includes? | ||
| [2009/04/16 10:50:32] <Volcane> HarryCalahan: i am not sure, i know from trial and error only | ||
| [2009/04/16 10:50:51] <lak> masterzen: hmm, all of the 0.25 tickets, but most are smallish, i hope | ||
| [2009/04/16 10:51:01] @ fujin joined channel #puppet | ||
| [2009/04/16 10:51:04] <Volcane> you could easily answer all these with a simple manifests and a bit of puppet (not puppetd) interactive running | ||
| [2009/04/16 10:51:12] @ nakano_ is now known as nakano | ||
| [2009/04/16 10:51:41] <FiXion> HarryCalahan: so if I add a module which depends on a new fact - I need to run every client twice - after adding the fact, before I add the module? :( | ||
| [2009/04/16 10:52:18] <HarryCalahan> FiXion: thats what hit me yesterday | ||
| [2009/04/16 10:53:02] <masterzen> lak: I'll have more time next week, so I think I'll be able to finish the REST auth patch, and contribute on other things. It's the end of the release marathon at the office :-) | ||
| [2009/04/16 10:53:06] <HarryCalahan> Volcane: ok i need to read up how to do tests using puppet (without d) | ||
| [2009/04/16 10:53:23] <masterzen> HarryCalahan: puppet /path/to/manifest.pp | ||
| [2009/04/16 10:53:31] @ unxfrek_ joined channel #puppet | ||
| [2009/04/16 10:53:37] <masterzen> actually: puppet --debug --trace /path/to/manifest.pp | ||
| [2009/04/16 10:53:43] <FiXion> and everytime I add a new client - I need to let it be defined in a "donothing" class so it can run twice | ||
| [2009/04/16 10:53:48] @ Quit: unxfrek_: Client Quit | ||
| [2009/04/16 10:53:55] <FiXion> before I put it in classes, that depends on new facts :( | ||
| [2009/04/16 10:54:04] <FiXion> makes adding clients much more painful :( | ||
| [2009/04/16 10:54:19] <Volcane> HarryCalahan: to take your little bit of code from yesterday and test it: http://pastie.org/448617 | ||
| [2009/04/16 10:56:23] <Telmo> if a password in a user definition includes $ do I have to scape it? as in user { blah: password => "$1$qWsRF67Gsf$4" } ? | ||
| [2009/04/16 10:56:52] <Volcane> Telmo: just like shell | ||
| [2009/04/16 10:57:08] <Telmo> ok, so I need to escape the $ with \$ | ||
| [2009/04/16 10:57:11] <lak> Telmo: or use single quotes | ||
| [2009/04/16 10:57:12] @ nigelk joined channel #puppet | ||
| [2009/04/16 10:57:22] <Volcane> Telmo: yes, or use '$foo' | ||
| [2009/04/16 10:57:24] @ unxfrek_ joined channel #puppet | ||
| [2009/04/16 10:57:28] <lak> masterzen: sounds good; hopefully i'll get to rip through a few of the tickets today and tomorrow | ||
| [2009/04/16 10:57:33] <Volcane> in the 2nd case it wont tr to expand th e$ | ||
| [2009/04/16 10:57:37] @ Quit: unxfrek_: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 10:57:40] <Telmo> cool | ||
| [2009/04/16 10:57:43] <Telmo> thanks | ||
| [2009/04/16 10:58:10] <masterzen> lak: ok | ||
| [2009/04/16 11:00:00] <nigelk> lak: got time for a quick question? | ||
| [2009/04/16 11:00:11] <lak> nigelk: kind of, i'm about to join a call | ||
| [2009/04/16 11:00:20] <lak> but you can ask, and i can try to answer :) | ||
| [2009/04/16 11:00:22] <nigelk> ok, really quick :) | ||
| [2009/04/16 11:00:30] <nigelk> the number of module mounts affects memory usage | ||
| [2009/04/16 11:00:36] <nigelk> thus the number of environments affects it | ||
| [2009/04/16 11:00:37] <nigelk> right? | ||
| [2009/04/16 11:00:52] <nigelk> if however I have multiple environments pointing at the same module path | ||
| [2009/04/16 11:01:00] <lak> ah | ||
| [2009/04/16 11:01:06] <lak> yes, they get duplicated in memory | ||
| [2009/04/16 11:01:07] * Volcane wonders too | ||
| [2009/04/16 11:01:12] <nigelk> does internally that only really have the same memory usage as one env pointing at that modulepath? | ||
| [2009/04/16 11:01:14] @ mfoster joined channel #puppet | ||
| [2009/04/16 11:01:43] <Volcane> ouch, I'll tell that to my client who has an environment per developer | ||
| [2009/04/16 11:02:01] <nigelk> We're having scaling issues again. Looking to cut down # of environments, but wasn't sure if taking existing envs and pointing at the same modulepath would make any practical difference | ||
| [2009/04/16 11:02:25] <lak> nigelk: at this point, no | ||
| [2009/04/16 11:02:31] <nigelk> "yes, they get duplicated in memory" <- was that the answer to the question re multiple envs with same modulepath? | ||
| [2009/04/16 11:02:31] <lak> but with some internal refactoring, it could | ||
| [2009/04/16 11:02:34] <nigelk> ok. | ||
| [2009/04/16 11:02:35] <nigelk> ta. | ||
| [2009/04/16 11:04:39] <HarryCalahan> testresults: define defaults in class-a. include class-a in class-b. no default values present in class-b. | ||
| [2009/04/16 11:04:42] @ unxfrek_ joined channel #puppet | ||
| [2009/04/16 11:05:08] @ Quit: unxfrek_: Client Quit | ||
| [2009/04/16 11:07:22] <HarryCalahan> define defaults in class-a. define class b inherits a. Default values present | ||
| [2009/04/16 11:09:44] <Volcane> HarryCalahan: update the wiki, cos thats very useful info :) | ||
| [2009/04/16 11:12:19] @ Quit: unxfrek: Read error: 110 (Connection timed out) | ||
| [2009/04/16 11:15:20] @ Deesl joined channel #puppet | ||
| [2009/04/16 11:18:22] @ unxfrek joined channel #puppet | ||
| [2009/04/16 11:19:42] <HarryCalahan> http://reductivelabs.com/trac/puppet/wiki/VariableScope | ||
| [2009/04/16 11:20:22] <Volcane> nice | ||
| [2009/04/16 11:20:40] <gepetto> ::trac:: Variable Scope edited by fragfutter @ http://reductivelabs.com/trac/puppet/wiki/VariableScope (by puppet@held-im-ruhestand.de) | ||
| [2009/04/16 11:21:15] <HarryCalahan> hello bot | ||
| [2009/04/16 11:26:52] @ Quit: stijnbe: "Leaving..." | ||
| [2009/04/16 11:27:49] @ edwardam joined channel #puppet | ||
| [2009/04/16 11:28:38] @ Quit: Innocenti: Client Quit | ||
| [2009/04/16 11:30:32] <rzm102> I'm running into some PEBKAC errors with puppet on OS X | ||
| [2009/04/16 11:31:18] <HarryCalahan> for my default values, is there any better way then this: http://pastie.org/448575 | ||
| [2009/04/16 11:31:57] @ Quit: pleemans: Read error: 110 (Connection timed out) | ||
| [2009/04/16 11:33:28] <rzm102> If anyone can help, here are my notes: http://xrl.us/beo8wr | ||
| [2009/04/16 11:34:21] <HarryCalahan> rzm102: facts are now part of plugins | ||
| [2009/04/16 11:35:34] <rzm102> Sweet, what | ||
| [2009/04/16 11:35:38] <rzm102> 's that mean? | ||
| [2009/04/16 11:36:21] <HarryCalahan> http://xrl.us/beo8wr | ||
| [2009/04/16 11:36:24] <HarryCalahan> uso | ||
| [2009/04/16 11:36:24] <joe-mac> rzm102: certname = chm200. educ.psu.edu | ||
| [2009/04/16 11:36:30] <joe-mac> notice the space after chm200. | ||
| [2009/04/16 11:36:31] <HarryCalahan> http://reductivelabs.com/trac/puppet/wiki/PluginsInModules | ||
| [2009/04/16 11:36:33] @ Quit: edwardam: Remote closed the connection | ||
| [2009/04/16 11:36:54] <rzm102> I do have a space there in my config, thanks joe. | ||
| [2009/04/16 11:37:13] <joe-mac> np | ||
| [2009/04/16 11:39:41] <rzm102> Thanks harry, I think I should remove fileserver.conf file and test the startup. I do not need it at this point of testing. I am only trying to get the puppetmasterd to start. Does that sound reasonable? | ||
| [2009/04/16 11:40:23] @ fluxdude joined channel #puppet | ||
| [2009/04/16 11:40:36] <HarryCalahan> rzm102: step by step. yes. | ||
| [2009/04/16 11:40:37] <fluxdude> my puppetmaster is complaining like so: | ||
| [2009/04/16 11:40:50] <fluxdude> puppetmasterd[6085]: Unrecognised escape sequence '\(' in file... | ||
| [2009/04/16 11:41:07] <fluxdude> this is in an exec { command => "\blah" } | ||
| [2009/04/16 11:41:27] <rzm102> if I only want my puppetmasterd to run as user and group 0, can I remove the [puppetd] section from the puppet.conf? | ||
| [2009/04/16 11:41:36] <fluxdude> the command actually works fine, but puppetmasterd is spewing about every single escaped char in the quoted command string... | ||
| [2009/04/16 11:41:40] <fluxdude> this looks like a bug? | ||
| [2009/04/16 11:41:51] <jenza> Why would you want your puppetmaster to run as root? | ||
| [2009/04/16 11:42:18] <rzm102> apparently it's some bug with OS X, I'm following what others have done to get it working | ||
| [2009/04/16 11:42:39] <rzm102> http://groups.google.com/group/puppet-users/browse_thread/thread/4644f7c66f899b80/b924ab9210477029 | ||
| [2009/04/16 11:42:57] @ Quit: aymerick: | ||
| [2009/04/16 11:43:24] @ londo_ joined channel #puppet | ||
| [2009/04/16 11:46:27] @ fujin_ joined channel #puppet | ||
| [2009/04/16 11:48:46] @ Quit: tim|mb: | ||
| [2009/04/16 11:50:25] @ markl_ joined channel #puppet | ||
| [2009/04/16 11:55:50] @ vachon joined channel #puppet | ||
| [2009/04/16 11:56:08] <vachon> hi all, im stuck, can anyone spare a few minutes? | ||
| [2009/04/16 11:56:22] <joe-mac> don't ask to ask, just shoot | ||
| [2009/04/16 11:56:32] <vachon> got a ton of package delcarations | ||
| [2009/04/16 11:56:37] <vachon> but i can t seem to get them to apply | ||
| [2009/04/16 11:56:49] <vachon> trying to froce some gems and debs | ||
| [2009/04/16 11:57:29] <vachon> the catalog compiles fine, but aptitiude/gem dont install anything | ||
| [2009/04/16 11:59:42] <Volcane> show us some code | ||
| [2009/04/16 11:59:45] <Volcane> on pastie.org | ||
| [2009/04/16 12:01:32] <vachon> ok | ||
| [2009/04/16 12:01:58] @ jtimberman joined channel #puppet | ||
| [2009/04/16 12:02:05] <vachon> pastie.org/448690 | ||
| [2009/04/16 12:02:24] <vachon> i import the file in site.pp | ||
| [2009/04/16 12:02:29] <vachon> and include in the host | ||
| [2009/04/16 12:02:32] @ Quit: mconigliaro: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 12:02:41] <vachon> well "include rails" in the host | ||
| [2009/04/16 12:03:17] <Volcane> that looks like it should work realy, not 100% certain about this syntax though: require => Package["ruby1.8","ruby1.8-dev","apache2-dev","g++"] | ||
| [2009/04/16 12:04:18] <vachon> oh yea, the apapche2-dev and g++ arent in puppet | ||
| [2009/04/16 12:04:23] <vachon> that might fail | ||
| [2009/04/16 12:04:31] <vachon> but the rubygems isnt even taking | ||
| [2009/04/16 12:04:40] <chillitom> should be require => [Package["ruby1.8"], Package["..."], ... | ||
| [2009/04/16 12:04:44] <chillitom> ] | ||
| [2009/04/16 12:04:51] <vachon> ok | ||
| [2009/04/16 12:04:53] @ Quit: kolla: Remote closed the connection | ||
| [2009/04/16 12:04:55] <chillitom> i think | ||
| [2009/04/16 12:05:09] @ Quit: unxfrek: "Leaving" | ||
| [2009/04/16 12:06:03] <vachon> removive the cruft on that line did nothing | ||
| [2009/04/16 12:06:11] <vachon> its like the packages arent being called | ||
| [2009/04/16 12:06:24] <vachon> do i need some master entry to make the packages pull in? | ||
| [2009/04/16 12:06:36] <chillitom> you need to define the package resources | ||
| [2009/04/16 12:06:51] <chillitom> package { "ruby1.8": } | ||
| [2009/04/16 12:07:03] <vachon> which is there | ||
| [2009/04/16 12:07:07] <chillitom> package { "ruby1.8-dev": } | ||
| [2009/04/16 12:07:09] <vachon> but does that make it install it? | ||
| [2009/04/16 12:07:10] <chillitom> etc | ||
| [2009/04/16 12:07:24] <vachon> i'll add the missing ones | ||
| [2009/04/16 12:07:27] <chillitom> yeah if the class that contains those defines in included | ||
| [2009/04/16 12:07:50] <vachon> very weird | ||
| [2009/04/16 12:08:30] <vachon> i changed the requires on the gems to require rubygems (which in turn required ruby1.8) | ||
| [2009/04/16 12:08:39] <vachon> but its like the system just doesnt see em | ||
| [2009/04/16 12:08:46] <vachon> well the entire file | ||
| [2009/04/16 12:09:01] <Volcane> do a simple test, save it to local file | ||
| [2009/04/16 12:09:08] <Volcane> and just do a include gems | ||
| [2009/04/16 12:09:15] <Volcane> and do: puppet --debug test.pp | ||
| [2009/04/16 12:09:15] @ unxfrek joined channel #puppet | ||
| [2009/04/16 12:09:16] <Volcane> as root | ||
| [2009/04/16 12:09:19] <Volcane> see what happens | ||
| [2009/04/16 12:09:26] <vachon> ok | ||
| [2009/04/16 12:09:54] @ fujin- joined channel #puppet | ||
| [2009/04/16 12:13:19] <vachon> oh crap | ||
| [2009/04/16 12:13:21] <vachon> found it | ||
| [2009/04/16 12:13:25] <vachon> doh | ||
| [2009/04/16 12:13:33] <vachon> line 7, missing a closing quote | ||
| [2009/04/16 12:15:58] <flashn> vachon, provider => gem | ||
| [2009/04/16 12:16:15] <vachon> no quotes? | ||
| [2009/04/16 12:16:15] <flashn> or.. source => blabla | ||
| [2009/04/16 12:16:25] <flashn> and add a file { } | ||
| [2009/04/16 12:16:40] <vachon> yea i found the missing quote but its not pulling in | ||
| [2009/04/16 12:16:42] <vachon> ok | ||
| [2009/04/16 12:16:47] <vachon> i will try that can get back to you guys | ||
| [2009/04/16 12:16:48] <vachon> thanks | ||
| [2009/04/16 12:17:16] <rzm102> In my puppet.conf, should my heading "main" be wrapped in [] or {}? | ||
| [2009/04/16 12:17:18] @ kingitchy joined channel #puppet | ||
| [2009/04/16 12:17:43] <chillitom> [] | ||
| [2009/04/16 12:17:54] @ briandquinn joined channel #puppet | ||
| [2009/04/16 12:18:08] <rzm102> the puppetmasterd won't start with [] | ||
| [2009/04/16 12:18:35] <flashn> did you call it something else than "main"? | ||
| [2009/04/16 12:18:39] <rzm102> no | ||
| [2009/04/16 12:18:57] <rzm102> if I remove the [main] line, the puppetmasterd starts. | ||
| [2009/04/16 12:19:16] <rzm102> Library/Ruby/Site/1.8/puppet/util/settings.rb:1042:in `parse_file': Could not match line [main] at /etc/puppet/puppet.conf:[main] (Puppet::Error) | ||
| [2009/04/16 12:20:46] <joe-mac> rzm102: put spaces to pad the main | ||
| [2009/04/16 12:20:49] <joe-mac> so like [ main ] | ||
| [2009/04/16 12:20:56] <joe-mac> actually, i don't think that should matter | ||
| [2009/04/16 12:20:58] <joe-mac> let me check mine | ||
| [2009/04/16 12:21:23] <joe-mac> no mine has no spaces actually, i am thinking of something in ruby sorry | ||
| [2009/04/16 12:21:24] <rzm102> same error | ||
| [2009/04/16 12:21:33] <rzm102> thanks though | ||
| [2009/04/16 12:22:02] @ Quit: WALoeIII: Connection timed out | ||
| [2009/04/16 12:22:05] <rzm102> when I remove main and try to start, i get: Certificate retrieval failed: Invalid autosign value "false" | ||
| [2009/04/16 12:22:32] <joe-mac> do you have a puppet.conf and a puppetd.conf? | ||
| [2009/04/16 12:22:41] <joe-mac> you shopld only have a puppet.conf | ||
| [2009/04/16 12:22:49] @ Quit: DerekW: "Leaving" | ||
| [2009/04/16 12:22:55] <rzm102> only puppet.conf | ||
| [2009/04/16 12:23:19] <rzm102> here is what i've done: http://xrl.us/beo8wr | ||
| [2009/04/16 12:25:00] <joe-mac> yea i took a quick look, nothing obvious buit i am by no means an expert. here try this config http://www.pastie.org/448722 | ||
| [2009/04/16 12:25:13] <joe-mac> mv your current puppet.conf out for a second and see what happens with that one | ||
| [2009/04/16 12:25:22] @ Quit: HarryCalahan: "." | ||
| [2009/04/16 12:25:33] <rzm102> thank you, I will try | ||
| [2009/04/16 12:31:53] <rzm102> joe-mac I slimmed down the conf to just logdir, user, group, and the puppetmasterd section and it seems to work | ||
| [2009/04/16 12:32:07] @ Quit: Deesl: | ||
| [2009/04/16 12:33:12] @ jmarki joined channel #puppet | ||
| [2009/04/16 12:33:33] @ WALoeIII joined channel #puppet | ||
| [2009/04/16 12:33:40] @ Quit: WALoeIII: Remote closed the connection | ||
| [2009/04/16 12:33:46] @ WALoeIII joined channel #puppet | ||
| [2009/04/16 12:45:58] @ Quit: fujin-: "Leaving..." | ||
| [2009/04/16 12:48:30] @ Quit: lazzurs: "Lost terminal" | ||
| [2009/04/16 12:52:23] @ edwardam joined channel #puppet | ||
| [2009/04/16 12:53:51] @ alfism joined channel #puppet | ||
| [2009/04/16 12:57:09] @ Quit: nasrat: "Ex-Chat" | ||
| [2009/04/16 12:57:19] @ Quit: edwardam: Remote closed the connection | ||
| [2009/04/16 12:58:30] <rzm102> trying to add client to server (not sure if that's the right way to say it) produces this error: http://pastie.org/448759 | ||
| [2009/04/16 12:59:12] <Volcane> rzm102: do you have other clients already that also use this --server parameter? | ||
| [2009/04/16 12:59:32] <rzm102> no, this is the first client, only in testing phase | ||
| [2009/04/16 12:59:50] <Volcane> and do you have any certname=whatever on your master's puppet.conf? | ||
| [2009/04/16 12:59:58] <rzm102> client is on wireless connected to same subnet as server | ||
| [2009/04/16 13:00:11] <rzm102> server and client are OS X 10.5.6 | ||
| [2009/04/16 13:00:35] <rzm102> the puppetca --list shows the client as puppet1.local which is what I named it | ||
| [2009/04/16 13:01:41] <Volcane> if you want help, u need to answer the question i asked. | ||
| [2009/04/16 13:02:06] <rzm102> sorry, didn't see it. I have certname set to chm200. educ.psu.edu | ||
| [2009/04/16 13:02:43] <Volcane> have you always had that or added it only after first building the master? | ||
| [2009/04/16 13:03:17] <Volcane> if you do: | ||
| [2009/04/16 13:03:17] <rzm102> I think it was after building the first master | ||
| [2009/04/16 13:03:25] <Volcane> openssl s_client -connect masterhost:8140 | ||
| [2009/04/16 13:03:44] <Volcane> you'll see the subject=/CN=??? in there | ||
| [2009/04/16 13:03:48] <Volcane> what does it say? | ||
| [2009/04/16 13:04:16] @ Quit: fujin_: Read error: 113 (No route to host) | ||
| [2009/04/16 13:04:26] <rzm102> chm200. educ.psu.edu | ||
| [2009/04/16 13:04:31] <joe-mac> there's the space | ||
| [2009/04/16 13:04:34] <joe-mac> coming back to haunt you@ | ||
| [2009/04/16 13:04:35] <joe-mac> ! | ||
| [2009/04/16 13:04:38] @ Quit: fujin: Read error: 113 (No route to host) | ||
| [2009/04/16 13:04:38] <rzm102> =) | ||
| [2009/04/16 13:04:43] <Volcane> without the space hopefully? | ||
| [2009/04/16 13:04:56] <rzm102> with the space | ||
| [2009/04/16 13:05:00] <Volcane> right, fail. | ||
| [2009/04/16 13:05:07] <vachon> yea openssl doesnt like spaces in CN's | ||
| [2009/04/16 13:05:07] <Volcane> rm -rf, restart :P | ||
| [2009/04/16 13:05:31] @ Quit: MattyM: "ta ta" | ||
| [2009/04/16 13:05:31] <rzm102> ok, so I need to rebuild the machine from scratch? | ||
| [2009/04/16 13:05:41] <vachon> becasue CN's dare reverse looked up to an UIP | ||
| [2009/04/16 13:05:46] <Volcane> you shoudl be able to just delete the ssl directory under the masters vardir | ||
| [2009/04/16 13:05:48] <vachon> and the SSL transaction is made on an IP | ||
| [2009/04/16 13:05:56] @ Quit: omry|work: Read error: 110 (Connection timed out) | ||
| [2009/04/16 13:06:02] <Volcane> the basic idea is | ||
| [2009/04/16 13:06:10] <Volcane> certname == server | ||
| [2009/04/16 13:06:15] <Volcane> so if you do puppetd --server=foo | ||
| [2009/04/16 13:06:21] <Volcane> your CN on the ssl cert has to be foo | ||
| [2009/04/16 13:06:25] <Volcane> else it will barf | ||
| [2009/04/16 13:06:51] @ omry|work joined channel #puppet | ||
| [2009/04/16 13:06:51] <rzm102> so my puppet.conf certname should have a space in it? | ||
| [2009/04/16 13:06:56] <Volcane> no spaces | ||
| [2009/04/16 13:07:04] <Volcane> get rid of the space, you'll be kicking yourself | ||
| [2009/04/16 13:07:22] <Volcane> infact dont even point it to a hostname, add a CNAME for 'puppet' in your domain | ||
| [2009/04/16 13:07:38] <Volcane> cos if you ever need to move the master to a new server,and the servers hostname change | ||
| [2009/04/16 13:07:41] <Volcane> you'll need to redo all the SSL | ||
| [2009/04/16 13:08:20] <rzm102> ok. Thanks. I will edit the puppet.conf to point to the IP address. delete the ssl folder. restart the master and try to restart puppetd with the IP address | ||
| [2009/04/16 13:08:40] <Volcane> you cant use the ip address | ||
| [2009/04/16 13:09:33] <vachon> ssl requires DNS, not IP. What Volcane is trying to say is you should be able to ping the CN entry in your SSL cert and it and you puppet master should be the same char for char | ||
| [2009/04/16 13:09:50] <Volcane> yup | ||
| [2009/04/16 13:10:01] <Volcane> also saying best practise is not to use $fqdn of your master but some dns alias | ||
| [2009/04/16 13:10:14] <rzm102> ok, so I can't skip the CNAME at all, even for testing | ||
| [2009/04/16 13:10:15] <Volcane> else as soon as you need a new master on a new hostname, everything will break | ||
| [2009/04/16 13:10:24] <Volcane> rzm102: you can add /etc/hosts entries | ||
| [2009/04/16 13:10:27] <vachon> for testin gyou could put it in the host file | ||
| [2009/04/16 13:10:34] <joe-mac> or jkust use the default puppet.$domain | ||
| [2009/04/16 13:10:46] <Volcane> rzm102: by default, without any --server and certname stuff it talks to 'puppet' | ||
| [2009/04/16 13:11:03] <Volcane> rzm102: so just add puppet to your hosts files and start fresh | ||
| [2009/04/16 13:12:12] <rzm102> ok, thanks. will try, will do... | ||
| [2009/04/16 13:12:53] <vachon> ok, i stil have my issue, --debug on the rails.pp file comes back clean | ||
| [2009/04/16 13:13:04] <vachon> but its just not applying the package declarations | ||
| [2009/04/16 13:14:35] <Volcane> vachon: did you try just putting the bits in a single file and running it with puppet? | ||
| [2009/04/16 13:14:44] @ Quit: glaw: ""Remember, information is not knowledge, knowledge is not wisdom, wisdom is not truth, truth is not beauty, beauty is not lov | ||
| [2009/04/16 13:15:34] <vachon> you mean each declaraion? | ||
| [2009/04/16 13:16:13] <Volcane> just make a small thing like http://pastie.org/448794 in test.pp | ||
| [2009/04/16 13:16:21] <Volcane> then as root run: puppet test.pp | ||
| [2009/04/16 13:16:28] <Volcane> just to see that package even works at all on your machine | ||
| [2009/04/16 13:16:29] <vachon> ok | ||
| [2009/04/16 13:18:21] <vachon> seems to work, so it might be my nodes.pp? | ||
| [2009/04/16 13:18:31] <vachon> its kinda complex | ||
| [2009/04/16 13:18:53] <Volcane> yeah so somewhere somethings making it barf, run your master in debug mode see if it complains about anything | ||
| [2009/04/16 13:19:10] <Volcane> also running puppetd --test --debug might help you track whats where | ||
| [2009/04/16 13:19:35] <vachon> you can do a multiple inherit right, so node admin inherits base and node admin1 inherits node admin | ||
| [2009/04/16 13:19:44] <vachon> or should i use some other construct for that | ||
| [2009/04/16 13:20:01] <Volcane> no | ||
| [2009/04/16 13:20:32] <vachon> no to which? | ||
| [2009/04/16 13:20:38] <Volcane> dont multi inherit | ||
| [2009/04/16 13:20:43] <vachon> alternative? | ||
| [2009/04/16 13:20:58] <Volcane> KISS :P | ||
| [2009/04/16 13:21:06] <vachon> haha | ||
| [2009/04/16 13:21:16] <vachon> class admin and include the class? | ||
| [2009/04/16 13:21:20] <Volcane> yes | ||
| [2009/04/16 13:21:25] <Volcane> node inheritance is a terrible idea | ||
| [2009/04/16 13:21:37] <vachon> well i am new to this, and im bound to do stupid things | ||
| [2009/04/16 13:21:40] <vachon> lol | ||
| [2009/04/16 13:21:45] @ Quit: madrescher: Read error: 110 (Connection timed out) | ||
| [2009/04/16 13:22:03] <vachon> i didnt know you could do a include in a class | ||
| [2009/04/16 13:22:11] <vachon> that would have been my first thing to do if i knew that | ||
| [2009/04/16 13:22:20] <Volcane> eventually when you're big enough or complex enough you'll want to use a external node tool (programatically producing node classes) | ||
| [2009/04/16 13:22:26] <Volcane> and then you cant do node inheritance | ||
| [2009/04/16 13:23:26] <Volcane> yeah classes and includes in classes is much better | ||
| [2009/04/16 13:24:41] <Volcane> its a bit of contentious issue, but I'd say till you're fully up to speed with puppet and can wake up spew puppet code in your sleep you're better off just forgetting that it even support inheritance in any form :P | ||
| [2009/04/16 13:26:22] <vachon> haha, sounds easier honestly not to use it | ||
| [2009/04/16 13:28:08] <Volcane> cod4++ | ||
| [2009/04/16 13:28:11] <Volcane> arg | ||
| [2009/04/16 13:28:21] * Volcane 's very irc client disfunctional today | ||
| [2009/04/16 13:28:51] <rzm102> Thanks all, I think that I have puppet running successfully | ||
| [2009/04/16 13:34:13] @ Quit: jkelly: "http://www.mibbit.com ajax IRC Client" | ||
| [2009/04/16 13:40:28] <rzm102> If I run: puppetd --verbose I get: err: Could not create PID file: /var/puppet/run/puppetd.pid | ||
| [2009/04/16 13:40:44] <rzm102> on the client | ||
| [2009/04/16 13:40:48] <jief-> probably because its already running | ||
| [2009/04/16 13:40:53] <jief-> /etc/init.d/puppetd stop | ||
| [2009/04/16 13:40:56] <jief-> then run it manually | ||
| [2009/04/16 13:41:03] <Telmo> or the directory doesn't exist | ||
| [2009/04/16 13:41:18] <rzm102> it's probably running already | ||
| [2009/04/16 13:41:41] <rzm102> yes. Id10T error there | ||
| [2009/04/16 13:43:25] <rzm102> So when I run the puppetd --server puppet.etc.... command, the daemon continues to run and checks in, was it every 30 minutes? So then if I change something on the manifest on the puppetmaster, after check in, the client gets the update | ||
| [2009/04/16 13:43:42] <Telmo> correct | ||
| [2009/04/16 13:43:45] <rzm102> thanks | ||
| [2009/04/16 13:43:52] @ Quit: briandquinn: | ||
| [2009/04/16 13:44:09] <Telmo> or if you have --listen in the daemon options you can force a run with puppetrun | ||
| [2009/04/16 13:44:29] <Telmo> well.. I kind of oversimplified that :P) | ||
| [2009/04/16 13:44:40] <Telmo> but that's the basics of it | ||
| [2009/04/16 13:44:49] <rzm102> yeah, I don't know what puppetrun is though, so it flew over my head anyway | ||
| [2009/04/16 13:44:56] <Volcane> rzm102: i wrote http://www.devco.net/pubwiki/Puppet/GettingStarted which you might find useful, not sure if you're past what it covers yet, but anyway worth a look | ||
| [2009/04/16 13:44:57] @ pleemans joined channel #puppet | ||
| [2009/04/16 13:45:18] <rzm102> had not seen it, thanks. WIll read now | ||
| [2009/04/16 13:45:30] @ claymation joined channel #puppet | ||
| [2009/04/16 13:46:59] <Telmo> btw, single quotes in the password worked like a charm :D | ||
| [2009/04/16 13:47:07] @ Quit: pleemans: Read error: 60 (Operation timed out) | ||
| [2009/04/16 13:47:51] <vachon> can I not do class admin { \n include default \n include packages \n, include etc} | ||
| [2009/04/16 13:48:00] <vachon> wheren \n is a new line of course | ||
| [2009/04/16 13:48:01] <Volcane> yes u can | ||
| [2009/04/16 13:48:09] <vachon> it says syntax error | ||
| [2009/04/16 13:48:22] <Volcane> show code+error | ||
| [2009/04/16 13:48:24] @ Deesl joined channel #puppet | ||
| [2009/04/16 13:48:28] <vachon> k | ||
| [2009/04/16 13:48:29] <vachon> one se | ||
| [2009/04/16 13:49:45] <vachon> http://pastie.org/448829 | ||
| [2009/04/16 13:50:06] <Volcane> cant have "-" in a class name | ||
| [2009/04/16 13:50:12] <vachon> doh | ||
| [2009/04/16 13:50:16] <vachon> _ ok? | ||
| [2009/04/16 13:50:20] <Volcane> yeah | ||
| [2009/04/16 13:50:24] <Volcane> well it hink thats it, pretty sure | ||
| [2009/04/16 13:50:36] @ Quit: cirquitz: "Leaving" | ||
| [2009/04/16 13:51:31] <vachon> can you have dashes in variable/arrays? | ||
| [2009/04/16 13:51:38] <Volcane> probably not | ||
| [2009/04/16 13:52:30] @ ezmob joined channel #puppet | ||
| [2009/04/16 13:53:02] @ Quit: alfism: "Connection reset by beer" | ||
| [2009/04/16 13:54:05] @ Quit: lak: | ||
| [2009/04/16 13:55:57] @ Quit: evox: Remote closed the connection | ||
| [2009/04/16 14:03:27] @ nakano is now known as nakano_ | ||
| [2009/04/16 14:06:43] <vachon> took out the dashes, put in modified camel calse (first letter lowercase) | ||
| [2009/04/16 14:06:45] <vachon> same thing | ||
| [2009/04/16 14:07:02] <vachon> is default a reserver word? | ||
| [2009/04/16 14:07:42] <vachon> i do thinks it is | ||
| [2009/04/16 14:09:16] @ Deesl_ joined channel #puppet | ||
| [2009/04/16 14:11:57] <vachon> Volcane: default is most certianly a bad word to use, base is safe tho | ||
| [2009/04/16 14:16:19] @ Quit: chillitom: Remote closed the connection | ||
| [2009/04/16 14:21:13] @ MattyM joined channel #puppet | ||
| [2009/04/16 14:21:41] @ Quit: mikepea: Read error: 110 (Connection timed out) | ||
| [2009/04/16 14:24:46] @ Quit: jmarki: Remote closed the connection | ||
| [2009/04/16 14:27:04] @ Quit: Deesl: Read error: 110 (Connection timed out) | ||
| [2009/04/16 14:27:38] @ voixd joined channel #puppet | ||
| [2009/04/16 14:28:03] @ ashp left channel #puppet () | ||
| [2009/04/16 14:32:40] <rzm102> Volcane, what version of puppet was your guide written on? | ||
| [2009/04/16 14:32:44] <rzm102> er, for | ||
| [2009/04/16 14:33:24] <rzm102> ah, found it, 0.24.4 | ||
| [2009/04/16 14:34:52] @ nasrat joined channel #puppet | ||
| [2009/04/16 14:38:14] <jief-> grrr. i can't make this recipe work for some reason | ||
| [2009/04/16 14:39:27] @ davidj joined channel #puppet | ||
| [2009/04/16 14:39:42] <jief-> is 'keys' a reserved word in puppet by any chance? | ||
| [2009/04/16 14:39:52] <rzm102> do clients need to have a static IP or hostname/dns name? Can the dns names change on clients without affecting puppet? | ||
| [2009/04/16 14:40:22] <jief-> no | ||
| [2009/04/16 14:40:26] <jief-> because of the SSl certificates | ||
| [2009/04/16 14:40:39] <rzm102> Thanks, sorry can't help with your question. | ||
| [2009/04/16 14:41:05] <rzm102> <--noob | ||
| [2009/04/16 14:41:07] <plathrop> jief-: I don't believe it is. | ||
| [2009/04/16 14:42:37] <jief-> well, that's how SSL works | ||
| [2009/04/16 14:42:45] <jief-> i dont see why it would be any different with puppet | ||
| [2009/04/16 14:42:49] <jief-> since its CA is openssl afterall | ||
| [2009/04/16 14:46:22] <plathrop> jief-: No, you are right about that. I was answering *your* question. | ||
| [2009/04/16 14:46:39] <jief-> plathrop: ah sorry lol | ||
| [2009/04/16 14:47:03] <jief-> is there a limit to subclasses depth? | ||
| [2009/04/16 14:47:13] <jief-> because i created ssh and ssh::server | ||
| [2009/04/16 14:47:24] <jief-> if i add a subclass to ssh::server, then it can't be found for some reason | ||
| [2009/04/16 14:47:42] <jief-> but if i move ssh::server::adminkeys to ssh::adminkeys, then its fine | ||
| [2009/04/16 14:47:55] <plathrop> jief-: are you depending on autloading? | ||
| [2009/04/16 14:48:10] <plathrop> autoloading, even | ||
| [2009/04/16 14:48:31] <jief-> hmm, autoloading? | ||
| [2009/04/16 14:48:59] <plathrop> jief-: Yeah. How are you getting the .pp file to load? Are you explicitly importing it or are you using modules? | ||
| [2009/04/16 14:49:29] <jief-> modules | ||
| [2009/04/16 14:49:41] <jief-> in my site.pp, i have 'import "modules"' | ||
| [2009/04/16 14:50:11] <plathrop> jief-: Uh... I'm talking about puppet modules, which you don't need to import. | ||
| [2009/04/16 14:50:37] <jief-> ah then i assume so | ||
| [2009/04/16 14:51:13] <plathrop> So, you've got an "ssh" directory with a "manifests" subdirectory with init.pp and server.pp in it? | ||
| [2009/04/16 14:51:20] <jief-> ya | ||
| [2009/04/16 14:51:22] <plathrop> Okay | ||
| [2009/04/16 14:51:24] <jief-> and then adminkeys.pp | ||
| [2009/04/16 14:51:40] <plathrop> So, the module code is going to look for ssh::server::adminkeys in ssh/server/adminkeys.pp | ||
| [2009/04/16 14:51:51] <plathrop> sorry | ||
| [2009/04/16 14:51:58] <plathrop> ssh/manifests/server/adminkeys.pp | ||
| [2009/04/16 14:52:23] <jief-> hmm | ||
| [2009/04/16 14:52:28] <plathrop> You get it? | ||
| [2009/04/16 14:52:33] <jief-> ya | ||
| [2009/04/16 14:52:53] <plathrop> cool. Try that out and see if it works. I gotta hit lunch but if it is still not working I'll help you when I get back. | ||
| [2009/04/16 14:53:10] <jief-> k | ||
| [2009/04/16 15:05:08] @ jlamsens joined channel #puppet | ||
| [2009/04/16 15:06:03] @ Quit: vachon: "Leaving" | ||
| [2009/04/16 15:08:57] <jlamsens> please look at http://pastie.org/448942 | ||
| [2009/04/16 15:08:59] <jlamsens> The command gets executed, even when file /tmp/mysql-create-data.sql is not there yet. Anyone has an idea why this could be ? | ||
| [2009/04/16 15:09:27] <jlamsens> Can I even use a 'require' with an 'exec' statement ? | ||
| [2009/04/16 15:10:48] @ Quit: omry|work: Read error: 110 (Connection timed out) | ||
| [2009/04/16 15:13:26] @ ezmob is now known as ezmob|away | ||
| [2009/04/16 15:14:24] @ omry|work joined channel #puppet | ||
| [2009/04/16 15:16:22] <jlamsens> I found the answer to my last question; Metaparameters are parameters that work with any resource type - so yes, exec can use a 'require' paramter. Now my first question. Anyone ? Thanks. | ||
| [2009/04/16 15:17:08] <jlamsens> The command at http://pastie.org/448942 gets executed, even when file /tmp/mysql-create-data.sql is not there yet. Anyone has an idea why this could be ? | ||
| [2009/04/16 15:17:33] @ chadh joined channel #puppet | ||
| [2009/04/16 15:19:57] @ alfism joined channel #puppet | ||
| [2009/04/16 15:22:19] <Telmo> you have a ifnot and your commands check if the file is not there | ||
| [2009/04/16 15:22:25] <Telmo> you have a double negative | ||
| [2009/04/16 15:22:45] <Telmo> unless I am reading it wrong | ||
| [2009/04/16 15:24:21] <Volcane> exec{} also have unless | ||
| [2009/04/16 15:24:32] <Volcane> so you dont need to invert the check of a onlyif, just use unless. | ||
| [2009/04/16 15:25:16] <Volcane> at the very least its more readable | ||
| [2009/04/16 15:27:59] <jlamsens> ok, thanks, I'll check | ||
| [2009/04/16 15:29:43] <jlamsens> ... but you have to say that the statement is 100% correct, not ? It reads: execute the command (ONLY IF that file is NOT there) AND (first have the password set and put the file in place) | ||
| [2009/04/16 15:29:45] <jlamsens> right ? | ||
| [2009/04/16 15:30:51] <joe-mac> jlamsens: you didn't specify a path and your stuff isn't fully qualified... | ||
| [2009/04/16 15:31:10] <jlamsens> Volcane: but you are right about the fact unless is more readable, that's true | ||
| [2009/04/16 15:32:03] <jlamsens> joe-mac; my path is specified in my main site.pp (Exec { path => "/usr/bin:/bin:/usr/sbin:/sbin" }) so it's specified for ALL commands | ||
| [2009/04/16 15:32:22] <joe-mac> o i c. how about trying something like onlyif => "/bin/sh -c "[ ! -f /var/lib/mysql/apache2/users.MYD ]", | ||
| [2009/04/16 15:33:43] <jlamsens> joe-mac; I would then rather prefer the advice of Volcane; unless [ test -f /var/lib/mysql/apache2/users.MYD], no ? Much more simpler I guess... ? | ||
| [2009/04/16 15:33:44] @ Quit: joe-mac: Remote closed the connection | ||
| [2009/04/16 15:36:15] @ Quit: jief-: "Lost terminal" | ||
| [2009/04/16 15:39:18] <rzm102> having trouble connecting to puppetmaster file server: http://pastie.org/448977 | ||
| [2009/04/16 15:39:55] @ lak joined channel #puppet | ||
| [2009/04/16 15:40:24] <jlamsens> rzm102: it appears Puppet wants to connect to the default puppetserver called 'puppet' | ||
| [2009/04/16 15:40:40] <jlamsens> did you specify the server in /etc/puppet/puppet.conf via a secion [puppetd] ? | ||
| [2009/04/16 15:40:46] @ ezmob|away is now known as ezmob | ||
| [2009/04/16 15:40:50] <jlamsens> section | ||
| [2009/04/16 15:41:01] * Volcane thought rzm102 agreed to just use 'puppet' and not the whole fqdn | ||
| [2009/04/16 15:41:23] <rzm102> I don't have any puppetd in puppet.cong | ||
| [2009/04/16 15:42:16] <rzm102> agreed for testing to use puppet | ||
| [2009/04/16 15:42:36] @ joe-mac joined channel #puppet | ||
| [2009/04/16 15:42:47] <Volcane> well apparently it still cant find 'puppet' | ||
| [2009/04/16 15:42:52] <rzm102> hmm, I may have messed it up anyway. my puppet.conf references server and certname to puppet.educ.psu.edu | ||
| [2009/04/16 15:42:53] <Volcane> so can you: ping puppet ? | ||
| [2009/04/16 15:43:01] <jlamsens> can you indeed resolve puppet ? | ||
| [2009/04/16 15:43:02] @ Quit: nuloop: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 15:43:03] <Telmo> both Volcane and joe-mac are basically saying the same jlamsens, both onlyif and unless take a boolean value, just make sure the output of the command correspond to what you want and you are golden | ||
| [2009/04/16 15:43:12] <rzm102> and I added the puppet.educ.psu.edu to the hosts file | ||
| [2009/04/16 15:43:49] <jlamsens> Temo: thanks, I changed it to unless to make it more readable, but do YOU have an idea why the command gets executed first ? | ||
| [2009/04/16 15:43:54] <Volcane> lak: stupid off-topic question, whats a sane way to run a system command from ruby in the background? without causing zombies? | ||
| [2009/04/16 15:44:44] <jlamsens> Telmo: I mean before the file /tmp/mysql-create-data.sql is placed there ? | ||
| [2009/04/16 15:44:46] <Volcane> jlamsens: you cant specify require multiple times, use an array | ||
| [2009/04/16 15:44:57] <Telmo> in ruby? give me a second Volcane, I'll pastie an example for you | ||
| [2009/04/16 15:44:57] <Volcane> jlamsens: require => [File["one"], File["two"]] | ||
| [2009/04/16 15:45:07] <Volcane> Telmo:indeed | ||
| [2009/04/16 15:45:10] @ briandquinn joined channel #puppet | ||
| [2009/04/16 15:45:24] <lak> Volcane: it's the pretty standard stuff - you have to fork/exec and then wait for the pid | ||
| [2009/04/16 15:45:28] <jlamsens> Volcane: brilliant ! If that's true, my problem is gone | ||
| [2009/04/16 15:45:42] <lak> Volcane: there's something like a Process.dispatch(pid) that will create a thread to watch for the pid, if you don't want to | ||
| [2009/04/16 15:45:46] <Volcane> jlamsens: its true :P sorry i missed the elephant in the kitchen when you showed your example earlier | ||
| [2009/04/16 15:45:53] <jlamsens> :-) | ||
| [2009/04/16 15:46:11] <Volcane> lak: ah thanks, I'll check, someone showed some double fork "solution" but its the anti-solution | ||
| [2009/04/16 15:47:19] <Volcane> jlamsens: does prove though the value of readable code ;) | ||
| [2009/04/16 15:47:58] <jmslagle> Hrm! | ||
| [2009/04/16 15:48:06] <jmslagle> Must make facter RPM form head! | ||
| [2009/04/16 15:48:09] <jmslagle> I want EC2 facts :D | ||
| [2009/04/16 15:48:24] <jlamsens> Volcane: do you know anything of inheritance ? :-) | ||
| [2009/04/16 15:48:35] <jlamsens> because I have a last problem | ||
| [2009/04/16 15:48:41] <Volcane> jlamsens: the answer is almost always dont :P | ||
| [2009/04/16 15:49:00] <jlamsens> Volcane: is it ? does it give so much problems ? | ||
| [2009/04/16 15:49:17] <Volcane> not if you know exactly what you're doing :P | ||
| [2009/04/16 15:49:55] <Volcane> but mostly people dont, they confuse inheritance with simply including another class | ||
| [2009/04/16 15:50:04] <Volcane> anyway, ask away | ||
| [2009/04/16 15:50:07] <jlamsens> Volcane: well, I think I understand it almost, I'll prepare a pastie with a question, and I'll be back in 5 minutes, okay ? :-) | ||
| [2009/04/16 15:50:15] <Volcane> yeah | ||
| [2009/04/16 15:52:11] <rzm102> I can not resolve puppet | ||
| [2009/04/16 15:52:17] <rzm102> I can resolve puppet.educ.psu.edu | ||
| [2009/04/16 15:52:42] <rzm102> so, I should start over and set server and certname to "puppet" in puppet.conf | ||
| [2009/04/16 15:52:43] <joe-mac> add puppet as an alias, see if that helps | ||
| [2009/04/16 15:53:09] <rzm102> in /etc/hosts? | ||
| [2009/04/16 15:53:14] <joe-mac> yea | ||
| [2009/04/16 15:53:28] * Volcane 's left work just after saying make "ping puppet" work by adding it to hosts, had dinner, commuted home, had a bath and still we cant 'ping puppet' :) | ||
| [2009/04/16 15:53:42] <rzm102> I can ping puppet | ||
| [2009/04/16 15:54:40] <joe-mac> i wish i had left work | ||
| [2009/04/16 15:54:47] <Volcane> from the client? but it says it cant find the name puppet? | ||
| [2009/04/16 15:55:35] <rzm102> from the client, after adding to hosts, I can ping puppet | ||
| [2009/04/16 15:56:15] <Volcane> and why do you still say --server=<something other than just 'puppet'> ? | ||
| [2009/04/16 15:56:41] <rzm102> yeah, cause I'm an noob and it does | ||
| [2009/04/16 15:56:50] <Volcane> :) | ||
| [2009/04/16 15:57:06] <rzm102> ok, well, third times the charm, eh! | ||
| [2009/04/16 15:57:52] <rzm102> I really should just add a CNAME and stop trying to test by adding to /etc/hosts | ||
| [2009/04/16 15:59:49] @ smooge joined channel #puppet | ||
| [2009/04/16 16:01:55] @ Quit: mfoster: Read error: 60 (Operation timed out) | ||
| [2009/04/16 16:03:46] @ ezmob is now known as ezmob|away | ||
| [2009/04/16 16:03:51] @ ezmob|away is now known as ezmob | ||
| [2009/04/16 16:04:56] <jlamsens> Volcane: here I am with my question: http://pastie.org/449018 | ||
| [2009/04/16 16:05:01] <jlamsens> Thanks in advance for reading | ||
| [2009/04/16 16:06:36] <Volcane> ok | ||
| [2009/04/16 16:07:25] <rzm102> got it working with hostname puppet, thanks again | ||
| [2009/04/16 16:08:28] <Volcane> jlamsens: on a basic level inheritance lets you override vars: http://pastie.org/449025 | ||
| [2009/04/16 16:08:30] @ mfoster joined channel #puppet | ||
| [2009/04/16 16:08:58] @ mfoster left channel #puppet () | ||
| [2009/04/16 16:09:08] <Volcane> jlamsens: but now read http://reductivelabs.com/trac/puppet/wiki/CommonMisconceptions#class-inheritance-and-variable-scope | ||
| [2009/04/16 16:10:03] <Volcane> rzm102 :) | ||
| [2009/04/16 16:11:00] <rzm102> Your guide helps a lot | ||
| [2009/04/16 16:12:17] <Volcane> jlamsens: and that should explain why your code isnt doing what u want | ||
| [2009/04/16 16:12:24] <Volcane> rzm102: nice, glad it helps | ||
| [2009/04/16 16:13:23] <jlamsens> Volcane: that's true, thanks a lot. I think I'll include the class instead of inheriting it, and strip out the variable $root_mysql_password out of the class | ||
| [2009/04/16 16:14:00] <Volcane> jlamsens:http://pastie.org/449031 | ||
| [2009/04/16 16:14:31] <Volcane> theres probably a better/shorter way in more recent puppets, thats a bit old now, but it might give you some ideas | ||
| [2009/04/16 16:15:33] <jlamsens> thanks a lot | ||
| [2009/04/16 16:20:40] @ cwebber_ joined channel #puppet | ||
| [2009/04/16 16:21:08] @ Quit: cwebber: Read error: 60 (Operation timed out) | ||
| [2009/04/16 16:29:23] <jmslagle> Hrm! | ||
| [2009/04/16 16:29:30] <jmslagle> I thought the HEAD of the facter tree had ec2 facts | ||
| [2009/04/16 16:29:32] <jmslagle> Poo | ||
| [2009/04/16 16:31:56] <jmslagle> Interesting | ||
| [2009/04/16 16:32:00] <jmslagle> the rb is there | ||
| [2009/04/16 16:32:05] @ Quit: briandquinn: | ||
| [2009/04/16 16:36:29] @ Quit: eythian: Remote closed the connection | ||
| [2009/04/16 16:37:20] @ Quit: unxfrek: "Leaving" | ||
| [2009/04/16 16:42:55] @ Quit: Deesl_: Connection timed out | ||
| [2009/04/16 16:48:08] @ Quit: lak: | ||
| [2009/04/16 16:53:08] @ Quit: MattyM: Remote closed the connection | ||
| [2009/04/16 16:56:04] <rzm102> errors on my own files class: http://pastie.org/448977 | ||
| [2009/04/16 16:59:28] @ fbe joined channel #puppet | ||
| [2009/04/16 17:00:43] @ Quit: keithlard: | ||
| [2009/04/16 17:02:38] <Volcane> rzm102: at /etc/puppet/manifests/classes/hosts.pp:11 | ||
| [2009/04/16 17:02:50] <Volcane> do you have class file {} in hosts.pp? | ||
| [2009/04/16 17:03:01] <Volcane> s/file/files | ||
| [2009/04/16 17:03:21] <rzm102> yes | ||
| [2009/04/16 17:03:24] <rzm102> thanks | ||
| [2009/04/16 17:03:41] <Volcane> just asking, cos your pstie looks just fine | ||
| [2009/04/16 17:04:05] <rzm102> let me paste what I had | ||
| [2009/04/16 17:04:32] <rzm102> I started by adding the file into the hosts class: http://pastie.org/448977 | ||
| [2009/04/16 17:04:41] <rzm102> but decided it would be better to make a new class | ||
| [2009/04/16 17:05:00] <rzm102> I forgot to delete the second file | ||
| [2009/04/16 17:05:08] <Volcane> you missed a "," on the line before | ||
| [2009/04/16 17:05:39] <rzm102> ok, thanks. works perfectly | ||
| [2009/04/16 17:05:59] @ gluemonkey joined channel #puppet | ||
| [2009/04/16 17:20:21] @ mikepea joined channel #puppet | ||
| [2009/04/16 17:25:17] @ lak joined channel #puppet | ||
| [2009/04/16 17:27:13] @ Quit: rzm102: Read error: 110 (Connection timed out) | ||
| [2009/04/16 17:30:23] @ kambiz is now known as kambiz_away | ||
| [2009/04/16 17:30:55] @ madrescher joined channel #puppet | ||
| [2009/04/16 17:37:07] @ Quit: erm_: Read error: 110 (Connection timed out) | ||
| [2009/04/16 17:43:03] @ Djelibeybi joined channel #puppet | ||
| [2009/04/16 17:43:21] @ Quit: davidj: Read error: 110 (Connection timed out) | ||
| [2009/04/16 17:45:48] @ unxfrek joined channel #puppet | ||
| [2009/04/16 17:52:07] @ Quit: cwebber_: Remote closed the connection | ||
| [2009/04/16 17:52:12] @ cwebber joined channel #puppet | ||
| [2009/04/16 18:06:05] <jlamsens> Volcane: another question, I learned from you this: http://reductivelabs.com/trac/puppet/wiki/CommonMisconceptions#class-inheritance-and-variable-scope. | ||
| [2009/04/16 18:06:19] <jlamsens> Volcane: now my question is; this works: http://pastie.org/449198, but is that kind of correct ? | ||
| [2009/04/16 18:06:34] @ Sharpyy joined channel #puppet | ||
| [2009/04/16 18:06:58] <Sharpyy> Hello Guys, | ||
| [2009/04/16 18:07:44] <Sharpyy> What should be the behaviour of Puppet when multiple classes of the same name are defined in 0.24.7? | ||
| [2009/04/16 18:08:28] <Sharpyy> The bug http://projects.reductivelabs.com/issues/857 is about it but there is no real answer to the expected behavior | ||
| [2009/04/16 18:10:54] <Volcane> why would you possibly want to have more than one class with the same name? do you *want* to confuse yourself and completely destroy readability? | ||
| [2009/04/16 18:11:49] <Volcane> jlamsens:it works cos the variable is set at a higher scope and so is visible everywhere | ||
| [2009/04/16 18:13:17] <jlamsens> Volcane: can I do what I do, namely "class testpuppetclient-classic-shared-database-mysql-class inherits templates-services-lamp-class", and then "include classic-shared-database-mysql-class" that contains "templates-services-lamp-class" itself ? | ||
| [2009/04/16 18:13:23] <jlamsens> Hope you can follow me :-) | ||
| [2009/04/16 18:13:49] <Volcane> you can include something multiple times yes | ||
| [2009/04/16 18:14:56] <jlamsens> But what actually happens, when you inherit something from a parent class, then include another class that contains that same parent class ? | ||
| [2009/04/16 18:15:13] @ kingitchy_ joined channel #puppet | ||
| [2009/04/16 18:15:38] <Volcane> jlamsens: trial and error will tell :) | ||
| [2009/04/16 18:15:58] <jlamsens> Volcane: I guess :-) I have no clue what I'm doing here at the moment :-) | ||
| [2009/04/16 18:17:18] <Volcane> you should check out http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation | ||
| [2009/04/16 18:17:24] <Volcane> it will probably help you think a bit more modularly | ||
| [2009/04/16 18:17:29] <Sharpyy> No I don't want to have several class with the same name but I want to be sure that if it happen by mistake, that puppet will warn it | ||
| [2009/04/16 18:17:44] @ kingitchy__ joined channel #puppet | ||
| [2009/04/16 18:17:45] <bda> Any suggestions on how to programmatically determine which nodes include which classes? | ||
| [2009/04/16 18:17:59] <Volcane> Sharpyy: well its easily answered, try it, run puppet, see what happens? | ||
| [2009/04/16 18:18:28] <Volcane> Sharpyy: the puppet command (no d) can run simple files with manifest in it, perfect for testing | ||
| [2009/04/16 18:19:44] @ Quit: mccune: Remote closed the connection | ||
| [2009/04/16 18:20:14] <Volcane> jlamsens: using the modules as above i typically do mysql::install, mysql::config, mysql::service, mysql::monitor. each doing the obvious thing if i then need say mysql::custom i then include what i need from the others and do whatever is needed extra etc | ||
| [2009/04/16 18:20:41] <Sharpyy> ok thank you, it seems to realize both classes | ||
| [2009/04/16 18:21:33] <jlamsens> Volcane: thanks, I guess I'm not ready for modules yet :-) But once I will be. | ||
| [2009/04/16 18:22:29] <Volcane> jlamsens: yeah, otherwise what can i say, experiment etc, but also get the book its pretty sweet | ||
| [2009/04/16 18:22:57] <jlamsens> Volcane: any advice on a good book ? | ||
| [2009/04/16 18:23:23] <Volcane> http://www.amazon.co.uk/Pulling-Strings-Puppet-Configuration-Management/dp/1590599780/ref=sr_1_1?ie=UTF8&s=books&qid=1239920590&sr=1-1 | ||
| [2009/04/16 18:24:10] @ Quit: unxfrek: "Leaving" | ||
| [2009/04/16 18:25:39] @ Quit: claymation: | ||
| [2009/04/16 18:27:05] @ Quit: madrescher: Read error: 113 (No route to host) | ||
| [2009/04/16 18:28:13] <jlamsens> Volcane: ok, thanks. I'll check it out. Absolute last question (for today :-) : http://pastie.org/449223 | ||
| [2009/04/16 18:28:29] @ Quit: raphink: Remote closed the connection | ||
| [2009/04/16 18:29:15] <Volcane> donno, you miht perhaps just create a file{} resource to put it there, try it not sure | ||
| [2009/04/16 18:29:30] @ raphink joined channel #puppet | ||
| [2009/04/16 18:29:35] @ Sharpyy left channel #puppet ("Leaving") | ||
| [2009/04/16 18:31:20] @ Quit: kingitchy_: Read error: 110 (Connection timed out) | ||
| [2009/04/16 18:32:16] <jlamsens> Volcane: maybe something I can do is ignore => specific_file.conf and then put it there via the override class | ||
| [2009/04/16 18:32:32] <jlamsens> Volcane: thanks a lot | ||
| [2009/04/16 18:32:36] <jlamsens> bye | ||
| [2009/04/16 18:32:37] @ mfoster1 joined channel #puppet | ||
| [2009/04/16 18:32:38] @ Quit: kingitchy: Read error: 110 (Connection timed out) | ||
| [2009/04/16 18:32:38] <Volcane> large recurse copies are quite close, just aside | ||
| [2009/04/16 18:32:49] <Volcane> s/close/slow | ||
| [2009/04/16 18:33:16] <jlamsens> yes, that's true, but the webservices dir only contains some configs | ||
| [2009/04/16 18:33:19] <jlamsens> small configs | ||
| [2009/04/16 18:33:21] <Volcane> ok | ||
| [2009/04/16 18:33:30] <jlamsens> bye | ||
| [2009/04/16 18:33:38] @ madrescher joined channel #puppet | ||
| [2009/04/16 18:33:42] <Volcane> c'ya | ||
| [2009/04/16 18:33:55] @ Quit: jlamsens: "Leaving" | ||
| [2009/04/16 18:34:18] @ Quit: nasrat: | ||
| [2009/04/16 18:37:29] @ Quit: Cuchulain: "leaving" | ||
| [2009/04/16 18:38:31] @ Cuchulain joined channel #puppet | ||
| [2009/04/16 18:40:33] @ Quit: markl_: "Lost terminal" | ||
| [2009/04/16 18:45:19] @ Quit: gluemonkey: | ||
| [2009/04/16 18:46:54] @ Demosthenes joined channel #puppet | ||
| [2009/04/16 18:53:51] @ edwardam joined channel #puppet | ||
| [2009/04/16 18:58:02] @ Quit: mikepea: | ||
| [2009/04/16 19:05:27] @ Quit: pipes: "pipes has no reason" | ||
| [2009/04/16 19:14:43] @ Quit: ghenry: Remote closed the connection | ||
| [2009/04/16 19:16:37] @ Quit: cwebber: | ||
| [2009/04/16 19:18:09] @ Quit: raphink: Remote closed the connection | ||
| [2009/04/16 19:19:30] @ Quit: edwardam: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 19:24:54] @ Quit: happymcplaksin: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 19:24:57] @ happymcp` joined channel #puppet | ||
| [2009/04/16 19:28:47] @ keithlard joined channel #puppet | ||
| [2009/04/16 19:32:47] @ PaulWay joined channel #puppet | ||
| [2009/04/16 19:34:39] @ mikepea joined channel #puppet | ||
| [2009/04/16 19:40:09] @ edwardam joined channel #puppet | ||
| [2009/04/16 19:45:09] <gwar9999> on rhel5 (w/ ruby-shadow rpm installed), if I have a user resource that defines a password and the user already exists w/ another password, is puppet supposed to change the existing password? | ||
| [2009/04/16 19:46:39] <Djelibeybi> gwar9999: yes, it does. | ||
| [2009/04/16 19:46:48] <Djelibeybi> gwar9999: I logged a feature request about this. | ||
| [2009/04/16 19:47:06] * Djelibeybi hacked up a different user creation define that sets the initial password, but allows changing | ||
| [2009/04/16 19:47:57] <gwar9999> Djelibeybi: ok, thanks. I must have something wrong w/ my config then since it's not setting the password for a user I'm trying to manage. | ||
| [2009/04/16 19:48:17] <Djelibeybi> gwar9999: the password must already be encrypted and you need to use ' | ||
| [2009/04/16 19:48:21] <Djelibeybi> (single quotes) | ||
| [2009/04/16 19:48:31] <Djelibeybi> Otherwise, the $ in the MD5 password tries to get replaced. | ||
| [2009/04/16 19:48:57] <gwar9999> Djelibeybi: already doing the single quoted passwd | ||
| [2009/04/16 19:50:27] @ Quit: smooge: "-ENOCAFFEINE" | ||
| [2009/04/16 19:50:32] <Djelibeybi> gwar9999: this is what I requested: http://projects.reductivelabs.com/issues/2057 | ||
| [2009/04/16 19:51:07] @ Quit: ezmob: "Leaving..." | ||
| [2009/04/16 19:52:00] <gwar9999> Djelibeybi: the status of the ticket is 0%. So it's not in puppet yet? | ||
| [2009/04/16 19:52:07] <Djelibeybi> gwar9999: nope, it's not. | ||
| [2009/04/16 19:52:40] <gwar9999> Djelibeybi: oh, so I can't do what I need within puppet right now. | ||
| [2009/04/16 19:52:50] <Djelibeybi> gwar9999: depends. What do you need? | ||
| [2009/04/16 19:53:03] <gwar9999> the ability to change a password periodically. | ||
| [2009/04/16 19:53:11] <lak> nigelk: you around? | ||
| [2009/04/16 19:53:18] <nigelk> yes | ||
| [2009/04/16 19:53:24] <Djelibeybi> gwar9999: automatically? | ||
| [2009/04/16 19:53:25] @ Quit: Superfly_: "Lost terminal" | ||
| [2009/04/16 19:53:25] <lak> you have five mins for a phone call? | ||
| [2009/04/16 19:53:31] <nigelk> in 10 min I can? | ||
| [2009/04/16 19:53:36] <lak> i have format (marshal vs yaml) questions | ||
| [2009/04/16 19:53:37] <gwar9999> Djelibeybi: yes | ||
| [2009/04/16 19:53:38] @ Superfly_ joined channel #puppet | ||
| [2009/04/16 19:53:39] <Djelibeybi> gwar9999: because the normal User type will do it for you | ||
| [2009/04/16 19:53:44] <lak> k; you have my mobile, right? just ring when you can | ||
| [2009/04/16 19:53:46] <Djelibeybi> gwar9999: I'm busy fighting that very fact. :) | ||
| [2009/04/16 19:53:50] * nigelk checks | ||
| [2009/04/16 19:53:58] <nigelk> ends in 99 ? | ||
| [2009/04/16 19:54:02] <lak> ayup | ||
| [2009/04/16 19:54:06] <lak> thanks | ||
| [2009/04/16 19:54:07] <nigelk> cool | ||
| [2009/04/16 19:54:09] <Djelibeybi> gwar9999: the User type sets the password as soon as it detects a change on my setup | ||
| [2009/04/16 19:54:55] <gwar9999> Djelibeybi: hmmmm... I have to play around with my config then. It doesn't seem to be touching /etc/shadow at all. | ||
| [2009/04/16 19:55:32] <nigelk> oh btw, we're not actually using marshal in production atm lak | ||
| [2009/04/16 19:55:37] <nigelk> it was accidentally reverted | ||
| [2009/04/16 19:55:37] <Djelibeybi> gwar9999: this is how I use it: http://pastie.org/449310 | ||
| [2009/04/16 19:55:41] <lak> hah | ||
| [2009/04/16 19:55:43] <lak> ok | ||
| [2009/04/16 19:55:46] <nigelk> then someone built a tool to parse the yaml | ||
| [2009/04/16 19:55:49] <nigelk> :) | ||
| [2009/04/16 19:55:52] <lak> then you can't file bugs if it doesn't work like you want :) | ||
| [2009/04/16 19:55:54] <nigelk> and other people relied upon it | ||
| [2009/04/16 19:55:56] <nigelk> exactly :) | ||
| [2009/04/16 19:55:58] <Djelibeybi> Then I realize() my users as required. | ||
| [2009/04/16 19:56:11] <nigelk> but am happy to chat anyway if you want | ||
| [2009/04/16 19:56:33] <gwar9999> Djelibeybi: thanks... it works for new users at the moment, but not existing (for me). | ||
| [2009/04/16 19:56:58] <Djelibeybi> gwar9999: interested. None of my users existed before Puppet, which is perhaps why I didn't notice it | ||
| [2009/04/16 19:57:09] <Djelibeybi> s/interested/interesting. :) | ||
| [2009/04/16 19:57:49] <gwar9999> maybe it's because puppet didn't originally create the user? It seems to work on a puppet-created user. | ||
| [2009/04/16 19:58:06] <Djelibeybi> gwar9999: yeah, probably. | ||
| [2009/04/16 19:58:16] <gwar9999> ahhhh .... thanks | ||
| [2009/04/16 19:59:05] <Djelibeybi> gwar9999: I'm just guessing, though. If it works for puppet-created users though, the implication is pretty high. :) | ||
| [2009/04/16 20:01:44] @ Quit: madrescher: Read error: 110 (Connection timed out) | ||
| [2009/04/16 20:03:07] @ collier_s joined channel #puppet | ||
| [2009/04/16 20:07:22] @ Quit: mikepea: | ||
| [2009/04/16 20:09:04] @ Quit: keithlard: | ||
| [2009/04/16 20:11:54] @ keithlard joined channel #puppet | ||
| [2009/04/16 20:14:12] @ Quit: mattw: Read error: 60 (Operation timed out) | ||
| [2009/04/16 20:14:58] @ ezmob joined channel #puppet | ||
| [2009/04/16 20:16:17] @ mattw joined channel #puppet | ||
| [2009/04/16 20:20:56] @ Quit: kingitchy__: | ||
| [2009/04/16 20:21:11] @ Quit: lak: | ||
| [2009/04/16 20:23:01] @ Quit: alfism: "Connection reset by beer" | ||
| [2009/04/16 20:26:45] @ Quit: bgupta: | ||
| [2009/04/16 20:29:45] @ Quit: fbe: Remote closed the connection | ||
| [2009/04/16 20:31:19] @ bgupta joined channel #puppet | ||
| [2009/04/16 20:36:54] @ Quit: voixd: Read error: 110 (Connection timed out) | ||
| [2009/04/16 20:37:38] @ nakano_ is now known as nakano | ||
| [2009/04/16 20:40:27] @ Quit: edwardam: Read error: 110 (Connection timed out) | ||
| [2009/04/16 21:01:46] @ Zelut joined channel #puppet | ||
| [2009/04/16 21:02:07] @ Quit: nigelk: | ||
| [2009/04/16 21:12:18] @ Quit: keithlard: | ||
| [2009/04/16 21:13:37] @ voixd joined channel #puppet | ||
| [2009/04/16 21:24:37] @ WALoeIII_ joined channel #puppet | ||
| [2009/04/16 21:29:34] @ Quit: Bass10: Read error: 110 (Connection timed out) | ||
| [2009/04/16 21:34:01] @ Quit: WALoeIII: Read error: 113 (No route to host) | ||
| [2009/04/16 21:36:59] @ Quit: WALoeIII_: | ||
| [2009/04/16 21:37:21] @ nigelk joined channel #puppet | ||
| [2009/04/16 21:44:44] @ maxagaz joined channel #puppet | ||
| [2009/04/16 21:45:58] @ lak joined channel #puppet | ||
| [2009/04/16 21:47:15] @ Quit: nigelk: | ||
| [2009/04/16 22:00:32] @ Quit: ezmob: "Leaving..." | ||
| [2009/04/16 22:10:11] @ unxfrek joined channel #puppet | ||
| [2009/04/16 22:13:56] @ chip__ joined channel #puppet | ||
| [2009/04/16 22:30:11] @ Quit: atlan_: Read error: 110 (Connection timed out) | ||
| [2009/04/16 22:33:39] @ WALoeIII joined channel #puppet | ||
| [2009/04/16 22:41:14] @ nigelk joined channel #puppet | ||
| [2009/04/16 22:45:52] @ Quit: PaulWay: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:02] @ Quit: ssm: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:03] @ Quit: Soahc: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:03] @ Quit: Jiko: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:04] @ Quit: hMz: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:04] @ Quit: jbarratt: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:04] @ Quit: FUF: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:05] @ Quit: lutter: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:47:05] @ Quit: Mandus: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 22:49:03] @ Quit: unxfrek: Read error: 110 (Connection timed out) | ||
| [2009/04/16 22:49:46] @ Quit: zoeloelip: Remote closed the connection | ||
| [2009/04/16 22:49:49] @ zoeloelip joined channel #puppet | ||
| [2009/04/16 22:54:08] @ PaulWay joined channel #puppet | ||
| [2009/04/16 22:54:21] @ ssm joined channel #puppet | ||
| [2009/04/16 22:54:21] @ Soahc joined channel #puppet | ||
| [2009/04/16 22:54:21] @ Jiko joined channel #puppet | ||
| [2009/04/16 22:54:21] @ FUF joined channel #puppet | ||
| [2009/04/16 22:54:21] @ jbarratt joined channel #puppet | ||
| [2009/04/16 22:54:21] @ hMz joined channel #puppet | ||
| [2009/04/16 22:54:21] @ Mandus joined channel #puppet | ||
| [2009/04/16 22:54:21] @ lutter joined channel #puppet | ||
| [2009/04/16 22:54:25] @ fujin joined channel #puppet | ||
| [2009/04/16 22:54:56] @ mattw_ joined channel #puppet | ||
| [2009/04/16 22:55:58] @ Quit: mattw: Read error: 104 (Connection reset by peer) | ||
| [2009/04/16 23:09:41] @ mfoster1 left channel #puppet () | ||
| [2009/04/16 23:19:32] @ ezmob joined channel #puppet | ||
| [2009/04/16 23:21:47] @ markl_ joined channel #puppet | ||
| [2009/04/16 23:35:05] @ kingitchy joined channel #puppet | ||
| [2009/04/16 23:43:10] @ kingitchy_ joined channel #puppet | ||
| [2009/04/16 23:46:30] @ Quit: mattw_: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 23:46:30] @ Quit: ivan: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 23:46:31] @ Quit: tehhobbit: kornbluth.freenode.net irc.freenode.net | ||
| [2009/04/16 23:47:25] @ mattw_ joined channel #puppet | ||
| [2009/04/16 23:47:25] @ ivan joined channel #puppet | ||
| [2009/04/16 23:47:25] @ tehhobbit joined channel #puppet |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!