Update README and tasks
This commit is contained in:
parent
1f554cff67
commit
b1f5055286
|
@ -20,7 +20,7 @@ This version of playbooks supports the multi-hosts deployment, which means that
|
||||||
|
|
||||||
| Dependency name | Installation method |
|
| Dependency name | Installation method |
|
||||||
| -------------------------------------- | ------------------------------------------------------------ |
|
| -------------------------------------- | ------------------------------------------------------------ |
|
||||||
| Terraform >=0.11.11 | [Installation guide](https://learn.hashicorp.com/terraform/getting-started/install.html) |
|
| Terraform >=0.12 | [Installation guide](https://learn.hashicorp.com/terraform/getting-started/install.html) |
|
||||||
| Python >=2.6.0 | `apt install python` |
|
| Python >=2.6.0 | `apt install python` |
|
||||||
| Python-pip | `apt install python-pip` |
|
| Python-pip | `apt install python-pip` |
|
||||||
| boto & boto3 & botocore python modules | `pip install boto boto3 botocore` |
|
| boto & boto3 & botocore python modules | `pip install boto boto3 botocore` |
|
||||||
|
@ -29,12 +29,12 @@ This version of playbooks supports the multi-hosts deployment, which means that
|
||||||
|
|
||||||
| Dependency name | Installation method |
|
| Dependency name | Installation method |
|
||||||
| -------------------------------------- | ------------------------------------------------------------ |
|
| -------------------------------------- | ------------------------------------------------------------ |
|
||||||
| Terraform >=0.11.11 | [Installation guide](https://learn.hashicorp.com/terraform/getting-started/install.html) |
|
| Terraform >=0.12 | [Installation guide](https://learn.hashicorp.com/terraform/getting-started/install.html) |
|
||||||
| Python >=2.6.0 | `apt install python` |
|
| Python >=2.6.0 | `apt install python` |
|
||||||
| Python-pip | `apt install python-pip` |
|
| Python-pip | `apt install python-pip` |
|
||||||
| boto & boto3 & botocore python modules | `pip install boto boto3 botocore` |
|
| boto & boto3 & botocore python modules | `pip install boto boto3 botocore` |
|
||||||
| AWS CLI | `pip install awscli` |
|
| AWS CLI | `pip install awscli` |
|
||||||
| All BlockScout prerequisites | [Check it here](https://github.com/poanetwork/blockscout#requirements) |
|
| All BlockScout prerequisites | [Check it here](https://poanetwork.github.io/blockscout/#/requirements) |
|
||||||
|
|
||||||
|
|
||||||
# AWS permissions
|
# AWS permissions
|
||||||
|
@ -168,7 +168,7 @@ Also, if you need to **distribute variables accross all the hosts/groups**, you
|
||||||
|
|
||||||
# Deploying BlockScout
|
# Deploying BlockScout
|
||||||
|
|
||||||
0. (optional) This step is for mac OS users. Please skip it, if this is not your case.
|
<details>0. (optional) <summary>This step is for mac OS users. Please skip it, if this is not your case.</summary>
|
||||||
|
|
||||||
To avoid the error
|
To avoid the error
|
||||||
```
|
```
|
||||||
|
@ -183,6 +183,7 @@ error and crashing of Python follow the next steps:
|
||||||
- Save, exit, close terminal and re-open the terminal. Check to see that the environment variable is now set: `env`
|
- Save, exit, close terminal and re-open the terminal. Check to see that the environment variable is now set: `env`
|
||||||
|
|
||||||
(source: https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr);
|
(source: https://stackoverflow.com/questions/50168647/multiprocessing-causes-python-to-crash-and-gives-an-error-may-have-been-in-progr);
|
||||||
|
</details>
|
||||||
|
|
||||||
1. Ensure all the [BlockScout prerequisites](#Prerequisites-for-deploying-blockscout) are installed and has the right version number;
|
1. Ensure all the [BlockScout prerequisites](#Prerequisites-for-deploying-blockscout) are installed and has the right version number;
|
||||||
2. Create the AWS access key and secret access key for user with [sufficient permissions](#AWS);
|
2. Create the AWS access key and secret access key for user with [sufficient permissions](#AWS);
|
||||||
|
|
|
@ -5,12 +5,7 @@
|
||||||
file:
|
file:
|
||||||
state: absent
|
state: absent
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
with_fileglob:
|
with_items:
|
||||||
- "roles/main_infra/files/.terraform"
|
|
||||||
- "roles/main_infra/files/terraform.tfstate.d"
|
|
||||||
- "roles/main_infra/files/main.tfvars"
|
|
||||||
- "roles/main_infra/files/backend.tfvars"
|
|
||||||
- "roles/main_infra/files/terraform.tfplan"
|
|
||||||
- "log.txt"
|
- "log.txt"
|
||||||
- "/tmp/blockscout-{{ group_names[0] }}-{{ chain }}"
|
- "/tmp/blockscout-{{ group_names[0] }}-{{ chain }}"
|
||||||
- "/tmp/files-{{ group_names[0] }}"
|
- "/tmp/files-{{ group_names[0] }}"
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
- name: Check chain names
|
- name: Check chain names
|
||||||
fail:
|
fail:
|
||||||
msg: "The chain '{{ item }}' is invalid. It must consist only of the lowercase characters a-z and digits 0-9, and must not more than 5 characters long."
|
msg: "The chain '{{ item }}' is invalid. It must consist only of the lowercase characters a-z and digits 0-9, and must not more than 5 characters long."
|
||||||
when: (item.key | length > 5 or item.key is not match("^[a-z0-9]+$")) and item.key != "all" and item.key != "ungrouped"
|
when: chain | length > 5 or chain is not match("^[a-z0-9]+$")
|
||||||
with_dict: "{{ groups }}"
|
|
||||||
|
|
||||||
- name: Check if terraform is installed
|
- name: Check if terraform is installed
|
||||||
command: "{{ terraform_location }} --version"
|
command: "{{ terraform_location }} --version"
|
||||||
|
|
Loading…
Reference in New Issue