{"id":18192012,"url":"https://github.com/codekow/ocp-bootstrap","last_synced_at":"2025-04-07T16:28:40.450Z","repository":{"id":131119791,"uuid":"543699264","full_name":"codekow/ocp-bootstrap","owner":"codekow","description":"Use ansible to deploy OpenShift","archived":false,"fork":false,"pushed_at":"2022-09-30T22:06:56.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T18:49:38.425Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/codekow.png","metadata":{"files":{"readme":"README.md","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":"2022-09-30T16:49:59.000Z","updated_at":"2022-09-30T21:06:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"41530313-3512-45a5-ae1e-763af58ce65f","html_url":"https://github.com/codekow/ocp-bootstrap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Focp-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Focp-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Focp-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Focp-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekow","download_url":"https://codeload.github.com/codekow/ocp-bootstrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247687259,"owners_count":20979426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-03T06:42:00.626Z","updated_at":"2025-04-07T16:28:40.431Z","avatar_url":"https://github.com/codekow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCP Bootstrap\n\n## Quickstart\n\nUse the file `vars_[ platform ].yml` as a template to create `my_vars.yml`\n\n```\n# install python\nsudo yum -y install python3 python3-pip\n\n# setup python virtual env\npython3 -m venv venv\n. venv/bin/activate\npip install -U pip\n\n# setup ansible\npip install -r requirements.txt\n\n# ocp install\nansible-playbook playbooks/main.yml -e @my_vars.yml -e run_local=true\n\n```\n\n## Cleanup\n```\n# destroy openshift cluster\nansible-playbook playbooks/destroy.yml -e @my_vars.yml\n\n# destory venv / scratch files\ndeactivate\nrm -rf venv generated\n```\n\n## VMware\n\n```\n# init / setup password\n. hacks/vsphere_roles.sh\n\n# confirm roles\nvsphere_dump_roles\n\n# check config drift in vcenter\nvsphere_diff_roles\n\n# create / update roles in vcenter\nvsphere_create_roles\n\n```\n\n## Lets Encrypt\n\n```\n# init functions\n. hacks/lets_encrypt.sh\n\n#TBD\n```\n\n# Potential Bugs\n\n- See https://github.com/openshift/installer/pull/5173\n\n# TODO:\n- Setup DNS for AWS\n- Setup DNS for Tiger Lab\n- Automate LetsEncrypt\n\n\n## Links\n\nInstalling OCP\n- https://docs.openshift.com/container-platform/4.8/installing/install_config/installing-customizing.html#installation-special-config-storage_installing-customizing\n\nLetsEncrypt\n- https://github.com/redhat-cop/gitops-catalog/blob/main/letsencrypt-certs/base/job.yaml\n- https://cloud.redhat.com/blog/requesting-and-installing-lets-encrypt-certificates-for-openshift-4\n- https://github.com/acmesh-official/acme.sh/wiki/dnsapi\n- https://docs.openshift.com/container-platform/4.1/networking/routes/route-configuration.html#nw-enabling-hsts_route-configuration\n\nMisc\n- https://github.com/redhat-canada-gitops/argocd\n- https://github.com/redhat-cop/gitops-catalog\n- https://github.com/christianh814/openshift-cluster-config\n- https://github.com/mali-chainzee/OpenShift-Provisioner\n- https://github.com/codekow/openshift-aio/blob/main/playbooks/main.yml\n- https://gitlab.consulting.redhat.com/vsira/ocp4-automation-swift/-/tree/master/tasks\n- https://github.com/strangiato/catalog/tree/kustomize-build-test\n- https://gitlab.consulting.redhat.com/intelligent-application-practice/xray/cluster-bootstrap/-/blob/main/bootstrap.sh\n- https://github.com/RedHatWorkshops/openshift-cicd-demo\n- https://github.com/christianh814/openshift-cluster-config\n\nAnsible\n- https://serverfault.com/questions/768470/how-to-enumerate-network-interfaces-in-ansible\n- https://docs.ansible.com/ansible/latest/collections/ansible/builtin/debug_module.html\n\nVSphere\n- https://docs.openshift.com/container-platform/4.8/post_installation_configuration/cluster-tasks.html#available_cluster_customizations\n- https://docs.openshift.com/container-platform/4.8/installing/installing_vsphere/installing-vsphere-installer-provisioned-customizations.html#installing-vsphere-installer-provisioned-customizations\n- https://kb.vmware.com/s/article/2105932\n- https://github.com/openshift/installer/blob/master/docs/user/vsphere/privileges.md\n- https://access.redhat.com/solutions/5186701\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Focp-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekow%2Focp-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Focp-bootstrap/lists"}