Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.41 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.41 KB

Ansible playbooks and scripts for deploying release-bot to Openshift

tl;dr How to deploy

  1. Obtain all the necessary secrets.
  2. in vars copy vars/template.yml to {deployment}.yml where {deployment} is one of prod or stg and fill in values
  3. dnf install ansible origin-clients python3-openshift
  4. DEPLOYMENT={deployment} make deploy

What's in here

  • playbooks - Ansible playbooks.
  • vars - Variable file(s). See section below for more info.
  • Openshift - Openshift resource configuration files (templates).
  • secrets - secret stuff to be used from openshift/secret-*.yml.j2

Variable files

vars/template.yml is a variable file template.

You have to copy it to prod.yml or stg.yml depending on what environment you want to deploy to.

If you want to deploy to 'production environment', you cp template.yml prod.yml and in prod.yml you set host: your-production-cluster-url. Then you run DEPLOYMENT=prod make deploy.

The ansible playbook then includes one of the variable files depending on the value of DEPLOYMENT environment variable and processes all the templates with variables defined in the file.

Local development in a local cluster

Create a new set of variables:

$ cp -av vars/{template,dev}.yml

And just deploy:

$ DEPLOYMENT=dev make deploy