bootstrap.yml 536 B

123456789101112131415
  1. ---
  2. # TODO: create a module for this command.
  3. # oc_serviceaccounts_kubeconfig
  4. - name: create service account kubeconfig with csr rights
  5. command: >
  6. oc serviceaccounts create-kubeconfig {{ openshift_master_csr_sa }} -n {{ openshift_master_csr_namespace }}
  7. register: kubeconfig_out
  8. until: kubeconfig_out.rc == 0
  9. retries: 24
  10. delay: 5
  11. - name: put service account kubeconfig into a file on disk for bootstrap
  12. copy:
  13. content: "{{ kubeconfig_out.stdout }}"
  14. dest: "{{ openshift_master_config_dir }}/bootstrap.kubeconfig"