Tech

Better EC2 facts for Puppet

I didn’t like the facts that came with the standard facter for ec2, so I wrote a custom fact plugin returning more detailed information. It’s available on my GitHub Sample output is below   ec2_ami_id => ami-cdXXXXXX ec2_ami_launch-index => 0 ec2_ami_manifest-path => myamis/lenny-XXXXXXX-x86-20101207.manifest.xml ec2_ancestor_ami-ids => ami-XXXXXXXX,ami-XXXXXXXXXX ec2_block_device-mapping_ami => sda1 ec2_block_device-mapping_ephemeral0 Read more…

By chris, ago
Tech

Puppet Syntax Highlighting

To get nicely formatted Puppet code in your blog like the following: class test1 { file => "/tmp/test": ensure => present, owner => "chris", require => Package["test1"], } } 1) Install the WP-GeSHi-Highlight plugin in your word press 2) Find your geshi directory find /usr -name systemverilog.php 3) Down load Read more…

By chris, ago