Skip to content

Commit

Permalink
Upgrade to Fedora 36
Browse files Browse the repository at this point in the history
Install the NetworkManager-initscripts-ifcfg-rh as suggested by
hashicorp/vagrant#12762
  • Loading branch information
Molter73 committed Nov 7, 2022
1 parent 39d152d commit 6077b40
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
6 changes: 0 additions & 6 deletions provision/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions provision/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- kernel-devel
- origin-clients
- socat
- NetworkManager-initscripts-ifcfg-rh
state: latest

- name: Update system
Expand Down

0 comments on commit 6077b40

Please sign in to comment.