- Obtain all the necessary secrets.
- in vars copy vars/template.yml to
{deployment}.yml
where{deployment}
is one ofprod
orstg
and fill in values dnf install ansible origin-clients python3-openshift
DEPLOYMENT={deployment} make deploy
- 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
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.
Create a new set of variables:
$ cp -av vars/{template,dev}.yml
And just deploy:
$ DEPLOYMENT=dev make deploy