## cfncluster config
[global]
# Default cluster config section.
cluster_template = default
# Check for updates
update_check = true
# Check config sanity. (Attempts to validate resources defined in parameters, actually exist)
sanity_check = true

[aws]
# This is the AWS credentials section (required).
# These settings apply to all clusters
# replace these with your AWS keys
# If not defined, boto will attempt to use a) enviornment
# or b) EC2 IAM role.
#aws_access_key_id = #your_aws_access_key_id
#aws_secret_access_key = #your_secret_access_key
# Uncomment to specify a different Amazon AWS region  (OPTIONAL)
# (Defaults to us-east-1 if not defined in enviornment or below)
#aws_region_name = #region

[aliases]
# This is the aliases section, you can configure
# ssh alias here
ssh = ssh {CFN_USER}@{MASTER_IP} {ARGS}

## cfncluster templates
[cluster default]
# Name of an existing EC2 KeyPair to enable SSH access to the instances.
key_name = mykey
# Override path to cloudformation in S3
# (defaults to https://s3.amazonaws.com/<aws_region_name>-cfncluster/templates/cfncluster-<version>.cfn.json)
#template_url = https://s3.amazonaws.com/us-east-1-cfncluster/templates/cfncluster.cfn.json
# Cluster Server EC2 instance type
# (defaults to t2.micro for default template)
#compute_instance_type = t2.micro
# Master Server EC2 instance type
# (defaults to t2.micro for default template
#master_instance_type = t2.micro
# Inital number of EC2 instances to launch as compute nodes in the cluster.
# (defaults to 2 for default template)
#initial_queue_size = 2
# Maximum number of EC2 instances that can be launched in the cluster.
# (defaults to 10 for the default template)
#max_queue_size = 10
# Boolean flag to set autoscaling group to maintain initial size and scale back
# (defaults to false for the default template)
#maintain_initial_size = false
# Cluster scheduler
# (defaults to sge for the default template)
#scheduler = sge
# Type of cluster to launch i.e. ondemand or spot
# (defaults to ondemand for the default template)
#cluster_type = ondemand
# Spot price for the ComputeFleet
#spot_price = 0.00
# ID of a Custom AMI, to use instead of published AMI's
#custom_ami = NONE
# Specify S3 resource which cfncluster nodes will be granted read-only access
# (defaults to NONE for the default template)
#s3_read_resource = NONE
# Specify S3 resource which cfncluster nodes will be granted read-write access
# (defaults to NONE for the default template)
#s3_read_write_resource = NONE
# URL to a preinstall script. This is executed before any of the boot_as_* scripts are run
# (defaults to NONE for the default template)
#pre_install = NONE
# Arguments to be passed to preinstall script
# (defaults to NONE for the default template)
#pre_install_args = NONE
# URL to a postinstall script. This is executed after any of the boot_as_* scripts are run
# (defaults to NONE for the default template)
#post_install = NONE
# Arguments to be passed to postinstall script
# (defaults to NONE for the default template)
#post_install_args = NONE
# HTTP(S) proxy server, typically http://x.x.x.x:8080
# (defaults to NONE for the default template)
#proxy_server = NONE
# Cluster placement group. This placement group must already exist.
# (defaults to NONE for the default template)
#placement_group = NONE
# Cluster placement logic. This enables the whole cluster or only compute to use the placement group
# (defaults to cluster in the default template)
#placement = cluster
# Path/mountpoint for ephemeral drives
# (defaults to /scratch in the default template)
#ephemeral_dir = /scratch
# Path/mountpoint for shared EBS volume
# (defaults to /shared in the default template)
#shared_dir = /shared
# Encrypted ephemeral drives. In-memory keys, non-recoverable.
# (defaults to false in default template)
#encrypted_ephemeral = false
# MasterServer root volume size in GB. (AMI must support growroot)
# (defaults to 15 in default template)
#master_root_volume_size = 15
# ComputeFleet root volume size in GB. (AMI must support growroot)
# (defaults to 15 in default template)
#compute_root_volume_size = 15
# OS type used in the cluster
# (defaults to alinux in the default template)
#base_os = alinux
# CloudWatch Logs region
# (defaults to NONE in the default template)
#cwl_region = NONE
# CloudWatch Logs Log Group name
# (defaults to NONE in the default template)
#cwl_log_group = NONE
# Existing EC2 IAM role to be assosiated with the EC2 instances
# (defaults to NONE in the default template)
#ec2_iam_role = NONE
# Extra Json to be merged with the dna.json used by Chef
# (defaults to {} in the default template)
#extra_json = {}
# Additional CloudFormation template to launch with the cluster
#additional_cfn_template = NONE
# Settings section relating to VPC to be used
vpc_settings = public
# Settings section relating to EBS volume
#ebs_settings = custom
# Settings section relation to scaling
#scaling_settings = custom

## VPC Settings
[vpc public]
# ID of the VPC you want to provision cluster into.
vpc_id = vpc-
# ID of the Subnet you want to provision the Master server into
master_subnet_id = subnet-
# SSH from CIDR
# This is only used when cfncluster creates the security group
# (defaults to 0.0.0.0/0 in the default template)
#ssh_from = 0.0.0.0/0
# Additional VPC security group Id for all instances
# (defaults to NONE in the default template)
#additional_sg = sg-
# Existing EC2 security group to be assosiated with the EC2 instances
# (defaults to NONE in the default template)
#vpc_security_group_id = sg-

#[vpc private-new]
# ID of the VPC you want to provision cluster into.
#vpc_id = vpc-
# ID of the Subnet you want to provision the Master server into
#master_subnet_id = subnet-
# CIDR for new backend subnet i.e. 10.0.100.0/24
#compute_subnet_cidr = 10.0.100.0/24

#[vpc private-existing]
# ID of the VPC you want to provision cluster into.
#vpc_id =
# ID of the Subnet you want to provision the Master server into
#master_subnet_id = subnet-
# CIDR for new backend subnet i.e. 10.0.100.0/24
#compute_subnet_id = subnet-

## EBS Settings
#[ebs custom]
# Id of EBS snapshot if using snapshot as source for volume
# (defaults to NONE for default template)
#ebs_snapshot_id = snap-
# Type of volume to create either new or from snapshot
# (defaults to gp2 for default template)
#volume_type = io1
# Size of volume to be created if not using a snapshot
# (defaults to 20GB for default template)
#volume_size = 20
# Number of IOPS for io1 type volumes
#volume_iops = 200
# Use encrypted volume (should not be used with snapshots)
# (defaults to false for default template)
#encrypted = false
# Existing EBS volume to be attached to the MasterServer
# (defaults to NONE in the default template)
#ebs_volume_id = NONE

## Scaling settings
#[scaling custom]
# Threshold for triggering CloudWatch ScaleUp action
# (defaults to 1 for default template)
#scaling_threshold = 1
# Number of instances to add when called CloudWatch ScaleUp action
# (defaults to 1 for default template)
#scaling_adjustment = 1
# Threshold for triggering CloudWatch ScaleUp2 action
# (defaults to 200 for default template)
#scaling_threshold2 = 200
# Number of instances to add when called CloudWatch ScaleUp2 action
# (defaults to 20 for default template)
#scaling_adjustment2 = 20
# Period to measure ScalingThreshold
# (defaults to 60 for default template)
#scaling_period = 60
# Number of periods to measure ScalingThreshold
# (defaults to 2 for default template)
#scaling_evaluation_periods = 2
# Amount of time in seconds to wait before attempting further scaling actions
# (defaults to 300 for the default template
#scaling_cooldown = 300
