Difficulty: Advanced
Estimated Time: 20-30 minutes

This tutorial will help show you a way of using Ansible-Vault for secure storage of Secrets with the openshift-applier!

Make sure to do this tutorial first!

Please feel to contribute!

Great work! You've learned how to use the openshift-applier with secrets!

Happy Coding!

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Advanced OpenShift-Applier with Ansible-Vault and Secrets

Step 1 of 9

Step 1

If you took this tutorial, then the first two steps should look familiar!

To get started, let us login to the OpenShift cluster by running the following:

oc login -u developer -p developer

To begin, let's create a new directory and go into it.

mkdir sample-applier; cd sample-applier

To complete the generic project structure, we want to create the rest of these:

.
├── inventory
│   ├── group_vars
│   │   └── all.yml
│   └── hosts
├── requirements.yml
└── templates
    └── secrets

Let's go ahead and create that structure:

mkdir -p inventory/group_vars templates/secrets

And now the files:

touch inventory/group_vars/all.yml inventory/hosts requirements.yml