| demo | ||
| bbl.sublime-commands | ||
| bbl.sublime-settings | ||
| bbl_vault.py | ||
| LICENSE | ||
| README.md | ||
Bobbyblues's plugins for Sublime Text
Vault
This plugin adds two new commands:
BBL Vault: Decryptthat devaults a highlighted vaulted string from your inventoryBBL Vault: Encryptthat encrypts a highlighted string from your inventory
To use them, simply highlight the desired string from your inventory file and invoke the corresponding command from the command palette.
Known limitations:
- This plugin only supports a single vault password for your inventory, and uses the
defaultvault-id - The vault password must be in a vault password file configured either through the
ANSIBLE_VAULT_PASSWORD_FILEenvironment variable or one of the Ansible configuration file.
Configuration and installation
To use this plugin, put the proper path to your ansible-vault command in bbl.sublime-settings.
Then copy all three files (bbl.sublime-commands, bbl.sublime-settings and bbl_vault.py) into your User packages directory (From the Preferences menu, click Browse Packages... and go to the User directory).
You might need to restart Sublime Text for the plugin to appear.
Tests
After installing the plugin, open the demo/inventory.yml in Sublime Text.
Select hunter2, open the command palette and run the BBL Vault: Decrypt command.
The variable is now vaulted using the vault password file defined in demo/ansible.cfg.
You can devault the value by selecting the vaulted value and running the BBL Vault: Encrypt command from the command palette.