To get started you will need to have Tidal Tools installed. You can download a copy from https://get.tidal.sh and check out this article on how to install.
NB: When you set the vsphere.server you will likely need to include the default port, 443, in the url. Ex. 192.168.1:443
Once you have Tidal Tools installed you need to configure access to vSphere and Tidal Migrations.
The credentials can be defined using (1) the tidal config command, (2) with a config file or (3) via environment variables. If a config file is present it will be used, if it is not present environment variables will be used. If none of these are defined, you will be prompted to enter the required details.
1) Set interactively
You can set your vSphere credentials with the following commands:
tidal config set vsphere.username firstname.lastname@example.org
tidal config set vsphere.password 1234567890asdfQWERTY@#$%
tidal config set vsphere.server 192.168.1.12
2) Config file
vsphere: username: my_user_name_here password: my_secure_vsphere_password server: 188.8.131.52 tidal:
3) Environment Variables
If you would like to set these credentials and settings via environment variables, you can use these variables:
Syncronizing your vSphere inventory with Tidal Migrations involves two commands:
- tidal get vsphere, will fetch your vSphere inventory and output JSON (check it out!).
- tidal sync servers, will take that JSON from STDIN and send it to Tidal Migrations.
We split this into two commands to allow you to inject other metadata about your inventory, if needed. You can do the GET and SYNC in one line with:
tidal get vsphere | tidal sync servers
You should see output that looks like:
Loading data.. Transforming data.. Validating JSON... Valid. Logging in to server at https://demo.tidalmg.com as email@example.com Logged in. Updating via API.. Update successful
You can easily set this to run periodically. The integration creates or update records if they already exist. Look at setting this command up as a cron job, here is a great resource on how to do that.