{"id":20155313,"url":"https://github.com/redhat-cop/ocp4-prereqs-validator","last_synced_at":"2025-07-17T00:31:15.411Z","repository":{"id":73504697,"uuid":"225734884","full_name":"redhat-cop/ocp4-prereqs-validator","owner":"redhat-cop","description":"Ansible resources to validate the prerequisites for OpenShift 4","archived":false,"fork":false,"pushed_at":"2019-12-27T21:36:28.000Z","size":114,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-06-22T12:07:29.596Z","etag":null,"topics":["container-cop"],"latest_commit_sha":null,"homepage":"","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-cop.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":"2019-12-03T23:09:49.000Z","updated_at":"2024-10-28T11:07:14.000Z","dependencies_parsed_at":"2023-06-01T06:08:29.571Z","dependency_job_id":null,"html_url":"https://github.com/redhat-cop/ocp4-prereqs-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redhat-cop/ocp4-prereqs-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Focp4-prereqs-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Focp4-prereqs-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Focp4-prereqs-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Focp4-prereqs-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redhat-cop","download_url":"https://codeload.github.com/redhat-cop/ocp4-prereqs-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redhat-cop%2Focp4-prereqs-validator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265554760,"owners_count":23787278,"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":["container-cop"],"created_at":"2024-11-13T23:31:31.801Z","updated_at":"2025-07-17T00:31:15.363Z","avatar_url":"https://github.com/redhat-cop.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-requisites Validator for OpenShift 4.2 on vSphere\n\nThis repository contains playbooks and roles to help the preparation and validation of the pre-requisites needed for a OpenShift UPI deployment over vSphere.\n\n### Roles\n\n**Network Checks**\n\nThis role aims to validate the DNS records. It checks the A, PTR and SRV records based on the servers in hosts file. It creates the file dns-checks-output.txt which contains the result of each validation. \n\nExample:\n\n![Results](imgs/example.png)\n\n**OCP Prepare Prereqs**\n\nThis role prepare a server with the following pre-requisites needed for OCP 4.2 on vSphere:\n\n- DNS\n- DHCP\n- Apache Webserver\n- HAProxy\n\nIt also set up the tools above (named.conf, DNS zone files, dhcpd.conf and haproxy.cfg) considering your inventory file.\n\n\u003e **NOTE**: This is not intended to be used in production environments, only for lab, sandbox or studying purposes.\n\n\n**NFS Server Setup**\n\nSimple role to deploy a NFS server to be used as backend for RWX persistent volumes.\n\n### How to use it\n\nThese roles were tested in a RHEL 8 server and Ansible 2.8.\n\n### Prepare workstation\n\nThe first step is to register the server and enable the repos:\n\n```\nsubscription-manager register --username=\u003crhn_username\u003e\nsubscription-manager attach --pool=\u003crhn_pool\u003e\nsubscription-manager repos --disable='*' \\\n    --enable=rhel-8-for-x86_64-baseos-rpms \\\n    --enable=rhel-8-for-x86_64-appstream-rpms\n    --enable=ansible-2.8-for-rhel-8-x86_64-rpms  \ndnf update -y\nreboot\nyum install ansible\n```\n\nNow configure your hosts file (see the [hosts.example file](hosts.example))\n\nSet up the playbook yaml file with proper parameters. Example:\n\n```\n---\n- hosts: localhost\n  roles:\n  - { role: network-checks }\n  gather_facts: no  \n  vars:\n  - control_plane_lb_ip: \"10.0.0.10\"\n  - apps_lb_ip: \"10.0.0.10\"\n  - base_name: \"rhbr-labs.com\"\n  - cluster_name: \"ocp\"\n```\n\nRun the playbook:\n\n```\nansible-playbook -i \u003chosts file\u003e \u003cplaybook\u003e\n```\nExample:\n```\nansible-playbook -i hosts.example prereqs-validator.yml\n```\n\n\n----- \n\nThis is a work-in-progress and the following items is planned to be designed:\n\n- Documentation: Document each role.\n- Load Balancer: Validate if LB VIP is set (if possible).\n- DHCP: Validate if DHCP is available in the network (if possible).\n- Firewall: Validate if required ports are accessible through the network.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-cop%2Focp4-prereqs-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-cop%2Focp4-prereqs-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-cop%2Focp4-prereqs-validator/lists"}