I’m ever fine tuning this for the purpose of getting things done. For this I’m purposefully looking at the DevOps side of the picture. There are resources and a lifecycle that is better suited with Ansible or other CI/CD frameworks / pipelines.
I’ve extended the existing Oracle Resource Manager (ORM) automation. Have a look (here) about what I’ve done with ORM such that I used Ansible to do a couple of things.
- To create a Oracle Resource Manager Configuration Source Provider (to point to my github account so I can securely connect to my public repositories).
- To create a Oracle Resource Manager stack that uses this provider to access the Terraform project.
- To Apply the ORM to stand it up the environment.
Yes – I could have done this manually but the purpose of Ansible or other CI/CD tools is not about executing what is easy but to make it scale – even simple things.
There’s a few steps:
- Getting Ansible up and running with OCI Collections. I followed the instructions from (here).
- Getting the OCI SDK up and running and configured. This is used by the OCI Collections. I followed the instructions from (here) – though I had this already configured from other activities.
- Download the git repo for this https://github.com/jlowe000/oci-arcade-ansible.
- Copy the vars.yaml.template to a vars.yaml and update. There’s a few Terraform variables required.
- Run the playbook (to setup) …
- After you are done – (to teardown) …
After it is provisioned – you get to play this …
If you want to fork the other repositories to try it out yourselves – fork these:
- https://github.com/jlowe000/oci-arcade – for the OCI Arcade application itself
- https://github.com/jlowe000/oci-arcade-tf – for the Terraform config and scripts and additional Oracle Resource Manager schema (to simplify the wizard for the UI)
The README has the details there too and it’s been purposefully built in such as way that it can be run on an Always Free Tier Oracle Cloud tenancy. If you need an environment to try this out or to have a game or two – head to the following link and sign-up. https://www.oracle.com/au/cloud/free/.
Have fun, let us know what you are up to and we are open for collaborations if you want to add your own twist to this.