Skip to content

Commit

Permalink
docs(infra): update README.md (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Jul 30, 2024
1 parent 21b6cbb commit d58e930
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions infrastructure/nomad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ Add your private key to the SSH agent:
ssh-add /path/to/your/private_key
```

Prepare `ansible.cfg` File: This file contains the configuration settings for Ansible and is also used to specify the location of the inventory file.
There is a sample `ansible.cfg.example` file located in this directory. Copy this file if you're happy with the default settings or create your own.

Prepare `hosts.ini` File: This file contains the IP addresses of your Nomad servers and clients. Replace the sample IP addresses with the actual IP addresses of your machines.
```ini
[nomad_servers]
Expand Down Expand Up @@ -93,10 +96,25 @@ Test the connection to the target machines:
ansible all --inventory path/to/your/hosts.ini --module-name ping
```

> The `ansible.cfg.example` refers to the `hosts.ini` file in the same directory.
> If you have a different location for your inventory file, update the `inventory` setting in your `ansible.cfg` file.
## Cluster Management

To manage the Nomad cluster, use the `cluster.sh` script. This script allows you to initialize, deploy, and destroy the Nomad cluster.
For detailed usage instructions on how to use the script, run the following command:
```shell
./cluster.sh --help
```

Example of destroying running Nomad cluster:
```shell
./cluster.sh destroy
```

Example of deploying Nomad cluster:
```shell
./cluster.sh deploy --no-logs-collection --datadog-key <DATADOG_API_KEY>` --l1-rpc-url <L1_RPC_URL>
```

> After successful deployment, you can find all secrets at: http://<TARGET_MACHINE_IP>:1111/secrets.json

0 comments on commit d58e930

Please sign in to comment.