{"id":21428098,"url":"https://github.com/redhat-developer-demos/devx-workshop-workload","last_synced_at":"2026-02-16T14:36:11.872Z","repository":{"id":91531439,"uuid":"184015665","full_name":"redhat-developer-demos/devx-workshop-workload","owner":"redhat-developer-demos","description":"The OpenShift setup required to run Workshops for Istio and Knative Tutorials","archived":false,"fork":false,"pushed_at":"2019-04-29T06:53:24.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-03T21:02:30.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redhat-developer-demos.png","metadata":{"files":{"readme":"readme.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-29T06:49:24.000Z","updated_at":"2019-05-08T23:18:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a3051ab-74d2-4bf2-b9ed-61bc943bfbad","html_url":"https://github.com/redhat-developer-demos/devx-workshop-workload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-developer-demos/devx-workshop-workload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fdevx-workshop-workload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fdevx-workshop-workload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fdevx-workshop-workload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fdevx-workshop-workload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-developer-demos","download_url":"https://codeload.github.com/redhat-developer-demos/devx-workshop-workload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-developer-demos%2Fdevx-workshop-workload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29510300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T22:10:25.010Z","updated_at":"2026-02-16T14:36:11.856Z","avatar_url":"https://github.com/redhat-developer-demos.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"= ocp4-workload-istio-controlplane - Deploy the Istio control plane\n\n== Role overview\n\n* This role deploys the Istio control plane. It consists of the following playbooks:\n** Playbook: link:./tasks/pre_workload.yml[pre_workload.yml] - Sets up an\n environment for the workload deployment.\n*** Debug task will print out: `pre_workload Tasks completed successfully.`\n\n** Playbook: link:./tasks/workload.yml[workload.yml] - Used to deploy Istio\n*** Debug task will print out: `workload Tasks completed successfully.`\n\n** Playbook: link:./tasks/post_workload.yml[post_workload.yml] - Used to\n configure the workload after deployment\n*** This role doesn't do anything here\n*** Debug task will print out: `post_workload Tasks completed successfully.`\n\n** Playbook: link:./tasks/remove_workload.yml[remove_workload.yml] - Used to\n delete the workload\n*** This role removes the logging deployment and project but not the operator configs\n*** Debug task will print out: `remove_workload Tasks completed successfully.`\n\n== Review the defaults variable file\n\n* This file link:./defaults/main.yml[./defaults/main.yml] contains all the variables you need to define to control the deployment of your workload.\n* The variable *ocp_username* is mandatory to assign the workload to the correct OpenShift user.\n* A variable *silent=True* can be passed to suppress debug messages.\n* You can modify any of these default values by adding `-e \"variable_name=variable_value\"` to the command line\n\n=== Deploy a Workload with the `ocp-workload` playbook [Mostly for testing]\n\n----\nTARGET_HOST=\"bastion.na311.openshift.opentlc.com\"\nOCP_USERNAME=\"shacharb-redhat.com\"\nWORKLOAD=\"ocp-workload-enable-service-broker\"\nGUID=1001\n\n# a TARGET_HOST is specified in the command line, without using an inventory file\nansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \\\n    -e\"ansible_ssh_private_key_file=~/.ssh/keytoyourhost.pem\" \\\n    -e\"ansible_user=ec2-user\" \\\n    -e\"ocp_username=${OCP_USERNAME}\" \\\n    -e\"ocp_workload=${WORKLOAD}\" \\\n    -e\"silent=False\" \\\n    -e\"guid=${GUID}\" \\\n    -e\"ACTION=create\"\n----\n\n=== To Delete an environment\n\n----\nTARGET_HOST=\"bastion.na311.openshift.opentlc.com\"\nOCP_USERNAME=\"opentlc-mgr\"\nWORKLOAD=\"ocp4-workload-infra-nodes\"\nGUID=1002\n\n# a TARGET_HOST is specified in the command line, without using an inventory file\nansible-playbook -i ${TARGET_HOST}, ./configs/ocp-workloads/ocp-workload.yml \\\n    -e\"ansible_ssh_private_key_file=~/.ssh/keytoyourhost.pem\" \\\n    -e\"ansible_user=ec2-user\" \\\n    -e\"ocp_username=${OCP_USERNAME}\" \\\n    -e\"ocp_workload=${WORKLOAD}\" \\\n    -e\"guid=${GUID}\" \\\n    -e\"ACTION=remove\"\n----\n\n\n== Other related information:\n\n=== Deploy Workload on OpenShift Cluster from an existing playbook:\n\n[source,yaml]\n----\n- name: Deploy a workload role on a master host\n  hosts: all\n  become: true\n  gather_facts: False\n  tags:\n    - step007\n  roles:\n    - { role: \"{{ocp_workload}}\", when: 'ocp_workload is defined' }\n----\nNOTE: You might want to change `hosts: all` to fit your requirements\n\n\n=== Set up your Ansible inventory file\n\n* You can create an Ansible inventory file to define your connection method to your host (Master/Bastion with `oc` command)\n* You can also use the command line to define the hosts directly if your `ssh` configuration is set to connect to the host correctly\n* You can also use the command line to use localhost or if your cluster is already authenticated and configured in your `oc` configuration\n\n.Example inventory file\n[source, ini]\n----\n[gptehosts:vars]\nansible_ssh_private_key_file=~/.ssh/keytoyourhost.pem\nansible_user=ec2-user\n\n[gptehosts:children]\nopenshift\n\n[openshift]\nbastion.cluster1.openshift.opentlc.com\nbastion.cluster2.openshift.opentlc.com\nbastion.cluster3.openshift.opentlc.com\nbastion.cluster4.openshift.opentlc.com\n\n[dev]\nbastion.cluster1.openshift.opentlc.com\nbastion.cluster2.openshift.opentlc.com\n\n[prod]\nbastion.cluster3.openshift.opentlc.com\nbastion.cluster4.openshift.opentlc.com\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fdevx-workshop-workload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-developer-demos%2Fdevx-workshop-workload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-developer-demos%2Fdevx-workshop-workload/lists"}