main.yml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Copyright 2021 Dell Inc. or its subsidiaries. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ---
  15. # vars file for webui_awx
  16. # Usage: install_awx.yml
  17. awx_namespace: awx
  18. awx_pv_yml_file_path: "{{ role_path }}/files/awx_projects_pv.yml"
  19. awx_postgres_pv_file_path: "{{ role_path }}/files/awx_postgres_pv.yml"
  20. awx_operator_yml_file_path: "{{ role_path }}/files/awx_operator.yml"
  21. awx_ee_docker_file: "{{ role_path }}/files/awx_ee.yml"
  22. awx_yml_file_path: "{{ role_path }}/files/awx.yml"
  23. postgres_storage_class: nfs-client
  24. projects_existing_claim: awx-pv-claim
  25. awx_version: 19.1.0
  26. file_perm: '0644'
  27. awx_wait_time: 90
  28. deployment_failure_msg: "Deployment failed due to docker pull rate limit"
  29. # Usage: configure_settings.yml
  30. awx_port: 8052
  31. awx_service_name: awx-ui
  32. tower_config_file: "{{ role_path }}/files/.tower_cli.cfg"
  33. tower_vault_file: "{{ role_path }}/files/.tower_vault_key"
  34. vault_file_perm: '0644'
  35. awx_tcp_ports:
  36. - 80
  37. - 8383
  38. - 8686
  39. - 5432
  40. - 8052
  41. - 30000-32767
  42. awx_ui_msg: "AWX Upgrading"
  43. return_status: 200
  44. max_retries: 20
  45. max_delay: 15
  46. # Usage: awx_configuration.yml
  47. default_org: Default
  48. default_template: 'Demo Job Template'
  49. default_project: 'Demo Project'
  50. default_credential: 'Demo Credential'
  51. default_credential_type: Machine
  52. organization_name: 'DellEMC'
  53. project_name: 'omnia'
  54. project_description: "Directory which contains configuration playbooks"
  55. inventory_names:
  56. - { name: idrac_inventory, description: "Inventory to store IPs of idrac servers", flag: true }
  57. - { name: ethernet_inventory, description: "Inventory to store IPs of ethernet switches", flag: "{{ ethernet_switch_support }}" }
  58. - { name: infiniband_inventory, description: "Inventory to store IPs of infiniband switches", flag: "{{ ib_switch_support }}" }
  59. - { name: powervault_me4_inventory, description: "Inventory to store IPs of ME4 servers", flag: "{{ powervault_support }}" }
  60. - { name: node_inventory, description: "Inventory to store host IPs of servers", flag: true }
  61. group_names:
  62. - { name: manager, description: "Group to store IP of head node" }
  63. - { name: compute, description: "Group to store IPs of compute nodes" }
  64. - { name: login_node, description: "Group to store IP of login node" }
  65. - { name: nfs_node, description: "Group to store IP of NFS node" }
  66. credential_details:
  67. - { name: idrac_credential, type: Network, username: "{{ idrac_username }}", password: "{{ idrac_password }}", flag: true }
  68. - { name: ethernet_credential, type: Machine, username: "{{ ethernet_switch_username }}", password: "{{ ethernet_switch_password }}", flag: "{{ ethernet_switch_support }}" }
  69. - { name: infiniband_credential, type: Network, username: "{{ ib_username }}", password: "{{ ib_password }}", flag: "{{ ib_switch_support }}" }
  70. - { name: powervault_me4_credential, type: Network, username: "{{ powervault_me4_username }}", password: "{{ powervault_me4_password }}", flag: "{{ powervault_support }}" }
  71. - { name: node_credential, type: Machine, username: root, password: "{{ provision_password }}", flag: true }
  72. job_template_details:
  73. - { name: idrac_template, inventory: idrac_inventory, playbook: control_plane/idrac.yml, credential: idrac_credential, flag: true }
  74. - { name: ethernet_template, inventory: ethernet_inventory, playbook: control_plane/ethernet.yml, credential: ethernet_credential, flag: "{{ ethernet_switch_support }}" }
  75. - { name: infiniband_template, inventory: infiniband_inventory, playbook: control_plane/infiniband.yml, credential: infiniband_credential, flag: "{{ ib_switch_support }}" }
  76. - { name: powervault_me4_template, inventory: powervault_me4_inventory, playbook: control_plane/powervault_me4.yml, credential: powervault_me4_credential, flag: "{{ powervault_support }}" }
  77. - { name: node_inventory_job, inventory: node_inventory, playbook: control_plane/collect_node_info.yml, credential: node_credential, flag: true }
  78. - { name: device_inventory_job, inventory: node_inventory, playbook: control_plane/collect_device_info.yml, credential: node_credential, flag: true }
  79. omnia_job_template_details:
  80. - { name: deploy_omnia_template, inventory: node_inventory, playbook: omnia.yml, credential: node_credential }
  81. scheduled_templates:
  82. - { name: NodeInventorySchedule, template: node_inventory_job, schedule_rule: "DTSTART:20210815T120000Z RRULE:FREQ=MINUTELY;INTERVAL=10" }
  83. - { name: DeviceInventorySchedule, template: device_inventory_job, schedule_rule: "DTSTART:20210815T060000Z RRULE:FREQ=DAILY;INTERVAL=1"}