-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edgenet-kubernetes: ensure containerd and kubernetes packages are up …
…to date
- Loading branch information
1 parent
d32d25a
commit 76ff0a5
Showing
9 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,4 @@ | |
yum: | ||
name: '*' | ||
state: latest | ||
exclude: kernel*,kube*,containerd* | ||
when: ansible_os_family == 'RedHat' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
- hosts: all | ||
become: true | ||
tasks: | ||
# Fix grubby fatal error when updating the kernel: | ||
# https://serverfault.com/questions/673486/grubby-fatal-error-unable-to-find-a-suitable-template | ||
- name: Regenerate grub2 configuration | ||
tags: ['skip_ansible_lint'] | ||
command: grub2-mkconfig -o /boot/grub2/grub.cfg | ||
when: ansible_os_family == 'RedHat' | ||
|
||
- name: Ensure kernel-devel is installed and up-to-date | ||
yum: | ||
name: kernel-devel | ||
state: latest | ||
when: ansible_os_family == 'RedHat' | ||
|
||
- name: Ensure kernel is up-to-date | ||
yum: | ||
name: kernel | ||
state: latest | ||
when: ansible_os_family == 'RedHat' | ||
|
||
# Fix "Error: failed to create containerd container: get apparmor_parser version: exec: "apparmor_parser": executable file not found in $PATH" | ||
- name: Ensure apparmor is installed and up-to-date | ||
apt: | ||
name: | ||
- apparmor | ||
- apparmor-utils | ||
state: latest | ||
when: ansible_os_family == 'Debian' | ||
|
||
- name: Reboot the machine | ||
reboot: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# edgenet-kubernetes | ||
containerd_version: 1.4 | ||
kubernetes_version: 1.21 | ||
edgenet_node_version: 1.0.9 | ||
edgenet_node_version: 1.0.10 |