main.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. ---
  2. ##########
  3. # Common #
  4. ##########
  5. openshift_hosted_infra_selector: "node-role.kubernetes.io/infra=true"
  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. openshift_hosted_images_dict:
  21. origin: 'docker.io/openshift/origin-${component}:${version}'
  22. openshift-enterprise: 'registry.access.redhat.com/openshift3/ose-${component}:${version}'
  23. ##########
  24. # Router #
  25. ##########
  26. r_openshift_hosted_router_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  27. r_openshift_hosted_router_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  28. openshift_hosted_router_selector: "{{ openshift_router_selector | default(openshift_hosted_infra_selector) }}"
  29. openshift_hosted_router_namespace: 'default'
  30. openshift_hosted_router_wait: False
  31. openshift_hosted_router_edits:
  32. - key: spec.strategy.rollingParams.intervalSeconds
  33. value: 1
  34. action: put
  35. - key: spec.strategy.rollingParams.updatePeriodSeconds
  36. value: 1
  37. action: put
  38. - key: spec.strategy.activeDeadlineSeconds
  39. value: 21600
  40. action: put
  41. openshift_hosted_router_registryurl: "{{ oreg_url_master | default(oreg_url) | default(openshift_hosted_images_dict[openshift_deployment_type]) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  42. openshift_hosted_routers:
  43. - name: router
  44. replicas: "{{ replicas | default(1) }}"
  45. namespace: default
  46. serviceaccount: router
  47. selector: "{{ openshift_hosted_router_selector | default(None) }}"
  48. images: "{{ openshift_hosted_router_registryurl }}"
  49. edits: "{{ openshift_hosted_router_edits }}"
  50. stats_port: 1936
  51. ports:
  52. - 80:80
  53. - 443:443
  54. certificate: "{{ openshift_hosted_router_certificate | default({}) }}"
  55. openshift_hosted_router_certificate: {}
  56. openshift_hosted_router_create_certificate: True
  57. r_openshift_hosted_router_os_firewall_deny: []
  58. r_openshift_hosted_router_os_firewall_allow: []
  59. ############
  60. # Registry #
  61. ############
  62. openshift_hosted_registry_selector: "{{ openshift_registry_selector | default(openshift_hosted_infra_selector) }}"
  63. openshift_hosted_registry_registryurl: "{{ oreg_url_master | default(oreg_url) | default(openshift_hosted_images_dict[openshift_deployment_type]) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  64. openshift_hosted_registry_routecertificates: {}
  65. openshift_hosted_registry_routetermination: "passthrough"
  66. r_openshift_hosted_registry_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  67. r_openshift_hosted_registry_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  68. openshift_hosted_registry_name: docker-registry
  69. openshift_hosted_registry_wait: False
  70. openshift_hosted_registry_cert_expire_days: 730
  71. r_openshift_hosted_registry_os_firewall_deny: []
  72. r_openshift_hosted_registry_os_firewall_allow:
  73. - service: Docker Registry Port
  74. port: 5000/tcp
  75. cond: "{{ r_openshift_hosted_use_calico }}"
  76. openshift_hosted_registry_serviceaccount: registry
  77. openshift_hosted_registry_volumes: []
  78. openshift_hosted_registry_env_vars: {}
  79. openshift_hosted_registry_clusterip: null
  80. # These edits are being specified only to prevent 'changed' on rerun
  81. openshift_hosted_registry_edits:
  82. - key: spec.strategy.rollingParams
  83. value:
  84. intervalSeconds: 1
  85. maxSurge: "25%"
  86. maxUnavailable: "25%"
  87. timeoutSeconds: 600
  88. updatePeriodSeconds: 1
  89. action: put
  90. openshift_hosted_registry_force:
  91. - False
  92. # TODO: this flag should be removed when master bootstrapping is enforced
  93. openshift_push_via_dns: True
  94. # NOTE: settting openshift_docker_hosted_registry_insecure may affect other roles
  95. openshift_hosted_docker_registry_insecure_default: "{{ openshift_docker_hosted_registry_insecure | default(False) }}"
  96. openshift_hosted_docker_registry_insecure: "{{ openshift_hosted_docker_registry_insecure_default }}"
  97. openshift_hosted_registry_storage_azure_blob_realm: core.windows.net