Go to file
Vitaly Znachenok c84a128300 Mining role and fix variable name in ec2 create instance 2017-11-27 00:03:42 +03:00
files add key template 2017-11-12 20:14:40 +03:00
group_vars Fix binary url 2017-11-25 18:32:20 +03:00
roles Mining role and fix variable name in ec2 create instance 2017-11-27 00:03:42 +03:00
LICENSE Initial commit 2017-11-04 12:49:41 -07:00
README update readme file. 2017-11-21 13:35:31 +03:00
ansible.cfg Mining role and fix variable name in ec2 create instance 2017-11-27 00:03:42 +03:00
bootnode.tml Mining role and fix variable name in ec2 create instance 2017-11-27 00:03:42 +03:00
hosts.example change hosts to hosts.example 2017-11-21 14:17:58 +03:00
mining.yml Mining role and fix variable name in ec2 create instance 2017-11-27 00:03:42 +03:00
netstat.yml Mining role and fix variable name in ec2 create instance 2017-11-27 00:03:42 +03:00
site.yml very raw new templates for mining and netstat node, not for use. 2017-11-25 00:56:15 +03:00

README

Ansible playbook.

Ansible version 2.3 or high.

Before start, you need get AWS access key, please read the instruction:  http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html
All variables must be set in site.yml (vars section) and group_vars/all file.

Short FAQ:
Q: Where find vpc_subnet_id? 
A: You can use aws cli for get the variable (https://aws.amazon.com/cli/). run: aws ec2 describe-subnets and find "AvailabilityZone" with the related "SubnetId": "subnet-XXXXXX"

Q: How add ssh key pair?
A: For details, please see: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html

Q: Any difference between admins.pub vs ssh_bootnode.pub? Where each one is used?
A: File admins.pub constant keys what used to access use root and ubuntu (sudo user), ssh_bootnode.pub used for give unprivileged access to server. If it no need, can use one file.

Q: When you run ec2.yml/site.yml how to verify that everything has completed as expected? Please provide verification steps.
A: ec2.yml must pass all steps w/o errors, it says, all pass correct.

Usage: 
Setup ec2 instance: ansible-playbook ec2.yml

Before setup bootnode or refresh config, need add host ip file hosts and run: ansible-playbook -i hosts site.yml