Skip to content

Instantly share code, notes, and snippets.

@kaovilai
Last active August 19, 2019 05:41
Show Gist options
  • Save kaovilai/9a2cfc049f170b14bf48e8d0c511fc17 to your computer and use it in GitHub Desktop.
Save kaovilai/9a2cfc049f170b14bf48e8d0c511fc17 to your computer and use it in GitHub Desktop.
tp12servicemesh
TARGET_HOST=$(hostname)
OCP_USERNAME="$(oc whoami)"
GUID=$(hostname | cut -d\. -f2)
# a TARGET_HOST is specified in the command line, without using an inventory file
ansible-playbook -i ${TARGET_HOST}, ./configs/ocp-student-workloads/ocp-student-workloads.yml \
-e"ansible_ssh_private_key_file=~/.ssh/id_rsa" \
-e"ansible_user=$(whoami)" \
-e"ocp_username=${OCP_USERNAME}" \
-e"ocp_workloads=ocp4-workload-istio-controlplane,ocp4-workload-istio-tutorial,ocp4-workload-workshop-dashboard-cluster-admin" \
-e"download_url=https://raw.githubusercontent.com/kaovilai/istio-lab-summit-2019/homeroom-dev/instructions/" \
-e"subdomain_base=xxxx" \
-e"user_password=xxxx" \
-e"workshop_file=_rhsummit18.yml" \
-e"silent=False" \
-e"guid=${GUID}" \
-e"ACTION=create"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment