mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
add Paramiko to ansible (#496)
* +ansible.com * cleanup old urls * add vault tests * re-run CI * re-run CI * add comment * remove unneded deps * add paramko to ansible fixes https://github.com/teaxyz/pantry.extra/issues/494
This commit is contained in:
parent
a8f86cdbe4
commit
d9732f2552
|
@ -12,6 +12,7 @@ dependencies:
|
|||
build:
|
||||
script: |
|
||||
python-venv.sh {{prefix}}/bin/ansible
|
||||
|
||||
# manually register all the ansible-* executables with tea
|
||||
#FIXME dirty hack, replace with a proper solution
|
||||
for _EXEC in {{prefix}}/venv/bin/ansible-*; do
|
||||
|
@ -24,8 +25,12 @@ build:
|
|||
$TRG_BIN_NAME
|
||||
done
|
||||
|
||||
# install paramiko, a python ssh library sometimes used with ansible
|
||||
{{prefix}}/venv/bin/pip install paramiko #FIXME should we pin a version?
|
||||
|
||||
rm -v {{prefix}}/bin/ansible-*.bak
|
||||
|
||||
|
||||
test:
|
||||
script: |
|
||||
ansible --version
|
||||
|
@ -47,6 +52,9 @@ test:
|
|||
ansible-vault decrypt --vault-password-file vault-password.txt vault-test-file.txt
|
||||
test "$(cat vault-test-file.txt)" = "$SECRET_MESSAGE" # decrypted
|
||||
|
||||
# ensure paramiko is installed
|
||||
{{prefix}}/venv/bin/python -c "import paramiko"
|
||||
|
||||
env:
|
||||
VAULT_PASSWORD: "123456789"
|
||||
SECRET_MESSAGE: "Hello world!"
|
||||
|
|
Loading…
Reference in a new issue