Initial commit
[ta/infra-ansible.git] / roles / partfs_rootdisk / defaults / main.yml
diff --git a/roles/partfs_rootdisk/defaults/main.yml b/roles/partfs_rootdisk/defaults/main.yml
new file mode 100644 (file)
index 0000000..210e0cd
--- /dev/null
@@ -0,0 +1,30 @@
+---
+
+# 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.
+
+
+## Verbosity Options
+debug: False
+root_disk: "{{ by_path_disks['os'] }}"
+all_disk_size_for_volume_group_vg: "1"
+
+first_part_size: 50
+second_part_percentage: "{{ rootdisk_vg_percentage }}"
+root_disk_left_size: "{{ root_disk_total_size.stdout | int - first_part_size | int }}"
+second_part_size: "{{ root_disk_left_size | float * second_part_percentage | float  }}"
+
+second_part_start: "{{ first_part_size }}"
+second_part_end: "{{first_part_size | int + second_part_size | int }}"
+third_part_start: "{{ second_part_end }}"