Skip to content
This repository has been archived by the owner on Jan 28, 2020. It is now read-only.

added the ability to pass in customized templates per cluster #341

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion contrib/ansible/create-cluster-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@

tasks:

- fail:
msg: "Please specify a template file. See contrib/examples/cluster-deployment-template.yaml for an example."
when: cli_template_file is undefined

- import_role:
name: kubectl-ansible

Expand Down Expand Up @@ -124,7 +128,7 @@

- name: process cluster template
oc_process:
template_file: "{{ playbook_dir }}/../examples/cluster-deployment-template.yaml"
template_file: "{{ cli_template_file }}"
parameters:
CLUSTER_NAME: "{{ cluster_name }}"
CLUSTER_NAMESPACE: "{{ cluster_namespace }}"
Expand Down