Added seed code for caas-registry.
[ta/caas-registry.git] / ansible / roles / registry / templates / main / dockerreg.yml
diff --git a/ansible/roles/registry/templates/main/dockerreg.yml b/ansible/roles/registry/templates/main/dockerreg.yml
new file mode 100644 (file)
index 0000000..bd7e49b
--- /dev/null
@@ -0,0 +1,36 @@
+{#
+Copyright 2019 Nokia
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+#}
+---
+version: 0.1
+storage:
+  cache:
+    blobdescriptor: inmemory
+  delete:
+    enabled: true
+  swift:
+    username: admin:registry
+    password: {{ swift_registry_pass }}
+    authurl: {{ caas.swift }}/auth/v1.0
+    container: dockerregistry
+http:
+  secret: 5f0fa8b7a739
+  tls:
+    certificate: /etc/docker-registry/registry{{ nodeindex }}.pem
+    key:         /etc/docker-registry/registry{{ nodeindex }}-key.pem
+    clientcas:
+    - /etc/docker-registry/ca.pem
+log:
+  level: warn