salt icon indicating copy to clipboard operation
salt copied to clipboard

Need guidance in salt cloud provisioning using salt-ssh

Open Set4now opened this issue 9 years ago • 2 comments

We had client-agent infra, but recently we are trying to move into salt-ssh. earlier provisioning plan:-

  1. while provisioning with map file . we had entries like this.
profilename:
   vmname:
      minion: 
        startup_states: sls
        sls_list:
           - app.sls

As you see this will create the vm under this profile, install the minion, as soon as the minion starts,app.sls will apply.we had the ssh_user,pass mentioned in cloud providers file.

The same we want to achieve by salt-ssh without installing salt-minion. will it apply the states without having its entry in salt roster.

Set4now avatar May 31 '17 10:05 Set4now

Also, sometimes we put grains ( roles: apache) in map,roster,profile according to the requirment. but since it was using salt agent..the values are getting written to /etc/salt/grains. But how can i set grains inside target nodes without installing salt-minion package by make the deploy = False in cloud profiles.

Set4now avatar May 31 '17 13:05 Set4now

@Set4now i don't believe this is currently possible. Looks like this issue: https://github.com/saltstack/salt/issues/16835 is fitting for your issue. Does that accurately describe what you want to accomplish? Also one thing to consider is to look at the cloud salt-ssh roster here which i believe you can use in tandem, but I believe you would have to use something like salt orchestrator to build the vM then salt-ssh into it and run state files.

Ch3LL avatar May 31 '17 16:05 Ch3LL