1 # Copyright (c) 2018 Huawei Technologies Co., Ltd. All Rights Reserved.
\r
3 # Licensed under the Apache License, Version 2.0 (the "License");
\r
4 # you may not use this file except in compliance with the License.
\r
5 # You may obtain a copy of the License at
\r
7 # http://www.apache.org/licenses/LICENSE-2.0
\r
9 # Unless required by applicable law or agreed to in writing, software
\r
10 # distributed under the License is distributed on an "AS IS" BASIS,
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 # See the License for the specific language governing permissions and
\r
13 # limitations under the License.
\r
16 - name: include scenarios/lvm.yml
\r
17 include: scenarios/lvm.yml
\r
18 when: enabled_backend == "lvm"
\r
20 - name: include scenarios/ceph.yml
\r
21 include: scenarios/ceph.yml
\r
22 when: enabled_backend == "ceph"
\r
24 - name: include scenarios/cinder.yml
\r
25 include: scenarios/cinder.yml
\r
26 when: enabled_backend == "cinder" and use_cinder_standalone == false
\r
28 - name: include scenarios/cinder_standalone.yml
\r
29 include: scenarios/cinder_standalone.yml
\r
30 when: enabled_backend == "cinder" and use_cinder_standalone == true
\r
32 - name: run osdsdock daemon service
\r
40 nohup bin/osdsdock > osdsdock.out 2> osdsdock.err < /dev/null &
\r
42 ps aux | grep osdsdock | grep -v grep && break
\r
45 chdir: "{{ opensds_work_dir }}"
\r
46 when: container_enabled == false
\r
48 - name: run osdsdock containerized service
\r
51 image: opensdsio/opensds-dock:latest
\r
56 - "/etc/opensds/:/etc/opensds"
\r
57 - "/etc/ceph/:/etc/ceph"
\r
58 when: container_enabled == true
\r