Skip to content

Instantly share code, notes, and snippets.

View traylenator's full-sized avatar

Steve Traylen traylenator

View GitHub Profile
@traylenator
traylenator / gist:4065084
Created November 13, 2012 10:32
Puppet apply augeas edit a java propeties fiels.
augeas{'xyz':
lens => 'Properties.lns',
incl => "/tmp/voms.service.properties",
changes => ['set "abc.def" "2345"']
}
@traylenator
traylenator / steves.pp
Created June 21, 2012 14:19
Create a block of pool accounts for grid with puppet.
#!/usr/bin/puppet apply
class {'grid_users':}
class grid_users {
#group { "cmsusr":
# ensure => present,
# gid => 4050
#}
#group { "cmssgm":
@traylenator
traylenator / gist:2965670
Created June 21, 2012 13:14
Create svn repo per user.
@user{'steve':
uid => 3001
}
@user{'owen':
uid => 6001,
}
@user{'tim':
uid => 6002
}
@traylenator
traylenator / test.sh
Created January 16, 2012 15:45
Testing
#!/bin/bash/
FOO=x
echo $FOO
# THIS FAILS AS YOU FORGOT $BAR
# No it does not.
@traylenator
traylenator / test.sh
Created January 16, 2012 15:39
Testing
#!/bin/bash/
FOO=x
echo $FOO