Skip to content

Instantly share code, notes, and snippets.

View rodjek's full-sized avatar
👓
Looking for work

Tim Sharpe rodjek

👓
Looking for work
View GitHub Profile
user, project = ARGV # 'tobi', 'liquid'
`git clone [email protected]:#{user}/#{project}/wiki.git && find wiki -type f -exec cat {} >> github_wiki_pages.txt\;`
# Create a new fact named console_deployed_version
Facter.add("console_deployed_version") do
# Run svn info on /usr/local/dwalu/app to pull the deployed version and put it into a fact.
setcode do
`svn info /usr/local/dwalu/app --config-dir=/tmp/.subversion | grep Revision | sed 's/.*:.//g'`.chomp
end
end
@rodjek
rodjek / init.pp
Created June 22, 2012 05:20 — forked from sarguru/init.pp
the main class
class qmail {
$domain = hiera('domain')
$basedn = hiera('basedn')
$deepofix_password = hiera('deepofix_password')
$cluster = hiera('mail_cluster')
$concurrency = hiera('smtpd_concurrency')
$maxrcpt = hiera('maxrcpt')
$qmail_queue = hiera('qmail_queue')
$smtp_port = hiera('smtp_port')
@rodjek
rodjek / nodes.pp
Created July 5, 2012 05:28 — forked from cloudartisan/nodes.pp
Want to define a different security group for each server range
# First option, make elasticsearch a parameterised class
node /^tcsearch(0[1-9]|10)\.deskstaging\.com$/ inherits staging {
class { 'elasticsearch':
security_group => 'foo',
}
}
node /^tcsearch2[0-9]\.deskstaging\.com$/ inherits staging {
class { 'elasticsearch':
@rodjek
rodjek / servers.pp
Created October 14, 2013 20:02 — forked from supercow/servers.pp
$hosts = ['hosta','hostb','hostc']
range(0,count($hosts)-1).each |$num| {
$port = 8080 + $num
somemodule::someservice { $hosts[$num]:
listening_port => $port,
}
}