main.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. openshift-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_cluster_domain: 'cluster.local'
  19. openshift_hosted_images_dict:
  20. origin: 'docker.io/openshift/origin-${component}:${version}'
  21. openshift-enterprise: 'registry.redhat.io/openshift3/ose-${component}:${version}'
  22. ##########
  23. # Router #
  24. ##########
  25. r_openshift_hosted_router_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  26. r_openshift_hosted_router_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  27. openshift_hosted_router_selector: "{{ openshift_router_selector | default(openshift_hosted_infra_selector) }}"
  28. openshift_hosted_router_namespace: 'default'
  29. openshift_hosted_router_wait: False
  30. openshift_hosted_router_edits:
  31. - key: spec.strategy.rollingParams.intervalSeconds
  32. value: 1
  33. action: put
  34. - key: spec.strategy.rollingParams.updatePeriodSeconds
  35. value: 1
  36. action: put
  37. - key: spec.strategy.activeDeadlineSeconds
  38. value: 21600
  39. action: put
  40. openshift_hosted_router_registryurl: "{{ oreg_url | default(openshift_hosted_images_dict[openshift_deployment_type]) | regex_replace('${version}' | regex_escape, openshift_image_tag | default('${version}')) }}"
  41. openshift_hosted_routers:
  42. - name: router
  43. replicas: "{{ replicas | default(1) }}"
  44. namespace: default
  45. serviceaccount: router
  46. selector: "{{ openshift_hosted_router_selector | default(None) }}"
  47. images: "{{ openshift_hosted_router_registryurl }}"
  48. edits: "{{ openshift_hosted_router_edits }}"
  49. extended_validation: "{{ openshift_hosted_router_extended_validation | default(True) | bool }}"
  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 | 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
  98. openshift_hosted_registry_replicas: 1