Using hooks to modify context iso

Hi guys,

I’m trying to preseed salt-minion keys on my VMs. I can make an API call to the salt-master to generate them and I’d like to modify the context to include the keys. Is this possible? If so, how?

Thanks,
Andrei

Hi,

If the VMs are not yet created, you can replace the context section when the template is instantiated. Use the file or --context options.

Another way to get information to an existing VM is with the OneGate component. But to get information from one VM to another, they need to be part of the same Flow Service.

Hello Carlos,

Thank you for the reply. We’re using sunstone to manage the VMs so we can’t really override the template when it is instantiated. I was thinking of writing some sort of hook that downloads the keys and includes them, but I haven’t figured out if it’s possible to change the template this way.

Thanks,
Andrei