I hereby claim:
- I am burdandrei on github.
- I am burdandrei (https://keybase.io/burdandrei) on keybase.
- I have a public key ASDguvcCMbH6l-SunKUSg_UFYI6X5UTad8ujaq_K6_rfhAo
To claim this, I am signing this object:
# Templates are updated to be compatible with nomad > 0.7.1 | |
[agent] | |
interval = "10s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 10000 | |
collection_jitter = "0s" | |
flush_interval = "10s" | |
flush_jitter = "3s" | |
precision = "" |
#!/bin/bash | |
# | |
# This script is intendent to install both Consul and Nomad clients | |
# on Ubuntu 16.04 Xenial managed by SystemD | |
# including docker and DnsMasq for *.service.consul DNS resolving | |
# | |
# Script assume that instance is running in AWS and have "ec2:DescribeInstances" permissions in IAM Role | |
set -x | |
export TERM=xterm-256color |
#!/usr/bin/python | |
import boto3 | |
import logging | |
import argparse | |
from pprint import pformat,pprint | |
parser = argparse.ArgumentParser(description='Cross reference existing ec2 reservations to current instances.') | |
parser.add_argument('--log', default="WARN", help='Change log level (default: WARN)') | |
parser.add_argument('--region', default='us-east-1', help='AWS Region to connect to') |
#!/usr/bin/env bash | |
# | |
# Wrapper for CSSH running instances by tag | |
usage(){ | |
cat << EOF >&2 | |
usage: $0 options | |
This script Gathers instances from AWS and runs ClusterSSH to them |
require 'json' | |
Ohai.plugin(:Nameservers) do | |
provides "network/nameservers" | |
depends "network" | |
collect_data do | |
Ohai::Log.debug('Parsing resolv.conf for nameservers.') | |
nameservers = [] |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# | |
# Double the instance count for widget ASG | |
# Required ENV Variables | |
# * ELB_NAME | |
# * ASG_NAME | |
# | |
asg_check() { | |
local pending_instance_count=$(aws autoscaling describe-auto-scaling-groups \ |
2018/02/14 11:51:51 [INFO] Terraform version: 0.11.3 3802b14260603f90c7a1faf55994dcc8933e2069 | |
2018/02/14 11:51:51 [INFO] Go runtime version: go1.9.1 | |
2018/02/14 11:51:51 [INFO] CLI args: []string{"/home/bandrei/bin/terraform", "plan"} | |
2018/02/14 11:51:51 [DEBUG] Attempting to open CLI config file: /home/bandrei/.terraformrc | |
2018/02/14 11:51:51 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2018/02/14 11:51:51 [INFO] CLI command args: []string{"plan"} | |
2018/02/14 11:51:51 [TRACE] Preserving existing state lineage "f7d72e7a-9092-4307-b01c-a00d9778b334" | |
2018/02/14 11:51:51 [TRACE] Preserving existing state lineage "f7d72e7a-9092-4307-b01c-a00d9778b334" | |
2018/02/14 11:51:51 [INFO] Building AWS region structure | |
2018/02/14 11:51:51 [INFO] Building AWS auth structure |
#!/usr/bin/env ruby | |
# | |
# Cloudsearch export script | |
# | |
# Required ENV Variables | |
# * AWS_ACCESS_KEY_ID | |
# * AWS_SECRET_ACCESS_KEY | |
# * CS_SEARCH_ENDPOINT | |
# * OUT_FILENAME | |
# |
Resque.workers.each do |w| | |
w.unregister_worker if w.heartbeat.nil? | |
end |