Merge pull request #41 from zaherg/master

Have a sample inventory directory as a start point
This commit is contained in:
Julien DOCHE 2020-06-06 11:08:15 +02:00 committed by GitHub
commit f616f3a593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 3 deletions

1
.gitignore vendored
View File

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

View File

@ -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

3
inventory/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!.gitignore
!sample/