main.yml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 common
  16. # Usage: package_installation.yml
  17. common_packages:
  18. - epel-release
  19. - yum-utils
  20. - git
  21. - gcc
  22. - gcc-c++
  23. - nodejs
  24. - device-mapper-persistent-data
  25. - bzip2
  26. - python2-pip
  27. - python3-pip
  28. - nano
  29. - lvm2
  30. - gettext
  31. - net-tools
  32. - python3-netaddr
  33. - yum-plugin-versionlock
  34. # Usage: pre_requisite.yml
  35. internet_delay: 0
  36. internet_timeout: 10
  37. hostname: github.com
  38. port_no: 22
  39. os_name: CentOS
  40. os_version: '8.3'
  41. internet_status: "Failed. No Internet connection. Make sure network is up."
  42. os_status: "Unsupported OS or OS version. OS should be {{ os_name }} and Version should be {{ os_version }} or more"
  43. selinux_status: "SElinux is not disabled. Disable it in /etc/sysconfig/selinux and reboot the system"
  44. ansible_python_version_status: "For CentOS 8.3, python bindings of firewalld, dnf, selinux are not available if python is installed from source and not from dnf. So please make sure python3.6 is installed using dnf. And ansible uses the python version 3.6 installed using dnf"
  45. python_version_support: '3.6.8'
  46. default_ansible_config_file_path: /etc/ansible/ansible.cfg
  47. # Usage: password_config.yml
  48. login_vars_filename: "input_params/login_vars.yml"
  49. vault_filename: input_params/.login_vault_key
  50. min_length: 8
  51. max_length: 30
  52. min_username_length: 4
  53. file_perm: '0755'
  54. vault_file_perm: '0644'
  55. nic_min_length: 3
  56. input_config_failure_msg: "Please provide all the required parameters in login_vars.yml"
  57. fail_msg_provision_password: "Failed. Incorrect provision_password format provided in login_vars.yml"
  58. fail_msg_cobbler_password: "Failed. Incorrect cobbler_password format provided in login_vars.yml file"
  59. fail_msg_idrac_credentials: "Failed. Incorrect idrac_username or idrac_password format provided in login_vars.yml"
  60. fail_msg_ethernet_credentials: "Failed. Incorrect ethernet_switch_username or ethernet_switch_password format provided in login_vars.yml"
  61. fail_msg_ib_credentials: "Failed. Incorrect ib_username or ib_password format provided in login_vars.yml"
  62. fail_msg_me4_credentials: "Failed. Incorrect powervault_me4_username or powervault_me4_password format provided in login_vars.yml"
  63. # Usage: verify_omnia_params.yml
  64. config_filename: "omnia_config.yml"
  65. config_vaultname: .omnia_vault_key
  66. input_omnia_failure_msg: "Please provide all the required parameters in omnia_config.yml"
  67. fail_msg_mariadb_password: "Failed. Incorrect mariadb_password format provided in omnia_config.yml file"
  68. success_msg_mariadb_password: "mariadb_password validated"
  69. success_msg_k8s_version: "Kubernetes Version Validated"
  70. fail_msg_k8s_version: "Failed. Kubernetes Version is unsupported or incorrect in omnia_config.yml"
  71. success_msg_k8s_cni: "Kubernetes CNI Validated"
  72. fail_msg_k8s_cni: "Failed. Kubernetes CNI is incorrect in omnia_config.yml"
  73. # Usage: fetch_base_inputs.yml
  74. base_vars_filename: "input_params/base_vars.yml"
  75. input_base_failure_msg: "Please provide all the required parameters in base_vars.yml"
  76. success_snmp_trap_dest: "SNMP trap destination IP validated"
  77. fail_snmp_trap_dest: "Failed. Incorrect SNMP trap destination IP format provided in base_address.yml"
  78. success_snmp_comm_msg: "SNMP community string validated"
  79. fail_snmp_comm_msg: "snmp community string cannoy be blank in base_vars.yml"
  80. success_msg_public_nic: "Public nic successfully validated"
  81. fail_msg_public_nic: "Failed. Incorrect public nic provided in base_vars.yml"
  82. success_msg_k8s_pod_network_cidr: "Appliance k8s pod network cidr validated"
  83. fail_msg_k8s_pod_network_cidr: "Failed. Incorrect appliance k8s pod network cidr provided in base_vars.yml"
  84. success_awx_organization: "awx organization validated"
  85. fail_awx_organization: "Failed. Incorrect format in awx organization"
  86. success_provision_method: "Provision method validated"
  87. fail_provision_method: "Failed. Provision method can either be set to idrac or pxe"
  88. success_timezone_msg: "timezone validated"
  89. fail_timezone_msg: "Failed. Incorrect timezone provided. Please check the file timezone.txt in control_plane/roles/control_plane_common/files/ folder"
  90. fail_language: "Failed. Only en-US(english) language supported"
  91. invalid_iso_file_path: "Incorrect iso_file_path provided in base_vars.yml."
  92. ethernet_switch_support_success_msg: "ethernet_switch_support validated"
  93. ethernet_switch_support_fail_msg: "Failed. ethernet_switch_support only accepts boolean values true or false"
  94. ib_switch_support_success_msg: "ib_switch_support validated"
  95. ib_switch_support_fail_msg: "Failed. ib_switch_support only accepts boolean values true or false"
  96. powervault_support_success_msg: "powervault_support validated"
  97. powervault_support_fail_msg: "Failed. power_vault_support only accepts boolean values true or false"
  98. success_msg_mngmnt_network_nic: "Management network nic successfully validated"
  99. fail_msg_mngmnt_network_nic: "Failed. Incorrect Management network nic provided in base_vars.yml"
  100. success_msg_host_network_nic: "Host network nic successfully validated"
  101. fail_msg_host_network_nic: "Failed. Incorrect host network nic provided in base_vars.yml"
  102. success_msg_ib_network_nic: "Infiniband network nic successfully validated"
  103. fail_msg_ib_network_nic: "Failed. Incorrect infiniband network nic provided in base_vars.yml"
  104. success_dhcp_range: "Dhcp_range validated"
  105. fail_dhcp_range: "Failed. Incorrect range assigned for dhcp"
  106. invalid_mapping_file_path: "Incorrect mapping_file_path provided in base_vars.yml"
  107. success_msg_different_nics: "The nics of different containers and public nic are not the same - Validated"
  108. fail_msg_different_nics: "Failed. Incorrect nic information. public nic, management network nic and host network nic should not be the same"
  109. success_msg_different_nics_ib: "The nics of different containers and public nic are not the same as infiniband nic- Validated"
  110. fail_msg_different_nics_ib: "Failed. Infiniband nic cannot be the same as other nics"
  111. success_msg_ib: "Infiniband variables validated"
  112. fail_msg_ib: "Failed. Please provide all the InfiniBand related parameters in base_vars.yml"
  113. # Usage: fetch_sm_inputs.yml
  114. ib_config_file: "{{ role_path }}/../../input_params/ib_vars.yml"
  115. opensm_conf_file: "{{ role_path }}/../../input_params/opensm.conf"
  116. fail_msg_config_file: ib_vars.yml file doesn't exist.
  117. fail_msg_opensm_config_file: opensm.conf file doesn't exist.
  118. fail_msg_ib_input_definition: Infiniband config directories must be defined.
  119. fail_msg_ib_input: Infiniband config directories can't be left empty.
  120. # Usage: encrypt_idrac_2fa_vars.yml
  121. idrac_tools_vaultname: input_params/.idrac_vault_key
  122. idrac_tools_vars_filename: input_params/idrac_tools_vars.yml
  123. # Usage: nfs_server_setup.yml
  124. nfs_share_offline_repo: /var/nfs_repo
  125. nfs_share_awx: /var/nfs_awx
  126. nfs_share_dir_mode: 0777
  127. exports_file_path: /etc/exports
  128. nfs_services:
  129. - mountd
  130. - rpc-bind
  131. - nfs