Search code examples
azurecloudsalt-project

SaltStack: Create a server via salt-cloud and set endpoints autmatically in Azure?


I'm a bit stuck with my server deployment recipes... So far, I can create and provision my servers via commandline:

First I run salt-cloud and afterwards I provision it via salt-ssh...

But since I'm using some special ports (https,...) I also have to set/open input/endpoints (=ports) on Microsoft Azure.

This is where I stuck: is there any way of telling salt-cloud, to automatically execute a script, which opens the endpoints automatically?

My preferred result would be:

  1. run salt-cloud => sets up new machine and opens all necessary ports
  2. run salt-ssh to provision them

I have already looked at salt orchestration, but it looks like it's more for server fleets, instead of single (external) server configuration.

Any hints?


Solution

  • You could write a custom bootstrap script that would open the ports that you want.