VMware Aria Automation Tools

 View Only
  • 1.  Cloud template: Select secret based on input, put into cloud-config

    Posted Oct 10, 2023 11:29 PM

    We have a generic cloud template that deploys our Windows servers into our cloud deployment zones. Domain join is being done via a local netdom ps1 command defined in cloud-config, which requires the secret to be available at build time. We have multiple AD domains at play and a customer requirement that account passwords must be different across domains (we use an account with same name however), hence the requirement for seperate secrets and the need to select them at the request. 

    Is there any restriction in referencing secrets such they may be passed as objects into cloud-config? Statically setting the secret as "${secret.[named_secret]}" in cloud-config has no issue.

    To date we've attempted to add secret selection automatically via workflow algorithm based on input domain, ABX actions via local VRA ABX via same, as well as input menu item, none of which seem update the cloud-config variable with a secret. Every attempt to update the field fails with a "null".

    Any advice would be most appreciated.


     



  • 2.  RE: Cloud template: Select secret based on input, put into cloud-config

    Posted Oct 11, 2023 08:35 PM

    I use a cd-less cloudinit system and updating of the cloud-config at the event "Compute initial power on" and with blocking enabled. There are should be enough variables to play with. Just know that the cloud-config will be hashed with a base64. And that the cloud-config can be found in the event log of the VCenter.

    I prefer to keep passwords outside the cloud-config.