Skip to content

andrii-zakurenyi/dsv-awx

Repository files navigation

DSV Lookup in AWX



Configure DSV

Run following CLI commands to configure your tenant.

  1. Create a secret:

    dsv secret create --path ansible-secrets:first --data '{"fundamental":"1"}'
    
  2. Create a role:

    dsv role create --name ansible-role
    
  3. Create a client credentials:

    dsv client create --role ansible-role
    
  4. Allow the role to read the secret:

    dsv policy create \
    --path "secrets:ansible-secrets" \
    --actions read \
    --effect allow \
    --subjects "roles:ansible-role"
    
  5. Optionally verify that using client credentials you can read secret:

    dsv secret read \
    --path ansible-secrets:first \
    --auth-type clientcred \
    --auth-client-id '<CLIENT ID>' \
    --auth-client-secret '<CLIENT SECRET>'
    

Execution Environment

You can use Execution Environment that I created:

https://github.com/andrii-zakurenyi/dsv-awx/pkgs/container/ee-with-dsv-sdk

ghcr.io/andrii-zakurenyi/ee-with-dsv-sdk:0.1.0

Follow next steps to create your own Execution Environment with a "community.general" collection and a DSV SDK version "v0.0.1" for Python installed. Note that all commands should be executed from the project root directory.

  1. Create a virtual environment:

    python3 -m venv venv
    
  2. Activate a virtual environment:

    source venv/bin/activate
    
  3. Install ansible-builder

    pip install ansible-builder
    
  4. Build the image:

    ansible-builder build --tag ee-with-dsv-sdk --container-runtime docker
    
  5. Done. Now cleanup: exit from virtual environemnt, remove venv and context directories.

    deactivate
    
    rm -rf venv context
    

About

Run DSV Lookup plugin in AWX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages