Unverified Commit f616f3a5 authored by Julien DOCHE's avatar Julien DOCHE Committed by GitHub
Browse files

Merge pull request #41 from zaherg/master

Have a sample inventory directory as a start point
parents a6eb0ca6 79340273
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
hosts.ini
+10 −2
Original line number Diff line number Diff line
@@ -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

inventory/.gitignore

0 → 100644
+3 −0
Original line number Diff line number Diff line
*
!.gitignore
!sample/
 No newline at end of file
+0 −0

File moved.