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
server { | |
listen 443; | |
server_name customerold.ourplatform.net; | |
... | |
location / { | |
proxy_set_header Host customer.ourplatform.net; | |
proxy_pass http://upstream_application; | |
proxy_redirect http://customer.ourplatform.net https://customerold.ourplatform.net; | |
} |
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 | |
require 'mongo' | |
require 'orderedhash' | |
include Mongo | |
c = MongoClient.new('localhost').db('admin') | |
def getReplSetStatus(c) | |
cmd = OrderedHash.new |
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 | |
require 'mongo' | |
include Mongo | |
c = MongoClient.new('localhost') | |
last_lb = 0 | |
last_nlb = 0 |
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
logrotate_app node['mongodb']['instance_name'] do | |
frequency 'daily' | |
cookbook 'logrotate' | |
options ['compress', 'dateext', 'missingok', 'notifempty', 'copytruncate'] | |
path node['mongodb']['config']['logpath'] | |
sharedscripts true | |
postrotate %Q!kill -USR1 `cat #{['mongodb']['config']['pidfilepath']} 2> /dev/null` 2> /dev/null || true\nfind `dirname #{node['mongodb']['config']['logpath']}` -type f -regex ".*\\.\\(log.[0-9].*-[0-9].*\\)" -exec rm {} \\; 2> /dev/null || true! | |
rotate 30 | |
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
# Description | |
# Grab a Glenn Danzig image. | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# |
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
{ "run_list": [ "role[base]", "role[tokumx_hidden]" ], | |
"aws": { | |
"raid": { | |
"size": 2000, | |
"disk_type": "gp2", | |
"piops_ratio": 0, | |
"count": 8, | |
"snapshots": [ "snap-xxx1", "snap-xxx2", "snap-xxx3", "snap-xxx4", "snap-xxx5", "snap-xxx6", "snap-xxx7", "snap-xxx8" ] | |
} | |
} |
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
"BucketPolicy": { | |
"Type": "AWS::S3::BucketPolicy", | |
"Properties": { | |
"PolicyDocument": { | |
"Version": "2008-10-17", | |
"Id": "ReadPolicy", | |
"Statement": [{ | |
"Sid": "ReadAccess", | |
"Action": [ "s3:GetObject" ], | |
"Effect": "Allow", |
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
# | |
# Cookbook Name:: logstash | |
# Recipe:: windows_agent | |
# | |
# | |
include_recipe "chocolatey" | |
%w( javaruntime NSSM logstash ).each do |p| | |
chocolatey p do |
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
global | |
log 127.0.0.1 local0 warning | |
log 127.0.0.1 local1 notice | |
maxconn 2000 | |
user haproxy | |
group haproxy | |
defaults | |
timeout client 10s | |
timeout server 10s | |
timeout connect 10s |
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
# TODO: figure out how to refer to the nat instance when creating | |
# the elastic ip | |
dynamic!(:nat_instance, 'indigo', :nat_instance_type => ref!(:nat_instance_type), :ssh_key_name => ref!(:ssh_key_name)) | |
dynamic!(:elastic_ip, 'indigo_nat', :instance => ref!(:indigo_nat_instance)) |