# OpenShift Origin installation notes

> Follow my guide to install OpenShift Origin on a CentOS 6.5 DO droplet. Get step-by-step instructions & troubleshoot issues.

- Canonical: https://www.russ.cloud/2014/05/31/openshift-origin-installation-notes/
- Published: 2014-05-31
- Author: Russ McKendrick
- Tags: Linux, Automation, DevOps, Docker

---

Having ran a local copy of [OpenShift Origin](http://openshift.github.io/) using [VirtualBox](http://openshift.github.io/documentation/oo_deployment_guide_vm.html#virtualbox) I decided to have a go at running it on a [Digital Ocean](https://www.digitalocean.com/?refcode=52ec4dc3647e) Droplet running CentOS 6.5. This should be easy as there is [an installer](https://install.openshift.com/) which claims;

> You’re one shell command away from deploying your own Platform as a Service.

Well, sort of, after a few failed installs I finally managed it using the following (this assumes you are running a clean and minimal CentOS 6.5 installation)

```bash frame="terminal" title="OpenShift Origin installation notes 1/2"
yum update -y
yum install -y http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
cat > /etc/yum.repos.d/openshift-origin-deps.repo <<”EOF”
[openshift-origin-deps]
name=OpenShift Origin Dependencies - EL6
baseurl=http://mirror.openshift.com/pub/origin-server/release/3/rhel-6/dependencies/x86_64
gpgcheck=0
EOF
yum install -y ruby193-ruby vim-enhanced unzip curl puppet httpd-tools augeas bind bind-utils
vim /etc/selinux/config # DigitalOcean disable SELinux so change this to enabled
reboot # Reboot to enable SELinux
scl enable ruby193 bash # Make sure that all Ruby is piped through the SCL installed Ruby 1.93 binary
sh <(curl -s https://install.openshift.com/) # See notes below before answering any questions !!!
reboot
```


So, the problem I was having with is that by default oo_install assumes you are running [Fedora 19](http://fedoraproject.org/) and populates repos_base with [http://mirror.openshift.com/pub/origin-server/release/3/fedora-19/](http://mirror.openshift.com/pub/origin-server/release/3/fedora-19/) what [the install instructions](http://openshift.github.io/documentation/oo_install_users_guide.html) fail to say is that you need to replace this with [http://mirror.openshift.com/pub/origin-server/release/3/rhel-6](http://mirror.openshift.com/pub/origin-server/release/3/rhel-6) when prompted about the subscription configuration oo_install will use for the deployment.

You can view the output of a full oo_install run through [listed in this Gist](https://gist.github.com/russmckendrick/7ee0e73912a29d5cea47).

So, if I had run through this on a Fedora 19 Droplet, would this have been any different? In short, yes;

```bash frame="terminal" title="OpenShift Origin installation notes 2/2"
yum update -y
yum install -y ruby vim-enhanced unzip curl puppet httpd-tools augeas bind bind-utils
vim /etc/selinux/config # Change from disabled to enabled
reboot 
sh <(curl -s https://install.openshift.com/)
reboot
```


This is mostly because of Fedora is way ahead of RHEL 6 based installations, this however should all change shortly with the release of [RHEL 7](http://distrowatch.com/?newsid=08406) and [CentOS 7](http://seven.centos.org/).
