4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
16 - name: create dir for client key files for registry access
18 path: "/etc/docker/certs.d/{{ caas.registry_url }}:{{ caas.registry_port }}"
21 - name: symlink client key files for registry access
23 src: "/etc/docker-registry/{{ item.src }}"
24 dest: "/etc/docker/certs.d/{{ caas.registry_url }}:{{ caas.registry_port }}/{{ item.dest }}"
28 - { src: "registry{{ nodeindex }}-key.pem", dest: "client.key" }
29 - { src: "registry{{ nodeindex }}.pem", dest: "client.cert" }
30 - { src: "ca.pem", dest: "ca.crt" }
32 - name: create dir for client key files for update_registry access
34 path: "/etc/docker/certs.d/{{ caas.update_registry_url }}:{{ caas.update_registry_port }}"
37 - name: symlink client key files for update_registry access
39 src: "/etc/docker-update-registry//{{ item.src }}"
40 dest: "/etc/docker/certs.d/{{ caas.update_registry_url }}:{{ caas.update_registry_port }}/{{ item.dest }}"
44 - { src: "update-registry-key.pem", dest: "client.key" }
45 - { src: "update-registry.pem", dest: "client.cert" }
46 - { src: "ca.pem", dest: "ca.crt" }