cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

[enhancement]: x-tensible user-data

Open thielj opened this issue 1 year ago • 5 comments

Enhancement

Document how custom / experimental / non-standard items can be added to user data without triggering schema errors, e.g. using an x- prefix:

x-mystuff:
  data: whatever

thielj avatar Jun 24 '24 22:06 thielj

Document how custom / experimental / non-standard items can be added to user data without triggering schema errors

No such feature exists currently. Which schema errors do you want to avoid?

holmanb avatar Jun 25 '24 01:06 holmanb

Sorry, I should have been more precise.

Currently, there's just a warning in the log. I wouldn't want to see this turn into a hard error someday, or see non-standard sections disappear from the merged data.

thielj avatar Jun 26 '24 15:06 thielj

Sorry, I should have been more precise.

Currently, there's just a warning in the log. I wouldn't want to see this turn into a hard error someday, or see non-standard sections disappear from the merged data.

Could you give an example please?

holmanb avatar Jun 27 '24 04:06 holmanb

@holmanb Nothing exciting really, just the ability to add a custom section that isn't going to disappear or cause conflicts in a future cloud-init release.


x-ourstuff: 
  my_machine_id: f18f1218-d8be-4c4d-92c0-bf1703d4e135a
  cifs:
    storageaccount.file.core.windows.net:
      /mnt/files: [ files, root, users, '0660', '0770' ]

packages: [ ourstuff-init, ourstuff-whatever ]

apt:
  sources:
    ourstuff:
      source: 'deb [trusted=yes] https://packages.example.com ourstuff/'

thielj avatar Jun 27 '24 20:06 thielj

Are you referring to third party / downstream config modules?

holmanb avatar Jun 27 '24 21:06 holmanb