26 Sep 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-09-26

  • Waiting for a session timeout to hit so I can continue debugging the session code I wrote… #sillyme #
  • So, this comm. api needs a X-Requested-With header to give proper responses. Would've been nice if they mentioned that in the manual #fail #
  • Dropbox is actually quite cool! Why didn't I try this before? #dropbox #share #files http://db.tt/G2Pz5Ht #
  • @baseonmars Thanks for that link! I *love* Feynman… #
  • @ripienaar Try the stuff we offer! You'll like it! Just send us an email at info@twenty-five.nl and I'll set you up with a test VM for week. in reply to ripienaar #
  • Pauze tijdens theater "Het Oneindige Verhaal" van Het Laagland (première) in schouwburg Geleen. Erg leuk! #
  • Het stuk, dan, de pauze zelf is maar saai. #

Powered by Twitter Tools

19 Sep 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-09-19

Powered by Twitter Tools

12 Sep 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-09-12

Powered by Twitter Tools

5 Sep 2010, 1:31

Comments Off

Twitter Weekly Updates for 2010-09-05

  • We're more intimate with our customers than most companies: We've got root. #
  • @peroict True, irc too ;) #
  • I don't want of those new iPod Nano's… my fingers are way too fat for it! #apple #ipod #
  • Nu.nl: "Het aandeel vrouwen op Wall Street is afgenomen." En dan nu het opmerkelijke nieuws: "Het aandeel mannen is gestegen"!! #

Powered by Twitter Tools

1 Sep 2010, 12:05
Tags: , ,
Comments Off

Puppet Tips&Tricks: Variable variables

Sometimes you want to use variable variables, for instance when you want to iterate over all the ipaddress_* facts that facter found. Using something like ${ipaddress_$if} doesn’t work, though. Inline_template to the rescue! Volcane on IRC suggested the following solution, which works great:

$ifs = split($interfaces,",")

define do_this {
	$mule = "ipaddress_${name}"
	$donkey = inline_template("<%= scope.lookupvar(mule) %>")

	notify { "Found interface $donkey":; }
}

do_this { $ifs:; }

This will output:

$ sudo puppet net.pp
notice: Found interface 172.29.121.22
notice: //Do_this[eth0]/Notify[Found interface 172.29.121.22]/message: defined 'message' as 'Found interface 172.29.121.22'
notice: Found interface 213.207.83.56
notice: //Do_this[eth1]/Notify[Found interface 213.207.83.56]/message: defined 'message' as 'Found interface 213.207.83.56'

Hope this helps someone else! Leave a message if it does.

 
  • Search


  • Calender

    September 2010
    M T W T F S S
    « Aug   Oct »
     12345
    6789101112
    13141516171819
    20212223242526
    27282930  
  • Twitter

    Powered by Twitter Tools

  • RSS Delicious feed

  • Archives