File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ write_files:
176176 owner : root
177177 content : !!binary |
178178 {{GetVariableProperty "cloudInitData" "packageUpdateTimerMariner"}}
179- {{- else}}
179+ {{- else if not IsFlatcar }}
180180- path : /opt/azure/containers/ubuntu-snapshot-update.sh
181181 permissions : " 0544"
182182 encoding : gzip
@@ -313,12 +313,14 @@ write_files:
313313 content : !!binary |
314314 {{GetVariableProperty "cloudInitData" "ensureIMDSRestrictionScript"}}
315315
316+ {{- if ShouldEnableCustomData }}
316317- path : /opt/azure/containers/cloud-init-status-check.sh
317318 permissions : " 0744"
318319 encoding : gzip
319320 owner : root
320321 content : !!binary |
321322 {{GetVariableProperty "cloudInitData" "cloudInitStatusCheckScript"}}
323+ {{- end }}
322324
323325- path : /opt/azure/containers/measure-tls-bootstrapping-latency.sh
324326 permissions : " 0755"
Original file line number Diff line number Diff line change @@ -77,6 +77,10 @@ func getCustomDataVariables(config *datamodel.NodeBootstrappingConfiguration) pa
7777 }
7878 }
7979
80+ if config .IsFlatcar () {
81+ cloudInitData ["provisionRedactCloudConfig" ] = "" // Flatcar does not have cloud-init
82+ }
83+
8084 if ! cs .Properties .IsVHDDistroForAllNodes () {
8185 cloudInitData ["kmsSystemdService" ] = getBase64EncodedGzippedCustomScript (kmsSystemdService , config )
8286 cloudInitData ["aptPreferences" ] = getBase64EncodedGzippedCustomScript (aptPreferences , config )
You can’t perform that action at this time.
0 commit comments