Unverified Commit 91ee70ee authored by Derek Nola's avatar Derek Nola Committed by GitHub
Browse files

Fixed playbooks path in Vagrant and Readme (#341)



* fixed path to playbooks/site.yml

Signed-off-by: default avatarDerek Nola <derek.nola@suse.com>

* Update readme with playbooks

Signed-off-by: default avatarDerek Nola <derek.nola@suse.com>

---------

Signed-off-by: default avatarDerek Nola <derek.nola@suse.com>
Co-authored-by: default avatarEthan Locke <13014836-Zie0@users.noreply.gitlab.com>
parent 5d047cbf
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ Setting up a loadbalancer or VIP beforehand to use as the API endpoint is possib
Start provisioning of the cluster using the following command:

```bash
ansible-playbook playbook/site.yml -i inventory.yml
ansible-playbook playbooks/site.yml -i inventory.yml
```

## Upgrading
@@ -68,7 +68,7 @@ ansible-playbook playbook/site.yml -i inventory.yml
A playbook is provided to upgrade K3s on all nodes in the cluster. To use it, update `k3s_version` with the desired version in `inventory.yml` and run:

```bash
ansible-playbook playbook/upgrade.yml -i inventory.yml
ansible-playbook playbooks/upgrade.yml -i inventory.yml
```

## Airgap Install
@@ -77,14 +77,14 @@ Airgap installation is supported via the `airgap_dir` variable. This variable sh

An example folder for an x86_64 cluster:
```bash
$ ls ./playbook/my-airgap/
$ ls ./playbooks/my-airgap/
total 248M
-rwxr-xr-x 1 $USER $USER  58M Nov 14 11:28 k3s
-rw-r--r-- 1 $USER $USER 190M Nov 14 11:30 k3s-airgap-images-amd64.tar.gz

$ cat inventory.yml
...
airgap_dir: ./my-airgap # Paths are relative to the playbook directory
airgap_dir: ./my-airgap # Paths are relative to the playbooks directory
```

Additionally, if deploying on a OS with SELinux, you will also need to download the latest [k3s-selinux RPM](https://github.com/k3s-io/k3s-selinux/releases/latest) and place it in the airgap folder.
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ def provision(vm, role, node_num)

  vm.provision "ansible", run: 'once' do |ansible|
    ansible.compatibility_mode = "2.0"
    ansible.playbook = "playbook/site.yml"
    ansible.playbook = "playbooks/site.yml"
    ansible.groups = {
      "server" => NODE_ROLES.grep(/^server/),
      "agent" => NODE_ROLES.grep(/^agent/),