hiera-eyaml
hiera-eyaml copied to clipboard
Edit should encrypt file if it is not already encrypted.
In the project I'm working on, we have yaml files that are pre-set with default passwords for development use. It would be useful if the "eyaml edit" command would go ahead and encrypt the file even though no changes have been made. Perhaps by checking for delimiters for decrypted passwords?
As a workaround, we use:
eyaml encrypt -e FILE > TEMPFILE
mv TEMPFILE FILE