diff --git a/.gitignore b/.gitignore index 788482a..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -hosts.ini diff --git a/README.md b/README.md index e0e617d..8e3c855 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,13 @@ Master and nodes must have passwordless SSH access ## Usage -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: +First create a new directory based on the `sample` directory within the `inventory` directory: + +```bash +cp -R inventory/sample inventory/my-cluster +``` + +Second, edit `inventory/my-cluster/hosts.ini` to match the system information gathered above. For example: ```bash [master] @@ -37,10 +43,12 @@ master node ``` +If needed, you can also edit `inventory/my-cluster/group_vars/all.yml` to match your environment. + Start provisioning of the cluster using the following command: ```bash -ansible-playbook site.yml +ansible-playbook site.yml -i inventory/my-cluster/hosts.ini ``` ## Kubeconfig diff --git a/inventory/.gitignore b/inventory/.gitignore new file mode 100644 index 0000000..568d6c0 --- /dev/null +++ b/inventory/.gitignore @@ -0,0 +1,3 @@ +* +!.gitignore +!sample/ \ No newline at end of file diff --git a/inventory/group_vars/all.yml b/inventory/sample/group_vars/all.yml similarity index 100% rename from inventory/group_vars/all.yml rename to inventory/sample/group_vars/all.yml diff --git a/inventory/hosts.ini b/inventory/sample/hosts.ini similarity index 100% rename from inventory/hosts.ini rename to inventory/sample/hosts.ini