This file contains hidden or 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
magic_shell_environment 'JAVA_HOME' do | |
value '/install/location/path/java' | |
end |
This file contains hidden or 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
remote_file "/install/location/path/jdk-1_5_0_XYZ-linux-i586.bin" do | |
source "http://your.artifactory.example.com/artifactory/yourRepo/jdk-1_5_0_XYZ-linux-i586.bin" | |
mode "0700" | |
not_if { ::File.exists?('/install/location/path/jdk-1_5_0_XYZ-linux-i586.bin') } | |
end |
This file contains hidden or 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
bash "install-jdk15" do | |
cwd "/install/location/path" | |
code <<-EOH | |
./jdk-1_5_0_XYZ-linux-i586.bin >/dev/null < <(echo yes) >/dev/null < <(echo yes) | |
rm -rf /install/location/path/jdk1.5.0_XYZ/sample | |
rm -rf /install/location/path/jdk1.5.0_XYZ/demo | |
ln -s /install/location/path/jdk1.5.0_XYZ /install/location/path/java | |
EOH | |
not_if { ::File.exists?('/install/location/path/jdk1.5.0_XYZ/README.html') } | |
end |
This file contains hidden or 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
default.jenkins.plugins = { | |
# a snippet of what would be a long list | |
'instant-messaging' => '1.28', | |
'jabber' => '1.25', | |
'jobConfigHistory' => '1.39' | |
} |
This file contains hidden or 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
#!/usr/bin/env ruby | |
LOG_FILE = 'access.log' | |
csv_data = 'method,uri\n' | |
File.open(LOG_FILE, 'r') do |f| | |
counter = 1 | |
f.each_line do |line| | |
csv_data += "#{line.slice(line.index('"')+1..-1).split('"')[0].split[0]},#{line.slice(line.index('"')+1..-1).split('"')[0].split[1]}\n" |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# ASSUMES YOU'VE ALREADY USED single_org_setup.rb to create your nodes | |
# which will have saved the nodes key files to your machine and make API auth go | |
require 'fauxhai' | |
require 'mixlib/cli' | |
require 'mixlib/config' | |
require 'chef/rest' | |
require 'chef/node' |
This file contains hidden or 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
# This config file is manually-generated by tfitch | |
# please modify manually if the IaaS setup changes | |
DAEMON="/apps/mongodb/bin/mongod" | |
NAME="mongod" | |
DAEMON_OPTS="" | |
DAEMON_OPTS="$DAEMON_OPTS --port 27017" | |
DAEMON_OPTS="$DAEMON_OPTS --dbpath /apps/data/mongodb" | |
DAEMON_OPTS="$DAEMON_OPTS --logpath /apps/log/mongodb/mongod.log" |
This file contains hidden or 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
#!/bin/bash | |
# mongod - Startup script for mongod | |
# chkconfig: 35 85 15 | |
# description: Mongo is a scalable, document-oriented database. | |
# processname: mongod | |
# config: /apps/mongodb/conf/awc-mongodb.conf | |
# pidfile: /apps/mongodb/mongo.pid |
This file contains hidden or 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
# attributes for the iis_pool | |
default['config']['setting']['runtime_version'] = '12' | |
default['config']['setting']['thirty_two_bit'] = false | |
default['config']['setting']['max_proc'] = 4 |
This file contains hidden or 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
# if nothing was dynamic | |
iis_pool 'MyAppPool' do | |
runtime_version '12' | |
max_proc 4 | |
thirty_two_bit false | |
action :config | |
end |
OlderNewer