mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 10:59:56 +00:00
chore(docs): Better explain env settings, minor tweaks
This commit is contained in:
15
README.md
15
README.md
@ -26,6 +26,8 @@ l1_chain_id: ""
|
|||||||
l2_chain_id: ""
|
l2_chain_id: ""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Please refer to [External Node docs](https://github.com/matter-labs/zksync-era/tree/main/docs/guides/external-node/prepared_configs) to find values for different zkSync Era chains.
|
||||||
|
|
||||||
If you want to use monitoring (which we highly recommend), you have to change these variables:
|
If you want to use monitoring (which we highly recommend), you have to change these variables:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -84,12 +86,17 @@ Basic auth secret can be generated by `htpasswd` and `sed` for interpolation:
|
|||||||
1. Install the ansible collection on your machine from where you will run ansible:
|
1. Install the ansible collection on your machine from where you will run ansible:
|
||||||
`ansible-galaxy collection install community.general`
|
`ansible-galaxy collection install community.general`
|
||||||
|
|
||||||
2. Prepare the latest database backup on your host. you can download it from our [public GCS bucket](https://storage.googleapis.com/zksync-era-mainnet-external-node-backups/external_node_latest.pgdump).
|
2. Prepare the latest database backup on your host. you can download it from our public GCS buckets:
|
||||||
you should place it to `{{ storage_directory }}/pg_backups` directory. By default, `{{ storage_directory }}` is `/usr/src/en`
|
|
||||||
|
|
||||||
3. **OPTIONAL**: If you already have external-node, you can copy tree directory to new host. Copy external-node database tree to `{{ storage_directory }}/db`.
|
* Era Mainnet: <https://storage.googleapis.com/zksync-era-mainnet-external-node-backups/external_node_latest.pgdump>
|
||||||
|
* Era Sepolia Testnet: <https://storage.googleapis.com/zksync-era-boojnet-external-node-snapshots/external_node_latest.pgdump>
|
||||||
|
* Era Goerli Testnet: <https://storage.googleapis.com/zksync-era-testnet-external-node-backups/external_node_latest.pgdump>
|
||||||
|
|
||||||
**Keep in mind, external-node tree should be older than PostgreSQL database backup.**
|
Downloaded dump file should be placed into `{{ storage_directory }}/pg_backups` directory. By default, `{{ storage_directory }}` is `/usr/src/en`
|
||||||
|
|
||||||
|
3. **OPTIONAL**: If you already have running node, you can copy its tree and state directory to a new host's `{{ storage_directory }}/db`.
|
||||||
|
|
||||||
|
**Keep in mind that tree and state should be older than PostgreSQL database backup.**
|
||||||
|
|
||||||
4. Run ansible-playbook using this role. We recommend encrypting next variables with ansible-vault or some another way:
|
4. Run ansible-playbook using this role. We recommend encrypting next variables with ansible-vault or some another way:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user