A CLI that extends ansible, ansible-playbook, and ansible-vault to use the system keyring for vault passwords
Project description
Python CLI: Ansible Keyring - A System Keyring Integration CLI
A Python CLI created by Megabyte Labs
subheader_description
Table of Contents
Overview
This repository is home to ansible-keyring a CLI that extends the ansible
, ansible-playbook
, and ansible-vault
command to retrieve vault passwords from the system keyring. It is based on the work of ansible-tools with a couple usability improvements. The features it adds are:
- Does not have to be run only in directories where
ansible.cfg
is present - New, shorter, more intuitive command aliases
{{ load:docs/partials/guide.md }}
Installation
To accomodate everyone, this CLI can be installed using a variety of methods.
PyPi
If you already have Python 3 and pip3 installed, you can install the CLI by running:
pip3 install {{(if customPyPiPackageName customPyPiPackageName (append repository.prefix.github slug))}}
Install Doctor
On macOS or Linux, you can run:
bash -sS https://install.doctor/py/{{(if customPyPiPackageName customPyPiPackageName (append repository.prefix.github slug))}}
And on Windows, you can run:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://install.doctor/py/{{(if customPyPiPackageName customPyPiPackageName (append repository.prefix.github slug))}}?os=win'))
Homebrew
If you have Homebrew installed, you can install the package by running:
brew install installdoc/py/{{(if customPyPiPackageName customPyPiPackageName (append repository.prefix.github slug))}}
Or if you prefer to keep Python off your system, and install a binary, you can run:
brew install installdoc/py/{{(if customPyPiPackageName customPyPiPackageName (append repository.prefix.github slug))}}-binary
Chocolatey
If you are on Windows, you can install a binary version (without the Python dependency), using Chocolatey:
choco install {{(if customPyPiPackageName customPyPiPackageName (append repository.prefix.github slug))}}
Binary Releases
There are also binaries (in various formats) available for download on both GitHub and GitLab.
Requirements
To run this project, all you need is Python 3 and pip3. See the Installation section for instructions that include alternate installation methods that do not require Python to be installed.
If you are interested in contributing or would like to make some modifications, please see the CONTRIBUTING guide. There are a handful of build tools we incorporate into the development process. All of them are installed automatically via our Taskfile system. You can get started customizing this project by running:
bash .config/scripts/start.sh
task start
task --list
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page. If you would like to contribute, please take a look at the contributing guide.
Sponsorship
Dear Awesome Person,
I create open source projects out of love. Although I have a job, shelter, and as much fast food as I can handle, it would still be pretty cool to be appreciated by the community for something I have spent a lot of time and money on. Please consider sponsoring me! Who knows? Maybe I will be able to quit my job and publish open source full time.
Sincerely,
Brian Zalewski
License
Copyright © 2020-2021 Megabyte LLC. This project is MIT licensed.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ansible-keyring-1.2.7.tar.gz
.
File metadata
- Download URL: ansible-keyring-1.2.7.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.10 Linux/5.15.11-200.fc35.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | beb1f1b48e24c1ab3d0431f86df0ebc44a7c00a440f34e8c75c209d2b5d9d771 |
|
MD5 | 6c500f8ebdc804ff31880d3acce3ed60 |
|
BLAKE2b-256 | 43e586ee516ba107624c3850f74b90f709cfb3a4a679d27a3dd6bc4c164910cd |
File details
Details for the file ansible_keyring-1.2.7-py3-none-any.whl
.
File metadata
- Download URL: ansible_keyring-1.2.7-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.10 Linux/5.15.11-200.fc35.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f251330f76f9575e314bebbae340f82e2b93c87a771ba88f091b2651ed9564c |
|
MD5 | c6ca6fb16ce93421dfe2fffac8441303 |
|
BLAKE2b-256 | dab82f16b554612b41365d3d409b0ed46e1dd4226d6c633107c079bfd67f1f97 |