redawg / rhpds-controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rhpds-controller

This is a small repo for controlling/deploying RHPDS from Ansible controller

You will need the following created:

NOTE: Make sure you include ansible.tower collection - See requirements.yml

Create Custom Creds - RHPDS

INPUT CONFIGURATION:

fields:
  - id: username
    type: string
    label: Username
  - id: password
    type: string
    label: Password
    secret: true
  - id: url
    type: string
    label: rhpdsurl

INJECTOR CONFIGURATION:


extra_vars:
  rhpdspass: '{{password}}'
  rhpdsurl: '{{url}}'
  rhpdsuser: '{{username}}'

If you want to have this script create/update RHPDS AWS sandbox API KEY and SECRET you will need to Create Ansible Tower Creds

Template Extravar Examples


---
towercredname : AWS_RHPDS_API
org: Random Org
catalogitem : 30000000000080
notes: 'Customer Activity - Proof of Concept provisioned by AnsibleAPI'
rhpdsorder: '{ "action": "order", "resource": { "href":
  "https://rhpds.redhat.com/api/v3.0.0/service_templates/30000000000840",
  "check" : "t",
  "notes" : " {{notes}} "
  } }'
  

Template setup example - Notice added Custom Creds for RHPDS and Ansible Tower - NOTE if you dont add Ansible Tower creds the Creds of AWS_RHPDS_API will not be created or updated!

image

About