| [2008/05/28 00:05:06] @ marth1 joined channel #puppet | ||
| [2008/05/28 00:05:11] @ Quit: martha: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 00:06:02] @ marth1 is now known as martha | ||
| [2008/05/28 00:10:32] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 00:13:23] <martha> anyone here use a mailalias with quotes in it? | ||
| [2008/05/28 00:22:43] <ashp> well, I got my dependencies down to just two runs of puppet and here I'm going to give in and just accept that :) | ||
| [2008/05/28 00:23:56] <ashp> I suppose if I could convince mysql to set its password and start BEFORE trying to do commands... I'd have it in one run | ||
| [2008/05/28 00:25:48] * Volcane is glad its not just his manifests that does that :P | ||
| [2008/05/28 00:25:59] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 00:26:31] <ashp> volcane: I have a chain of dependencies but it always schedules things rather than doing it immediately | ||
| [2008/05/28 00:26:49] <ashp> i need a puppet config option that says 'if something needs doing, do it IMMEDIATELY, don't wait' | ||
| [2008/05/28 00:27:56] <Volcane> yeah, or at the very least do somethinb first then do everything else | ||
| [2008/05/28 00:28:00] <martha> ashp: you can depend on the Exec or the Service starting | ||
| [2008/05/28 00:28:12] <Volcane> like distribute puppet configs, or maybe a custom fact or something | ||
| [2008/05/28 00:28:19] <ashp> yeah, it doesn't work that easy | ||
| [2008/05/28 00:28:23] <ashp> I have a depend on the service starting | ||
| [2008/05/28 00:28:28] <Volcane> like i have /etc/facts.txt on my machines, wish i could ensure that always gets sent first | ||
| [2008/05/28 00:28:36] <ashp> let me see if i can dig out the logs | ||
| [2008/05/28 00:28:50] <ashp> May 27 10:15:23 hlsbuild01 puppetd[2507]: (//Node[default]/iclassifyserver/mysql/mysql::service/Service[mysqld]) Scheduling refresh of Exec[mysql-password] | ||
| [2008/05/28 00:29:02] <ashp> May 27 10:15:23 hlsbuild01 puppetd[2507]: (//Node[default]/iclassifyserver/iclassify/iclassify::mysql/Exec[mysqladmin -u root --password= create iclassify_production]/returns) change from notrun to 0 failed: mysqladmin -u root --password=7Cdgn7Yk# create iclassify_production returned 1 instead of 0 at /etc/puppet/modules/development/iclassify/manifests/mysql.pp:11 | ||
| [2008/05/28 00:29:06] <martha> Volcane: before what? You can put a depenedency on every package | ||
| [2008/05/28 00:29:07] <tim|macbook> Volcane: even if it's send first, aren't facts read in before the puppet run? | ||
| [2008/05/28 00:29:18] <ashp> so it doesn't set the password on mysql before trying to use the password :/ | ||
| [2008/05/28 00:29:26] <Volcane> i have a custom fact that parses /etc/facts.txt | ||
| [2008/05/28 00:29:35] <Volcane> so would like that to go out first | ||
| [2008/05/28 00:29:39] <Volcane> before anything | ||
| [2008/05/28 00:29:39] <ashp> May 27 10:15:13 hlsbuild01 puppetd[2507]: (//Node[default]/iclassifyserver/mysql/mysql::install/Package[mysql-server]) Scheduling refresh of Exec[mysql-password] | ||
| [2008/05/28 00:29:45] <Volcane> without having to put a require into EVERYTHING | ||
| [2008/05/28 00:29:45] <ashp> See, it's always 'scheduling' and never doing :) | ||
| [2008/05/28 00:30:34] @ Quit: kombucha: Remote closed the connection | ||
| [2008/05/28 00:30:48] @ kombucha joined channel #puppet | ||
| [2008/05/28 00:31:24] <ashp> I'm not even sure why it failed | ||
| [2008/05/28 00:31:32] <ashp> maybe it started mysql then tried to access it too fast | ||
| [2008/05/28 00:31:43] <ashp> oh wait, I see: | ||
| [2008/05/28 00:32:05] <ashp> i'll pastebin this to demonstrate | ||
| [2008/05/28 00:33:22] <ashp> http://pastebin.com/m3373d397 | ||
| [2008/05/28 00:33:40] @ _newbie_ is now known as f--z | ||
| [2008/05/28 00:33:46] <ashp> If you look there you see the command ran in line 1 has a require of Service['mysql'] | ||
| [2008/05/28 00:33:57] <ashp> Which in turn has a require => Exec['mysql-password'] | ||
| [2008/05/28 00:34:23] <ashp> But it schedules the mysql-password bit to run AFTER starting the service, which satisfies the dependency required for the command in line 1 to execute | ||
| [2008/05/28 00:34:39] <ashp> So it doesn't go down the chain, but does the minimum required to process the exec in line 1 | ||
| [2008/05/28 00:34:55] <ashp> I need to be able to tell puppet to follow the chain further down the dependency tree and satisfy them all first | ||
| [2008/05/28 00:39:43] @ Quit: f--z: "KVIrc 3.2.5 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 00:41:38] <tim|macbook> ashp: um, don't you mean "require => [Service["mysql"],Exec["mysql-password"]]" ? | ||
| [2008/05/28 00:41:43] <tim|macbook> on line 8 | ||
| [2008/05/28 00:45:42] <ashp> well, the service requires the exec so I didn't think I should put it there | ||
| [2008/05/28 00:47:19] <ashp> I mean, I guess I'm going to as it fixes it, but I had hoped puppet could follow dependency chains down | ||
| [2008/05/28 00:57:04] @ freiheit joined channel #puppet | ||
| [2008/05/28 00:58:17] <ashp> i need to collar lak and ask about the design reason for it :D | ||
| [2008/05/28 00:59:35] @ Quit: johnf: Read error: 113 (No route to host) | ||
| [2008/05/28 01:07:59] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 01:12:00] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 01:14:39] <ashp> this is the worlds worst plan | ||
| [2008/05/28 01:14:44] <duritong> can I call a function from another function? | ||
| [2008/05/28 01:14:52] <ashp> I have to open our CMS product externally, accessable from anywhere online | ||
| [2008/05/28 01:14:59] <ashp> our website is going to be hacked within a week :/ | ||
| [2008/05/28 01:15:03] <ashp> duritong: You should be able to! | ||
| [2008/05/28 01:15:08] <duritong> how? | ||
| [2008/05/28 01:15:47] <ashp> can you give us an example of what you have? | ||
| [2008/05/28 01:16:01] <ashp> I just answered generically as in, if you can't do functions within functions that's a big limitation, so I assume it's doable ;) | ||
| [2008/05/28 01:16:36] <duritong> http://pastie.caboo.se/204034 | ||
| [2008/05/28 01:17:05] <duritong> I want to simply return the first result of hostname | ||
| [2008/05/28 01:17:24] <ashp> oh, a real ruby question :) | ||
| [2008/05/28 01:17:27] <martha> ashp: the mysql server doesn't require the exec, it just notifies it | ||
| [2008/05/28 01:17:41] <duritong> ahsp: well i think puppet functions are not ruby functions | ||
| [2008/05/28 01:18:08] <ashp> well you'd need to name both functions different names, not newfunction | ||
| [2008/05/28 01:18:16] <ashp> and then call function1 from in function2 and just return 1 result? | ||
| [2008/05/28 01:18:44] <duritong> hmm i'm unsure uf we talk from the same | ||
| [2008/05/28 01:19:01] <ashp> martha: Hmm, good point! | ||
| [2008/05/28 01:19:15] <duritong> I have written a custom puppet function: hostname | ||
| [2008/05/28 01:19:19] <ashp> martha: Good catch, I guess I really meant require, not notify | ||
| [2008/05/28 01:19:24] <ashp> duritong: I'm pretty confused, it's true | ||
| [2008/05/28 01:19:55] <duritong> now I want to add another one (singlehostname) which will use the result of the function hostname and use it's output to return something else | ||
| [2008/05/28 01:20:32] <ashp> I haven't touched puppet functions yet, so someone else will have to answer (I can't even get my regular manifests working, yet alone custom functions) | ||
| [2008/05/28 01:21:16] <tim|macbook> ashp: i think you really meant notify, since the server needs to be running before you can do the mysqladmin command? | ||
| [2008/05/28 01:21:51] <holaway> tim|macbook: if the service is set to ensure running | ||
| [2008/05/28 01:21:57] <ashp> What I wanted to achieve was the first time mysql starts up on the server, it sets the password. | ||
| [2008/05/28 01:21:58] <holaway> he probably means "erquire" | ||
| [2008/05/28 01:22:02] <ashp> That's my intent, at least | ||
| [2008/05/28 01:22:22] <ashp> I couldn't think of a better way than making a refreshonly exec that triggers on service start | ||
| [2008/05/28 01:22:35] <holaway> ashp: that sounds totally reasonable | ||
| [2008/05/28 01:22:47] <ashp> Once that worked I was going to add an onlyif and figure out something that would check if the password already exists | ||
| [2008/05/28 01:22:52] <holaway> and have that exec check for a dropped file that gets created if it works successfully | ||
| [2008/05/28 01:22:52] <ashp> so i don't get a failure each time it starts up in future | ||
| [2008/05/28 01:23:07] <ashp> :) | ||
| [2008/05/28 01:23:08] @ Quit: fbe: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 01:23:17] <ashp> I figure it must create SOMETHING on the filesystem, so I don't have to generate my own fake file | ||
| [2008/05/28 01:23:50] <ashp> holaway: If you're ever bored, figure out how to make onlyif/unless work as metaparameters, that would be so incredibly useful ;) | ||
| [2008/05/28 01:23:54] @ fbe joined channel #puppet | ||
| [2008/05/28 01:24:05] <ashp> I took a look but lets face it, I can't write facts that work, yet alone that | ||
| [2008/05/28 01:24:28] @ Quit: jfluhmann: Remote closed the connection | ||
| [2008/05/28 01:24:29] <holaway> ashp: I am rarely bored, but good tip! :) | ||
| [2008/05/28 01:25:03] <martha> ashp: http://pastie.caboo.se/204043 | ||
| [2008/05/28 01:25:03] <sigmonsays> the interesting part of being a puppet developer is you rarely get to reap the benefits of using puppet ;) | ||
| [2008/05/28 01:25:06] <ashp> holaway: I find that more and more often I could simplify a lot of logic if I could just do a custom 'check for this before executing the statement' | ||
| [2008/05/28 01:25:36] <sigmonsays> (i'm not a developer -- just thinking about them) | ||
| [2008/05/28 01:25:47] <ashp> it's probably not the puppet way, but it sure makes things easy | ||
| [2008/05/28 01:25:48] <martha> ashp: that's my mysql server module. | ||
| [2008/05/28 01:26:28] <martha> I check if mysqladmin status works with my password, if not, I set the password | ||
| [2008/05/28 01:26:33] <ashp> martha: I hate reading other peoples modules, it shows how awful mine are. :) | ||
| [2008/05/28 01:26:50] <ashp> But thanks for linking it, I can definitely use some of this, thanks :) | ||
| [2008/05/28 01:27:01] <martha> I also put the password in /root/.my.cnf so that root can use mysql without a password | ||
| [2008/05/28 01:27:19] <ashp> Oh hmm, that's a good idea, that would have simplified a lot of stuff I did | ||
| [2008/05/28 01:27:35] <ashp> I read in passwords with $password = file("blah") so that I can hide them from the manifest | ||
| [2008/05/28 01:27:40] <ashp> Mostly just for mysql | ||
| [2008/05/28 01:28:29] <martha> ashp: this is the template for .my.cnf http://pastie.caboo.se/204046 | ||
| [2008/05/28 01:28:49] <martha> ashp: that's a good idea | ||
| [2008/05/28 01:29:10] <ashp> I just have /etc/puppet/secrets/ stuffed with all the various passwords, it's not ideal but it stops them being accidently cut and paste :) | ||
| [2008/05/28 01:29:36] <duritong> ashp: this is mine as well ;) | ||
| [2008/05/28 01:30:05] <ashp> I actually have to make a serious mysql/ module for our database servers, so this is useful as I had only done just enough to bootstrap it | ||
| [2008/05/28 01:30:17] <martha> feel free to use this | ||
| [2008/05/28 01:30:37] <martha> I have lots of modules, but no good way to put them online :-( | ||
| [2008/05/28 01:30:59] <ashp> use github! | ||
| [2008/05/28 01:31:05] <ashp> that's what I did for all of my modules, I must update them later | ||
| [2008/05/28 01:31:10] <ashp> http://github.com/apenney/puppet/tree | ||
| [2008/05/28 01:31:26] <martha> we use svn here, not git. also, I can't put everything online | ||
| [2008/05/28 01:31:31] <ashp> I am curious to see your mysql_grant define | ||
| [2008/05/28 01:31:39] <ashp> Yeah, we use svn here, I'm thinking I should probably swap to git | ||
| [2008/05/28 01:31:51] <ashp> The reason I moved my passwords to files is so I can publish the modules without accidently leaking important information :) | ||
| [2008/05/28 01:31:57] <martha> I could put the code up, but not anything relating to the actual names | ||
| [2008/05/28 01:32:19] <martha> ashp: the functions are from david's mysql plugin | ||
| [2008/05/28 01:32:27] <ashp> ahhh ok, I'll check those out | ||
| [2008/05/28 01:32:32] <martha> I also wrote a similar set for postgres | ||
| [2008/05/28 01:32:39] <ashp> I had just an exec to do granting so, a define would be a cleaner way to handle it | ||
| [2008/05/28 01:35:45] <ashp> I am down to just one dependency failure now I think! :) | ||
| [2008/05/28 01:36:09] <ashp> my entire server ALMOST deploys from a single run | ||
| [2008/05/28 01:36:23] <ashp> i don't even know why I spent a week trying to make this happen but I got stubborn somewhere along the way | ||
| [2008/05/28 01:36:39] <martha> I know that feeling :-) | ||
| [2008/05/28 01:38:23] <ashp> All that's left I think is to make sure mongrel_runit/runit are installed before one exec | ||
| [2008/05/28 01:38:28] <ashp> and then it should all work :D | ||
| [2008/05/28 01:38:29] @ jfluhmann joined channel #puppet | ||
| [2008/05/28 01:41:01] @ Quit: kolla: Remote closed the connection | ||
| [2008/05/28 01:41:33] @ shake-n-bake joined channel #puppet | ||
| [2008/05/28 01:44:27] @ Quit: tim|macbook: "This computer has gone to sleep" | ||
| [2008/05/28 01:59:18] @ jgonzalez left channel #puppet () | ||
| [2008/05/28 02:07:33] <ashp> so close, SO CLOSE, only httpd failed this time | ||
| [2008/05/28 02:07:56] <sigmonsays> httpd is hard! | ||
| [2008/05/28 02:08:50] <ashp> i must have messed something up, i thought i had it | ||
| [2008/05/28 02:09:02] <ashp> i have this: require => [ Package['httpd'], File["/etc/httpd/ssl/iclassify.crt"], File["/etc/httpd/ssl/iclassify.key"] ], | ||
| [2008/05/28 02:09:07] <ashp> and a notify => service | ||
| [2008/05/28 02:09:23] <ashp> so i was hoping that would be enough, but i'm still missing something as it added those files after notifying the service :) | ||
| [2008/05/28 02:09:37] <ashp> i wonder if i require the service if that'll help | ||
| [2008/05/28 02:09:58] @ Quit: exodos: "leaving" | ||
| [2008/05/28 02:10:07] <martha> ashp: can you pastie the whole manifest? | ||
| [2008/05/28 02:12:11] @ Norm left channel #puppet () | ||
| [2008/05/28 02:12:14] <ashp> http://pastebin.com/m692fd241 | ||
| [2008/05/28 02:12:47] <ashp> the service for httpd is just a plain old straight service that only requires package[httpd] | ||
| [2008/05/28 02:13:02] <martha> the service needs to require the files it needs | ||
| [2008/05/28 02:13:13] <ashp> i can't because | ||
| [2008/05/28 02:13:17] <ashp> it's a generic service | ||
| [2008/05/28 02:13:21] <martha> you can override the service | ||
| [2008/05/28 02:13:34] <ashp> oh, define a generic one then just override it purely for that module? | ||
| [2008/05/28 02:13:36] <martha> Service["http"] { require => whatever} | ||
| [2008/05/28 02:13:43] <martha> yes | ||
| [2008/05/28 02:13:47] <ashp> That's true, I wonder if I can just do that straight in the module with no adjusting | ||
| [2008/05/28 02:13:51] <martha> yes | ||
| [2008/05/28 02:13:53] <ashp> I forget how powerful the override feature is | ||
| [2008/05/28 02:13:57] <ashp> I should probably make much better use of it | ||
| [2008/05/28 02:18:35] <sigmonsays> what does the iclassify:httpd syntax do on line 5? | ||
| [2008/05/28 02:18:41] <sigmonsays> s/:/::/ | ||
| [2008/05/28 02:18:59] @ Quit: lstep: "Ex-Chat" | ||
| [2008/05/28 02:19:11] <ashp> sigmonsays: I have a file called httpd.pp in my iclassify module | ||
| [2008/05/28 02:19:12] <martha> sigmonsays: that creates the httpd class in the module iclassify | ||
| [2008/05/28 02:19:19] <ashp> then I have include iclassify::httpd in my init.pp | ||
| [2008/05/28 02:19:23] <ashp> that way I can break it all out to smaller files | ||
| [2008/05/28 02:19:40] <ashp> it's just to keep me sane when trying to look at the manifests | ||
| [2008/05/28 02:19:45] <ashp> Also I have things like | ||
| [2008/05/28 02:19:55] <sigmonsays> ahh! | ||
| [2008/05/28 02:19:57] <ashp> include postfix::relay on my mail relay nodes | ||
| [2008/05/28 02:20:02] <sigmonsays> I was trying to do that a while ago with include | ||
| [2008/05/28 02:20:04] <ashp> and that just inherits the base class and then extends it :) | ||
| [2008/05/28 02:20:20] <ashp> http://github.com/apenney/puppet/tree/master/postfix/manifests/init.pp | ||
| [2008/05/28 02:20:25] <ashp> that's an example of it :) | ||
| [2008/05/28 02:20:29] <sigmonsays> so iclassify is a module then | ||
| [2008/05/28 02:20:53] <sigmonsays> *sigh* live and learn :) | ||
| [2008/05/28 02:21:33] <ashp> It's ok, I'm constantly amazed at what I don't know | ||
| [2008/05/28 02:21:42] <ashp> like overriding services in other modules as mentioned earlier! | ||
| [2008/05/28 02:22:42] <sigmonsays> hehe, that's a killer feature for sure | ||
| [2008/05/28 02:24:03] <martha> yeah, you can do cool things like this: http://pastie.caboo.se/204079 | ||
| [2008/05/28 02:25:05] @ Quit: kombucha: Remote closed the connection | ||
| [2008/05/28 02:25:17] <sigmonsays> aha! nice | ||
| [2008/05/28 02:25:45] <ashp> I need to go back and modify some stuff to take advantage of this now, I think | ||
| [2008/05/28 02:25:53] <ashp> my dependencies are a MESS | ||
| [2008/05/28 02:26:03] <ashp> i will upload my iclassify latest in a minute, but look at some of this horror: | ||
| [2008/05/28 02:26:16] <ashp> http://github.com/apenney/puppet/tree/master/iclassify/manifests/install.pp | ||
| [2008/05/28 02:27:23] @ plathrop joined channel #puppet | ||
| [2008/05/28 02:27:38] @ Quit: DerekW: "Leaving" | ||
| [2008/05/28 02:29:55] @ kombucha joined channel #puppet | ||
| [2008/05/28 02:30:10] @ Quit: oxtail: "Ex-Chat" | ||
| [2008/05/28 02:30:18] @ Quit: andrewcshafer: | ||
| [2008/05/28 02:45:46] @ cote joined channel #puppet | ||
| [2008/05/28 02:50:08] @ Quit: jvanzyl: Read error: 110 (Connection timed out) | ||
| [2008/05/28 02:52:47] @ tmz joined channel #puppet | ||
| [2008/05/28 02:53:33] @ tmz_ joined channel #puppet | ||
| [2008/05/28 02:54:12] @ strerror_ joined channel #puppet | ||
| [2008/05/28 02:58:26] @ AimanA joined channel #puppet | ||
| [2008/05/28 03:04:06] @ Quit: strerror_: Client Quit | ||
| [2008/05/28 03:09:24] @ brscott joined channel #puppet | ||
| [2008/05/28 03:09:46] @ brscott left channel #puppet () | ||
| [2008/05/28 03:11:22] @ Quit: strerror_work: Remote closed the connection | ||
| [2008/05/28 03:13:09] @ shake-n-bake_ joined channel #puppet | ||
| [2008/05/28 03:19:53] @ tim|imac joined channel #puppet | ||
| [2008/05/28 03:26:52] <ashp> I.. I think it's going to work... | ||
| [2008/05/28 03:27:33] <ashp> it didn't. :( | ||
| [2008/05/28 03:29:44] @ Quit: Demosthenes: Read error: 110 (Connection timed out) | ||
| [2008/05/28 03:33:30] @ Quit: shake-n-bake: Read error: 110 (Connection timed out) | ||
| [2008/05/28 03:34:22] @ Quit: keithlard: | ||
| [2008/05/28 03:35:16] @ Quit: chillitom: Remote closed the connection | ||
| [2008/05/28 03:45:12] @ diggyk joined channel #puppet | ||
| [2008/05/28 03:46:27] <diggyk> Anyone else have the problem where when Puppet replaces a file, it creates a copy of the file with the suffix "main" (I would imagine this is so it can do a diff) but never removes that file? | ||
| [2008/05/28 03:47:09] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 03:47:18] <diggyk> This might be an issue with the older client (0.23.2) running against the newer puppetmaster (0.24.4) | ||
| [2008/05/28 03:49:03] @ lak joined channel #puppet | ||
| [2008/05/28 03:58:51] <ashp> Hmm, no wonder I've had so many weird problems lately. | ||
| [2008/05/28 03:59:03] <ashp> Puppetmaster wasn't picking up my changes properly, I restarted puppetmaster and it started doing all kinds of different stuff. | ||
| [2008/05/28 04:00:07] <ashp> Soon as I restarted it, it picks up dependencies that were clearly broken and therefore unchecked! | ||
| [2008/05/28 04:01:30] <ashp> lak: I just saw your most recent blog entry, if it makes you feel better I feel like that constantly? | ||
| [2008/05/28 04:01:38] <ashp> I generally assume everything I'm doing is terribly wrong. | ||
| [2008/05/28 04:01:44] * lak checks his blog | ||
| [2008/05/28 04:01:46] <lak> it's been too long | ||
| [2008/05/28 04:01:57] <ashp> Testing cached values? | ||
| [2008/05/28 04:02:02] <ashp> ike someone's going to look at my code one day and say, "hey nimwit, you just pull this string here and suddenly 2/3 of your code just goes away." | ||
| [2008/05/28 04:02:08] <ashp> That's the bit I sympathise with! | ||
| [2008/05/28 04:02:34] <ashp> I assume you posted that as there's no name associated with it | ||
| [2008/05/28 04:02:53] <lak> ah | ||
| [2008/05/28 04:03:03] <lak> yeah | ||
| [2008/05/28 04:03:57] <lak> i'm slowly getting over the feeling, but it's taken a lot of work | ||
| [2008/05/28 04:04:43] <ashp> Has anyone else ever reported a bug whereby puppetmaster just kind of.. doesn't notice some updates after a while? | ||
| [2008/05/28 04:04:57] <ashp> Because I just push updates into /etc/puppet overwriting files and rely on puppetmaster to notice. | ||
| [2008/05/28 04:05:07] <ashp> But I just realised that it had gotten confused and hadn't noticed some, but had others. | ||
| [2008/05/28 04:07:03] <lak> yeah, i think that bug was just filed last week | ||
| [2008/05/28 04:07:10] <lak> do you get it consistently, or just sometimes, or what? | ||
| [2008/05/28 04:08:08] <ashp> just sometimes | ||
| [2008/05/28 04:08:11] <martha> ashp: do you use import * anywhere? | ||
| [2008/05/28 04:08:18] <ashp> no, the only importing I do is specific | ||
| [2008/05/28 04:08:24] <ashp> I have import template in site.pp | ||
| [2008/05/28 04:08:29] <ashp> and that's it, the rest is includes | ||
| [2008/05/28 04:08:39] <ashp> It's just sometimes, because I was making changes and SOME were being picked up. | ||
| [2008/05/28 04:08:39] <martha> I saw that it didn't notice new files with import * | ||
| [2008/05/28 04:08:52] <ashp> I wonder, does puppetmaster check timestamps or md5sums to see if things changed? | ||
| [2008/05/28 04:09:08] <ashp> I had broken a few things and they were just being silently ignored until I restarted, then it alerted me that I had messed up a few dependencies. | ||
| [2008/05/28 04:09:18] <ashp> It explains why my dependencies never seemed to work, no matter how I changed things. | ||
| [2008/05/28 04:10:11] <plathrop> ashp: I often have the problem when things are broken. Without having done serious investigation, it "feels" like puppetmasterd stops checking for new config files once they fail to parse once. | ||
| [2008/05/28 04:10:21] <plathrop> So even if you go back and fix, it stays broken. | ||
| [2008/05/28 04:10:40] <ashp> plathrop: That would make a lot of sense, that actually fits in pretty well with what I see. | ||
| [2008/05/28 04:10:49] <ashp> The ones it seems to ignore are ones that, at various times, I messed up the syntax in. | ||
| [2008/05/28 04:11:30] <lak> ashp: timestamps | ||
| [2008/05/28 04:12:01] <lak> plathrop: funny, because i was told it was the exact opposite behaviour -- it *only* checked files that had failures | ||
| [2008/05/28 04:12:09] <ashp> I wonder if checking some sort of hash would resolve this, in case something goes wrong timestamp wise. (I can't imagine how, but I'm not sure how else to explain why it seems to stop checking random bits) | ||
| [2008/05/28 04:12:56] <lak> failed timestamps is enough of an edge case that i wouldn't think that would affect htings | ||
| [2008/05/28 04:13:10] <plathrop> lak: As I said, I haven't seriously tried to figure it out, it was low on my priority list. I just got into the habit of restarting puppetmasterd if it seems like it isn't noticing changes. | ||
| [2008/05/28 04:13:12] <lak> i think the update checking itself is just flawed somehow | ||
| [2008/05/28 04:13:18] <lak> urgh | ||
| [2008/05/28 04:13:23] <lak> needs to be fixed | ||
| [2008/05/28 04:13:31] <lak> if someone could track it down, i'd be much obliged | ||
| [2008/05/28 04:13:50] <lak> ashp: does that mean your email to the list about dependencies can be ignored? | ||
| [2008/05/28 04:14:14] <ashp> Yes, the reason I was having problems was it was ignoring changes in site.pp | ||
| [2008/05/28 04:14:19] <lak> ok | ||
| [2008/05/28 04:14:31] <plathrop> lak: I'm totally psyched about the training :-) | ||
| [2008/05/28 04:14:34] <ashp> The weird thing is.. | ||
| [2008/05/28 04:14:40] <ashp> It wasn't ignoring ALL of site.pp | ||
| [2008/05/28 04:14:51] <plathrop> ashp: *That* I've never seen before | ||
| [2008/05/28 04:14:54] <lak> plathrop: cool; i expect some of it will be review for you, but hopefully it'll still be a wholly worthwhile experience | ||
| [2008/05/28 04:14:59] <ashp> Well I was thinking about it, and I'm unsure on this | ||
| [2008/05/28 04:15:06] <ashp> but I think it was just failing to update certain things within a file | ||
| [2008/05/28 04:15:10] <ashp> so it was catching some changes and not others | ||
| [2008/05/28 04:15:17] <ashp> but I can't be sure as I don't know what it was/wasn't getting | ||
| [2008/05/28 04:15:17] @ sknight joined channel #puppet | ||
| [2008/05/28 04:15:31] <plathrop> lak: Yeah, I expect some of it will be, but that's okay. My knowledge has some odd gaps, so I am glad I have the opportunity to fill in. | ||
| [2008/05/28 04:17:18] <Volcane> innernets really not happy in the uk today | ||
| [2008/05/28 04:17:24] <ashp> Aha! | ||
| [2008/05/28 04:17:30] <ashp> So it's not JUST my server flailing. | ||
| [2008/05/28 04:17:38] <ashp> I keep dropping my connection to it from here in boston | ||
| [2008/05/28 04:17:41] <Volcane> https://www.linx.net/pubtools/trafficstats.html | ||
| [2008/05/28 04:18:03] <Volcane> LINX has dropped from 250Gbps to 79, on the way up now again | ||
| [2008/05/28 04:18:19] <ashp> yeah it keeps coming and going | ||
| [2008/05/28 04:19:08] <sknight> don't suppose any of you have a recipe for managing multiple network interfaces on machines, do you? | ||
| [2008/05/28 04:20:06] <ashp> I kind of do, but only for RHEL | ||
| [2008/05/28 04:20:09] <ashp> and it's not very good | ||
| [2008/05/28 04:20:43] <ashp> http://github.com/apenney/puppet/tree/master/network/manifests | ||
| [2008/05/28 04:21:43] <sknight> ahh ok | ||
| [2008/05/28 04:22:09] <ashp> You could probably do something similar, it's not pretty but it's very flexible and lets you have multiple interfaces | ||
| [2008/05/28 04:23:00] * Volcane thought the interface type, at least for redhat, did multiple interfaces and vlans and all sorts | ||
| [2008/05/28 04:23:10] <ashp> I never got it to work *shrug* | ||
| [2008/05/28 04:23:41] <Volcane> weird, contract i worked at had mega complex stuff with the interface type | ||
| [2008/05/28 04:25:00] <ashp> I was hoping this restart would magically fix my dependencies but I'm still a failure. :/ | ||
| [2008/05/28 04:27:13] @ Quit: lak: | ||
| [2008/05/28 04:30:04] @ Quit: andrewcshafer: | ||
| [2008/05/28 04:31:55] @ gh joined channel #puppet | ||
| [2008/05/28 04:39:48] @ Quit: ricky: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 04:39:57] @ ricky joined channel #puppet | ||
| [2008/05/28 04:40:04] <ashp> ARGH why am I finding this so hard today (answer: because I'm on dayquil) | ||
| [2008/05/28 04:40:11] <ashp> I cannot get the dependencies right for a three way thing | ||
| [2008/05/28 04:40:15] <ashp> I have a package, a service and an exec | ||
| [2008/05/28 04:40:21] <ashp> and I need to go package->service->exec | ||
| [2008/05/28 04:40:25] <ashp> but everything I do failsterrible | ||
| [2008/05/28 04:40:49] <martha> ashp: show us the manifest | ||
| [2008/05/28 04:40:52] <ashp> OH, puppetmaster broke AGAIN | ||
| [2008/05/28 04:40:55] <ashp> what the hell is going on today | ||
| [2008/05/28 04:41:03] <ashp> I'm going to restart puppetmaster after every change. | ||
| [2008/05/28 04:41:10] <ashp> This has never been a problem before today. | ||
| [2008/05/28 05:23:03] @ diggyk left channel #puppet () | ||
| [2008/05/28 05:32:09] @ thegcat_ joined channel #puppet | ||
| [2008/05/28 05:32:12] @ Quit: thegcat: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 05:33:19] @ Demosthenes joined channel #puppet | ||
| [2008/05/28 05:33:29] @ Zothar_Work left channel #puppet () | ||
| [2008/05/28 05:52:00] @ Pyretic joined channel #puppet | ||
| [2008/05/28 05:52:35] <Pyretic> hi, i'm getting a bit of a delay with yumprovider, is there any way to fallback on rpm only ? | ||
| [2008/05/28 05:53:55] <Volcane> turn off your remote/slow/etc repositories | ||
| [2008/05/28 05:54:11] <Volcane> or use things like the yum-fastestmirror package to speed things up | ||
| [2008/05/28 05:55:54] <Pyretic> ah ok | ||
| [2008/05/28 05:56:33] <Volcane> its when it needs to refresh the local cache and your remote site isnt responding at all (then it will just sit there for hours) or slowly etc | ||
| [2008/05/28 05:56:45] <Volcane> othertimes it just gets itself in a bind nomatter what you do | ||
| [2008/05/28 05:56:57] <Volcane> mostly after disabling rpmforge it behaves for me | ||
| [2008/05/28 05:57:13] <Volcane> where i need rpmforge on, yum-fastestmirror helps | ||
| [2008/05/28 05:58:02] <Pyretic> ok, we have an mrepo server in production so that shouldn't be a problem | ||
| [2008/05/28 05:58:16] <Volcane> yeah if you can mirror all the stuff you need, thats the way to go | ||
| [2008/05/28 05:58:29] <Pyretic> i think i might try it on some metal instead of these vmware guests | ||
| [2008/05/28 05:58:57] <Pyretic> oh btw, http://reductivelabs.com/trac/puppet/wiki/TypeReference#package | ||
| [2008/05/28 05:59:02] <Pyretic> doesn't render correctly | ||
| [2008/05/28 05:59:16] <Volcane> yeah | ||
| [2008/05/28 05:59:28] <Pyretic> the pkgdmg has some extra info that probably should be a page | ||
| [2008/05/28 05:59:47] <ashp> AHA I HAVE CONQUERED PUPPET | ||
| [2008/05/28 05:59:52] <ashp> AFTER ONE WEEK IT FINALLY RUNS IN ONE RUN | ||
| [2008/05/28 06:00:00] <Volcane> wow | ||
| [2008/05/28 06:00:36] <ashp> well I only have one failure and that I can't fix for now | ||
| [2008/05/28 06:00:42] <ashp> which is that the second run sets the user passwords properly | ||
| [2008/05/28 06:01:05] <ashp> It installs ruby-shadow in the initial run and doesn't detect it's ready for use until the second run | ||
| [2008/05/28 06:01:57] @ |Innocenti| joined channel #puppet | ||
| [2008/05/28 06:03:20] <Pyretic> ah the hyves dude | ||
| [2008/05/28 06:04:14] <tim|imac> lol | ||
| [2008/05/28 06:06:42] <tim|imac> ashp: how about a simple "require => Package["ruby-shadow"]" in the user definition? | ||
| [2008/05/28 06:07:32] <tim|imac> a global "User { require => Package["ruby-shadow"] }" would do it, I guess | ||
| [2008/05/28 06:07:34] @ Ol_ joined channel #puppet | ||
| [2008/05/28 06:14:44] <Volcane> tim|imac: i think it checks at puppet-startup if ruby-shadow is there, so it will only kick in once puppet restarts | ||
| [2008/05/28 06:15:11] <Volcane> but you could let your kickstart or whatever install it | ||
| [2008/05/28 06:15:20] <Volcane> i mean you need to get puppet onto the box right? just put ruby-shadow there then too | ||
| [2008/05/28 06:15:47] @ Quit: kombucha: Remote closed the connection | ||
| [2008/05/28 06:17:31] @ Quit: ramil: "leaving" | ||
| [2008/05/28 06:20:32] @ Quit: dysinger: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 06:21:10] @ dysinger joined channel #puppet | ||
| [2008/05/28 06:22:05] <ashp> I could drag it into kickstart | ||
| [2008/05/28 06:22:13] <ashp> I had to grab the rpm and put it into my own repo | ||
| [2008/05/28 06:22:18] <ashp> and i hadn't added my own repo into the cobbler server | ||
| [2008/05/28 06:22:25] <ashp> it's not hard to do, i just hadn't got to it yet :) | ||
| [2008/05/28 06:23:11] <Pyretic> ah cobbler, how is that working ? | ||
| [2008/05/28 06:23:35] <ashp> pretty good | ||
| [2008/05/28 06:23:40] <ashp> i mean, it seems to work fine! | ||
| [2008/05/28 06:23:54] <ashp> I build x86_64 and i386 boxes with it, I've had a few problems that I resolved by reinstalling | ||
| [2008/05/28 06:24:08] <ashp> probably just due to rapid development, and things like it's hard to remove old 'distros' that you added | ||
| [2008/05/28 06:24:27] * Volcane just has templatised kickstart files on a webserver | ||
| [2008/05/28 06:25:01] <ashp> check out cobbler, it really is nice | ||
| [2008/05/28 06:25:10] <ashp> it manages all the dhcp stuff and files automatically | ||
| [2008/05/28 06:26:26] <ashp> I do wonder if I should look at autosigning certs. | ||
| [2008/05/28 06:27:06] <ashp> Right now the only manual thing I have to do is sign a cert | ||
| [2008/05/28 06:29:04] <Pyretic> might give it a look, although we have most parts of it working right now | ||
| [2008/05/28 06:31:57] * Volcane 's machines are all over the show | ||
| [2008/05/28 06:32:03] <Volcane> not all at the same place | ||
| [2008/05/28 06:32:09] <Volcane> many just one machine at some weird isp | ||
| [2008/05/28 06:32:18] <Volcane> so most of the machines are xen servers, and all the stuff ontop are VMs | ||
| [2008/05/28 06:32:33] <Volcane> VMs all installed with kickstart to a central kickstart server that hands out ks files | ||
| [2008/05/28 06:33:13] <duritong> ashp: you have some public documentation about kickstart + puppet in cobbler? | ||
| [2008/05/28 06:33:22] <duritong> this is what I wanted to look at tomorrow | ||
| [2008/05/28 06:34:56] <ashp> Not really, I don't have that much integration | ||
| [2008/05/28 06:35:04] <ashp> let me show you what I have | ||
| [2008/05/28 06:35:18] <duritong> would be nice | ||
| [2008/05/28 06:35:24] <duritong> :) | ||
| [2008/05/28 06:35:25] <ashp> http://pastebin.com/db766c67 | ||
| [2008/05/28 06:35:35] <ashp> I have EPEL added as a 'repo' in cobbler, so I can mirror puppet/facter from there | ||
| [2008/05/28 06:35:52] <ashp> Then I install puppet/facter as part of the build, set up enough networking to register against the redhat network | ||
| [2008/05/28 06:36:15] <duritong> awesome | ||
| [2008/05/28 06:36:19] <ashp> then I just add puppet to start on bootup | ||
| [2008/05/28 06:36:24] <Volcane> (redhat network)-- | ||
| [2008/05/28 06:36:24] <ashp> pretend I didn't cut and paste my password in there for rhn | ||
| [2008/05/28 06:36:30] <Volcane> pain in the bhind | ||
| [2008/05/28 06:36:32] <ashp> I'll pretend if you all can | ||
| [2008/05/28 06:36:37] <Volcane> do you have satelite servers? | ||
| [2008/05/28 06:36:40] <duritong> yeah, i'll add our own repo | ||
| [2008/05/28 06:36:41] <ashp> no, sadly :/ | ||
| [2008/05/28 06:36:43] <ashp> i wish we did | ||
| [2008/05/28 06:36:53] <ashp> i hate rhn | ||
| [2008/05/28 06:37:01] <duritong> as I'm currently packaging puppet from git | ||
| [2008/05/28 06:37:25] <duritong> as I'm using some stuff which came after 0.24.4 | ||
| [2008/05/28 06:37:27] <ashp> i just try to shove the package into place and go from there really, no point in getting too fancy :) | ||
| [2008/05/28 06:37:39] <Volcane> ashp: yeah, using centos 5.x machines and then going to redhat proper, its such a small difference but boy it does spoil your day | ||
| [2008/05/28 06:37:54] <ashp> it's a requirement here, but I preferred centos | ||
| [2008/05/28 06:38:08] * duritong running only centos | ||
| [2008/05/28 06:38:20] <Volcane> nods, i do loads of startup work, so put in centos, means we have a fairly easy upgrade path should some investor or someone demand it | ||
| [2008/05/28 06:38:32] <duritong> yeah | ||
| [2008/05/28 06:40:24] @ kombucha joined channel #puppet | ||
| [2008/05/28 06:40:41] * Volcane 's satelite box has died *again*, no tv :( | ||
| [2008/05/28 06:51:58] @ mccune left channel #puppet () | ||
| [2008/05/28 06:52:00] @ martha left channel #puppet () | ||
| [2008/05/28 06:54:12] @ Quit: kambiz: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 06:56:31] @ Quit: kenvandine: "Ex-Chat" | ||
| [2008/05/28 07:00:53] @ kenvandine joined channel #puppet | ||
| [2008/05/28 07:03:15] @ shenson is now known as shenson_not_here | ||
| [2008/05/28 07:05:13] @ Quit: |Innocenti|: Read error: 110 (Connection timed out) | ||
| [2008/05/28 07:05:17] @ Quit: dysinger: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 07:05:52] @ dysinger joined channel #puppet | ||
| [2008/05/28 07:08:09] @ |Innocenti| joined channel #puppet | ||
| [2008/05/28 07:22:21] @ Quit: kenvandine: Read error: 110 (Connection timed out) | ||
| [2008/05/28 07:25:09] @ Quit: dysinger: | ||
| [2008/05/28 07:25:34] @ trek1s joined channel #puppet | ||
| [2008/05/28 07:29:49] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 07:37:22] @ Quit: trek1s: "leaving" | ||
| [2008/05/28 07:39:10] @ trek1s joined channel #puppet | ||
| [2008/05/28 07:41:40] @ Quit: |Innocenti|: Read error: 110 (Connection timed out) | ||
| [2008/05/28 07:44:55] @ kolla joined channel #puppet | ||
| [2008/05/28 07:46:37] @ diggyk joined channel #puppet | ||
| [2008/05/28 07:47:09] <diggyk> How do I get the classes filled out in the nodes yaml file on the puppetmaster? | ||
| [2008/05/28 07:51:41] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 07:52:25] <Volcane> diggyk: you mean you want the classes thats been sent to the server placed in the files /var/lib/puppet/yaml/node/* ? | ||
| [2008/05/28 07:53:05] <diggyk> Yeah. Looks like there is an empty array there right now since they all start with classes: [] | ||
| [2008/05/28 07:53:24] <diggyk> Maybe I'm misreading it. I'm not up to speed on reading yaml | ||
| [2008/05/28 07:53:26] <Volcane> donno, i dont have htem either, but i have htem on the clients | ||
| [2008/05/28 07:54:43] @ Quit: andrewcshafer: | ||
| [2008/05/28 07:57:29] @ Quit: thegcat_: | ||
| [2008/05/28 08:00:09] @ shadoi joined channel #puppet | ||
| [2008/05/28 08:00:37] <diggyk> shadoi: how do I get the classes part of the /var/lib/puppet/yaml/node files expanded? | ||
| [2008/05/28 08:01:14] <diggyk> I ask as I run off to a meeting | ||
| [2008/05/28 08:09:16] @ dysinger joined channel #puppet | ||
| [2008/05/28 08:13:50] <shadoi> diggyk: I think that's a placeholder for external node tools and the "new" syntax, I've never used it | ||
| [2008/05/28 08:14:23] <shadoi> diggyk: /var/lib/puppet/state/classes.txt is the "old" list | ||
| [2008/05/28 08:17:43] <shadoi> probably just be a bug that it doesn't get populated | ||
| [2008/05/28 08:19:47] @ Quit: flakrat: "Leaving" | ||
| [2008/05/28 08:20:21] @ Quit: trek1s: "leaving" | ||
| [2008/05/28 08:24:02] @ Quit: sknight: Read error: 110 (Connection timed out) | ||
| [2008/05/28 08:29:25] <gepetto> ::puppet:: Ticket #1266 (defect closed): tarball release of puppet 0.24.4 lacks test/data directory @ http://reductivelabs.com/trac/puppet/ticket/1266#comment:3 (by james@lovedthanlost.net) | ||
| [2008/05/28 08:29:25] <gepetto> ::puppet:: Ticket #1267 (defect closed): Fix test running in install.rb @ http://reductivelabs.com/trac/puppet/ticket/1267#comment:2 (by james@lovedthanlost.net) | ||
| [2008/05/28 08:31:19] @ emerose joined channel #puppet | ||
| [2008/05/28 08:36:33] @ |Innocenti| joined channel #puppet | ||
| [2008/05/28 08:41:44] @ Quit: AimanA: "Rack this." | ||
| [2008/05/28 08:55:39] @ Quit: MrProper_: Remote closed the connection | ||
| [2008/05/28 08:56:11] @ Quit: Innocenti: Client Quit | ||
| [2008/05/28 09:04:58] @ Quit: ricky: Client Quit | ||
| [2008/05/28 09:12:13] @ MrProper_ joined channel #puppet | ||
| [2008/05/28 09:13:23] @ Quit: |Innocenti|: Read error: 110 (Connection timed out) | ||
| [2008/05/28 09:16:01] @ lak joined channel #puppet | ||
| [2008/05/28 09:20:19] @ emerose_ joined channel #puppet | ||
| [2008/05/28 09:22:36] @ ricky joined channel #puppet | ||
| [2008/05/28 09:24:31] @ Quit: lak: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 09:25:17] @ lak joined channel #puppet | ||
| [2008/05/28 09:28:17] @ Quit: emerose: Read error: 110 (Connection timed out) | ||
| [2008/05/28 09:31:03] @ Quit: jvanzyl: | ||
| [2008/05/28 09:33:21] @ Quit: lak: | ||
| [2008/05/28 09:35:23] <diggyk> shadoi: gotcha. | ||
| [2008/05/28 09:36:34] <diggyk> shadoi: I guess I still want to look at stored configs to save the latest facts and classes on the puppetmaster. I assume the db stuff (dbname, dbserver, etc) is for this stuff. | ||
| [2008/05/28 09:41:33] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 09:42:30] @ lak joined channel #puppet | ||
| [2008/05/28 09:49:18] <shadoi> diggyk: yeah | ||
| [2008/05/28 09:52:12] <diggyk> shadoi: gotcha. I know there is a way to store the yamls but that stores with each run instead of just the last run. I'll start playing with stored configs, maybe. (time allowing) | ||
| [2008/05/28 09:55:12] <diggyk> Shouldn't this work in an erb template?: | ||
| [2008/05/28 09:55:12] <diggyk> <% | ||
| [2008/05/28 09:55:12] <diggyk> if puppetversion.split('.')[1].to_i > 23 then | ||
| [2008/05/28 09:55:13] <diggyk> puts "# We want unified diffs (only 0.24.4+ clients)" | ||
| [2008/05/28 09:55:14] <diggyk> puts "diff_args='-u'" | ||
| [2008/05/28 09:55:14] <diggyk> puts "show_diff=true" | ||
| [2008/05/28 09:55:14] <diggyk> end | ||
| [2008/05/28 09:55:16] <diggyk> %> | ||
| [2008/05/28 09:55:32] <diggyk> Hmm, meant to paste the pastie, but oh well. :) | ||
| [2008/05/28 09:56:32] <shadoi> you don't need puts | ||
| [2008/05/28 09:56:38] <shadoi> just the text | ||
| [2008/05/28 09:57:07] <shadoi> and you have to use <%= if you want output | ||
| [2008/05/28 09:57:12] <diggyk> With \n for the line breaks? | ||
| [2008/05/28 09:57:23] <diggyk> Ah, yes, I missed the = | ||
| [2008/05/28 09:57:39] <shadoi> I'd keep your logic trapped in tags | ||
| [2008/05/28 09:58:11] <diggyk> Kind of like with php or something. Gotcha. | ||
| [2008/05/28 09:58:48] <diggyk> <% if blah %> stuff <% end %> ? | ||
| [2008/05/28 09:59:09] <diggyk> I haven't touched erb in a long time, apparently. | ||
| [2008/05/28 09:59:11] <shadoi> http://pastie.org/204386 | ||
| [2008/05/28 10:00:42] <diggyk> And, I forgot the minus as well. I've been coding a lot of php stuff and kept thinking erb wasn't like that for some reason | ||
| [2008/05/28 10:01:37] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 10:06:12] <fujin> diggyk: yeah, puts will stdout as opposed to returning the strings | ||
| [2008/05/28 10:06:26] <fujin> I didn't know you could if .. then .. end | ||
| [2008/05/28 10:06:30] <fujin> thought it was if .. do .. end | ||
| [2008/05/28 10:06:50] * fujin looks around | ||
| [2008/05/28 10:07:14] <diggyk> Well, it seems to work | ||
| [2008/05/28 10:07:27] <fujin> must be synonymous | ||
| [2008/05/28 10:14:43] @ Quit: dysinger: | ||
| [2008/05/28 10:14:57] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 10:15:02] @ sessaid joined channel #puppet | ||
| [2008/05/28 10:15:42] @ _newbie_ is now known as f--z | ||
| [2008/05/28 10:19:59] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/28 10:20:00] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 10:22:12] @ holaway is now known as holoway | ||
| [2008/05/28 10:24:28] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 10:24:30] @ Quit: jvanzyl_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 10:24:31] <MrProper_> mornin all | ||
| [2008/05/28 10:24:46] @ Quit: lak: | ||
| [2008/05/28 10:24:47] @ Quit: andrewcshafer: | ||
| [2008/05/28 10:26:55] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/28 10:26:57] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 10:31:09] <shadoi> you don't actually need the "then" | ||
| [2008/05/28 10:31:14] <shadoi> only when it's all on one line | ||
| [2008/05/28 10:32:21] <fujin> heh yeah thought it looked weird | ||
| [2008/05/28 10:32:26] <fujin> like BASH if construct | ||
| [2008/05/28 10:32:48] <ashp> kind of how i would write something :D | ||
| [2008/05/28 10:33:03] <ashp> actually if i can't make it resemble shell, i'm lost | ||
| [2008/05/28 10:33:12] <holoway> fujin: the americans desire a resume, new zealander | ||
| [2008/05/28 10:33:25] <shadoi> bash is so ugly to me now | ||
| [2008/05/28 10:33:27] <shadoi> I can't stand to write it | ||
| [2008/05/28 10:33:39] <ashp> resume: 2008 - Finally got puppet to install iclassify in a single run. | ||
| [2008/05/28 10:33:43] <ashp> that's my new resume :O | ||
| [2008/05/28 10:33:47] <holoway> "bash is dead to me" | ||
| [2008/05/28 10:33:58] <ashp> I'm still at the bash level, I like bash, it's comfortable :/ | ||
| [2008/05/28 10:34:30] @ sessaid left channel #puppet () | ||
| [2008/05/28 10:50:22] @ kenvandine joined channel #puppet | ||
| [2008/05/28 10:51:01] <fujin> holoway: I know, I'm shit | ||
| [2008/05/28 10:51:02] @ Quit: jvanzyl_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 10:51:14] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 10:51:27] <holoway> fujin: but you do have gainful employment and a life | ||
| [2008/05/28 10:51:29] <holoway> :) | ||
| [2008/05/28 10:51:33] <fujin> aye | ||
| [2008/05/28 10:51:35] <holoway> just a gentle nudge | ||
| [2008/05/28 10:51:40] <fujin> noted | ||
| [2008/05/28 10:53:53] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/28 10:53:55] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 10:54:04] @ Quit: jvanzyl_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 10:54:27] <ashp> fujin, moving to america? :) | ||
| [2008/05/28 10:54:42] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 10:55:12] <fujin> ashp: not just yet | ||
| [2008/05/28 10:55:23] <fujin> haha | ||
| [2008/05/28 10:55:26] <fujin> maybe one day | ||
| [2008/05/28 11:02:14] @ Quit: plathrop: "ERC Version 5.2 (IRC client for Emacs)" | ||
| [2008/05/28 11:04:40] @ Quit: f--z: "KVIrc 3.2.5 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 11:08:30] @ Quit: shadoi: Read error: 110 (Connection timed out) | ||
| [2008/05/28 11:29:46] @ Quit: fbe: Read error: 110 (Connection timed out) | ||
| [2008/05/28 11:30:31] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 11:33:29] @ johnf joined channel #puppet | ||
| [2008/05/28 11:45:25] @ _newbie_ is now known as f--z | ||
| [2008/05/28 12:05:53] @ Quit: emerose_: | ||
| [2008/05/28 12:09:06] @ Quit: shake-n-bake_: Read error: 110 (Connection timed out) | ||
| [2008/05/28 12:11:45] @ shadoi joined channel #puppet | ||
| [2008/05/28 12:13:47] @ Quit: f--z: "KVIrc 3.2.5 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 12:14:05] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 12:14:50] @ _newbie_ is now known as f--z | ||
| [2008/05/28 12:15:49] @ Quit: fujin: "leaving" | ||
| [2008/05/28 12:15:57] @ fujin joined channel #puppet | ||
| [2008/05/28 12:17:06] @ ktheory joined channel #puppet | ||
| [2008/05/28 12:33:01] @ Quit: f--z: "KVIrc 3.2.5 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 12:36:07] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 12:36:57] @ lak joined channel #puppet | ||
| [2008/05/28 12:45:34] @ Quit: lak: | ||
| [2008/05/28 12:45:46] @ Quit: andrewcshafer: | ||
| [2008/05/28 13:03:13] @ Gwayne joined channel #puppet | ||
| [2008/05/28 13:09:49] @ sparanjape joined channel #puppet | ||
| [2008/05/28 13:11:29] @ Quit: ktheory: | ||
| [2008/05/28 13:12:10] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 13:22:49] <fujin> lols for the day; http://www.youtube.com/watch?v=Ni_rAamVP2s | ||
| [2008/05/28 13:22:51] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 13:23:15] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 13:44:49] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/28 13:44:50] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 14:08:37] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 14:08:38] @ Quit: jvanzyl_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 14:16:40] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/28 14:16:42] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 14:21:27] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 14:21:29] @ Quit: jvanzyl_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 14:42:00] @ Quit: kenvandine: "Ex-Chat" | ||
| [2008/05/28 14:42:04] @ Quit: Babar: Read error: 110 (Connection timed out) | ||
| [2008/05/28 14:42:29] @ kenvandine joined channel #puppet | ||
| [2008/05/28 14:43:41] @ Quit: cote: | ||
| [2008/05/28 14:54:43] @ lak joined channel #puppet | ||
| [2008/05/28 14:58:31] @ Quit: lak: Client Quit | ||
| [2008/05/28 15:01:16] @ jvanzyl_ joined channel #puppet | ||
| [2008/05/28 15:01:18] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 15:02:05] @ Quit: andrewcshafer: | ||
| [2008/05/28 15:02:33] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 15:03:00] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 15:03:19] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 15:03:29] @ Quit: jvanzyl_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 15:12:33] @ Quit: Maliuta: "Leaving" | ||
| [2008/05/28 15:13:39] @ Maliuta joined channel #puppet | ||
| [2008/05/28 15:18:11] @ Quit: johnf: Read error: 110 (Connection timed out) | ||
| [2008/05/28 15:19:40] @ cote joined channel #puppet | ||
| [2008/05/28 15:35:35] @ Quit: kombucha: "leaving" | ||
| [2008/05/28 15:53:50] @ shake-n-bake joined channel #puppet | ||
| [2008/05/28 16:02:38] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 16:05:22] @ Quit: Maliuta: Remote closed the connection | ||
| [2008/05/28 16:06:36] @ Maliuta joined channel #puppet | ||
| [2008/05/28 16:19:11] @ Quit: jvanzyl: | ||
| [2008/05/28 16:19:13] @ Quit: MrProper_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 16:27:58] @ Quit: andrewcshafer: | ||
| [2008/05/28 16:36:32] <silent> Hi, I need create directory only after i have installed package. | ||
| [2008/05/28 16:36:34] <silent> How can I define such dependence? | ||
| [2008/05/28 16:37:40] <fujin> file { "file": require => Package[package] } | ||
| [2008/05/28 16:43:21] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 16:52:00] @ Innocenti joined channel #puppet | ||
| [2008/05/28 17:00:20] @ Quit: kenvandine: Read error: 110 (Connection timed out) | ||
| [2008/05/28 17:02:53] @ kenvandine joined channel #puppet | ||
| [2008/05/28 17:05:52] <silent> fujin: thanks | ||
| [2008/05/28 17:13:13] @ tim|macbook joined channel #puppet | ||
| [2008/05/28 17:13:46] @ Quit: Gwayne: Remote closed the connection | ||
| [2008/05/28 17:14:03] @ Quit: tmz: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:14:05] @ Quit: hacim: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:14:06] @ Quit: choffee: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:14:08] @ Quit: dyresen: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:14:09] @ Quit: hX8: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:14:11] @ Quit: charlieS: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:14:13] @ Quit: erikh: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:14:15] @ Quit: benp-: kubrick.freenode.net irc.freenode.net | ||
| [2008/05/28 17:15:42] @ tmz joined channel #puppet | ||
| [2008/05/28 17:15:43] @ hacim joined channel #puppet | ||
| [2008/05/28 17:15:43] @ erikh joined channel #puppet | ||
| [2008/05/28 17:15:44] @ dyresen joined channel #puppet | ||
| [2008/05/28 17:15:45] @ benp- joined channel #puppet | ||
| [2008/05/28 17:15:46] @ choffee joined channel #puppet | ||
| [2008/05/28 17:15:47] @ hX8 joined channel #puppet | ||
| [2008/05/28 17:15:48] @ charlieS joined channel #puppet | ||
| [2008/05/28 17:19:48] @ |Innocenti| joined channel #puppet | ||
| [2008/05/28 17:27:25] @ Quit: andrewcshafer: | ||
| [2008/05/28 17:30:55] @ DerekW joined channel #puppet | ||
| [2008/05/28 17:33:51] @ Quit: gh: "Leaving." | ||
| [2008/05/28 17:37:09] @ Quit: bartc: "leaving" | ||
| [2008/05/28 17:40:32] @ pluesch0r joined channel #puppet | ||
| [2008/05/28 17:42:04] <pluesch0r> morning. what am i doing wrong if a gem package installation is failing with /usr/lib/ruby/1.8/rubygems.rb:259:in `report_activate_error': Could not find RubyGem install rails (>= 0.0.0) (Gem::LoadError) on debian sarge? | ||
| [2008/05/28 17:42:12] <pluesch0r> installing the gem manually works. | ||
| [2008/05/28 17:43:27] <pluesch0r> the directive in my manidest file looks like package { rails: provider => gem, ensure => latest, require => Package['rubygems'] } | ||
| [2008/05/28 17:43:53] <pluesch0r> manifest, even. :) | ||
| [2008/05/28 17:45:51] <tim|macbook> on sarge? damn... that must be a first :) | ||
| [2008/05/28 17:45:59] <tim|macbook> don't know anything about gems though, sorry | ||
| [2008/05/28 17:52:20] @ exodos joined channel #puppet | ||
| [2008/05/28 17:54:07] <pluesch0r> great. :) | ||
| [2008/05/28 18:00:56] @ fbe joined channel #puppet | ||
| [2008/05/28 18:01:57] @ Quit: kolla: Remote closed the connection | ||
| [2008/05/28 18:05:29] @ Quit: kenvandine: Excess Flood | ||
| [2008/05/28 18:06:04] @ Quit: gore: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 18:06:07] @ gore_ joined channel #puppet | ||
| [2008/05/28 18:06:23] @ kenvandine joined channel #puppet | ||
| [2008/05/28 18:12:29] @ Quit: Ol_: | ||
| [2008/05/28 18:14:15] <jamesturnbull> pluesch0r: hmmm what version of gems? | ||
| [2008/05/28 18:14:30] <pluesch0r> jamesturnbull: sarge comes with 0.9.0 | ||
| [2008/05/28 18:14:35] <jamesturnbull> pluesch0r: oh | ||
| [2008/05/28 18:14:40] <fujin> holoway: prod | ||
| [2008/05/28 18:14:41] <jamesturnbull> pluesch0r: that'll be your problem | ||
| [2008/05/28 18:14:46] <pluesch0r> is that a good or a bad oh. | ||
| [2008/05/28 18:14:49] <pluesch0r> ah, a bad 'oh'. | ||
| [2008/05/28 18:14:53] <jamesturnbull> pluesch0r: puppet version? | ||
| [2008/05/28 18:15:04] <jamesturnbull> pluesch0r: and bad "oh" | ||
| [2008/05/28 18:15:15] <pluesch0r> 0.20.1-1 | ||
| [2008/05/28 18:16:18] <jamesturnbull> pluesch0r: hmmm I am thinking about the gem provider and I am not sure it'll support 0.9.0 | ||
| [2008/05/28 18:16:55] <jamesturnbull> pluesch0r: can you run with --trace --verbose --debug and log a ticket? | ||
| [2008/05/28 18:17:11] <pluesch0r> yeah, sure. | ||
| [2008/05/28 18:17:20] <pluesch0r> what's the preferred way of running this, then? | ||
| [2008/05/28 18:17:29] <pluesch0r> manually installing gem, not using the apt package system? | ||
| [2008/05/28 18:17:59] <jamesturnbull> pluesch0r: well when the provider works - that's normally the best way :) | ||
| [2008/05/28 18:18:05] <fujin> holoway: see email when you get a chance | ||
| [2008/05/28 18:18:16] <pluesch0r> jamesturnbull: of course. | ||
| [2008/05/28 18:18:29] <pluesch0r> jamesturnbull: i haven't got all the time in the world, though. :) | ||
| [2008/05/28 18:18:39] <jamesturnbull> pluesch0r: without out use an exec resource | ||
| [2008/05/28 18:18:56] <jamesturnbull> exec { "install_gem": command => "gem install rails", } etc | ||
| [2008/05/28 18:18:59] <pluesch0r> yeah. | ||
| [2008/05/28 18:19:09] <gepetto> ::puppet:: Ticket #1268 (enhancement created): Improve the documentation of how exec works @ http://reductivelabs.com/trac/puppet/ticket/1268 (by sjmudd@pobox.com) | ||
| [2008/05/28 18:19:21] <jamesturnbull> pluesch0r: aware its not as clean but it'll work | ||
| [2008/05/28 18:19:28] <pluesch0r> jamesturnbull: ok | ||
| [2008/05/28 18:19:50] <pluesch0r> i'd just use a manually installed gem and puppet via gem if that'd work. | ||
| [2008/05/28 18:20:08] <jamesturnbull> pluesch0r: if you log the ticket I'll try to address the other issue - which could be gem version, could be something else | ||
| [2008/05/28 18:20:45] <pluesch0r> ok, i'll log a ticket. thanks. | ||
| [2008/05/28 18:21:27] <tim|macbook> pluesch0r: honestly, 0.20.1 is a very old version, you might want to consider the packages in debian testing (although I'm not sure if they'll run on sarge) | ||
| [2008/05/28 18:22:03] <pluesch0r> tim|macbook: shouldn't i just be able to install puppet via gem? | ||
| [2008/05/28 18:22:11] <pluesch0r> .. i've got no problem with backporting them. | ||
| [2008/05/28 18:22:18] <jamesturnbull> pluesch0r: yeah there is a wiki page - which I always forget - wiki:DebianTesting | ||
| [2008/05/28 18:22:21] <pluesch0r> i just want this to work without me fiddling around too much. | ||
| [2008/05/28 18:22:25] <pluesch0r> :) | ||
| [2008/05/28 18:23:11] <jamesturnbull> pluesch0r: or look at wiki:PuppetDebian | ||
| [2008/05/28 18:23:13] <gepetto> jamesturnbull: pluesch0r: wiki:PuppetDebian is http://reductivelabs.com/trac/puppet/wiki/PuppetDebian | ||
| [2008/05/28 18:23:20] <pluesch0r> k, thanks. | ||
| [2008/05/28 18:24:45] <tim|macbook> wiki:DebianTestingPackages is the one you meant the first time, i think james | ||
| [2008/05/28 18:25:08] <tim|macbook> (or not, since gepetto doesn't seem to pick it up) | ||
| [2008/05/28 18:25:41] <pluesch0r> ok, great. | ||
| [2008/05/28 18:25:56] <tim|macbook> oh it's integrated into the puppetdebian page | ||
| [2008/05/28 18:25:57] <tim|macbook> nice | ||
| [2008/05/28 18:37:35] @ kolla joined channel #puppet | ||
| [2008/05/28 18:38:51] @ johnf joined channel #puppet | ||
| [2008/05/28 18:59:22] <msf> hrm.. think we found a small bug in facter | ||
| [2008/05/28 19:00:45] <fujin> sweet - what's it do? | ||
| [2008/05/28 19:01:05] <msf> this is in 1.3.8 on rhel5 | ||
| [2008/05/28 19:01:16] <msf> we have a xen virtualization machine | ||
| [2008/05/28 19:01:26] <msf> lots of subinterfaces | ||
| [2008/05/28 19:01:34] <fujin> ah yes | ||
| [2008/05/28 19:01:40] <msf> the interface code in facter doesn't seem to deal very well with the subnterfaces | ||
| [2008/05/28 19:01:48] <msf> is this fixed in HEAD? | ||
| [2008/05/28 19:02:22] <fujin> welp, I get all of my interface_eth0_(0|1|2|3|4|5) on this box | ||
| [2008/05/28 19:02:41] <fujin> running out of head | ||
| [2008/05/28 19:02:55] <fujin> so, I guess | ||
| [2008/05/28 19:03:02] <fujin> msf: what happens? exception thrown? | ||
| [2008/05/28 19:03:02] <msf> no you need to create a subinterface | ||
| [2008/05/28 19:03:10] <msf> like eth0.1 | ||
| [2008/05/28 19:03:24] <fujin> eth0:0 != subinterface? | ||
| [2008/05/28 19:03:46] <msf> hrm | ||
| [2008/05/28 19:03:52] <fujin> are you talking about VLAN interfaces? I think they use the dots | ||
| [2008/05/28 19:03:57] <msf> I have this | ||
| [2008/05/28 19:04:02] <msf> vif0.0 | ||
| [2008/05/28 19:04:08] <msf> vif0.1 | ||
| [2008/05/28 19:04:13] <msf> ... | ||
| [2008/05/28 19:04:16] <fujin> I see | ||
| [2008/05/28 19:04:17] <msf> vif0.3 | ||
| [2008/05/28 19:04:19] <msf> I get this | ||
| [2008/05/28 19:04:28] <msf> $ facter | ||
| [2008/05/28 19:04:34] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:04:34] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:04:34] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:04:34] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:04:49] <msf> and then no info about the interfaces in the facter output later | ||
| [2008/05/28 19:04:53] <fujin> I see | ||
| [2008/05/28 19:05:09] <fujin> yeah.. The subinterfaces for vlans like that are different to interface aliases | ||
| [2008/05/28 19:05:12] <msf> want me to open a ticket ? | ||
| [2008/05/28 19:05:13] <fujin> (which the facter code is designed for) | ||
| [2008/05/28 19:05:18] <fujin> it probably should handle them | ||
| [2008/05/28 19:05:26] <fujin> msf: can you test against HEAD? | ||
| [2008/05/28 19:05:34] <fujin> or even rc1 | ||
| [2008/05/28 19:05:35] <fujin> of 1.5 | ||
| [2008/05/28 19:05:44] <msf> I will try rc1 | ||
| [2008/05/28 19:05:48] <fujin> cool | ||
| [2008/05/28 19:05:56] <fujin> just want to verify that it hasn't already been fixed | ||
| [2008/05/28 19:06:36] <msf> is there any way for me to easily run facter just out of the tarball without installing it ? | ||
| [2008/05/28 19:06:47] <fujin> hrm.. | ||
| [2008/05/28 19:07:09] <fujin> RUBYLIB=. bin/facter ? | ||
| [2008/05/28 19:07:44] <mcbride> msf: btw, I never recieved your update of the openbsd facter port. | ||
| [2008/05/28 19:08:20] <msf> this does it | ||
| [2008/05/28 19:08:21] <msf> env RUBYLIB=lib bin/facter | ||
| [2008/05/28 19:08:27] <msf> and it appears to be fixed in rc1 | ||
| [2008/05/28 19:08:41] <msf> interfaces => bond0,eth0,eth1,eth2,eth3,peth0,sit0,veth1,veth2,veth3,vif0.0,vif0.1,vif0.2,vif0.3,virbr0,xenbr0 | ||
| [2008/05/28 19:09:13] <msf> but we still get some errors | ||
| [2008/05/28 19:09:22] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:09:22] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:09:22] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:09:22] <msf> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 19:12:49] <pluesch0r> how do i transfer a file from my puppet server to a puppet? | ||
| [2008/05/28 19:15:08] <pluesch0r> ah, got it. :) | ||
| [2008/05/28 19:17:54] <msf> mcbride: sent you the diffs | ||
| [2008/05/28 19:18:10] <msf> mcbride: make sure sakurai san tests it too please :-) | ||
| [2008/05/28 19:20:20] <mcbride> recieved, thanks. | ||
| [2008/05/28 19:20:47] <duritong> msf: i ignore these errors | ||
| [2008/05/28 19:22:15] <pluesch0r> hm. nah, not really. | ||
| [2008/05/28 19:25:53] <msf> duritong: I don't like the idea of ignoring any errors | ||
| [2008/05/28 19:26:20] @ thegcat joined channel #puppet | ||
| [2008/05/28 19:26:46] <pluesch0r> how do i copy the file /etc/puppet/files/apt/preferences to /etc/apt/preferences on the client? | ||
| [2008/05/28 19:27:09] <msf> file { "/etc/apt/preferences": | ||
| [2008/05/28 19:27:25] <pluesch0r> i tried file {"/etc/apt/preferences": source => "puppet://myserver/files/apt/preferences"} | ||
| [2008/05/28 19:27:38] <msf> source => 'puppet:///files/apt/preferences' | ||
| [2008/05/28 19:27:44] <msf> also | ||
| [2008/05/28 19:27:57] <msf> make sure your fileserver.conf is exporting /etc/puppet/files | ||
| [2008/05/28 19:27:59] <pluesch0r> .. and if my puppet server is not called puppet, it's myserver:/// ? | ||
| [2008/05/28 19:28:03] <pluesch0r> jup, it is. | ||
| [2008/05/28 19:28:15] <msf> puppet:/// is special | ||
| [2008/05/28 19:28:34] <msf> it will make the client take the file from the puppet server it is currently receiving configuration from | ||
| [2008/05/28 19:29:08] <pluesch0r> hm. the puppet client tries to connect to localhost then. | ||
| [2008/05/28 19:29:19] <pluesch0r> err: Class[main]/Node[test]/Class[setup]/file=/etc/apt/preferences/source: Could not describe /files/apt/preferences: Could not connect to localhost on port 8140 | ||
| [2008/05/28 19:30:15] <pluesch0r> if i use puppet://myserver/files/ ... the client tells me it's not able to access mount[files] | ||
| [2008/05/28 19:30:43] <pluesch0r> even though that's defined in fileserver.conf ([files] path /etc/puppet/files) | ||
| [2008/05/28 19:31:01] <msf> what's in your fileserver.conf ? | ||
| [2008/05/28 19:31:06] @ gileswork joined channel #puppet | ||
| [2008/05/28 19:31:10] <msf> can you paste it in a pastebin somewhere ? | ||
| [2008/05/28 19:31:13] <pluesch0r> there are no allow/deny statements i nthere. do i need to allow the source ip of the client? | ||
| [2008/05/28 19:31:18] <msf> yes | ||
| [2008/05/28 19:31:21] <gileswork> heya puppetiers | ||
| [2008/05/28 19:31:49] <pluesch0r> ah, ok. | ||
| [2008/05/28 19:33:30] <pluesch0r> msf: k, great. thanks. working. :) | ||
| [2008/05/28 19:43:37] <jamesturnbull> msf: yeah I fixed the . interfaces in HEAD - which is now 1.5.rc1 | ||
| [2008/05/28 19:46:12] <jamesturnbull> msf: I think that error relates to the parsing of the interfaces fact - what do you see for that? | ||
| [2008/05/28 19:48:52] <msf> what do you mean ? | ||
| [2008/05/28 19:49:33] <msf> what is the prefered pastebin site used here? | ||
| [2008/05/28 19:49:38] <msf> I'll paste the output for you | ||
| [2008/05/28 19:50:43] <msf> http://pastie.caboo.se/204579 | ||
| [2008/05/28 19:52:25] <gileswork> oh I was wondering if there's a way that I can take the contents of a template and add it to the bottom of a file | ||
| [2008/05/28 19:52:32] <gileswork> a file though that isn't managed by puppt | ||
| [2008/05/28 19:53:18] <gileswork> this is what I was trying.. | ||
| [2008/05/28 19:53:19] <gileswork> http://pastie.org/204582 | ||
| [2008/05/28 19:53:28] <gileswork> using the line define | ||
| [2008/05/28 19:54:05] <gileswork> but because LogFormat has all the weird characters it breaks when I parse it with puppet | ||
| [2008/05/28 19:56:26] <jamesturnbull> msf: you can call the pastie bot too | ||
| [2008/05/28 19:56:31] <jamesturnbull> pastie: url me | ||
| [2008/05/28 19:56:54] <pastie> http://pastie.org/204583 by jamesturnbull. | ||
| [2008/05/28 19:58:49] <jamesturnbull> msf: have you had a look at how facter returns the interface? | ||
| [2008/05/28 20:01:18] <jamesturnbull> msf: so it lists all interfaces, adds them to the interfaces fact, then parses that fact and steps through each interface to return the mac and ip address | ||
| [2008/05/28 20:01:39] <jamesturnbull> msf: I suspect the interfaces fact is being built and spittng out that error | ||
| [2008/05/28 20:02:02] <jamesturnbull> msf: probably a slightly off regex | ||
| [2008/05/28 20:09:34] <msf> the thing that I have noticed is that none of the the vif interfaces that are causing the issue have ip addresses assigned | ||
| [2008/05/28 20:09:45] <msf> facter is reportiung the mac addresses properly | ||
| [2008/05/28 20:11:42] <Volcane> yeah those device not found errors are way annoying | ||
| [2008/05/28 20:12:15] <msf> I can find that error string in facter code anywhere :-/ | ||
| [2008/05/28 20:12:20] <msf> or a subset of it either | ||
| [2008/05/28 20:14:55] <jamesturnbull> msf: I'll find it and suppress it - it's the parsing - it doesn't match an ip address for the nterface and throws an error | ||
| [2008/05/28 20:15:14] <jamesturnbull> msf: can you log a ticket in the Facter trac | ||
| [2008/05/28 20:15:19] <msf> sure | ||
| [2008/05/28 20:15:45] <jamesturnbull> msf: no idea why I don't get it | ||
| [2008/05/28 20:16:02] <msf> it only seems to be on interfaces with vlans | ||
| [2008/05/28 20:16:08] <msf> ie. vif0.0 | ||
| [2008/05/28 20:16:15] <msf> vif0.1 and so forth | ||
| [2008/05/28 20:16:32] <msf> vlan interfaces that have no IP addresses assigned | ||
| [2008/05/28 20:16:41] <Volcane> msf: i have them on all my xen dom0's | ||
| [2008/05/28 20:16:59] <Volcane> vif1: error fetching interface information: Device not found | ||
| [2008/05/28 20:17:11] <jamesturnbull> msf: that'll be it - I don't have any vlan interfaces | ||
| [2008/05/28 20:17:43] <jamesturnbull> msf: I did the pattern matching based on output people emailed to me | ||
| [2008/05/28 20:17:58] <msf> what kind of output do you need ? | ||
| [2008/05/28 20:18:08] <Volcane> ah yes, my xen vif's are also vlan'd | ||
| [2008/05/28 20:18:48] <jamesturnbull> msf: well it's not the output - it's the fact that they don't have an IP address | ||
| [2008/05/28 20:19:05] <jamesturnbull> msf: I just need to suppress matching for no IP addresses | ||
| [2008/05/28 20:19:13] <jamesturnbull> msf: that'll stop the error | ||
| [2008/05/28 20:20:17] <jamesturnbull> msf: but if I email you a patch can you test it? | ||
| [2008/05/28 20:20:20] <msf> sure | ||
| [2008/05/28 20:20:24] <Volcane> jamesturnbull: facter seems to try and find ips for vif0 several times - once per vlan in my case - but never for vif0.1 or vif0.2 etc | ||
| [2008/05/28 20:20:36] <Volcane> if it parsed the interface named right - vif0.1 - it would get ips | ||
| [2008/05/28 20:20:40] <msf> if you paste the patch on pastie I can test it right now | ||
| [2008/05/28 20:20:49] <msf> if you mail it to me you might get greytrapped | ||
| [2008/05/28 20:21:00] <msf> I am leaving work in about 40 minutes | ||
| [2008/05/28 20:21:01] <jamesturnbull> msf: haven't patch it yet :) | ||
| [2008/05/28 20:21:06] <msf> :-) | ||
| [2008/05/28 20:21:22] <jamesturnbull> Volcane: might also be a bad regex then | ||
| [2008/05/28 20:21:26] <jamesturnbull> Volcane: platform? | ||
| [2008/05/28 20:21:35] <Volcane> centos | ||
| [2008/05/28 20:21:40] <msf> rhel5 | ||
| [2008/05/28 20:21:44] <Volcane> yeah | ||
| [2008/05/28 20:21:46] <jamesturnbull> Volcane: can you pastie me ifconfig -a and then ifconfig vif0.1 | ||
| [2008/05/28 20:21:54] <jamesturnbull> msf: or you or both :) | ||
| [2008/05/28 20:22:01] <Volcane> hold... | ||
| [2008/05/28 20:22:17] @ Quit: f3ew: Read error: 113 (No route to host) | ||
| [2008/05/28 20:22:24] <msf> pastie: url me | ||
| [2008/05/28 20:22:41] * Volcane 'd rather email it | ||
| [2008/05/28 20:22:51] <jamesturnbull> Volcane: understood james@lovedthanlost.net | ||
| [2008/05/28 20:22:54] <Volcane> what with all my ips and stuff on it | ||
| [2008/05/28 20:22:55] <pastie> http://pastie.org/204590 by msf. | ||
| [2008/05/28 20:22:56] <Volcane> kewl | ||
| [2008/05/28 20:23:32] <msf> pastie: url me | ||
| [2008/05/28 20:24:00] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 20:24:41] @ _newbie_ is now known as f--z | ||
| [2008/05/28 20:24:46] <Volcane> ah the message isnt from facteer | ||
| [2008/05/28 20:24:51] <Volcane> its from the OS libraries | ||
| [2008/05/28 20:25:05] <Volcane> % ifconfig vif0 | ||
| [2008/05/28 20:25:06] <Volcane> vif0: error fetching interface information: Device not found | ||
| [2008/05/28 20:25:14] <Volcane> which is exactly what facter outputs | ||
| [2008/05/28 20:25:17] <Volcane> jamesturnbull: sent. | ||
| [2008/05/28 20:25:36] <pastie> http://pastie.org/204591 by msf. | ||
| [2008/05/28 20:26:06] <jamesturnbull> Volcane: msf thanks guys I'll try to have a look tonight | ||
| [2008/05/28 20:26:24] <msf> it means that facter is calling ifconfig wrong then | ||
| [2008/05/28 20:26:51] <msf> I know for a fact it isn't happening in util/ip.rb | ||
| [2008/05/28 20:27:00] <jamesturnbull> msf: huh? | ||
| [2008/05/28 20:27:07] <msf> or | ||
| [2008/05/28 20:27:18] <msf> hold on | ||
| [2008/05/28 20:27:35] <jamesturnbull> msf: you think it's the ipaddress facrt | ||
| [2008/05/28 20:27:47] <msf> well | ||
| [2008/05/28 20:27:47] <jamesturnbull> that might make sense | ||
| [2008/05/28 20:28:02] <msf> I added a debugging puts in get_interface_calue | ||
| [2008/05/28 20:28:09] <msf> err get_interface_value | ||
| [2008/05/28 20:28:24] <msf> and #{interface} is correct | ||
| [2008/05/28 20:28:47] <msf> when I run facter with this chage the erros all occur before my extra debugging output | ||
| [2008/05/28 20:29:34] <jamesturnbull> msf: it'll be the ipaddress, netmask or macaddress fact then | ||
| [2008/05/28 20:30:44] <msf> whooo... netmask.rb looks magic | ||
| [2008/05/28 20:30:49] <msf> :-P | ||
| [2008/05/28 20:33:33] <msf> hrm... | ||
| [2008/05/28 20:33:36] <msf> I don't get it | ||
| [2008/05/28 20:34:25] <msf> there are only two file where ifconfig is called with an interface name directly | ||
| [2008/05/28 20:34:30] <msf> that I can tell anyways | ||
| [2008/05/28 20:34:35] <msf> ip.rb and ipadress.rb | ||
| [2008/05/28 20:38:13] @ Quit: f--z: "KVIrc 3.2.5 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 20:39:35] <jamesturnbull> msf: just refactored netmask.rb | ||
| [2008/05/28 20:40:24] <jamesturnbull> msf: I think it's ipaddress.rb - ip.rb suppresses the errors already - I think Luke added that | ||
| [2008/05/28 20:41:35] <msf> do you still want me to file a bug report ? | ||
| [2008/05/28 20:43:17] <msf> I really can't see where in ipaddress it could be ahppenning | ||
| [2008/05/28 20:43:32] <jamesturnbull> msf: can you please log a ticket | ||
| [2008/05/28 20:43:35] <msf> also when I add a debug puts in ipaddress i would expect to see the output of my puts near the errors | ||
| [2008/05/28 20:46:39] <gileswork> can a define take an array? | ||
| [2008/05/28 20:48:00] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 20:51:44] <msf> I think you can ut the array in a variable | ||
| [2008/05/28 20:51:51] <msf> and then pass it to a define | ||
| [2008/05/28 20:53:57] @ oxtail joined channel #puppet | ||
| [2008/05/28 20:55:39] @ _newbie_ is now known as f--z | ||
| [2008/05/28 20:56:51] <gileswork> oh well I'll soon find out | ||
| [2008/05/28 20:59:21] @ fbe_ joined channel #puppet | ||
| [2008/05/28 20:59:24] @ Quit: fbe: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 21:02:37] @ msn joined channel #puppet | ||
| [2008/05/28 21:03:13] <msn> i am trying to setup crontab entries using puppet but i cant figure how to pass the "day of week" option | ||
| [2008/05/28 21:04:07] <jamesturnbull> msf: wiki:TypeReference#cron | ||
| [2008/05/28 21:04:46] <gepetto> jamesturnbull: msf: wiki:TypeReference#cron is http://reductivelabs.com/trac/puppet/wiki/TypeReference#cron | ||
| [2008/05/28 21:04:46] <msn> thanks | ||
| [2008/05/28 21:04:46] <jamesturnbull> msn: hmm wake up gepetto | ||
| [2008/05/28 21:05:14] <msn> i got it | ||
| [2008/05/28 21:05:15] <msn> thanks | ||
| [2008/05/28 21:05:29] <msn> i was trying to search but wouldnt get it | ||
| [2008/05/28 21:06:45] <msn> thanks | ||
| [2008/05/28 21:14:44] @ fbe__ joined channel #puppet | ||
| [2008/05/28 21:15:25] @ Quit: fbe_: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 21:16:45] <gileswork> can puppet variables case sensitive? | ||
| [2008/05/28 21:16:50] @ Quit: thegcat: | ||
| [2008/05/28 21:17:01] <gileswork> i was wondering whether to match the camel caps of apache2 config options.. | ||
| [2008/05/28 21:17:54] @ Quit: roald: "KVIrc 3.2.6 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 21:18:20] @ roald joined channel #puppet | ||
| [2008/05/28 21:19:20] <msn> okey ran into another block | ||
| [2008/05/28 21:19:42] <msn> it seems weekday only takes one day as option even though cron accepts values like Mon-Fri | ||
| [2008/05/28 21:19:53] <msn> how do i pass such variables | ||
| [2008/05/28 21:22:24] @ Quit: shadoi: Read error: 110 (Connection timed out) | ||
| [2008/05/28 21:22:41] <msn> gepetto: | ||
| [2008/05/28 21:22:51] <msn> gepetto: any idea if puppet can do this | ||
| [2008/05/28 21:23:19] <fujin> msn: gepetto is a bot | ||
| [2008/05/28 21:23:28] <msn> ah okey | ||
| [2008/05/28 21:23:56] <msn> anyway what do i do with this road block | ||
| [2008/05/28 21:24:23] <fujin> not sure | ||
| [2008/05/28 21:24:33] <fujin> maybe try passing an array | ||
| [2008/05/28 21:24:41] <fujin> weekday => [ "mon", "tue", "wed" ] | ||
| [2008/05/28 21:25:19] <msn> hmm k | ||
| [2008/05/28 21:26:28] @ Quit: oxtail: "Ex-Chat" | ||
| [2008/05/28 21:27:06] <msn> thanks that worked | ||
| [2008/05/28 21:30:21] <silent> class user::virtual { | ||
| [2008/05/28 21:30:23] <silent> @user { "test": | ||
| [2008/05/28 21:30:24] <silent> ensure => "present", | ||
| [2008/05/28 21:30:26] <silent> uid => "1099", | ||
| [2008/05/28 21:30:27] <silent> gid => "1099", | ||
| [2008/05/28 21:30:28] <silent> groups => [ "wheel" , "www" ], | ||
| [2008/05/28 21:30:30] <silent> home => "/home/test", | ||
| [2008/05/28 21:30:31] <silent> shell => "/usr/local/bin/bash", | ||
| [2008/05/28 21:30:33] <silent> require => Group[test]; | ||
| [2008/05/28 21:30:35] <silent> } | ||
| [2008/05/28 21:30:36] <silent> @group { "test": | ||
| [2008/05/28 21:30:37] <silent> ensure => "present", | ||
| [2008/05/28 21:30:39] <silent> gid => "1099"; | ||
| [2008/05/28 21:30:41] <silent> } | ||
| [2008/05/28 21:30:43] <silent> Could not create user test: Execution of '/usr/sbin/pw useradd test -G wheel,www -s /usr/local/bin/bash -g 1099 -d /home/test -n -u 1099' returned 17152: pw: group `1099' does not exist | ||
| [2008/05/28 21:30:44] <silent> can i use "require" with virtual objects ? | ||
| [2008/05/28 21:37:34] <fsweetser> you typically don't need to explicitly specify a user as belonging to their own group like that | ||
| [2008/05/28 21:41:38] <fujin> silent: odd - not sure I've actually seen anyone try to do that before | ||
| [2008/05/28 21:44:44] <jamesturnbull> silent: can you please use pastie | ||
| [2008/05/28 21:46:51] <silent> jamesturnbull: ok | ||
| [2008/05/28 21:47:17] <jamesturnbull> silent: there is a bot you can use - very easy just ask pastie for a url | ||
| [2008/05/28 21:58:11] @ Quit: fbe__: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 21:58:47] @ Zothar_Work joined channel #puppet | ||
| [2008/05/28 22:07:44] @ Quit: msn: "KVIrc 3.2.0 'Realia'" | ||
| [2008/05/28 22:09:58] @ Quit: Zothar_Work: "ChatZilla 0.9.82.1 [Firefox 2.0.0.14/2008040414]" | ||
| [2008/05/28 22:22:11] @ thegcat joined channel #puppet | ||
| [2008/05/28 22:22:52] @ f3ew joined channel #puppet | ||
| [2008/05/28 22:25:05] @ gore_ is now known as gore | ||
| [2008/05/28 22:35:27] @ Quit: |Innocenti|: Client Quit | ||
| [2008/05/28 22:41:31] @ Quit: tim|macbook: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 22:52:35] @ ktheory joined channel #puppet | ||
| [2008/05/28 22:55:08] @ Shamgar joined channel #puppet | ||
| [2008/05/28 22:55:20] <Shamgar> Has anyone done any work on getting any part of puppet to run under windows? | ||
| [2008/05/28 22:56:00] <Shamgar> In particular, I would love to be able to use puppet to manage the distributon of certain files under windows and get rid of rdist. | ||
| [2008/05/28 22:56:14] <jamesturnbull> Shamgar: been thinking about it but no - it'd be quite difficult - though underr cygwin might be feasible | ||
| [2008/05/28 22:56:58] <Shamgar> I imagine any real configuration management under windows this way would be very problematic, but at least being able to do file distribution and running local commands would be nice. | ||
| [2008/05/28 22:57:11] @ tim|macbook joined channel #puppet | ||
| [2008/05/28 22:59:06] @ Quit: f--z: "KVIrc 3.2.5 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 22:59:09] @ Quit: ktheory: | ||
| [2008/05/28 22:59:43] <jamesturnbull> Shamgar: well I'd try cygwin and see what happens | ||
| [2008/05/28 23:01:38] @ Quit: thegcat: | ||
| [2008/05/28 23:19:14] @ fbe__ joined channel #puppet | ||
| [2008/05/28 23:19:55] @ Quit: sparanjape: "For Sale: Parachute. Only used once, never opened, small stain." | ||
| [2008/05/28 23:31:17] @ lak joined channel #puppet | ||
| [2008/05/28 23:32:34] @ kambiz joined channel #puppet | ||
| [2008/05/28 23:33:37] @ andrewcshafer joined channel #puppet | ||
| [2008/05/28 23:37:22] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 23:37:29] @ Quit: andrewcshafer: Client Quit | ||
| [2008/05/28 23:38:05] @ _newbie_ is now known as f--z | ||
| [2008/05/28 23:39:29] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 23:41:04] <gepetto> ::puppet:: Development Lifecycle edited by DavidS @ http://reductivelabs.com/trac/puppet/wiki/DevelopmentLifecycle (by david@schmitt.edv-bus.at) | ||
| [2008/05/28 23:43:50] @ Quit: Londo_: | ||
| [2008/05/28 23:47:20] <gepetto> ::puppet:: Language Tutorial edited by jamtur01 @ http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial (by james@lovedthanlost.net) | ||
| [2008/05/28 23:48:10] @ Zothar_Work joined channel #puppet | ||
| [2008/05/28 23:54:34] @ Quit: f--z: "KVIrc 3.2.5 Anomalies http://www.kvirc.net/" | ||
| [2008/05/28 23:54:43] @ _newbie_ joined channel #puppet | ||
| [2008/05/28 23:56:27] @ Quit: jvanzyl: Read error: 104 (Connection reset by peer) | ||
| [2008/05/28 23:56:39] @ jvanzyl joined channel #puppet | ||
| [2008/05/28 23:56:51] @ _newbie_ is now known as f--z |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!