You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any scripts in the scripts/vendor directory in the datasource will be run when a new instance is first booted. Scripts will be run in alphabetical order.
What does "in the datasource" mean? How would a user know if this refers to /var/lib/cloud/scripts/vendor or /var/lib/cloud/instance/scripts/vendor? It is in fact /var/lib/cloud/instance/scripts/vendor, so why are we even providing this detail as it's an implementation detail of vendor data? Vendors can't put their own scripts there unless they were to know the uuid of the instance before the instance launched.
This module allows control over the execution of vendor data.
This might be overly pedantic, but it allows control over the processing of vendor data. If a script sits in that directory, it'll get run regardless, but {vendor_data: {enabled: False}} means we're never write out the script in the first place, not that the directory won't get executed.
Also, I don't see why /var/lib/cloud/scripts/vendor exists. I don't see it being used anywhere and if I drop a script in there it does not get run on boot.
The text was updated successfully, but these errors were encountered:
Looking at https://docs.cloud-init.io/en/latest/reference/modules.html#scripts-vendor,
What does "in the datasource" mean? How would a user know if this refers to
/var/lib/cloud/scripts/vendor
or/var/lib/cloud/instance/scripts/vendor
? It is in fact/var/lib/cloud/instance/scripts/vendor
, so why are we even providing this detail as it's an implementation detail of vendor data? Vendors can't put their own scripts there unless they were to know the uuid of the instance before the instance launched.This might be overly pedantic, but it allows control over the processing of vendor data. If a script sits in that directory, it'll get run regardless, but
{vendor_data: {enabled: False}}
means we're never write out the script in the first place, not that the directory won't get executed.Also, I don't see why
/var/lib/cloud/scripts/vendor
exists. I don't see it being used anywhere and if I drop a script in there it does not get run on boot.The text was updated successfully, but these errors were encountered: