GithubHelp home page GithubHelp logo

dsv-awx's Introduction

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
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.