edit | blame | history | raw

Open Innovation Labs Enablement CI/CD Exercise

Repository hosts the Labs Enablement material. It is a working skeleton that learners will use in conjunction with the enablement-docs.

Basic usage

  1. Clone this repository.
  2. Log on to an OpenShift server oc login -u <user> https://<server>:<port>/
  3. Install the required openshift-applier dependency:
    bash ansible-galaxy install -r requirements.yml --roles-path=roles
  4. Run the play book using this to create projects and roles
    bash ansible-playbook apply.yml -i inventory/ -e target=bootstrap
  5. Run the play book using this to create projects and roles
    bash ansible-playbook apply.yml -i inventory/ -e target=tools

Running a Subset of the Inventory

  1. See the docs in casl-ansible
  2. The only required tag to deploy objects within the inventory is projects, all other tags are optional
  3. Here is an example that runs the tags that provision projects, ci, and jenkins objects:
    bash ansible-playbook apply.yml -e target=tools \ -i inventory/ \ -e "filter_tags=jenkins,ci,projects"
README 1 KB