I have to setup a new salt configuration. For minion setup I want to devise an approach. I came up with this.
- Make entry of the new minion in
/etc/salt/rosterfile so that I can usesalt-ssh. - Run a salt formula to install salt-minion on this new minion.
- Generate minion fingerprint with
salt-call key.finger --localon the minion and somehow(still figuring) get it to master and maintain it in some file till the minion actually tries to connect. - When the minion actually tries to connect to the master, master makes sure about the minion identity with the stored fingerprint and then accepts the key.
Once this is done salt state can then bring the minion up to its desired state.
The manual chores associated with this:
I'll have to do manual entries viz.
minion-id,IPanduserin the/etc/salt/rosterfile for every new minion that I want up.Other than this I can't figure any drawbacks.
My questions are:
- Is this approach feasible?
- Are there any security risks?
- Is a better approach already out there ?
P.S. Master and minions may or may not be on public network.