Skip to content

Commit 922e6ec

Browse files
authored
Merge pull request #1152 from kube-hetzner/fix/selinux-k3s-binary
Fix selinux issues with k3s binary
2 parents b6882d1 + a7141e3 commit 922e6ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

locals.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ locals {
6767
["timeout 180s /bin/sh -c 'while ! ping -c 1 ${var.address_for_connectivity_test} >/dev/null 2>&1; do echo \"Ready for k3s installation, waiting for a successful connection to the internet...\"; sleep 5; done; echo Connected'"]
6868
)
6969

70-
common_post_install_k3s_commands = var.postinstall_exec
70+
common_post_install_k3s_commands = concat(var.postinstall_exec, ["restorecon -v /usr/local/bin/k3s"])
7171

7272
kustomization_backup_yaml = yamlencode({
7373
apiVersion = "kustomize.config.k8s.io/v1beta1"

packer-template/hcloud-microos-snapshots.pkr.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ variable "packages_to_install" {
3636
}
3737

3838
locals {
39-
needed_packages = join(" ", concat(["restorecond policycoreutils policycoreutils-python-utils setools-console bind-utils wireguard-tools open-iscsi nfs-client xfsprogs cryptsetup lvm2 git cifs-utils bash-completion mtr tcpdump"], var.packages_to_install))
39+
needed_packages = join(" ", concat(["restorecond policycoreutils policycoreutils-python-utils setools-console audit bind-utils wireguard-tools open-iscsi nfs-client xfsprogs cryptsetup lvm2 git cifs-utils bash-completion mtr tcpdump"], var.packages_to_install))
4040

4141
# Add local variables for inline shell commands
4242
download_image = "wget --timeout=5 --waitretry=5 --tries=5 --retry-connrefused --inet4-only "

0 commit comments

Comments
 (0)