Salt versioned.get Command

Tags

Before migrating to an RPM flow for certain exporters, I was deploying some exporters by tar.gz and it was helpful to version it.

I had a versions.csv file that had a list of files to versions.


package,version,hash,url
foo,1.0.2,aaaabbbbccc,https://
foo,1.1.0,aaaabbbbccc,https://

Then had a versions.get('foo') that would look up the hash and url for a package to know which one to install.