main.yml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ---
  2. docker_cli_auth_config_path: '/root/.docker'
  3. openshift_docker_signature_verification: False
  4. openshift_docker_alternative_creds: False
  5. # oreg_url is defined by user input.
  6. oreg_host: "{{ oreg_url.split('/')[0] if (oreg_url is defined and '.' in oreg_url.split('/')[0]) else '' }}"
  7. oreg_auth_credentials_replace: False
  8. openshift_docker_additional_registries: []
  9. openshift_docker_blocked_registries: []
  10. openshift_docker_insecure_registries: []
  11. openshift_docker_ent_reg: 'registry.access.redhat.com'
  12. # The l2_docker_* variables convert csv strings to lists, if
  13. # necessary. These variables should be used in place of their respective
  14. # openshift_docker_* counterparts to ensure the properly formatted lists are
  15. # utilized.
  16. l2_docker_additional_registries: "{% if openshift_docker_additional_registries is string %}{% if openshift_docker_additional_registries == '' %}[]{% elif ',' in openshift_docker_additional_registries %}{{ openshift_docker_additional_registries.split(',') | list }}{% else %}{{ [ openshift_docker_additional_registries ] }}{% endif %}{% else %}{{ openshift_docker_additional_registries }}{% endif %}"
  17. l2_docker_blocked_registries: "{% if openshift_docker_blocked_registries is string %}{% if openshift_docker_blocked_registries == '' %}[]{% elif ',' in openshift_docker_blocked_registries %}{{ openshift_docker_blocked_registries.split(',') | list }}{% else %}{{ [ openshift_docker_blocked_registries ] }}{% endif %}{% else %}{{ openshift_docker_blocked_registries }}{% endif %}"
  18. l2_docker_insecure_registries: "{% if openshift_docker_insecure_registries is string %}{% if openshift_docker_insecure_registries == '' %}[]{% elif ',' in openshift_docker_insecure_registries %}{{ openshift_docker_insecure_registries.split(',') | list }}{% else %}{{ [ openshift_docker_insecure_registries ] }}{% endif %}{% else %}{{ openshift_docker_insecure_registries }}{% endif %}"
  19. openshift_docker_use_etc_containers: False
  20. containers_registries_conf_path: /etc/containers/registries.conf
  21. r_crio_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  22. r_crio_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  23. r_crio_os_firewall_deny: []
  24. r_crio_os_firewall_allow:
  25. - service: crio
  26. port: 10010/tcp
  27. openshift_docker_is_node_or_master: "{{ True if inventory_hostname in (groups['oo_masters_to_config']|default([])) or inventory_hostname in (groups['oo_nodes_to_config']|default([])) else False | bool }}"
  28. docker_alt_storage_path: /var/lib/containers/docker
  29. docker_default_storage_path: /var/lib/docker