Skip to content

create dock with ansible#264

Merged
anandkumarpatel merged 36 commits intomasterfrom
fix-stage-configs
Jan 27, 2016
Merged

create dock with ansible#264
anandkumarpatel merged 36 commits intomasterfrom
fix-stage-configs

Conversation

@anandkumarpatel
Copy link

Person need to create EC2 instance with following details:

EC2 type: t2 micro
ami: ami-9abea4fb
security_group: sg-577a0d33
vpc: vpc-c53464a0
subnet: subnet-35d6486c

user data

!/bin/bash

sudo su
lsblk /dev/xvdb > /dev/null 2>&1
fsck /dev/xvdb > /dev/null 2>&1
mkdir /docker
mkfs -t ext4 -i 8192 /dev/xvdb
mount /dev/xvdb /docker
cat << EOF >> /etc/fstab
/dev/xvdb /docker ext4 defaults,nofail 0 2
EOF

disks
VolumeType: Root
device: /dev/sda1
snapshot: snap-306df873
size: 30 GB
VolumeType: gp2
DeleteOnTermination: yes
Encrypted: no

VolumeType: ebs
device: /dev/sdb
snapshot:
size: 200 GB
VolumeType: gp2
DeleteOnTermination: yes
Encrypted: no

Tag
key1: Name
Value1: Dock
key2: Org
Value2: 2335750
key3: role
Value3: dock

Keypair: gamma

create the AMI

Add roles to package for AWS, vault, waver and certificates.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants