Guillaume Coré
2019-10-15 88e44f34f579e954facc9df09f8dec26b5f6f0d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
 
- name: Set Identity Provider CA Cert Path
  set_fact:
    rhsso_identity_provider_ca_cert_path: ""
    self_signed_certs_enabled: False
  when: lets_encrypt_production|bool
 
- name: Run Integreatly installer
  shell: |
          ansible-playbook -i "{{ inventory_hosts_file }}" \
          playbooks/install.yml \
          -e eval_self_signed_certs="{{ self_signed_certs_enabled }} \
          -e rhsso_identity_provider_ca_cert_path={{ rhsso_identity_provider_ca_cert_path }} \
          -e amq_streams={{ amq_streams }} \
          -e rhsso_seed_users_password={{ evals_password }} \
          -e rhsso_evals_admin_password={{ customer_admin_password }} \
          -e rhsso_cluster_admin_password={{ cluster_admin_password }}" \
          | tee -a "{{ integreatly_logs }}"
  args:
    chdir: "{{ install_dir }}"
 
- name: Fetch integreatly logs
  fetch:
    flat: true
    src: "{{ integreatly_logs }}"
    dest: "{{ output_dir }}/"
 
- name: Retrieve Openshift master public URL
  slurp:
    src: "{{ openshift_master_config_path }}"
  register: openshift_master_config
 
- name: Retrieve Web App URL
  shell: oc get route/tutorial-web-app -o template --template \{\{.spec.host\}\} -n "{{ webapp_namespace }}"
  register: webapp_route
  retries: 5
  delay: 10
  until: webapp_route is succeeded
  ignore_errors: yes
 
- set_fact:
    openshift_master_url: "{{ (openshift_master_config['content'] | b64decode | from_yaml)['masterPublicURL'] }}"
 
- name: Print Overview
  debug:
    msg: "{{ item }}"
  with_items:
    - "user.info: Integreatly Workshop Overview"
    - "user.info: Openshift Master Console: {{ openshift_master_url }}"
    - "user.info: Web App URL: https://{{ webapp_route.stdout }}"
    - "user.info: Cluster Admin User: {{ cluster_admin_username }} / {{ cluster_admin_password }} (This user is not available in RHMI production/poc clusters. Only RHMI operations teams have cluster-admin access)"
    - "user.info: Customer Admin User: {{ customer_admin_username }} / {{ customer_admin_password }} (This is the most privileged user account available to consultants and customers in RHMI production/poc environments. Details at {{ documentation_link }})"
    - "user.info: Pre-seeded Evaluation Users: evals{01..50} / {{ evals_password }}"
    - "user.info: Getting Started Guide: {{ documentation_link }}"
 
- name: workload tasks complete
  debug:
    msg: "Workload Tasks completed successfully."
  when: not silent|bool