Skip to content

redhat-developer-demos/ansible-role-workshopper

Repository files navigation

Ansible role for RedHat Developers Workshop

Ansible to configure [OpenShift](https://try.openshift.com) cluster for Red Hat Developer Workshops and Demos.

The role can also be used to install and configure:

Requirements

pip3 install \
  -r https://raw.githubusercontent.com/kameshsampath/ansible-role-kind/master/requirements.txt
ansible-galaxy role install kameshsampath.kind
ansible-galaxy collection install community.kubernetes

[NOTE]: For Windows its recommended to use Windows Subsystem for Linux (WSL)

Role Variables

Table 1. Role Variables
Variable Name Description Default value

download_clients

Download OpenShift clients oc, kubectl and openshift-install

True

ocp_bin_dir

Directory to download and install Openshift clients. The directory will be created if not exist

$HOME/openshift/bin

ocp_version

The minimum OpenShift version to use

4.5.3

deploy_serverless

Deploy OpenShift Serverless

True

serverless_subcription_channel

The Operator Channel for the Serverless Subscription

4.5

knative_serving_cr

The Knative Serving Custom Resource

serverless/cr/serving.yaml

knative_eventing_cr

The Knative Eventing Custom Resource

serverless/cr/eventing.yaml

deploy_pipelines

Deploy OpenShift Pipelines

False

deploy_servicemesh

Deploy OpenShift Pipelines

False

servicemesh_es_channel

The Operator Channel for the Red Hat Elastic Search Subscription

4.5

servicemesh_cr

The Red Hat Servicemesh Custom resource

servicemesh/cr.yaml

servicemesh_members

Create and add projects Servicemesh

servicemesh_members:
  create: False
  prefix: tutorial
  start: 0
  end: 10

deploy_kafka

Deploy Apache Kafka using Strimzi

False

kakfa_cluster_name

The Apache Kafka cluster name

my-cluster

kakfa_cluster_namespace

The Apache Kafka cluster namespace

kafka

strimzi_kafka_cr

Apache Kafka Strimzi Custom Resource

kafka/cr.yaml

knative_eventing_kafka_cr

Knative Eventing KafkaSource Custom Resource

kafka/eventing/cr.yaml

deploy_camel_k

Deploy Apache Camel-K

False

deploy_che

Deploy Eclipse Che

False

eclipse_che_cr

The Eclipse Che Custom resource

che/cr.yaml

deploy_acm

Deploy RedHat Advanced Cluster Management for Kubernetes

False

users

Create OpenShift users and Cluster Administrator

users:
  create: True
  prefix: user
  start: 0
  end: 10
  ocpadmin_username: ocpadmin
Note

Setting start and end to 0 will not create any users except cluster-admin

Example Playbooks

The examples directory has various playbook examples to get started using this role

License

Author Information

Issues

Testing

Requirements

pip3 install \
  -r https://raw.githubusercontent.com/kameshsampath/ansible-role-kind/master/molecule/requirements.txt

All tests are built using [molecule](https://molecule.readthedocs.io/en/latest/index.html) with following scenarios:

  • Knative

molecule test  -s deploy_knative
  • Clean machine Test

This test run on clean vm (Centos8) using vagrant. It will run all the tests end to end and verify the same.

molecule test  -s vm

About

Ansible Role for performing guru-night setup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages