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 authored Jul 29, 2024
1 parent 21b6cbb commit 7738e48
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 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,6 +96,9 @@ 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.
Expand Down

0 comments on commit 7738e48

Please sign in to comment.