[DEFAULT]
AKI_PTRN = ubuntu-kernels/ubuntu-lucid*
AMI_PTRN = ebs/ubuntu-images/ubuntu-*-10.04-*-server-*
AMI_PTRN_WITH_VERSION = ebs/ubuntu-images/ubuntu-*-{version}-*-server-*
AMI_PTRN_WITH_RELEASE_DATE = ebs/ubuntu-images/ubuntu-*-{version}-*-server-{released_at}
AMI_REGEXP = ^ebs/ubuntu-images/ubuntu-[a-z]+-(?P<version>\d{1,2}\.\d{2,2})-(i386|amd64)+-server-(?P<released_at>\d{8,8}(\.\d{1,1})?)$
ARCHITECTURE = i386
DEBUG = False
# Should be writable for rotating log files. Print logs to stdout if empty.
LOGGING_FOLDER =
MINUTES_FOR_SNAP = 60
HTTPS_SECURITY_GROUP = https-access
SSH_TIMEOUT_ATTEMPTS = 30
SSH_TIMEOUT_INTERVAL = 30
TAG_NAME = Earmarking
TAG_VALUE = production
UBUNTU_AWS_ACCOUNT = 099720109477
USERNAME = ubuntu

[Credentials]
# Following options will be fetched from BotoConfig (see
# http://code.google.com/p/boto/wiki/BotoConfig for more details) if
# left commented out below.
# AWS_ACCESS_KEY_ID = FILL_ME_OR_COMMENT_OUT
# AWS_SECRET_ACCESS_KEY = FILL_ME_OR_COMMENT_OUT

[user_data] 
USER_DATA=#!/bin/bash -ex
    sudo ln -fs /usr/share/zoneinfo/PST8PDT /etc/localtime
    sudo env DEBIAN_FRONTEND=noninteractive apt-get update
    sudo env DEBIAN_FRONTEND=noninteractive apt-get -y install unattended-upgrades bsd-mailx mc htop zabbix-agent python-pip python-setuptools fail2ban
    sudo echo -e 'APT::Periodic::Enable "1";\nAPT::Periodic::Update-Package-Lists "1";\nAPT::Periodic::AutocleanInterval "0";\nAPT::Periodic::Download-Upgradeable-Packages "1";\nAPT::Periodic::Unattended-Upgrade "1";\n' | sudo tee /etc/apt/apt.conf.d/10periodic
    sudo sed -i 's/\/\/Unattended-Upgrade::Mail "root@localhost";/Unattended-Upgrade::Mail "monitoring@odeskps.com";/'  /etc/apt/apt.conf.d/50unattended-upgrades
    sudo env DEBIAN_FRONTEND=noninteractive pip install --upgrade https://bitbucket.org/rvs/ztc/downloads/ztc-11.07.1.tar.gz
    sudo mkdir /var/log/zabbix && sudo chmod 777 /var/log/zabbix
    sudo sed -i "s/Server=localhost/Server=zabbix.odeskps.com,internal.infra.odeskps.com,184.73.177.59/" /etc/zabbix/zabbix_agentd.conf
    sudo echo "Include=/etc/zabbix-agent.d/" >> /etc/zabbix/zabbix_agentd.conf
    sudo /etc/init.d/fail2ban restart
    sudo /etc/init.d/zabbix-agent restart

[purge_backups]
HOURLY_BACKUPS = 24
DAILY_BACKUPS = 7
WEEKLY_BACKUPS = 4
MONTHLY_BACKUPS = 12
QUARTERLY_BACKUPS = 4
YEARLY_BACKUPS = 10

[us-east-1]
KERNELX86_64 = aki-427d952b
KERNELI386 = aki-407d9529
KERNEL_ENCR_I386 = aki-4c7d9525
KERNEL_ENCR_X86_64 = aki-4e7d9527
KEY_FILENAME = /home/username/.ssh/regional_username_rsa
KEY_PAIR = regional-username

[us-west-1]
KERNELX86_64 = aki-9ba0f1de
KERNELI386 = aki-99a0f1dc
KERNEL_ENCR_I386 = aki-9da0f1d8
KERNEL_ENCR_X86_64 = aki-9fa0f1da
KEY_FILENAME = /home/username/.ssh/regional_username_rsa
KEY_PAIR = regional-username

[ap-southeast-1]
KERNELX86_64 = aki-11d5aa43
KERNELI386 = aki-13d5aa41
KERNEL_ENCR_I386 = aki-6fd5aa3d
KERNEL_ENCR_X86_64 = aki-6dd5aa3f
KEY_FILENAME = /home/username/.ssh/regional_username_rsa
KEY_PAIR = regional-username

[eu-west-1]
KERNELX86_64 = aki-4feec43b
KERNELI386 = aki-4deec439
KERNEL_ENCR_I386 = aki-47eec433
KERNEL_ENCR_X86_64 = aki-41eec435
KEY_FILENAME = /home/username/.ssh/regional_username_rsa
KEY_PAIR = regional-username

[ap-northeast-1]
KERNELX86_64 = aki-d409a2d5
KERNELI386 = aki-d209a2d3
KERNEL_ENCR_I386 = aki-d609a2d7
KERNEL_ENCR_X86_64 = aki-d809a2d9
KEY_FILENAME = /home/username/.ssh/regional_username_rsa
KEY_PAIR = regional-username

[RDBMS]
MASTER = 50.19.234.247
BACKUP = 46.137.188.195
PCP_PASSWORD = 
