@@ -78,30 +78,30 @@ local: &local
7878s3 : &s3
7979 << : *common
8080 storage : s3
81- s3_region : {{ if exists "/deis/registry/s3region" }}{{ getv "/deis/registry/s3region" }}{{ else }}"" {{ end }}
82- s3_bucket : {{ if exists "/deis/registry/s3bucket" }}{{ getv "/deis/registry/s3bucket" }}{{ else }}"" {{ end }}
83- boto_bucket : {{ if exists "/deis/registry/s3bucket" }}{{ getv "/deis/registry/s3bucket" }}{{ else }}"" {{ end }}
81+ s3_region : {{ if exists "/deis/registry/s3region" }}{{ getv "/deis/registry/s3region" }}{{ else }}~ {{ end }}
82+ s3_bucket : {{ if exists "/deis/registry/s3bucket" }}{{ getv "/deis/registry/s3bucket" }}{{ else }}~ {{ end }}
83+ boto_bucket : {{ if exists "/deis/registry/s3bucket" }}{{ getv "/deis/registry/s3bucket" }}{{ else }}~ {{ end }}
8484 storage_path : {{ if exists "/deis/registry/s3path" }}{{ getv "/deis/registry/s3path" }}{{ else }}"/registry"{{ end }}
8585 s3_encrypt : bool({{ if exists "/deis/registry/s3encrypt" }}{{ getv "/deis/registry/s3encrypt" }}{{ else }}"true"{{ end }})
8686 s3_secure : bool({{ if exists "/deis/registry/s3secure" }}{{ getv "/deis/registry/s3secure" }}{{ else }}"true"{{ end }})
87- s3_access_key : {{ if exists "/deis/registry/s3accessKey" }}{{ getv "/deis/registry/s3accessKey" }}{{ else }}"" {{ end }}
88- s3_secret_key : {{ if exists "/deis/registry/s3secretKey" }}{{ getv "/deis/registry/s3secretKey" }}{{ else }}"" {{ end }}
87+ s3_access_key : {{ if exists "/deis/registry/s3accessKey" }}{{ getv "/deis/registry/s3accessKey" }}{{ else }}~ {{ end }}
88+ s3_secret_key : {{ if exists "/deis/registry/s3secretKey" }}{{ getv "/deis/registry/s3secretKey" }}{{ else }}~ {{ end }}
8989
9090# Ceph Object Gateway Configuration
9191# See http://ceph.com/docs/master/radosgw/ for details on installing this service.
9292ceph-s3 : &ceph-s3
9393 << : *common
9494 storage : s3
9595 s3_region : ~
96- s3_bucket : {{ getv "/deis/registry/bucketName" }}
96+ s3_bucket : {{if exists "/deis/registry/bucketName"}}{{ getv "/deis/registry/bucketName" }}{{ else }}""{{ end }}
9797 s3_encrypt : false
9898 s3_secure : false
9999 storage_path : /registry
100- s3_access_key : {{ getv "/deis/store/gateway/accessKey" }}
101- s3_secret_key : {{ getv "/deis/store/gateway/secretKey" }}
102- boto_bucket : {{ getv "/deis/registry/bucketName" }}
103- boto_host : {{ getv "/deis/store/gateway/host" }}
104- boto_port : {{ getv "/deis/store/gateway/port" }}
100+ s3_access_key : {{if exists "/deis/store/gateway/accessKey"}}{{ getv "/deis/store/gateway/accessKey" }}{{ else }}""{{ end }}
101+ s3_secret_key : {{if exists "/deis/store/gateway/secretKey"}}{{ getv "/deis/store/gateway/secretKey" }}{{ else }}""{{ end }}
102+ boto_bucket : {{if exists "/deis/registry/bucketName"}}{{ getv "/deis/registry/bucketName" }}{{ else }}""{{ end }}
103+ boto_host : {{if exists "/deis/store/gateway/host"}}{{ getv "/deis/store/gateway/host" }}{{ else }}""{{ end }}
104+ boto_port : {{if exists "/deis/store/gateway/port"}}{{ getv "/deis/store/gateway/port" }}{{ else }}""{{ end }}
105105 boto_debug : 0
106106 boto_calling_format : boto.s3.connection.OrdinaryCallingFormat
107107
@@ -194,7 +194,7 @@ prod:
194194
195195# Flavor used by deis
196196deis :
197- {{ if exists "/deis/registry/s3accessKey " }}<<: *s3
197+ {{ if exists "/deis/registry/s3bucket " }}<<: *s3
198198 {{ else if exists "/deis/registry/swiftAuthURL" }} <<: *openstack-swift
199199 {{ else }} <<: *ceph-s3
200200 {{ end }}
0 commit comments