Skip to content

Automates the Conjur OSS Quickstart and initializes with a host and variables for use w/ Ansible

Notifications You must be signed in to change notification settings

jodyhuntatx/ansible-conjur-oss-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Tower & Conjur OSS Quickstart

Prerequisites:

Steps:

  1. Run the start-conjur script. This automates the Conjur OSS Quickstart steps.
  2. Run setup-ansible-demo.sh. This loads a Conjur policy to create an identity with access to two secrets.
  3. Use values in the output from setup script to create a Conjur credential retriever
  4. Use the test button to verify the credential retriever can retrieve the aws-access-key and aws-secret-key values
  5. Create an Amazon Web Services credential
  6. Replace the Access Key value with the Conjur Credential Retriever configured to retrieve the aws-access-key value
  7. Replace the Secret Key value with the Conjur Credential Retriever configured to retrieve the aws-secret-key value
  8. Create a job template that uses the AWS credential and runs the following playbook:
---
- hosts: all
  gather_facts: False
  tasks:
    - debug:
        msg:
        - Access Key is {{ lookup('env', "AWS_ACCESS_KEY_ID") }}
        - Secret Key is {{ lookup('env', "AWS_SECRET_ACCESS_KEY") }}
  1. Run the job and examine the output
  2. Change the value of one or both variables using the conjur-variable script. e.g.:
	>> ./conjur-variable set aws-access-key a-new-value
  1. Re-run the job and verify the output contains the new value.
  2. Your Ansible job now uses dynamically retrieved credentials!

About

Automates the Conjur OSS Quickstart and initializes with a host and variables for use w/ Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages