Go to file
phahulin b522f40e25 Separate group_vars by roles; Rename parity_nouncles; Extract NODE_SOURCE_DEB 2017-12-01 16:35:00 +03:00
files Separate group_vars by roles; Rename parity_nouncles; Extract NODE_SOURCE_DEB 2017-12-01 16:35:00 +03:00
group_vars Separate group_vars by roles; Rename parity_nouncles; Extract NODE_SOURCE_DEB 2017-12-01 16:35:00 +03:00
roles Separate group_vars by roles; Rename parity_nouncles; Extract NODE_SOURCE_DEB 2017-12-01 16:35:00 +03:00
.gitignore Separate group_vars by roles; Rename parity_nouncles; Extract NODE_SOURCE_DEB 2017-12-01 16:35:00 +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.yml fix bootnode.yml extension 2017-11-30 23:42:53 +03:00
explorer.yml fix mirror issues. 2017-11-30 22:37:49 +03:00
hosts.example split role netstat and explorer 2017-11-29 21:39:49 +03:00
mining.yml Mining role and fix variable name in ec2 create instance 2017-11-27 00:03:42 +03:00
netstat.yml split role netstat and explorer 2017-11-29 21:39:49 +03:00
owner.yml Add owner role. 2017-11-28 22:38:56 +03:00
site.yml add nginx role for netstat and explorer 2017-11-30 00:57:25 +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