Add additional configuration to group_vars

Also include defaults and the new pvc_vm_shutdown_timeout option.
This commit is contained in:
2020-08-20 21:39:44 -04:00
parent 1e8579ed9a
commit e32dfe6200
3 changed files with 45 additions and 16 deletions

View File

@ -1,4 +1,23 @@
---
# Logging configuration (uncomment to override defaults)
pvc_log_to_file: False
pvc_log_to_stdout: True
pvc_log_colours: True
pvc_log_dates: False
pvc_log_keepalives: True
pvc_log_keepalive_cluster_details: True
pvc_log_keepalive_storage_details: True
pvc_log_console_lines: 1000
# Timing and fencing configuration (uncomment to override defaults)
pvc_vm_shutdown_timeout: 180 # Number of seconds before a 'shutdown' VM is forced off
pvc_keepalive_interval: 5 # Number of seconds between keepalive ticks
pvc_fence_intervals: 6 # Number of keepalive ticks before a node is considered dead
pvc_suicide_intervals: 0 # Number of keepalive ticks before a node consideres itself dead (0 to disable)
pvc_fence_successful_action: migrate # What to do with VMs when a fence is successful (migrate, None)
pvc_fence_failed_action: None # What to do with VMs when a fence is failed (migrate, None) - migrate is DANGEROUS without pvc_suicide_intervals set to < pvc_fence_intervals
pvc_fence_migrate_target_selector: mem # The selector to use for migrating VMs after a fence
# Ceph storage
ceph_storage_secret_key: ""
ceph_storage_secret_uuid: ""

View File

@ -46,13 +46,14 @@ pvc:
pass: {{ pvc_prov_database_password }}
system:
intervals:
keepalive_interval: 5
fence_intervals: 6
suicide_intervals: 0
vm_shutdown_timeout: {{ pvc_vm_shutdown_timeout }}
keepalive_interval: {{ pvc_keepalive_interval }}
fence_intervals: {{ pvc_fence_intervals }}
suicide_intervals: {{ pvc_suicide_intervals }}
fencing:
actions:
successful_fence: migrate
failed_fence: None
successful_fence: {{ pvc_fence_successful_action }}
failed_fence: {{ pvc_fence_failed_action }}
ipmi:
host: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.ipmi_host }}{% endfor %}
@ -61,7 +62,7 @@ pvc:
pass: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.ipmi_password }}{% endfor %}
migration:
target_selector: mem
target_selector: {{ pvc_fence_migrate_target_selector }}
configuration:
directories:
dynamic_directory: "/run/pvc"