generate_clusterrolebindings.yaml 502 B

12345678910111213
  1. ---
  2. - name: Generate ClusterRoleBindings
  3. template: src=clusterrolebinding.j2 dest={{mktemp.stdout}}/templates/logging-15-{{obj_name}}-clusterrolebinding.yaml
  4. vars:
  5. acct_name: aggregated-logging-elasticsearch
  6. obj_name: rolebinding-reader
  7. crb_usernames: ["system:serviceaccount:{{openshift_logging_namespace}}:{{acct_name}}"]
  8. subjects:
  9. - kind: ServiceAccount
  10. name: "{{acct_name}}"
  11. namespace: "{{openshift_logging_namespace}}"
  12. check_mode: no
  13. changed_when: no