{"id":19656477,"url":"https://github.com/daggerok/openshift-ansible-centos7","last_synced_at":"2026-01-28T13:35:43.981Z","repository":{"id":151041905,"uuid":"95323940","full_name":"daggerok/openshift-ansible-centos7","owner":"daggerok","description":"installation openshift origin 1.5 on CentOS 7 using ansible inside virtual machine (VMWare, but it's doesn't matter)","archived":false,"fork":false,"pushed_at":"2017-06-24T21:47:14.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T09:05:42.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/daggerok.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":"2017-06-24T21:32:32.000Z","updated_at":"2018-04-29T01:33:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"3ac48879-55c0-4b58-bdf7-bb711a1f34b9","html_url":"https://github.com/daggerok/openshift-ansible-centos7","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/daggerok/openshift-ansible-centos7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fopenshift-ansible-centos7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fopenshift-ansible-centos7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fopenshift-ansible-centos7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fopenshift-ansible-centos7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/openshift-ansible-centos7/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fopenshift-ansible-centos7/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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-11T15:27:55.141Z","updated_at":"2026-01-28T13:35:43.964Z","avatar_url":"https://github.com/daggerok.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"= openshift-ansible-centos7\n\ninstallation openshift origin 1.5 on CentOS 7 using ansible inside virtual machine\n\n== important: you have to be able configure dns zone for A and CNAME records\nfor that example we are using daggerok.io domain (replace daggerok.io with your own):\n\n. two `A`-records pointing to public ip `$IP` of server for domain (in this case daggerok.io):\n  - `console.daggerok.io      $IP`\n  - `apps.console.daggerok.io $IP`\n. one `CNAME`-record for deployed applications:\n  - `*                        apps.console.daggerok.io`\n\n== onstall centos 7\n. use vmware player / workstation / fusion\n. create new machine x64 centos\n. memory 4 Gb\n. processor 4 cores (or 2 cpus, 2 cores)\n. hard drive (one file) 40 Gb\n. mount disk centos 7 minimal x64 iso\n. install os:\n  - turn on ethernet\n  - create user as administrator\n  - reboot after installation\n\n== setup ssh access for installed user\n[source,bash]\n----\nsudo visudo\n...\n%wheel\tALL=(ALL:ALL) NOPASSWD: ALL\n...\n:wq!\n#sudo sed -i -- 's/#PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config\n#sudo sed -i -- 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config\nchmod 700 ~/.ssh\nchmod 600 ~/.ssh/authorized_keys\nip addr # get $ip\nlogout\n# from client console\nssh mak@192.168.67.130\n----\n\n== update / install needed software\n[sources,bash]\n----\nsudo -s\nyun update -y\n...\nyum install -y epel-release\n...\nyum update -y\n...\nyum install -y docker wget git ansible vim python-cryptography pyOpenSSL python-passlib java-1.8.0-openjdk-headless\n...\nservice docker start\nservice docker status\n----\n\n== clone openshift-ansible project\n[sources,bash]\n----\ncd /etc/ \u0026\u0026 git clone https://github.com/openshift/openshift-ansible\ncd openshift-ansible/ \u0026\u0026 vim openshift.erb\n----\n\n== config ansible inventory\n[sources,bash]\n----\ncd openshift-ansible/ \u0026\u0026 vim openshift.erb\n----\n\n[source,ruby]\n----\n[OSEv3:children]\nmasters\nnodes\n\n[OSEv3:vars]\nansible_ssh_user=root\ndeployment_type=origin\nopenshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]\ncontainerized=true\nopenshift_release=v1.5.0\nopenshift_image_tag=v1.5.0\nopenshift_public_hostname=console.daggerok.io\nopenshift_master_default_subdomain=apps.console.daggerok.io\nopenshift_hosted_metrics_deploy=true\n#openshift_master_overwrite_named_certificates=true\n#openshift_master_named_certificates=[{\"certfile\": \"/etc/letsencrypt/live/console.daggerok.io/cert.pem\", \"keyfile\": \"/etc/letsencrypt/live/console.daggerok.io/privkey.pem\", \"cafile\": \"/etc/letsencrypt/live/console.daggerok.io/fullchain.pem\"}]\n\n[masters]\nconsole.daggerok.io openshift_schedulable=true\n\n[nodes]\nconsole.daggerok.io openshift_node_labels=\"{'region': 'infra', 'zone': 'default'}\" openshift_schedulable=true\n----\n\n== update hosts file to be able resolve console.daggerok.io hostname (also on client machine)\n[sources,bash]\n----\nvim /etc/hosts\n...\n127.0.0.1 console.daggerok.io\n----\n\n== create ssh RSA key\n[sources,bash]\n----\nssh-keygen -t rsa\n# enter with no passwords...\n----\n\n== copy ssh identity to be able to ssh login wothout password\n[sources,bash]\n----\nssh-copy-id root@console.daggerok.io\n/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed\n/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys\nroot@console.daggerok.io's password:\n\nNumber of key(s) added: 1\n\nNow try logging into the machine, with:   \"ssh 'root@console.daggerok.io'\"\nand check to make sure that only the key(s) you wanted were added.\n----\n\n== disable checks\n. docker_storage\n. memory_availability\n\n[source,bash]\n----\nvim /etc/openshift-ansible/playbooks/byo/openshift-cluster/config.yml\n...\n----\n\n== install openshift using ansible\n[source,bash]\n----\nansible-playbook -i /etc/openshift-ansible/openshift.erb /etc/openshift-ansible/playbooks/byo/config.yml\n----\n\n== create opeshift user\n[source,bash]\n----\nhtpasswd -b /etc/origin/master/htpasswd admin admin\noc login\nUsername: admin\nPassword: admin\n----\n\n== try it\n[source,bash]\n----\nopen https://console.daggerok.io:8443/\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fopenshift-ansible-centos7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fopenshift-ansible-centos7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fopenshift-ansible-centos7/lists"}