From 91ee70ee17d765df0dd42b0f92a7fbc75193bc63 Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Thu, 20 Jun 2024 10:26:01 -0700 Subject: [PATCH] Fixed playbooks path in Vagrant and Readme (#341) * fixed path to playbooks/site.yml Signed-off-by: Derek Nola * Update readme with playbooks Signed-off-by: Derek Nola --------- Signed-off-by: Derek Nola Co-authored-by: Ethan Locke <13014836-Zie0@users.noreply.gitlab.com> --- README.md | 8 ++++---- Vagrantfile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ee5cf4c..a88a9fa 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/Vagrantfile b/Vagrantfile index 1f9c372..2df9ba2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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/),