main.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Copyright 2020 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. iso_name: CentOS-7-x86_64-Minimal-2009.iso
  45. iso_fail: "Iso file not found. Download and copy the iso file to omnia/appliance/roles/provision/files"
  46. 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"
  47. python_version_support: '3.6.8'
  48. default_ansible_config_file_path: /etc/ansible/ansible.cfg
  49. # Usage: docker_installation.yml
  50. docker_repo_url: https://download.docker.com/linux/centos/docker-ce.repo
  51. docker_repo_dest: /etc/yum.repos.d/docker-ce.repo
  52. success: '0'
  53. container_type: docker
  54. container_repo_install:
  55. - docker-ce-cli-20.10.2
  56. - docker-ce-20.10.2
  57. docker_compose: docker-compose
  58. daemon_dest: /etc/docker/
  59. # Usage: docker_volume.yml
  60. docker_volume_name: omnia-storage
  61. # Usage: password_config.yml
  62. input_config_filename: "appliance_config.yml"
  63. fail_msg_provision_password: "Failed. Incorrect provision_password format provided in appliance_config.yml file"
  64. success_msg_provision_password: "provision_password validated"
  65. fail_msg_awx_password: "Failed. Incorrect awx_password format provided in appliance_config.yml file"
  66. success_msg_awx_password: "awx_password validated"
  67. fail_msg_hpc_nic: "Failed. Incorrect hpc_nic format provided in appliance_config.yml file"
  68. success_msg_hpc_nic: "hpc_nic validated"
  69. fail_msg_public_nic: "Failed. Incorrect public_nic format provided in appliance_config.yml file"
  70. success_msg_public_nic: "public_nic validated"
  71. success_mapping_file: "mapping_file_exists validated"
  72. fail_mapping_file: "Failed. Incorrect mapping_file_exists value in appliance_config.yml. It should be either true or false"
  73. input_config_failure_msg: "Please provide all the required parameters in appliance_config.yml"
  74. success_dhcp_range: "Dhcp_range validated"
  75. fail_dhcp_range: "Failed. Incorrect range assigned for dhcp"
  76. success_hpc_ip: "IP validated"
  77. fail_hpc_ip: "Failed. Nic should be configured"
  78. fail_mapping_file_path: "Failed. Mapping_file_path input is empty in appliance_config.yml. Either set mapping_file_exists to false or provide a path for a valid mapping file."
  79. invalid_mapping_file_path: "Incorrect mapping_file_path provided in appliance_config.yml"
  80. invalid_iso_file_path: "Incorrect iso_file_path provided in appliance_config.yml."
  81. min_length: 8
  82. max_length: 30
  83. nic_min_length: 3
  84. vault_filename: .vault_key
  85. config_filename: "omnia_config.yml"
  86. config_vaultname: .omnia_vault_key
  87. fail_msg_mariadb_password: "Failed. Incorrect mariadb_password format provided in omnia_config.yml file"
  88. success_msg_mariadb_password: "mariadb_password validated"
  89. success_msg_k8s_cni: "Kubernetes CNI Validated"
  90. fail_msg_k8s_cni: "Failed. Kubernetes CNI is incorrect in omnia_config.yml"
  91. success_timezone: "timezone validated"
  92. fail_timezone: "Failed. Incorrect timezone provided. Please check the file timezone.txt in appliance/roles/common/files/ folder"
  93. file_perm: '0755'