Skip to content

Instantly share code, notes, and snippets.

@russmckendrick
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save russmckendrick/7ee0e73912a29d5cea47 to your computer and use it in GitHub Desktop.
Save russmckendrick/7ee0e73912a29d5cea47 to your computer and use it in GitHub Desktop.
oo-install

This GIST accompanies this blog post ....

Checking for necessary tools...
...looks good.
Downloading oo-install package...
Extracting oo-install to temporary directory...
Starting oo-install...
OpenShift Installer (Build 20140515-1427)
----------------------------------------------------------------------

Welcome to OpenShift.

This installer will guide you through a basic system deployment, based
on one of the scenarios below.

Select from the following installation scenarios.
You can also type '?' for Help or 'q' to Quit:
1. Install OpenShift Origin
2. Add a Node to an OpenShift Origin deployment
3. Generate a Puppet Configuration File
Type a selection and press <return>: 1

It looks like you are running oo-install for the first time on a new
system. The installer will guide you through the process of defining
your OpenShift deployment.

First things first: do you already have a running Broker? (y/n/q) n

Okay. We will gather information to install a Broker in a moment.
Before we do that, we need to collect some information about your
OpenShift DNS configuration.

What domain do you want to use for applications that are hosted by
this OpenShift deployment? |example.com| app.domain.com

Do you want to register DNS entries for your OpenShift hosts with the
same OpenShift DNS service that will be managing DNS records for the
hosted applications? (y/n/q) n

That's all of the DNS information that we need right now. Next, we
need to gather information about the hosts in your OpenShift
deployment.

----------------------------------------------------------------------
Broker Configuration
----------------------------------------------------------------------

Okay. I'm going to need you to tell me about the host where you want
to install the Broker.

Hostname (the FQDN that other OpenShift hosts will use to connect to
the host that you are describing): openshift.domain.com

Hostname / IP address for SSH access to openshift.mckendrick.eu from
the host where you are running oo-install. You can say 'localhost' if
you are running oo-install from the system that you are describing:
|openshift.mckendrick.eu| localhost
Using current user (root) for local installation.

Detected IP address 123.123.12.12 at interface eth0 for this host.
Do you want Nodes to use this IP information to reach this host?
(y/n/q/?) y

Normally, the BIND DNS server that is installed on this Broker will be
reachable from other OpenShift components using the Broker's
configured IP address (123.123.12.12).

If that will work in your deployment, press <enter> to accept the
default value. Otherwise, provide an alternate IP address that will
enable other OpenShift components to reach the BIND DNS service on the
Broker: |123.123.12.12| 
Do you want to specify usernames and passwords for services configured
on this host? Otherwise default usernames and randomized passwords
will be configured. (y/n/q) n

That's everything we need to know right now for the Broker. Moving on
to the next role.

----------------------------------------------------------------------
Node Configuration
----------------------------------------------------------------------
Do you already have a running Node? (y/n/q) n

Okay. I'm going to need you to tell me about the host where you want
to install the Node.

You have already desribed the following host system(s):
* openshift.mckendrick.eu (Broker)

Do you want to assign the Node role to openshift.domain.com?
(y/n/q/?) y

Okay. Adding the Node role to openshift.mckendrick.eu.
Do you want to specify any new usernames and passwords needed for this
role? (y/n/q) n

That's everything we need to know right now for the Node.

Here are the details of your current deployment.

Note: ActiveMQ, MongoDB and named will all be installed on the Broker.
For more flexibility, rerun the installer in advanced mode (-a).

DNS Settings
  * App Domain: app.domain.com
  * Register OpenShift components with OpenShift DNS? No

Role Assignments
+--------+-------------------------+
| Broker | openshift.domain.com    |
| Node   | openshift.domain.com    |
+--------+-------------------------+

Host Information
+-------------------------+-------------------------+
| Host                    | openshift.mckendrick.eu |
| Roles                   | Broker, Node            |
| SSH Host                | localhost               |
| User                    | root                    |
| IP Addr                 | 123.123.12.12           |
| BIND DNS Addr           | 123.123.12.12           |
| IP Interface            | eth0                    |
| Install Status          | new                     |
| MCollective User        | mcollective             |
| MCollective Password    |                         |
| MongoDB Broker User     | openshift               |
| MongoDB Broker Password |                         |
| OpenShift User          | demo                    |
| OpenShift Password      |                         |
+-------------------------+-------------------------+

Do you want to change the deployment info? (y/n/q/?) n

Here is the subscription configuration that the installer will use for
this deployment.
+-------------------+--------------------------------------------------------------------+
| Setting           | Value                                                              |
+-------------------+--------------------------------------------------------------------+
| type              | yum                                                                |
| repos_base        | https://mirror.openshift.com/pub/origin-server/release/3/fedora-19 |
| jboss_repo_base   | -                                                                  |
| jenkins_repo_base | http://pkg.jenkins-ci.org/redhat                                   |
| os_repo           | -                                                                  |
| os_optional_repo  | -                                                                  |
+-------------------+--------------------------------------------------------------------+

Do you want to make any changes to the subscription info in the
configuration file? (y/n/q/?) y

What type of subscription should be used? (none, yum) |yum| 
The base URL for the OpenShift repositories? (Use '-' to leave unset)
|https://mirror.openshift.com/pub/origin-server/release/3/fedora-19| http://mirror.openshift.com/pub/origin-server/release/3/rhel-6
The base URL for a JBoss repository? (Use '-' to leave unset) |-| 
The base URL for a Jenkins repository? (Use '-' to leave unset)
|http://pkg.jenkins-ci.org/redhat| 
The URL of a yum repository for the operating system? (Use '-' to
leave unset) |-| 
The URL for an "Optional" repository for the operating system? (Use
'-' to leave unset) |-| 
Here is the subscription configuration that the installer will use for
this deployment.
+-------------------+----------------------------------------------------------------+
| Setting           | Value                                                          |
+-------------------+----------------------------------------------------------------+
| type              | yum                                                            |
| repos_base        | http://mirror.openshift.com/pub/origin-server/release/3/rhel-6 |
| jboss_repo_base   | -                                                              |
| jenkins_repo_base | http://pkg.jenkins-ci.org/redhat                               |
| os_repo           | -                                                              |
| os_optional_repo  | -                                                              |
+-------------------+----------------------------------------------------------------+

Do you want to go back and modify your subscription info settings in
the configuration file? (y/n/q/?) n

Do you want to set any temporary subscription settings for this
installation only? (y/n/q/?) n

Preflight check: verifying system and resource availability.

Checking openshift.mckendrick.eu:
* Target host is running non-Fedora, non-RHEL
* Located getenforce
* SELinux is running in permissive mode
* Located yum
* Located puppet
* Located augtool
* Located dnssec-keygen
* Located htpasswd
* Located scl
* The ruby193 software collection is installed.
* epel repository is present and enabled

Deploying workflow 'origin_deploy'.
Setting up htpasswd for default user account.

Preparing to install OpenShift Origin on the following hosts:
  * localhost: msgserver, dbserver, broker, node
Deploying host 'openshift.mckendrick.eu'

Checking for app.mckendrick.eu DNS key(s) on localhost...
...none found; attempting to generate one.
Key generation successful.
Command 'systemctl' didn't work; trying older style...
Older style system command succeeded.

Running Puppet deployment

Running: bash -l -c 'scl enable ruby193 "puppet module uninstall -f openshift/openshift_origin"'
Uninstall command failed; this is expected if the puppet module wasn't previously installed.

Running: bash -l -c 'scl enable ruby193 "puppet module install -v 3.0.1 openshift/openshift_origin"'
Command completed.

Running: bash -l -c 'yum clean all'
Command completed.

Running: bash -l -c 'scl enable ruby193 "puppet apply --verbose /tmp/oo_install_configure_openshift.mckendrick.eu.pp |& tee -a /tmp/openshift-deploy.log"'

Command completed.

Running: bash -l -c 'rm /tmp/oo_install_configure_openshift.mckendrick.eu.pp'
Command completed.

OpenShift Origin deployment completed.
You should manually reboot openshift.mckendrick.eu to complete the process.

All tasks completed.
oo-install exited; removing temporary assets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment