generate_clusterrolebindings.yaml 626 B

12345678910111213141516171819
  1. ---
  2. - name: Generate ClusterRoleBindings
  3. template: src=clusterrolebinding.j2 dest={{mktemp.stdout}}/templates/{{obj_name}}-clusterrolebinding.yaml
  4. vars:
  5. acct_name: provisioners-{{item}}
  6. obj_name: run-provisioners-{{item}}
  7. labels:
  8. provisioners-infra: support
  9. crb_usernames: ["system:serviceaccount:{{openshift_provisioners_project}}:{{acct_name}}"]
  10. subjects:
  11. - kind: ServiceAccount
  12. name: "{{acct_name}}"
  13. namespace: "{{openshift_provisioners_project}}"
  14. cr_name: "system:persistent-volume-provisioner"
  15. with_items:
  16. # TODO
  17. - efs
  18. check_mode: no
  19. changed_when: no