This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user, project = ARGV # 'tobi', 'liquid' | |
`git clone [email protected]:#{user}/#{project}/wiki.git && find wiki -type f -exec cat {} >> github_wiki_pages.txt\;` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$hosts = ['hosta','hostb','hostc'] | |
range(0,count($hosts)-1).each |$num| { | |
$port = 8080 + $num | |
somemodule::someservice { $hosts[$num]: | |
listening_port => $port, | |
} | |
} |