thopper91 / Ansible-Deployment_to_OpenShift

This project will display how we can automatically: Create Projects, Deploy an Image, assign external IPs and to remove them all also within the Openshift testing environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible-Deployment_to_OpenShift

This project will display how we can automatically: Create Projects, Deploy an Image, assign external IPs and to remove them all also within the Openshift testing environment

Pre-Requisites

Environment

  1. A deployed Openshift Environment
  2. Linux machine (we are using Ubuntu Server 17.04)
  3. Ansible installed on Linux machine
$ sudo apt-get install libssl-dev
$ sudo pip install ansible
$ pip list  # Check to see it has successfully installed

SSH Key

Also we need to copy our SSH key over to the remote server node in order for our playbooks to actually work. Remember we should only copy our public key, so the one with the extension of '.pub'. We need to use the ssh-copy-id function like:

ssh-copy-id -i ~/.ssh/my_key.pub hoppert@required.domain

Documentation

For the file and folder structures, please see the Wiki section for further documentation:

Home of the Wikis

Openshift allows the developer to use both Docker Hub and the RedHat container site. However Openshift prefers to use container images from the Redhat website itself:

Playbooks

These playbooks are within the roles section, they are broken down into individual tasks so they can be re-used be a 'higher' playbook. This 'higher playbook' is on the root repository level, which allows us to add multiple roles within it to produce a singular task.

Create

Delete

Other

About

This project will display how we can automatically: Create Projects, Deploy an Image, assign external IPs and to remove them all also within the Openshift testing environment