Bobbyblues's plugins for Sublime text
Find a file
2025-01-03 22:32:59 +01:00
demo docs: add demo project 2025-01-03 09:49:40 +01:00
bbl.sublime-commands Add plugin. 2025-01-03 09:04:37 +01:00
bbl.sublime-settings docs: add demo project 2025-01-03 09:49:40 +01:00
bbl_vault.py feat: better error messages 2025-01-03 10:00:56 +01:00
LICENSE feat: add license 2025-01-03 22:32:59 +01:00
README.md docs: add demo project 2025-01-03 09:49:40 +01:00

Bobbyblues's plugins for Sublime Text

Vault

This plugin adds two new commands:

  • BBL Vault: Decrypt that devaults a highlighted vaulted string from your inventory
  • BBL Vault: Encrypt that 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 default vault-id
  • The vault password must be in a vault password file configured either through the ANSIBLE_VAULT_PASSWORD_FILE environment 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.