Small Mosaic


Categories:

/books
/career
/codinghorrors
/events
/geekstuff
/justdont
/languages
/languages/bash
/linkshot
/magazines
/meta
/misctech
/movies
/nottech
/operatingsystems
/operatingsystems/linux
/operatingsystems/linux/debian
/operatingsystems/solaris
/perl
/presentations
/programming
/python
/ruby
/security
/security/apache
/security/tools
/serversmells
/services
/services/dns
/sites
/specifications
/sysadmin
/testing
/tools
/tools/commandline
/tools/firefox
/tools/gui
/tools/network
/tools/online
/tools/online/greasemonkey
/tools/puppet
/unixdaemon

Archives:

August 20101
July 20101
June 20104
May 20102
April 20101
March 20108
February 20101
January 20102
October 20092
September 200910
August 200910
July 20094
June 20091
April 20093
March 20097
February 20094
January 200917
Full Archives

Sun, 26 Aug 2007

Attending YAPC::Europe 2007 - Maybe
I've been quiet recently for "medical reasons". I've been suffering from a pain in the side that seems to strike strongly when I'm sitting, laying or standing up - yes, that doesn't leave a lot :) It's present most of the time but tolerable unless I sit in certain positions or chairs. It's not been too bad at work as the office has very nice seats but I drastically reduced my time spent online (my home desk setup seems to annoy it) while I waited to find out what's wrong. It's the geek in me but things don't seem to bad once you can put a name to them.

Although I'm still waiting for results from a number of tests, the basic view (ultrasounds are cool) seems to be I have Gall stones, an infection and inflammation (the latter of which is probably due to the infection, which is probably due to the gall stones; woo).

And so we get to YAPC::EU, I've got tickets, a hotel booked and a list of people I'd like to catch up with but I'm still not sure if I'll be going or not; but that's OK, I've got... oh 15 hours to decide. This does mean I won't be going to Linux Conf AU 2008 though. I doubt this'll be resolved by then and the two long flights to Sydney this year were awkward enough without the extra problems and pain I'd have to put up with this time around.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2007/08/26 22:52 | /meta | Permanent link to this entry | This entry and same date


Tue, 14 Aug 2007

Adding a fact to Pfacter
While dabbling with Puppet I've spent a fair amount of time investigating facter, one of the tools (although puppet uses it as a library) it's built on. While I quite like the format it uses to define a fact I'm hampered by my lack of ruby experience; simple things take me longer than they should. So when I noticed Pfacter while looking for a module on CPAN recently I thought I'd have a look at how it could be done in perl.

Firstly I have to mention the install, or rather lack of one. The module doesn't install via CPAN on Linux (and after looking at its CPAN Testers page it seems I'm not the only one with the problem) which makes it a bit of a pain. Once I'd hand wrangled an install I decided to see what it picked up about the system and how to add my own fact.

I can't complain about the number of built in facts, it's pretty comparable to the original facter (which I've added my own custom facts to now.) Adding a fact was a little more complex. Once I'd written one (I cribbed from the existing facts - but with strict and warnings added) I dropped it in to the correct directory (which I found with find / -name cfclasses.pm) and ran pfacter; and nothing happened.

After re-checking the code of the ipv6.pm fact I found the first major difference between the perl and ruby versions. Ruby facter loads all the facts in a directory and attempts them all, pfacter requires you to manually add them to the @modules array before it'll run them. Once I'd done that and reran pfacter it showed that my machine is ipv6 enabled.

So the verdict? It could be useful to pull out certain information about the system, I found the perl version easier to extend as it doesn't add its own little language to the mix, but for most people the biggest selling point of facter is its use within puppet - which this version lacks. Still, it was interesting to see another (very) different approach to collecting system information.

Like this post? - Digg Me! | Add to del.icio.us! | reddit this!

Posted: 2007/08/14 19:46 | /perl | Permanent link to this entry | This entry and same date


books career codinghorrors events geekstuff justdont magazines meta misctech movies nottech operatingsystems/linux operatingsystems/linux/debian operatingsystems/solaris perl programming python ruby security security/apache security/tools serversmells services/dns sites sysadmin testing tools tools/commandline tools/firefox tools/gui tools/network tools/online tools/online/greasemonkey tools/puppet unixdaemon

Copyright © 2000-2010 Dean Wilson XML feed logo