main.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. manageiq_cluster_role:
  2. apiVersion: v1
  3. kind: ClusterRole
  4. metadata:
  5. name: management-infra-admin
  6. rules:
  7. - resources:
  8. - pods/proxy
  9. verbs:
  10. - '*'
  11. manageiq_service_account:
  12. apiVersion: v1
  13. kind: ServiceAccount
  14. metadata:
  15. name: management-admin
  16. manageiq_image_inspector_service_account:
  17. apiVersion: v1
  18. kind: ServiceAccount
  19. metadata:
  20. name: inspector-admin
  21. manage_iq_tmp_conf: /tmp/manageiq_admin.kubeconfig
  22. manage_iq_tasks:
  23. - policy add-role-to-user -n management-infra admin -z management-admin
  24. - policy add-role-to-user -n management-infra management-infra-admin -z management-admin
  25. - policy add-cluster-role-to-user cluster-reader system:serviceaccount:management-infra:management-admin
  26. - policy add-scc-to-user privileged system:serviceaccount:management-infra:management-admin
  27. - policy add-cluster-role-to-user system:image-puller system:serviceaccount:management-infra:inspector-admin
  28. - policy add-scc-to-user privileged system:serviceaccount:management-infra:inspector-admin
  29. - policy add-cluster-role-to-user self-provisioner system:serviceaccount:management-infra:management-admin
  30. manage_iq_openshift_3_2_tasks:
  31. - policy add-cluster-role-to-user system:image-auditor system:serviceaccount:management-infra:management-admin