From ec2c396ed261d997ea81f7c4298356515b27a484 Mon Sep 17 00:00:00 2001
From: phahulin
Date: Mon, 4 Dec 2017 17:07:52 +0300
Subject: [PATCH 1/3] Remove all
---
group_vars/{all => all.network} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename group_vars/{all => all.network} (100%)
diff --git a/group_vars/all b/group_vars/all.network
similarity index 100%
rename from group_vars/all
rename to group_vars/all.network
From 526921be8c2a053fb94ba04b15dc3bb7a56266c9 Mon Sep 17 00:00:00 2001
From: phahulin
Date: Mon, 4 Dec 2017 17:08:41 +0300
Subject: [PATCH 2/3] Add group_vars/all to gitignore
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index 9753880..256d36a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
files/*.pub
+group_vars/all
group_vars/bootnode
group_vars/explorer
group_vars/mining
From e05deb2f57c3e514749346af313461fe9d3115de Mon Sep 17 00:00:00 2001
From: phahulin
Date: Mon, 4 Dec 2017 17:09:56 +0300
Subject: [PATCH 3/3] Update README to explain how to create group_vars/all
---
README | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/README b/README
index 0eeb550..96a1281 100644
--- a/README
+++ b/README
@@ -3,10 +3,13 @@ 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?
+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?
@@ -26,7 +29,7 @@ A: We recommend type m5.large, but you are free to decide. Please see all instan
-Usage:
+Usage:
bootnode instance setup: ansible-playbook bootnode.yml
mining instance setup: ansible-playbook mining.yml
netstat instance setup: ansible-playbook netstat.yml