Exercise 3.1 - Setup Ansible template to stage temporary access token on edge node

Return to Workshop

Exercise 3.1 - Setup a template to load a temporary token on the edge node

Let’s bring Projects, Inventories, and Crentials all together with …​ Templates

Select Templates

tower templates select
Templates tab - Left hand side of screen

Select the + sign to add a new template; then select Job Template

tower templates plus
Add Job Template

NAME

Setup edge authentication to registry - user1

DESCRIPTION

Podman login

JOB TYPE

Run

INVENTORY

user1-inventory

PROJECT

user1-playbooks

PLAYBOOK

podman_login.yml

CREDENTIAL

user1-cred

LIMIT

edge

VERBOSITY

0 (Normal)

OPTIONS

  • Enable Privilege Escalation

Next set extra variables to personalize the playbook to your environment. Start on line 2.

userid: 1

domain: redhatgov.io

prefix: example

tower templates extravars
Example - Extra Variables

When complete, select SAVE

tower template save

Next, select Templates at the left hand side of the page and then select Setup edge authentication to registry.

Note: You may need to reload or you may need to wait for your browser to refresh


Select Add Survey

tower template add survey
tower template survey

PROMPT

OpenShift user API token

Description

User temporary token (expires)

ANSWER VARIABLE NAME

token

ANSWER TYPE

Password

MINIMUM LENGTH

16

MAXIMUM LENGTH

128

  • Required

Select +ADD and SAVE

Select Save one more time on the main template page


Workshop Details

Domain Red Hat Logo
Workshop
Student ID

Return to Workshop