Fixes #24: Add more clarity around inventory file creation.

This commit is contained in:
Jeff Geerling
2020-05-17 22:35:01 -05:00
parent 34f525392c
commit 46dd5038bb
2 changed files with 3 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
hosts.ini

View File

@@ -23,7 +23,7 @@ Master and nodes must have passwordless SSH access
## Usage ## Usage
Add the system information gathered above into a file called hosts.ini. For example: Add the system information gathered above into a file called `hosts.ini` in the same directory as this README file. There is a template in the `inventory` directory. For example:
```bash ```bash
[master] [master]
@@ -35,13 +35,12 @@ Add the system information gathered above into a file called hosts.ini. For exam
[k3s_cluster:children] [k3s_cluster:children]
master master
node node
``` ```
Start provisioning of the cluster using the following command: Start provisioning of the cluster using the following command:
```bash ```bash
ansible-playbook site.yml -i inventory/hosts.ini ansible-playbook site.yml
``` ```
## Kubeconfig ## Kubeconfig
@@ -51,4 +50,3 @@ To get access to your **Kubernetes** cluster just
```bash ```bash
scp debian@master_ip:~/.kube/config ~/.kube/config scp debian@master_ip:~/.kube/config ~/.kube/config
``` ```