Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a intg test for vault encrypted inventory #18550

Merged
merged 1 commit into from
Nov 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions test/integration/targets/vault/runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

set -eux


ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --list-tasks
ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --list-hosts
ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --syntax-check
ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password
ansible-playbook test_vault_embedded.yml -i ../../inventory -v "$@" --vault-password-file vault-password --syntax-check
ansible-playbook test_vault_embedded.yml -i ../../inventory -v "$@" --vault-password-file vault-password
ansible-playbook test_vaulted_inventory.yml -i vaulted.inventory -v "$@" --vault-password-file vault-password

5 changes: 5 additions & 0 deletions test/integration/targets/vault/test_vaulted_inventory.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- hosts: vaulted_host
gather_facts: no
tasks:
- name: See if we knew vaulted_host
debug: msg="Found vaulted_host from vaulted.inventory"
8 changes: 8 additions & 0 deletions test/integration/targets/vault/vaulted.inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$ANSIBLE_VAULT;1.1;AES256
62663838646564656432633932396339666332653932656230356332316530613665336461653731
3839393466623734663861313636356530396434376462320a623966363661306334333639356263
37366332626434326537353562636139333835613961333635633333313832666432396361393861
3538626339636634360a396239383139646438323662383637663138646439306532613732306263
64666237366334663931363462313131323861613237613337366562373532373537613531636334
64653938333938313539653539303031393936306432623862363263663438653932643338373338
633436626431656361633934363263303962