My Ansible Playbook to install an OpenShift Lab
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nicolas Massé e65f5cbcc0 get rid of the post-install playbook to prevent from reaching recursion limits 9 years ago
common deploy microcks + customize the sso and 3scale install 9 years ago
doc finally, add some doc 9 years ago
group_vars revert to the good old SSH command 9 years ago
openshift-ansible@e9f5547932 adding openshift-ansible as a git submodule 9 years ago
roles get rid of the post-install playbook to prevent from reaching recursion limits 9 years ago
.gitignore Initial commit 9 years ago
.gitmodules adding openshift-ansible as a git submodule 9 years ago
LICENSE Initial commit 9 years ago
README.md finally, add some doc 9 years ago
allinone.hosts moved the ansible_ssh_user variable from group_vars to inventory 9 years ago
allinone.yml move configuration 9 years ago
ansible Initial commit 9 years ago
ansible.cfg Initial commit 9 years ago
bootstrap.yml Initial commit 9 years ago

README.md

An "easy to use" OpenShift Lab

This project is an Ansible Playbook to install OpenShift in a Lab Environment.

Its goal is to help people install easily OpenShift in a lab environment, for a test drive or a PoC. So, this project focuses mostly on ease of use instead of security, availability, etc. DO NOT USE THIS PROJECT IN PRODUCTION. You have been warned.

It features multiple architecture choices :

  • All-in-one: master, etcd, infra node, app node on the same machines (DONE)
  • Small Cluster: 1 master with etcd, 1 infra node, 2 app nodes (TODO)
  • Big Cluster: 3 masters with etcd, 2 infra nodes, 2 app nodes, 1 load balancer (TODO)

By default, it deploys the following software in addition to OpenShift :

This project is different from existing "demo" OpenShift playbooks in the sense that :

  • It features a common inventory file for both the OpenShift playbooks and the complimentary playbooks. (it's easier to maintain)
  • The underlying openshift-ansible playbooks are included directly (as opposed to other approaches that run an ansible-playbook command from inside the main playbook).

By default, this project comes with a git submodule reference to the openshift-ansible repository for convenience. But you could replace this reference with a symlink to your openshift-ansible installation, for instance if you installed the supported package from Red Hat.

Setup

  1. First of all, clone this repo :
git clone https://github.com/nmasse-itix/OpenShift-Lab.git
  1. Pull the "openshift-ansible" sub-project using :
git submodule init
git submodule update
  1. Review allinone.hosts and change hostnames to target your environment

  2. If needed, bootstrap your machines (optional) :

./ansible bootstrap vm.openshift.test
  1. Run the playbook that installs everything on one machine :
./ansible play allinone

Further readings

If you plan to use this project regularly, you might have a look at the Ansible roles description. And if you need to customize this project to suit your own needs, have a look at the Customization Guide.