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
#!/bin/bash | |
set -e | |
export AWS_PROFILE="ci-prod" | |
export STAGE_ENV="prod" | |
export CLOUDFORMATION_BUCKET="ci-cf-templates-prod-us-east-1" | |
./bin/deploy | |
export CLOUDFORMATION_BUCKET="ci-cf-templates-prod-us-east-2" |
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
#!/usr/bin/env python | |
import socket | |
from kombu import Connection | |
host = "messaging.stage.cloud.customink.com" | |
port = 5672 | |
user = "content_automation" | |
password = "REDACTED" | |
vhost = "/" | |
url = 'amqp://{0}:{1}@{2}:{3}/{4}'.format(user, password, host, port, vhost) | |
with Connection(url) as c: |
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
# Passenger Settings | |
override['passenger']['version'] = "4.0.60" | |
override['passenger']['root_path'] = "#{languages['ruby']['gems_dir']}/gems/passenger-#{passenger['version']}" | |
override['passenger']['module_path'] = "#{passenger['root_path']}/buildout/apache2/mod_passenger.so" |
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
resource "aws_iam_role" "replication" { | |
name = "tf-iam-role-replication-12345" | |
assume_role_policy = <<POLICY | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Principal": { |
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
<Directory /opt/assisted_design/current/public> | |
AllowOverride None | |
Require all granted | |
</Directory> |
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
variable "instance_number" { | |
default = { | |
"0" = "03" | |
"1" = "04" | |
"2" = "05" | |
} | |
} | |
resource "aws_instance" "supplier_service" { | |
count = "3" |
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
## directory structure | |
accounts | |
└ stage | |
└ variables.tf | |
└ us-east-1-prod | |
└ variables.tf | |
└ ... | |
modules | |
└ vpc |
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
root@fe09.staging.customink.com: ~: splitmount gfs01.staging.customink.com proof_images /root/proof_images | |
Traceback (most recent call last): | |
File "/usr/local/bin/splitmount", line 9, in <module> | |
load_entry_point('splitmount==0.1.1', 'console_scripts', 'splitmount')() | |
File "/usr/local/lib/python2.7/dist-packages/splitmount-0.1.1-py2.7.egg/splitmount/splitmount.py", line 53, in main | |
orig_vol = rpc.get_volfile(server, volume) | |
File "/usr/local/lib/python2.7/dist-packages/splitmount-0.1.1-py2.7.egg/splitmount/rpc.py", line 28, in cli_get_volfile | |
"system","getspec",volume]) | |
File "/usr/lib/python2.7/subprocess.py", line 537, in check_output | |
process = Popen(stdout=PIPE, *popenargs, **kwargs) |
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
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: chef_solo | |
platforms: | |
- name: ubuntu-12.04 | |
# - name: centos-6.4 |
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
nagios_nrpecheck "memcached_hitrate" do | |
command "/home/nagios/scripts/nagios-plugin-memcached/check_memcached.pl -H localhost -p 11211 -R '<4','<4'" | |
action :add | |
end |