Fixed playbooks path in Vagrant and Readme (#341)

* fixed path to playbooks/site.yml

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

* Update readme with playbooks

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

---------

Signed-off-by: Derek Nola <derek.nola@suse.com>
Co-authored-by: Ethan Locke <13014836-Zie0@users.noreply.gitlab.com>
This commit is contained in:
Derek Nola
2024-06-20 10:26:01 -07:00
committed by GitHub
parent 5d047cbf33
commit 91ee70ee17
2 changed files with 5 additions and 5 deletions

View File

@@ -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: Start provisioning of the cluster using the following command:
```bash ```bash
ansible-playbook playbook/site.yml -i inventory.yml ansible-playbook playbooks/site.yml -i inventory.yml
``` ```
## Upgrading ## 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: 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 ```bash
ansible-playbook playbook/upgrade.yml -i inventory.yml ansible-playbook playbooks/upgrade.yml -i inventory.yml
``` ```
## Airgap Install ## 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: An example folder for an x86_64 cluster:
```bash ```bash
$ ls ./playbook/my-airgap/ $ ls ./playbooks/my-airgap/
total 248M total 248M
-rwxr-xr-x 1 $USER $USER 58M Nov 14 11:28 k3s -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 -rw-r--r-- 1 $USER $USER 190M Nov 14 11:30 k3s-airgap-images-amd64.tar.gz
$ cat inventory.yml $ 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. 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.

2
Vagrantfile vendored
View File

@@ -19,7 +19,7 @@ def provision(vm, role, node_num)
vm.provision "ansible", run: 'once' do |ansible| vm.provision "ansible", run: 'once' do |ansible|
ansible.compatibility_mode = "2.0" ansible.compatibility_mode = "2.0"
ansible.playbook = "playbook/site.yml" ansible.playbook = "playbooks/site.yml"
ansible.groups = { ansible.groups = {
"server" => NODE_ROLES.grep(/^server/), "server" => NODE_ROLES.grep(/^server/),
"agent" => NODE_ROLES.grep(/^agent/), "agent" => NODE_ROLES.grep(/^agent/),