From 46dd5038bbc126a665e5a26b7d0c5dc4c266ed51 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Sun, 17 May 2020 22:35:01 -0500 Subject: [PATCH] Fixes #24: Add more clarity around inventory file creation. --- .gitignore | 1 + README.md | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..788482a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +hosts.ini diff --git a/README.md b/README.md index 9fcaf65..71fa1b1 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Master and nodes must have passwordless SSH access ## 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 [master] @@ -35,13 +35,12 @@ Add the system information gathered above into a file called hosts.ini. For exam [k3s_cluster:children] master node - ``` Start provisioning of the cluster using the following command: ```bash -ansible-playbook site.yml -i inventory/hosts.ini +ansible-playbook site.yml ``` ## Kubeconfig @@ -51,4 +50,3 @@ To get access to your **Kubernetes** cluster just ```bash scp debian@master_ip:~/.kube/config ~/.kube/config ``` -