Skip to content

Instantly share code, notes, and snippets.

@leonardinius
Created February 28, 2014 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonardinius/9268149 to your computer and use it in GitHub Desktop.
Save leonardinius/9268149 to your computer and use it in GitHub Desktop.
/etc/salt/cloud.profiles:
elasticsearch_high:
provider: ec2
script: /etc/salt/cloud.deploy.d/user_data.sh
network_interfaces:
- DeviceIndex: 0
PrivateIpAddresses:
- Primary: True
AssociatePublicIpAddress: False
SubnetId: subnet-XXXXXff
SecurityGroupId:
- sg-XXXX411
image: ami-XXXXXce
size: m1.xlarge
del_root_vol_on_destroy: True
del_all_vol_on_destroy: True
volumes:
- { size: 60, device: /dev/sdf }
tag: {'Environment': 'production', 'Role': 'elasticsearch'}
sync_after_install: grains
/etc/salt/cloud:
# Set Salt master
minion:
master: salty-hostname.mycompany.co
providers:
ec2:
provider: ec2
ssh_username: ubuntu
ssh_interface: private_ips
start_action: state.highstate
rename_on_destroy: True
# AWS Credentials
id: <YOUR ID HERE>
key: '<YOUR KEY HERE>'
private_key: /etc/salt/pemkey.pem
keyname: viddy
location: us-east-1
availability_zone: us-east-1a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment