From c0a23c287905ee7a6dad15fe411e3f07f282229a Mon Sep 17 00:00:00 2001 From: Michael DAmato Date: Thu, 27 Apr 2023 20:04:57 -0400 Subject: [PATCH] make rke2 config init concat to rke2 config file instead of overwrite it so we can add to it before rke2 is installed --- .gitignore | 1 + modules/userdata/files/rke2-init.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 60d850e..3d628b5 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ rke2.yaml admin.conf **.DS_Store +examples/test-* \ No newline at end of file diff --git a/modules/userdata/files/rke2-init.sh b/modules/userdata/files/rke2-init.sh index 9a35abc..c3a1620 100644 --- a/modules/userdata/files/rke2-init.sh +++ b/modules/userdata/files/rke2-init.sh @@ -26,7 +26,7 @@ timestamp() { config() { mkdir -p "/etc/rancher/rke2" - cat < "/etc/rancher/rke2/config.yaml" + cat <> "/etc/rancher/rke2/config.yaml" # Additional user defined configuration ${config} EOF