Hi,
I have a workflow that generates strings depending on what network/domain/endpoint my workload is being pointed to. The workflow has been set to replace strings in cloud-config (per answer here: (1) Solved: Change a value in vRA cloudconfig from a vRO workf... - VMware Technology Network VMTN), ie:
... but doesn't flow correctly to the instance:
&
Does anyone have any advice how to ensure the updated cloud-config gets copied to the instance correctly and in time for build? I'm currenly using OVA on VSPhere/VMC builds, however we'll be moving to AWS and GCP deployments soon, for which this will be a common catalogue item - hence the requirement to set ie. networking via cloud-init and not VMWare customization.
In which extensibility phase are you setting __computeConfigContent? I noticed, if this is too early in the deployment lifecycle then it might get overridden at a later stage. Thus, I usually apply such changes to cloudConfig in the Compute Provision phase to ensure that it would be passed to Compute Post Provision without being changed anymore.
Also make sure, that your Extensibility subscription is blocking.
I do it on the event "Compute initial power on " and have blocking enabled.
In which extensibility phase are you setting __computeConfigContent? I noticed, if this is too early in the deployment lifecycle then it might get overridden at a later stage. Thus, I usually apply such changes to cloudConfig in the Compute Provision phase to ensure that it would be passed to Compute Post Provision without being changed anymore.
Also make sure, that your Extensibility subscription is blocking.
I do it on the event "Compute initial power on " and have blocking enabled.
Thanks for the info d3m1g0d and ronaldod. Exactly the info I required, makes perfect sense.
FYI, I've changed the subscription to run at initial power on, but I assume both answers would work.
