registry_config.j2 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. version: 0.1
  2. log:
  3. level: debug
  4. http:
  5. addr: :5000
  6. storage:
  7. delete:
  8. enabled: true
  9. cache:
  10. blobdescriptor: inmemory
  11. {% if openshift.hosted.registry.storage.provider == 's3' %}
  12. s3:
  13. accesskey: {{ openshift.hosted.registry.storage.s3.accesskey }}
  14. secretkey: {{ openshift.hosted.registry.storage.s3.secretkey }}
  15. region: {{ openshift.hosted.registry.storage.s3.region }}
  16. bucket: {{ openshift.hosted.registry.storage.s3.bucket }}
  17. encrypt: false
  18. secure: true
  19. v4auth: true
  20. rootdirectory: {{ openshift.hosted.registry.storage.s3.rootdirectory | default('/registry') }}
  21. chunksize: "{{ openshift.hosted.registry.storage.s3.chunksize | default(26214400) }}"
  22. {% elif openshift.hosted.registry.storage.provider == 'azure_blob' %}
  23. azure:
  24. accountname: {{ openshift.hosted.registry.storage.azure_blob.accountname }}
  25. accountkey: {{ openshift.hosted.registry.storage.azure_blob.accountkey }}
  26. container: {{ openshift.hosted.registry.storage.azure_blob.container }}
  27. realm: {{ openshift.hosted.registry.storage.azure_blob.realm }}
  28. {% elif openshift.hosted.registry.storage.provider == 'swift' %}
  29. swift:
  30. authurl: {{ openshift.hosted.registry.storage.swift.authurl }}
  31. username: {{ openshift.hosted.registry.storage.swift.username }}
  32. password: {{ openshift.hosted.registry.storage.swift.password }}
  33. container: {{ openshift.hosted.registry.storage.swift.container }}
  34. {% if 'region' in openshift.hosted.registry.storage.swift %}
  35. region: {{ openshift.hosted.registry.storage.swift.region }}
  36. {% endif -%}
  37. {% if 'tenant' in openshift.hosted.registry.storage.swift %}
  38. tenant: {{ openshift.hosted.registry.storage.swift.tenant }}
  39. {% endif -%}
  40. {% if 'tenantid' in openshift.hosted.registry.storage.swift %}
  41. tenantid: {{ openshift.hosted.registry.storage.swift.tenantid }}
  42. {% endif -%}
  43. {% if 'domain' in openshift.hosted.registry.storage.swift %}
  44. domain: {{ openshift.hosted.registry.storage.swift.domain }}
  45. {% endif -%}
  46. {% if 'domainid' in openshift.hosted.registry.storage.swift %}
  47. domainid: {{ openshift.hosted.registry.storage.swift.domainid }}
  48. {% endif -%}
  49. {% elif openshift.hosted.registry.storage.provider == 'gcs' %}
  50. gcs:
  51. bucket: {{ openshift.hosted.registry.storage.gcs.bucket }}
  52. {% if 'keyfile' in openshift.hosted.registry.storage.gcs %}
  53. keyfile: {{ openshift.hosted.registry.storage.gcs.keyfile }}
  54. {% endif -%}
  55. {% if 'rootdirectory' in openshift.hosted.registry.storage.gcs %}
  56. rootdirectory: {{ openshift.hosted.registry.storage.gcs.rootdirectory }}
  57. {% endif -%}
  58. {% endif -%}
  59. auth:
  60. openshift:
  61. realm: openshift
  62. middleware:
  63. {% if openshift.common.version_gte_3_3_or_1_3 | bool %}
  64. registry:
  65. - name: openshift
  66. {% endif %}
  67. repository:
  68. - name: openshift
  69. options:
  70. pullthrough: {{ openshift.hosted.registry.pullthrough | default(true) }}
  71. acceptschema2: {{ openshift.hosted.registry.acceptschema2 | default(false) }}
  72. enforcequota: {{ openshift.hosted.registry.enforcequota | default(false) }}
  73. {% if openshift.hosted.registry.storage.provider == 's3' and 'cloudfront' in openshift.hosted.registry.storage.s3 %}
  74. storage:
  75. - name: cloudfront
  76. options:
  77. baseurl: {{ openshift.hosted.registry.storage.s3.cloudfront.baseurl }}
  78. privatekey: {{ openshift.hosted.registry.storage.s3.cloudfront.privatekeyfile }}
  79. keypairid: {{ openshift.hosted.registry.storage.s3.cloudfront.keypairid }}
  80. {% elif openshift.common.version_gte_3_3_or_1_3 | bool %}
  81. storage:
  82. - name: openshift
  83. {% endif -%}