main.yml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. - python-docker
  32. - net-tools
  33. - python-netaddr
  34. - yum-plugin-versionlock
  35. # Usage: pre_requisite.yml
  36. internet_delay: 0
  37. internet_timeout: 10
  38. hostname: github.com
  39. port_no: 22
  40. os_name: CentOS
  41. os_version: '7.9'
  42. internet_status: "Failed. No Internet connection. Make sure network is up."
  43. os_status: "Unsupported OS or OS version. OS should be {{ os_name }} and Version should be {{ os_version }} or more"
  44. selinux_status: "SElinux is not disabled. Disable it in /etc/sysconfig/selinux and reboot the system"
  45. iso_name: CentOS-7-x86_64-Minimal-2009.iso
  46. iso_fail: "Iso file not found. Download and copy the iso file to omnia/appliance/roles/provision/files"
  47. # Usage: docker_installation.yml
  48. docker_repo_url: https://download.docker.com/linux/centos/docker-ce.repo
  49. docker_repo_dest: /etc/yum.repos.d/docker-ce.repo
  50. success: '0'
  51. container_type: docker
  52. container_repo_install:
  53. - docker-ce-cli-20.10.2
  54. - docker-ce-20.10.2
  55. docker_compose: docker-compose
  56. daemon_dest: /etc/docker/
  57. # Usage: docker_volume.yml
  58. docker_volume_name: omnia-storage
  59. # Usage: password_config.yml
  60. input_config_filename: "appliance_config.yml"
  61. fail_msg_provision_password: "Failed. Incorrect provision_password format provided in appliance_config.yml file"
  62. success_msg_provision_password: "provision_password validated"
  63. fail_msg_awx_password: "Failed. Incorrect awx_password format provided in appliance_config.yml file"
  64. success_msg_awx_password: "awx_password validated"
  65. fail_msg_hpc_nic: "Failed. Incorrect hpc_nic format provided in appliance_config.yml file"
  66. success_msg_hpc_nic: "hpc_nic validated"
  67. fail_msg_public_nic: "Failed. Incorrect public_nic format provided in appliance_config.yml file"
  68. success_msg_public_nic: "public_nic validated"
  69. success_mapping_file: "mapping_file_exists validated"
  70. fail_mapping_file: "Failed. Incorrect mapping_file_exists value in appliance_config.yml. It should be either true or false"
  71. input_config_failure_msg: "Please provide all the required parameters in appliance_config.yml"
  72. success_dhcp_range: "Dhcp_range validated"
  73. fail_dhcp_range: "Failed. Incorrect range assigned for dhcp"
  74. success_hpc_ip: "IP validated"
  75. fail_hpc_ip: "Failed. Nic should be configured"
  76. 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."
  77. invalid_mapping_file_path: "Incorrect mapping_file_path provided in appliance_config.yml"
  78. invalid_iso_file_path: "Incorrect iso_file_path provided in appliance_config.yml."
  79. min_length: 8
  80. max_length: 30
  81. nic_min_length: 3
  82. vault_filename: .vault_key
  83. config_filename: "omnia_config.yml"
  84. config_vaultname: .omnia_vault_key
  85. fail_msg_mariadb_password: "Failed. Incorrect mariadb_password format provided in omnia_config.yml file"
  86. success_msg_mariadb_password: "mariadb_password validated"
  87. success_msg_k8s_cni: "Kubernetes CNI Validated"
  88. fail_msg_k8s_cni: "Failed. Kubernetes CNI is incorrect in omnia_config.yml"
  89. success_timezone: "timezone validated"
  90. fail_timezone: "Failed. Incorrect timezone provided. Please check the file timezone.txt in appliance/roles/common/files/ folder"