Encrypting the vault-config YAML file
If you want, you can encrypt the sensitive information specified in the vault-config.yaml file by using Ansible Vault.
Following are the steps for encryption:
- Navigate to the vars folder available in the directory where the Adeptia Rancher package is extracted:
Code
cd <Path of the vars folder>
- Run the following command to encrypt the content in the vault-config file:
Code
ansible-vault encrypt vault-config.yaml
-
When prompted, provide a password for the file to make it password-protected.
-
Confirm the password. Once you have confirmed the password, a message “Encryption successful” confirming the encryption will be displayed.
To view (content) or decrypt the vault-config.yaml file, navigate to the /vars folder and then run the respective commands.
Following are the commands to view or decrypt the file:
•
To viewansible-vault view vault-config.yaml
•
To decryptansible-vault decrypt vault-config.yaml
After you run the command, you will need to enter the password that you had set for the file.