Guillaume Coré
2019-03-25 556e92f8c8331cf460c62306d2577baf09c4bd4f
OCP 4: Print SSH access when necessary
1 files modified
21 ■■■■ changed files
ansible/configs/ocp4-coreos-deployer/software.yml 21 ●●●● patch | view | raw | blame | history
ansible/configs/ocp4-coreos-deployer/software.yml
@@ -197,8 +197,14 @@
            - "user.info: Openshift Master Console: {{ webconsole }}"
            - "user.info: Openshift API for command line 'oc' client: {{ showserver.stdout | trim }}"
            - "user.info: Download oc client from https://mirror.openshift.com/pub/openshift-v3/clients/{{ oc_client_version }}"
        - name: Print SSH warning
          debug:
            msg: "{{ item }}"
          with_items:
            - "user.info: "
            - "user.info: You *CANNOT* SSH into this environment"
          when: not install_student_user | bool
      always:
        - name: Delete deployinprogress lock file
@@ -222,10 +228,19 @@
        - "user.info: Your AWS programmatic access:"
        - "user.info: aws_access_key_id = {{ student_access_key_id }}"
        - "user.info: aws_secret_access_key = {{ student_secret_access_key }}"
        - "user.info: "
        - "user.info: SSH Access: ssh {{ student_name }}@bastion.{{ guid }}{{ subdomain_base_suffix }}"
        - "user.info: SSH password: {{ student_password }}"
      when:
        - not install_ocp4 | bool
        - student_access_key_id is defined
        - student_secret_access_key is defined
    - name: Print Student SSH access as user.info
      debug:
        msg: "{{ item }}"
      with_items:
        - "user.info: "
        - "user.info: SSH Access: ssh {{ student_name }}@bastion.{{ guid }}{{ subdomain_base_suffix }}"
        - "user.info: SSH password: {{ student_password }}"
      when:
        - install_student_user | bool
        - student_name is defined
        - student_password is defined