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: template config files
18 src: "main/{{ item }}"
19 dest: "/etc/swift/main/{{ item }}"
20 owner: "{{ caas.uid.swift }}"
21 group: "{{ caas.uid.swift }}"
25 - container-server.conf
34 - name: Copy swift daemonset yaml
36 src: main/swift_main.yml
37 dest: "{{ caas.manifests_directory }}/swift_main.yml"
39 - name: Copy swift service yaml
41 src: main/swift_service.yml
42 dest: "{{ caas.manifests_directory }}/swift_service.yml"
44 - name: create Swift daemonset object
46 manifest: "{{ caas.manifests_directory }}/swift_main.yml"
48 when: ( nodename | search("caas_master1") )
50 - name: Create Swift service
52 manifest: "{{ caas.manifests_directory }}/swift_service.yml"
54 when: ( nodename | search("caas_master1") )
56 - name: wait for swift service to start
58 host: "{{ caas.swift_url }}"
59 port: "{{ caas.swift_port }}"