question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The credstash lookup plugin requires credstash to be installed

See original GitHub issue

Hi,

Sorry in advance if this is the wrong place to ask but maybe one of you has encountered that issue before. I try to use Credstash with Ansible:

{{ lookup('credstash', 'test.sample', 'region=eu-central-1') }}

but it always returns:

The credstash lookup plugin requires credstash to be installed

Everything is fine on the remote server: credstash is installed and can retrieve values from KMS…

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
ykravchcommented, Jul 24, 2017

I had the same issue on MacOS X. Don’t use credstash with homebrew ansible installation.

  1. brew uninstall ansible
  2. pip install ansible that will help
1reaction
mblakelecommented, Feb 1, 2017

I’ve also seen this. Allowing import credstash to raise an exception yields ImportError: No module named credstash, even though import credstash works in a standalone python interpreter.

Could http://stackoverflow.com/a/41261228/908390 be relevant? Adding pdb.set_trace() shows me:

> /usr/local/Cellar/ansible/2.2.1.0/libexec/lib/python2.7/site-packages/ansible/plugins/lookup/credstash.py(28)<module
-> import credstash
(Pdb) 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: BdbQuit
fatal: [fubar]: FAILED! => {"failed": true, "msg": "Unexpected failure during module execution.", "stdout": ""}

EDIT: apparently it’s essential to use ansible as installed by pip, not homebrew.

Read more comments on GitHub >

github_iconTop Results From Across the Web

retrieve secrets from Credstash on AWS
name: first use credstash to store your secrets shell: credstash put my-github-password secure123 - name: "Test credstash lookup plugin -- get my github ......
Read more >
retrieve secrets from Credstash on AWS
name: first use credstash to store your secrets shell: credstash put my-github-password secure123 - name: "Test credstash lookup plugin -- get my github ......
Read more >
Retrieve Secrets From Credstash on AWS - Ansible 2.9
Credstash is a small utility for managing secrets using AWS's KMS and DynamoDB: ... put my-github-password secure123 - name: "Test credstash lookup plugin...
Read more >
retrieve secrets from Credstash on AWS
name: first use credstash to store your secrets shell: credstash put my-github-password secure123 - name: "Test credstash lookup plugin ...
Read more >
retrieve secrets from Credstash on AWS Note This plugin part of the ...
name: first use credstash to store your secrets ansible.builtin.shell: credstash put my-github-password secure123 - name: "Test credstash lookup plugin ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found