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