main.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 provision
  16. #Usage: mapping_file.yml
  17. fail_hostname_duplicate: "Failed: Duplicate hostname exists. Please verify mapping file again."
  18. remove_header: awk 'NR > 1 { print }' {{ role_path }}/files/new_mapping_file.csv
  19. fail_ip_duplicate: "Failed: Duplicate ip exists. Please verify mapping file again."
  20. fail_mac_duplicate: "Failed: Duplicate mac exists. Please verify mapping file again."
  21. header_fail: "Failed: Header (MAC,Hostname,IP) should be present in the mapping file"
  22. valid_header: MAC,Hostname,IP
  23. not_comma_seperated: "Failed: Mapping file should be comma seperated."
  24. #Usage: check_prerequisite.yml
  25. iso_name: CentOS-7-x86_64-Minimal-2009.iso
  26. iso_fail: "Iso file not found. Download and copy the iso file to omnia/appliance/roles/provision/files"
  27. # Usage: provision_password.yml
  28. provision_encrypted_dest: ../files/
  29. username: cobbler
  30. # Usage: cobbler_image.yml
  31. docker_image_name: cobbler
  32. docker_image_tag: latest
  33. cobbler_run_command: docker run -itd --privileged --net=host --restart=always -v {{ mount_path }}:/root/omnia -v cobbler_www:/var/www/cobbler:Z -v cobbler_backup:/var/lib/cobbler/backup:Z -v /mnt/iso:/mnt:Z -p 69:69/udp -p 81:80 -p 443:443 -p 25151:25151 --name cobbler cobbler:latest /sbin/init
  34. # Usage: main.yml
  35. message_skipped: "Installation Skipped: Cobbler instance is already running in your system"
  36. message_installed: "Installation Successful"
  37. # Usage: mount_iso.yml
  38. iso_path: iso