inventory.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ---
  2. # A simplistic inventory for the classroom VMs.
  3. all:
  4. hosts:
  5. workstation.lab.example.com:
  6. ansible_connection: local
  7. utility.lab.example.com:
  8. ansible_user: lab
  9. bastion.lab.example.com:
  10. ansible_host: 172.25.250.254
  11. ansible_user: root
  12. vars:
  13. # OpenShift versions.
  14. ocp_maj: "4.16"
  15. ocp_z: "4.16.2"
  16. openshift:
  17. rhbk_client_id: openshift
  18. create_groups: yes
  19. egress_range: 192.168.50.128/26
  20. extip_range: 192.168.50.192/26
  21. rhbk:
  22. namespace: keycloak
  23. realm: ichp
  24. clients:
  25. - id: openshift
  26. name: OpenShift OIDC Client
  27. secret: verysecret
  28. base_url: https://oauth-openshift.apps.ocp4.example.com
  29. direct_grants: false
  30. groups:
  31. - admins
  32. - developers
  33. - viewers
  34. - debuggers
  35. users:
  36. - username: johndoe
  37. password: redhat
  38. firstname: John
  39. lastname: Doe
  40. groups:
  41. - admins
  42. - username: janedoe
  43. password: redhat
  44. firstname: Jane
  45. lastname: Doe
  46. groups:
  47. - developers
  48. - username: tomjones
  49. password: redhat
  50. firstname: Tom
  51. lastname: Jones
  52. groups:
  53. - viewers
  54. - username: jsmith
  55. password: redhat
  56. firstname: James
  57. lastname: Smith
  58. groups:
  59. - debuggers
  60. # Operators that need to be (re)installed.
  61. #
  62. # The first item in the list is also used for checking whether catalog(s)
  63. # were recreated successfully.
  64. added_operators:
  65. - catalog: redhat-operators
  66. package: metallb-operator
  67. channel: stable
  68. namespace: metallb-system
  69. desired_csv: metallb-operator.v4.16.0-202507221936
  70. og_namespaces: []
  71. approval: Manual
  72. - catalog: redhat-operators
  73. package: rhbk-operator
  74. channel: stable-v26.2
  75. namespace: keycloak
  76. desired_csv: rhbk-operator.v26.2.7-opr.1
  77. og_namespaces:
  78. - keycloak
  79. approval: Manual
  80. - catalog: community-operators
  81. package: grafana-operator
  82. channel: v5
  83. namespace: grafana
  84. desired_csv: grafana-operator.v5.18.0
  85. og_namespaces: []
  86. approval: Manual
  87. - catalog: redhat-operators
  88. package: openshift-cert-manager-operator
  89. channel: stable-v1.17
  90. namespace: openshift-cert-manager
  91. desired_csv: cert-manager-operator.v1.17.0
  92. og_namespaces: []
  93. approval: Manual
  94. # Some cleanup here.
  95. removed_operators:
  96. - sub_nspc: openshift-cnv
  97. sub_name: kubevirt-hyperconverged
  98. csv_kill: yes
  99. csv_name: kubevirt-hyperconverged-operator.v4.16.1
  100. nsp_kill: yes
  101. pre_cleanup:
  102. - kind: hyperconverged
  103. apiv: hco.kubevirt.io/v1beta1
  104. nspc: openshift-cnv
  105. wait_for_gone: yes
  106. wait_for_sec: 600
  107. add_cleanup:
  108. - name: aaqs.aaq.kubevirt.io
  109. - name: cdis.cdi.kubevirt.io
  110. - label: operators.coreos.com/kubevirt-hyperconverged.openshift-cnv
  111. # The list of OpenShift clusters check-env will try to connect to.
  112. clusters:
  113. - ocp4
  114. ...