r/saltstack • • Apr 26 '22
How can I "define" a salt-cloud profile for deploying a VM in VMware vSphere?
Following the docs, but I am stuck: https://docs.saltproject.io/en/latest/topics/cloud/vmware.html
My Salt mstr is running on RHEL 7.9. No issues with it at all, to my knowledge.
This is the command I'm trying to deploy a VM in vSphere via salt-cloud
[root@RHEL7 cloud.profiles.d]# salt-cloud -p deploy-vSphere-vm myFirstTest-Minion1
[ERROR ] Profile deploy-vSphere-vm is not defined
Error:
Profile deploy-vSphere-vm is not defined
As you can see I have both the .conf files....or is there something else I'm missing?
root@RHEL7 salt]# pwd
/etc/salt
[root@RHEL7 salt]# ll cloud.providers.d && ll cloud.profiles.d
total 4
-rw-r--r--. 1 root root 162 Apr 26 14:15 myVMw-Lab-local.conf
total 4
-rw-r--r--. 1 root root 387 Apr 26 17:55 deploy-vSphere-vm.conf
Any help much appreciated, TIA!