inventory.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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. rhbk:
  20. namespace: keycloak
  21. realm: ichp
  22. clients:
  23. - id: openshift
  24. name: OpenShift OIDC Client
  25. secret: verysecret
  26. base_url: https://oauth-openshift.apps.ocp4.example.com
  27. direct_grants: false
  28. groups:
  29. - admins
  30. - developers
  31. - viewers
  32. - debuggers
  33. users:
  34. - username: johndoe
  35. password: redhat
  36. firstname: John
  37. lastname: Doe
  38. groups:
  39. - admins
  40. - username: janedoe
  41. password: redhat
  42. firstname: Jane
  43. lastname: Doe
  44. groups:
  45. - developers
  46. - username: tomjones
  47. password: redhat
  48. firstname: Tom
  49. lastname: Jones
  50. groups:
  51. - viewers
  52. - username: jsmith
  53. password: redhat
  54. firstname: James
  55. lastname: Smith
  56. groups:
  57. - debuggers
  58. # Operators that need to be (re)installed.
  59. #
  60. # The first item in the list is also used for checking whether catalog(s)
  61. # were recreated successfully.
  62. added_operators:
  63. - catalog: redhat-operators
  64. package: metallb-operator
  65. channel: stable
  66. namespace: metallb-system
  67. desired_csv: metallb-operator.v4.16.0-202507221936
  68. og_namespaces: []
  69. approval: Manual
  70. - catalog: redhat-operators
  71. package: rhbk-operator
  72. channel: stable-v26.2
  73. namespace: keycloak
  74. desired_csv: rhbk-operator.v26.2.7-opr.1
  75. og_namespaces:
  76. - keycloak
  77. approval: Manual
  78. # Some cleanup here.
  79. removed_operators:
  80. - sub_nspc: openshift-cnv
  81. sub_name: kubevirt-hyperconverged
  82. csv_kill: yes
  83. csv_name: kubevirt-hyperconverged-operator.v4.16.1
  84. nsp_kill: yes
  85. pre_cleanup:
  86. - kind: hyperconverged
  87. apiv: hco.kubevirt.io/v1beta1
  88. nspc: openshift-cnv
  89. wait_for_gone: yes
  90. wait_for_sec: 600
  91. add_cleanup:
  92. - name: aaqs.aaq.kubevirt.io
  93. - name: cdis.cdi.kubevirt.io
  94. - label: operators.coreos.com/kubevirt-hyperconverged.openshift-cnv
  95. # The list of OpenShift clusters check-env will try to connect to.
  96. clusters:
  97. - ocp4
  98. ...