Commit c9a0b07c authored by Thomas Goirand's avatar Thomas Goirand

Fix-up reserved_host_memory_mb on compute nodes.

parent c85e8582
......@@ -139,6 +139,12 @@ class oci::compute(
cafile => '/etc/ssl/certs/oci-pki-oci-ca-chain.pem',
}
if ($::memorysize_mb < 16000) {
$reserved_host_memory_mb = 1024
}else{
$reserved_host_memory_mb = 8192
}
nova_config {
'placement/cafile': value => '/etc/ssl/certs/oci-pki-oci-ca-chain.pem';
'placement/auth_url': value => $keystone_admin_uri;
......@@ -171,8 +177,11 @@ class oci::compute(
keymgr_api_class => 'castellan.key_manager.barbican_key_manager.BarbicanKeyManager',
barbican_auth_endpoint => "${base_url}/identity/v3",
barbican_endpoint => "${base_url}/keymanager",
keymgr_backend => 'castellan.key_manager.barbican_key_manager.BarbicanKeyManager',
resume_guests_state_on_host_boot => true,
allow_resize_to_same_host => true,
reserved_host_memory => $reserved_host_memory_mb,
# resize_confirm_window => 60,
}
class { '::nova::compute::libvirt':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment