Skip to content

Check for #cloud-config comment in first line#178

Merged
StefanScherer merged 2 commits intomasterfrom
check-cloud-config-comment
Jun 1, 2020
Merged

Check for #cloud-config comment in first line#178
StefanScherer merged 2 commits intomasterfrom
check-cloud-config-comment

Conversation

@StefanScherer
Copy link
Copy Markdown
Member

On macOS we already validate the user-data yaml file, but this does not include a check for the #cloud-config comment in the first line.

According to https://cloudinit.readthedocs.io/en/latest/topics/faq.html#how-can-i-debug-my-user-data it is one of the two top most problems. In my experience it IS the top most problem and to be honest I do not understand why this cannot be fixed in cloud-init 😅

Two of the most common issues with user data, that also happens to be cloud-config is:

  1. Incorrectly formatted YAML
  2. First line does not contain #cloud-config

Helps #177 to find problems before users run into boot problems.

@StefanScherer StefanScherer force-pushed the check-cloud-config-comment branch from 116c941 to f0aeb1c Compare June 1, 2020 10:43
@StefanScherer StefanScherer merged commit a26609c into master Jun 1, 2020
@StefanScherer StefanScherer deleted the check-cloud-config-comment branch June 1, 2020 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant