Skip to content

Commit

Permalink
Fixed playbooks path in Vagrant and Readme (#341)
Browse files Browse the repository at this point in the history
* fixed path to playbooks/site.yml

Signed-off-by: Derek Nola <[email protected]>

* Update readme with playbooks

Signed-off-by: Derek Nola <[email protected]>

---------

Signed-off-by: Derek Nola <[email protected]>
Co-authored-by: Ethan Locke <[email protected]>
  • Loading branch information
dereknola and Ethan Locke committed Jun 20, 2024
1 parent 5d047cb commit 91ee70e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ 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

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
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/),
Expand Down

0 comments on commit 91ee70e

Please sign in to comment.