Skip to content

Instantly share code, notes, and snippets.

View razorsedge's full-sized avatar

Mike Arnold razorsedge

View GitHub Profile
@eqhmcow
eqhmcow / puppet NFS
Created December 23, 2010 14:12
share NFS mounts on RHEL/CentOS with puppet, using augeas to manage exports file
# modules/nfs/manifests/init.pp
class nfs_server {
file { "destroy_exports":
path => "/etc/exports.puppet",
ensure => present,
source => "puppet://$servername/modules/nfs/empty",
}
package { "portmap":
@smoser
smoser / bdmapping
Created February 3, 2011 15:11
bdmapping: utility for providing the correct block-device-mapping args for ebs instances on EC2
#!/bin/sh
Usage() {
cat <<EOF
${0##*/} [-c] instance-type
print ephemeral store block-device-mapping arguments for 'instance-type'
If '-c' given, also print "--instance-type <instance-type>"
examples: