diff options
author | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 22:50:39 +0000 |
---|---|---|
committer | Matthew Fennell <matthew@fennell.dev> | 2024-01-08 22:50:39 +0000 |
commit | d7e71e34d6eb308b20b6e7fee9eb6e6a74224897 (patch) | |
tree | ec31a7ab7e7a559ce787ac459b1915f092a80ff2 | |
parent | cdac2a163024dfb6a9d49ef004bfa3f053d2e413 (diff) |
Encourage use of host_var yaml files
For now, there are not too many variables to set per host. However, this will
likely change in future commits, with a greater number of variables needing to
be configured. Therefore, this commit encourages the user to define these
variables in a yaml file, which will be more cleanly scalable.
-rw-r--r-- | README.md | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -76,7 +76,25 @@ Create an inventory file in `inventory/staging.ini` like the following: ```ini [xmpp_server] -staging.koyo.haus virtual_host=staging.koyo.haus +staging.koyo.haus +``` + +### Set variables in inventory files + +Now, create a directory like the following for each of the hosts you have +defined: `inventory/host_vars/staging.koyo.haus/vars.yaml` + +``` +inventory/ +├── host_vars +│ └── staging.koyo.haus +│ └── vars.yaml +└── staging.ini +``` + +```yaml +certbot_email: an email address letsencrypt should use if renewal fails +virtual_host: the domain of the JID you'd like to use, e.g. koyo.haus ``` ### Run the playbook on your staging hosts |