Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6746b73b authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[gen/kadeploy] generate partitions size in kadeploy config

parent a9fd3f4b
No related tags found
1 merge request!413Draft: [gen/kadeploy] generate partitions size in kadeploy config
Pipeline #631049 passed
......@@ -16,6 +16,11 @@ partitioning:
<%- cluster['nodes'].to_a.sort_by(&:first)[0][1]['storage_devices'].reject{|disk| disk['reservation']}.each do |disk| -%>
<%= disk['id'] %>: <%= disk['by_path'] %>
<%- end -%>
partitions_size:
<%- disk_size = cluster['nodes'].to_a.sort_by(&:first)[0][1]['storage_devices'].select{|x| x['id'] == 'disk0'}.first['size'] -%>
DEPLOY: 34000076800
PROD: 31000100864
TMP: <%= disk_size - 70000795648 %>
trusted_deployment:
partition: disk0/PROD
user: oar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment