tumblr / collins

groovy kind of love
tumblr.github.com/collins
Apache License 2.0
573 stars 99 forks source link

ipmi_pass #606

Open kplimack opened 4 years ago

kplimack commented 4 years ago

Hi, Im syncing some assets into a secondary system and need to provide the IPMI creds.

Is there a way for me to extract a decrypted ipmi_password from an asset via the the database? I cant seem to find where the decryption key is stored

ssgelm commented 2 years ago

I'd imagine you have figured this out already, but the easiest option is probably to use collins-shell to get this. You can run a command like this:

collins-shell asset find --selector="tag:TUMBLRTAG1" --exec="COMMAND -p {{ipmi.password}}"

That will run the command you specify for each asset found and insert the ipmi password.