12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- version: 0.1
- log:
- level: debug
- http:
- addr: :5000
- storage:
- delete:
- enabled: true
- cache:
- blobdescriptor: inmemory
- {% if openshift_hosted_registry_storage_provider | default('') == 's3' %}
- s3:
- {% if openshift_hosted_registry_storage_s3_accesskey is defined %}
- accesskey: {{ openshift_hosted_registry_storage_s3_accesskey }}
- {% endif %}
- {% if openshift_hosted_registry_storage_s3_secretkey is defined %}
- secretkey: {{ openshift_hosted_registry_storage_s3_secretkey }}
- {% endif %}
- region: {{ openshift_hosted_registry_storage_s3_region }}
- {% if openshift_hosted_registry_storage_s3_regionendpoint is defined %}
- regionendpoint: {{ openshift_hosted_registry_storage_s3_regionendpoint }}
- {% endif %}
- bucket: {{ openshift_hosted_registry_storage_s3_bucket }}
- encrypt: {{ openshift_hosted_registry_storage_s3_encrypt | default(false) }}
- {% if openshift_hosted_registry_storage_s3_kmskeyid is defined %}
- keyid: {{ openshift_hosted_registry_storage_s3_kmskeyid }}
- {% endif %}
- secure: true
- v4auth: true
- rootdirectory: {{ openshift_hosted_registry_storage_s3_rootdirectory | default('/registry') }}
- chunksize: "{{ openshift_hosted_registry_storage_s3_chunksize | default(26214400) }}"
- {% elif openshift_hosted_registry_storage_provider | default('') == 'azure_blob' %}
- azure:
- accountname: {{ openshift_hosted_registry_storage_azure_blob_accountname }}
- accountkey: {{ openshift_hosted_registry_storage_azure_blob_accountkey }}
- container: {{ openshift_hosted_registry_storage_azure_blob_container }}
- realm: {{ openshift_hosted_registry_storage_azure_blob_realm }}
- {% elif openshift_hosted_registry_storage_provider | default('') == 'swift' %}
- swift:
- authurl: {{ openshift_hosted_registry_storage_swift_authurl }}
- username: {{ openshift_hosted_registry_storage_swift_username }}
- password: {{ openshift_hosted_registry_storage_swift_password }}
- container: {{ openshift_hosted_registry_storage_swift_container }}
- {% if openshift_hosted_registry_storage_swift_region is defined %}
- region: {{ openshift_hosted_registry_storage_swift_region }}
- {% endif -%}
- {% if openshift_hosted_registry_storage_swift_tenant is defined %}
- tenant: {{ openshift_hosted_registry_storage_swift_tenant }}
- {% endif -%}
- {% if openshift_hosted_registry_storage_swift_tenantid is defined %}
- tenantid: {{ openshift_hosted_registry_storage_swift_tenantid }}
- {% endif -%}
- {% if openshift_hosted_registry_storage_swift_domain is defined %}
- domain: {{ openshift_hosted_registry_storage_swift_domain }}
- {% endif -%}
- {% if openshift_hosted_registry_storage_swift_domainid %}
- domainid: {{ openshift_hosted_registry_storage_swift_domainid }}
- {% endif -%}
- {% elif openshift_hosted_registry_storage_provider | default('') == 'gcs' %}
- gcs:
- bucket: {{ openshift_hosted_registry_storage_gcs_bucket }}
- {% if openshift_hosted_registry_storage_gcs_keyfile is defined %}
- keyfile: /etc/registry/gcs.json
- {% endif -%}
- {% if openshift_hosted_registry_storage_gcs_rootdirectory is defined %}
- rootdirectory: {{ openshift_hosted_registry_storage_gcs_rootdirectory }}
- {% endif -%}
- {% endif -%}
- auth:
- openshift:
- realm: openshift
- middleware:
- registry:
- - name: openshift
- repository:
- - name: openshift
- options:
- pullthrough: {{ openshift_hosted_registry_pullthrough | default(true) }}
- acceptschema2: {{ openshift_hosted_registry_acceptschema2 | default(true) }}
- enforcequota: {{ openshift_hosted_registry_enforcequota | default(false) }}
- {% if openshift_hosted_registry_storage_provider | default('') == 's3' and openshift_hosted_registry_storage_s3_cloudfront_baseurl is defined %}
- storage:
- - name: cloudfront
- options:
- baseurl: {{ openshift_hosted_registry_storage_s3_cloudfront_baseurl }}
- privatekey: /etc/origin/cloudfront.pem
- keypairid: {{ openshift_hosted_registry_storage_s3_cloudfront_keypairid }}
- {% else %}
- storage:
- - name: openshift
- {% endif -%}
|