1 # cmframework.requires:os-nova-install.yml
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 - hosts: baremetal-nodes
26 disks: "{{ bare_lvm.disks }}"
27 creates_file: "/etc/storage/bare_lvm_disks_cleaned"
28 when: bare_lvm is defined
30 - name: create /etc/storage/bare_lvm_disks_cleaned
31 command: "touch /etc/storage/bare_lvm_disks_cleaned"
33 creates: /etc/storage/bare_lvm_disks_cleaned
34 when: bare_lvm is defined
36 - name: Create bare LVM backend
37 hosts: baremetal-nodes
45 - name: initialize storage percentage
47 bare_lvm_storage_percent: "{{ 100 - instance_lv_percentage|default(0) }}"
51 - include_tasks: make_instance_disk_partitions.yml
53 instance_disks: "{{ bare_lvm.disks }}"
58 - include_tasks: prepare_lvm_backend.yml
60 instance_physical_volumes: "{{ bare_lvm.physical_volumes }}"
61 lv_percentage: "{{ bare_lvm_storage_percent }}"
63 lvname: '{{ bare_lvm.name }}'
65 mountdir: '{{ bare_lvm.mount_dir }}'
66 mountpoint: '{{ bare_lvm.mount_dir }}'
67 mountoptions: '{{ bare_lvm.mount_options }}'