main.yml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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.access.redhat.com/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_master | default(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. stats_port: 1936
  50. ports:
  51. - 80:80
  52. - 443:443
  53. certificate: "{{ openshift_hosted_router_certificate | default({}) }}"
  54. openshift_hosted_router_certificate: {}
  55. openshift_hosted_router_create_certificate: True
  56. r_openshift_hosted_router_os_firewall_deny: []
  57. r_openshift_hosted_router_os_firewall_allow: []
  58. ############
  59. # Registry #
  60. ############
  61. openshift_hosted_registry_selector: "{{ openshift_registry_selector | default(openshift_hosted_infra_selector) }}"
  62. 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}')) }}"
  63. openshift_hosted_registry_routecertificates: {}
  64. openshift_hosted_registry_routetermination: "passthrough"
  65. r_openshift_hosted_registry_firewall_enabled: "{{ os_firewall_enabled | default(True) }}"
  66. r_openshift_hosted_registry_use_firewalld: "{{ os_firewall_use_firewalld | default(False) }}"
  67. openshift_hosted_registry_name: docker-registry
  68. openshift_hosted_registry_wait: False
  69. openshift_hosted_registry_cert_expire_days: 730
  70. r_openshift_hosted_registry_os_firewall_deny: []
  71. r_openshift_hosted_registry_os_firewall_allow:
  72. - service: Docker Registry Port
  73. port: 5000/tcp
  74. cond: "{{ r_openshift_hosted_use_calico }}"
  75. openshift_hosted_registry_serviceaccount: registry
  76. openshift_hosted_registry_volumes: []
  77. openshift_hosted_registry_env_vars: {}
  78. openshift_hosted_registry_clusterip: null
  79. # These edits are being specified only to prevent 'changed' on rerun
  80. openshift_hosted_registry_edits:
  81. - key: spec.strategy.rollingParams
  82. value:
  83. intervalSeconds: 1
  84. maxSurge: "25%"
  85. maxUnavailable: "25%"
  86. timeoutSeconds: 600
  87. updatePeriodSeconds: 1
  88. action: put
  89. openshift_hosted_registry_force:
  90. - False
  91. # TODO: this flag should be removed when master bootstrapping is enforced
  92. openshift_push_via_dns: True
  93. # NOTE: settting openshift_docker_hosted_registry_insecure may affect other roles
  94. openshift_hosted_docker_registry_insecure_default: "{{ openshift_docker_hosted_registry_insecure | default(False) }}"
  95. openshift_hosted_docker_registry_insecure: "{{ openshift_hosted_docker_registry_insecure_default }}"
  96. openshift_hosted_registry_storage_azure_blob_realm: core.windows.net
  97. openshift_hosted_registry_replicas: 1