Skip to content

Commit

Permalink
Merge pull request #85 from rancherfederal/fix-rke2-concat
Browse files Browse the repository at this point in the history
Make rke2 config init concat to rke2 config file instead of overwrite…
  • Loading branch information
adamacosta committed Apr 28, 2023
2 parents 8adcb1f + c0a23c2 commit c40e44a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ rke2.yaml
admin.conf

**.DS_Store
examples/test-*
2 changes: 1 addition & 1 deletion modules/userdata/files/rke2-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ timestamp() {

config() {
mkdir -p "/etc/rancher/rke2"
cat <<EOF > "/etc/rancher/rke2/config.yaml"
cat <<EOF >> "/etc/rancher/rke2/config.yaml"
# Additional user defined configuration
${config}
EOF
Expand Down

0 comments on commit c40e44a

Please sign in to comment.