Skip to content

pcarney8/rh-applier-quickstart

Repository files navigation

Red Hat Applier in Tower Inventory Example

Overview

This is an ansible inventory which identifies all application, including CI/CD components, to be built and deploy in an OpenShift environment. The ansible layer is very thin. It simply provides a way to orchestrate the application of OpenShift templates across one or more OpenShift projects. All configuration for the applications should be defined by an OpenShift template and the corresponding parameters file.

Currently, the following components are included in this inventory:

  • Ruby Application, Infrastructure OpenShift Templates and corresponding parameter files
  • Tower configuration for the Ruby project, inventory, credentials, and job templates

Prerequisites

Usage

  1. Log on to an OpenShift server oc login -u <user> https://<server>:<port>/
    1. User needs permissions to deploy ProjectRequest objects
  2. Clone this repository
  3. Install the required openshift-applier dependency
    1. [rh-applier-tower]$ ansible-galaxy install -r roles/requirements.yml
  4. Run the ansible playbook provided by the casl-ansible
    1. [rh-applier-tower]$ ansible-playbook site.yml

Layout

  • inventory/: a standard ansible inventory.
    • the hosts file reflects the fact that the playbook will use the OpenShift CLI on your localhost to interact with the cluster
    • host_vars/: the host_vars files are written according to the convention defined by the openshift-applier role.
    • group_vars/all.yml: file that is used to change the namespaces and provide global variables for all playbooks and inventories
  • templates/: a set OpenShift templates to be sourced from the inventory (and then vars files). OpenShift provides a lot of templates out of the box, and the Labs team curates a repository as well. These should be favored before writing custom/new templates to be kept here.
  • params/: a set of parameter files to be processed along with their respective OpenShift template. the convention here is to group files by their application.
  • projectrequests: processing templates for ProjectRequest objects in OpenShift requires elevated privileges, so we process ProjectRequests without templates because we want normal users to be able to run these playbooks. this directory contains the object definitions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published