From 6077b40617681279a1f7700b9131d8fa00171670 Mon Sep 17 00:00:00 2001 From: Mauro Ezequiel Moltrasio Date: Mon, 7 Nov 2022 16:23:30 +0100 Subject: [PATCH] Upgrade to Fedora 36 Install the NetworkManager-initscripts-ifcfg-rh as suggested by https://github.com/hashicorp/vagrant/issues/12762 --- README.md | 2 +- Vagrantfile | 2 +- provision/provision.yml | 6 ------ provision/redhat.yml | 1 + 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 441fd5f..b76aa2e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES ``` ## Accessing the k3s cluster from the host -The k3s installation will copy the configuration file required to access the k3s cluster in a file named `k3s.yaml`, I would advice you copy that file somewhere like `~/.kube/k3s.yaml`. Once copied, edit the line defining the `server` to use the public IP of your VM: +You can find the configuration for accessing the cluster under `/etc/rancher/k3s/k3s.yaml`, I would advice you copy that file somewhere like `~/.kube/k3s.yaml`. Once copied, edit the line defining the `server` to use the public IP of your VM: ```yaml - cluster: server: https://192.168.56.10:6443 diff --git a/Vagrantfile b/Vagrantfile index eaa625b..3bc6d90 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,7 +3,7 @@ home_path = ENV['HOME'] Vagrant.configure("2") do |c| c.vm.define 'fedora', primary: true do |fedora| - fedora.vm.box = 'fedora/35-cloud-base' + fedora.vm.box = 'fedora/36-cloud-base' fedora.vm.hostname = 'fedora' fedora.vm.synced_folder "#{go_path}/src/" ,"#{go_path}/src/", diff --git a/provision/provision.yml b/provision/provision.yml index 983feb9..079da1d 100644 --- a/provision/provision.yml +++ b/provision/provision.yml @@ -60,9 +60,3 @@ file: path: /tmp/k3s-install.sh state: absent - - - name: Copy k3s config file - copy: - src: /etc/rancher/k3s/k3s.yaml - dest: "{{ playbook_dir }}/k3s.yaml" - remote_src: yes diff --git a/provision/redhat.yml b/provision/redhat.yml index d5f7612..6a91ccb 100644 --- a/provision/redhat.yml +++ b/provision/redhat.yml @@ -8,6 +8,7 @@ - kernel-devel - origin-clients - socat + - NetworkManager-initscripts-ifcfg-rh state: latest - name: Update system