Ansibe automation to the deploy Red Hat Fuse Workshop.
This workshops requires a OpenShift environment with users already defined, they must:
-
be named as
user + number
, likeuser1
-
have the same password:
openshift
.
Have as many as you need for your activity.
Take the above resource consumption as a base to calculate the amount of resource you will need for your workshop.
Note
|
This workshop is specifically tested with OCP 4.9. Older versions have API incompatibilities that will break the automation and newer versions still not possess some of the operators used in this workshop. |
Parameter | Example Value | Definition |
---|---|---|
token |
sha256~vFanQbthlPKfsaldJT3bdLXIyEkd7ypO_XPygY1DNtQ |
Access token for a user with cluster-admin privileges. |
server |
The cluster’s OpenShift API URL |
|
num_users |
8 |
Number of users attending the workshop. Have in mind that the more users you have, more resources you are going to need from the cluster. |
delete_workshop |
false |
Only use this parameter if you intend to delete the installation and preserve the cluster. |
-
Replace the environment variable values:
token=REPLACE_ME server=REPLACE_ME num_users=REPLACE_ME
cd workshop_camel-springboot/ansible ansible-playbook -e token=${token} -e server=${server} -e num_users=${num_users} playbook.yml
ansible-playbook -e token=${token} -e server=${server} -e num_users=${num_users} -e delete_workshop=true playbook.yml