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
{ | |
"variables" : { | |
"ami_builder_name" : "test-ami", | |
"instance_type" : "t2.micro", | |
"launch_block_device_mappings_volume_size" : "8", | |
"source_ami_filter_name" : "*ubuntu-trusty-16.04-amd64-server-*", | |
"source_ami_filter_architecture" : "x86_64", | |
"source_ami_filter_root_device_type" : "ebs", | |
"source_ami_filter_virtualization_type" : "hvm", | |
"source_ami_owner" : "099720109477", |
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
# fuck-cloudinit | |
# the purpose of this job is: | |
# Actually start all networking before fucking cloudinit-nonet fucks | |
# up and blocks networking from starting, while at the same time | |
# waiting for 120 seconds for all fucking networking to be up! | |
start on (starting cloud-init-nonet) | |
exec start networking |
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
# Edit /etc/apt/sources.list to include deb-src line for main | |
sed -i 's/^# deb-src/deb-src/g' /etc/apt/sources.list | |
# Update and pull in dev libraries needed | |
apt-get update | |
apt-get -y install dpkg-dev wget git | |
# Create temp directory where we'll work | |
mkdir /tmp/nginx | |
cd /tmp/nginx | |
# Download patch for nginx_upstream_check_module | |
git clone http://github.com/yaoweibin/nginx_upstream_check_module.git |
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
# ./consul-template -version | |
consul-template v0.18.2 (ecb9e46) | |
# echo '{{ $var := key "test" }}{{ executeTemplate $var}}' > test | |
# ./consul-template -template "test:test2" -once -log-level=trace | |
2017/04/01 06:30:54.776047 [INFO] consul-template v0.18.2 (ecb9e46) | |
2017/04/01 06:30:54.776083 [INFO] (runner) creating new runner (dry: false, once: true) | |
2017/04/01 06:30:54.776694 [DEBUG] (runner) final config: {"Consul":{"Address":"","Auth":{"Enabled":false,"Username":"","Password":""},"Retry":{"Attempts":5,"Backoff":250000000,"Enabled":true},"SSL":{"CaCert":"","CaPath":"","Cert":"","Enabled":false,"Key":"","ServerName":"","Verify":true},"Token":"","Transport":{"DialKeepAlive":30000000000,"DialTimeout":30000000000,"DisableKeepAlives":false,"IdleConnTimeout":90000000000,"MaxIdleConns":100,"MaxIdleConnsPerHost":49,"TLSHandshakeTimeout":10000000000}},"Dedup":{"Enabled":false,"MaxStale":2000000000,"Prefix":"consul-template/dedup/","TTL":15000000000},"Exec":{"Command":"","Enabled":false,"Env":{"Blacklist":[],"Custom" |
NewerOlder