Go to file
VitalyZnachenok eae1495d0e
Merge pull request #12 from phahulin/master
Little refactoring and closing of ports
2017-12-10 17:02:07 +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 Remove NETSTATS_SERVER from all.network to make it private in future networks 2017-12-08 17:45:36 +03:00
roles Change node.toml path to match the role name 2017-12-08 17:51:29 +03:00
.gitignore Add hosts to gitignore 2017-12-08 19:53:08 +03:00
LICENSE Initial commit 2017-11-04 12:49:41 -07:00
README Update README to explain how to create group_vars/all 2017-12-04 17:09:56 +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 Remove 8545 from security groups for mining and owner 2017-12-08 17:43:05 +03:00
netstat.yml split role netstat and explorer 2017-11-29 21:39:49 +03:00
owner.yml Remove 8545 from security groups for mining and owner 2017-12-08 17:43:05 +03:00
site.yml Change NETSTATS_SERVER defaults 2017-12-06 17:42:43 +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

Please create file group_vars/all, copy-paste content from all.network (parameters shared by all roles) and add parameters from a specific role file group_vars/*.example

All variables must be set in site.yml (vars section) and group_vars/all file.

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

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

Q: What's the difference between admins.pub and ssh_ROLENAME.pub?
A: File admins.pub contains keys used to access under root and ubuntu (sudo user).File ssh_ROLENAME.pub provides unpriviledged access to a server. If priviledge separation is not required, just use symlink to admins.pub.

Q: When running ec2.yml/site.yml how to verify that everything has completed as expected? Please provide verification steps.
A: ansible-playbooks must pass all steps w/o errors. This means that everything has completed as expected.

Q: Where can I find IMAGE ID for ubuntu LTS?
A: In diffirent regions, ubuntu has unique IMAGE ID. Please see the required IMAGE ID at: https://cloud-images.ubuntu.com/locator/ec2/

Q: What instance type to use?
A: We recommend type m5.large, but you are free to decide. Please see all instance types at: https://aws.amazon.com/ec2/pricing/on-demand/



Usage:
bootnode instance setup: ansible-playbook bootnode.yml
mining instance setup: ansible-playbook mining.yml
netstat instance setup: ansible-playbook netstat.yml
owner instance setup: ansible-playbook owner.yml
explorer instance setup: ansible-playbook explorer.yml

Before setting up instance or refreshing config, add server ip in file hosts and run: ansible-playbook -i hosts site.yml