Skip to main content

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:

  1. Navigate to the vars folder available in the directory where the Adeptia Rancher package is extracted:

Code

cd <Path of the vars folder>
  1. Run the following command to encrypt the content in the vault-config file:

Code

ansible-vault encrypt vault-config.yaml
  1. When prompted, provide a password for the file to make it password-protected.

  2. Confirm the password. Once you have confirmed the password, a message “Encryption successful” confirming the encryption will be displayed.

    InformationTo 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 view
    ansible-vault view vault-config.yaml

    •
    To decrypt
    ansible-vault decrypt vault-config.yaml

    After you run the command, you will need to enter the password that you had set for the file.