Skip to content

Commit

Permalink
Wrap linux user data with MIME
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltreboot authored and ctrlaltreboot committed Aug 4, 2023
1 parent 666603b commit 1e855d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions templates/linux_user_data.tpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
%{ if enable_bootstrap_user_data ~}
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="//"

--//
Content-Type: text/x-shellscript

#!/bin/bash
set -e
%{ endif ~}
Expand All @@ -11,4 +17,6 @@ B64_CLUSTER_CA=${cluster_auth_base64}
API_SERVER_URL=${cluster_endpoint}
/etc/eks/bootstrap.sh ${cluster_name} ${bootstrap_extra_args} --b64-cluster-ca $B64_CLUSTER_CA --apiserver-endpoint $API_SERVER_URL
${post_bootstrap_user_data ~}

--//--
%{ endif ~}

0 comments on commit 1e855d7

Please sign in to comment.