main.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ---
  2. ##########
  3. # Common #
  4. ##########
  5. openshift_hosted_infra_selector: "region=infra"
  6. r_openshift_hosted_use_calico_default: "{{ openshift_use_calico | default(False) }}"
  7. r_openshift_hosted_use_calico: "{{ r_openshift_hosted_use_calico_default }}"
  8. openshift_default_projects:
  9. default:
  10. default_node_selector: ''
  11. logging:
  12. default_node_selector: ''
  13. openshift-infra:
  14. default_node_selector: ''
  15. # openshift_additional_projects shares the same format as openshift_default_projects
  16. openshift_additional_projects: {}
  17. openshift_config_base: "/etc/origin"
  18. openshift_master_config_dir: "{{ openshift.common.config_base | default(openshift_config_base) }}/master"
  19. openshift_cluster_domain: 'cluster.local'
  20. ##########
  21. # Router #
  22. ##########
  23. r_openshift_hosted_router_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  24. r_openshift_hosted_router_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  25. openshift_hosted_router_selector: "{{ openshift_router_selector | default(openshift_hosted_infra_selector) }}"
  26. openshift_hosted_router_namespace: 'default'
  27. openshift_hosted_router_wait: "{{ not (openshift_master_bootstrap_enabled | default(False)) }}"
  28. openshift_hosted_router_edits:
  29. - key: spec.strategy.rollingParams.intervalSeconds
  30. value: 1
  31. action: put
  32. - key: spec.strategy.rollingParams.updatePeriodSeconds
  33. value: 1
  34. action: put
  35. - key: spec.strategy.activeDeadlineSeconds
  36. value: 21600
  37. action: put
  38. openshift_hosted_router_registryurl: "{{ openshift_hosted_images_dict[openshift_deployment_type] }}"
  39. openshift_hosted_routers:
  40. - name: router
  41. replicas: "{{ replicas | default(1) }}"
  42. namespace: default
  43. serviceaccount: router
  44. selector: "{{ openshift_hosted_router_selector | default(None) }}"
  45. images: "{{ openshift_hosted_router_registryurl }}"
  46. edits: "{{ openshift_hosted_router_edits }}"
  47. stats_port: 1936
  48. ports:
  49. - 80:80
  50. - 443:443
  51. certificate: "{{ openshift_hosted_router_certificate | default({}) }}"
  52. openshift_hosted_router_certificate: {}
  53. openshift_hosted_router_create_certificate: True
  54. r_openshift_hosted_router_os_firewall_deny: []
  55. r_openshift_hosted_router_os_firewall_allow: []
  56. ############
  57. # Registry #
  58. ############
  59. openshift_hosted_registry_selector: "{{ openshift_registry_selector | default(openshift_hosted_infra_selector) }}"
  60. penshift_hosted_registry_registryurl: "{{ openshift_hosted_images_dict[openshift_deployment_type] }}"
  61. openshift_hosted_registry_routecertificates: {}
  62. openshift_hosted_registry_routetermination: "passthrough"
  63. r_openshift_hosted_registry_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  64. r_openshift_hosted_registry_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  65. openshift_hosted_registry_name: docker-registry
  66. openshift_hosted_registry_wait: "{{ not (openshift_master_bootstrap_enabled | default(False)) }}"
  67. openshift_hosted_registry_cert_expire_days: 730
  68. r_openshift_hosted_registry_os_firewall_deny: []
  69. r_openshift_hosted_registry_os_firewall_allow:
  70. - service: Docker Registry Port
  71. port: 5000/tcp
  72. cond: "{{ r_openshift_hosted_use_calico }}"
  73. openshift_hosted_registry_serviceaccount: registry
  74. openshift_hosted_registry_volumes: []
  75. openshift_hosted_registry_env_vars: {}
  76. openshift_hosted_registry_clusterip: null
  77. # These edits are being specified only to prevent 'changed' on rerun
  78. openshift_hosted_registry_edits:
  79. - key: spec.strategy.rollingParams
  80. value:
  81. intervalSeconds: 1
  82. maxSurge: "25%"
  83. maxUnavailable: "25%"
  84. timeoutSeconds: 600
  85. updatePeriodSeconds: 1
  86. action: put
  87. openshift_hosted_registry_force:
  88. - False
  89. openshift_push_via_dns: False
  90. # NOTE: settting openshift_docker_hosted_registry_insecure may affect other roles
  91. openshift_hosted_docker_registry_insecure_default: "{{ openshift_docker_hosted_registry_insecure | default(False) }}"
  92. openshift_hosted_docker_registry_insecure: "{{ openshift_hosted_docker_registry_insecure_default }}"