mirror of
https://github.com/matter-labs/ansible-en-role.git
synced 2025-12-06 02:49:55 +00:00
Merge pull request #8 from matter-labs/docs-envs
chore(docs): Better explain chain settings, minor tweaks
This commit is contained in:
15
README.md
15
README.md
@ -26,6 +26,8 @@ l1_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:
|
||||
|
||||
```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:
|
||||
`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).
|
||||
you should place it to `{{ storage_directory }}/pg_backups` directory. By default, `{{ storage_directory }}` is `/usr/src/en`
|
||||
2. Prepare the latest database backup on your host. you can download it from our public GCS buckets:
|
||||
|
||||
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 latest dump](https://storage.googleapis.com/zksync-era-mainnet-external-node-backups/external_node_latest.pgdump)
|
||||
* [Era Sepolia Testnet latest dump](https://storage.googleapis.com/zksync-era-boojnet-external-node-snapshots/external_node_latest.pgdump)
|
||||
* [Era Goerli Testnet latest dump](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 (`/usr/src/en/pg_backups` by default)
|
||||
|
||||
3. **OPTIONAL**: If you already have running node, you can copy its tree and state directory to a new host's `{{ storage_directory }}/db`. (`/usr/src/en/db` by default)
|
||||
|
||||
**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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user