2019-06-09 00:11:06 -04:00
|
|
|
---
|
2020-02-08 19:26:51 -05:00
|
|
|
# pvcnoded configuration
|
2019-06-09 00:11:06 -04:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
pvc:
|
2020-04-06 13:53:05 -04:00
|
|
|
node: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.hostname.split('.')[0] }}{% endfor %}
|
2019-06-09 00:11:06 -04:00
|
|
|
|
2019-08-01 13:21:12 -04:00
|
|
|
debug: False
|
2019-06-09 00:11:06 -04:00
|
|
|
functions:
|
|
|
|
enable_hypervisor: True
|
|
|
|
enable_networking: True
|
2019-06-18 11:12:18 -04:00
|
|
|
enable_storage: True
|
2019-07-06 02:50:05 -04:00
|
|
|
enable_api: True
|
2019-06-09 00:11:06 -04:00
|
|
|
cluster:
|
|
|
|
coordinators:
|
|
|
|
{% for node in pvc_nodes if node.is_coordinator %}
|
2020-04-06 13:53:05 -04:00
|
|
|
- {{ node.hostname.split('.')[0] }}
|
2019-06-09 00:11:06 -04:00
|
|
|
{% endfor %}
|
|
|
|
networks:
|
2019-12-25 13:31:02 -05:00
|
|
|
upstream:
|
|
|
|
domain: {{ pvc_upstream_domain }}
|
|
|
|
network: {{ pvc_upstream_subnet }}/{{ pvc_upstream_netmask }}
|
|
|
|
floating_ip: {{ pvc_upstream_floatingip }}/{{ pvc_upstream_netmask }}
|
|
|
|
gateway: {{ pvc_upstream_gatewayip }}
|
2019-06-09 00:11:06 -04:00
|
|
|
cluster:
|
|
|
|
domain: {{ pvc_cluster_domain }}
|
2019-12-24 14:15:14 -05:00
|
|
|
network: {{ pvc_cluster_subnet }}/{{ pvc_cluster_netmask }}
|
|
|
|
floating_ip: {{ pvc_cluster_floatingip }}/{{ pvc_cluster_netmask }}
|
2019-06-09 00:11:06 -04:00
|
|
|
storage:
|
|
|
|
domain: {{ pvc_storage_domain }}
|
2019-12-24 14:15:14 -05:00
|
|
|
network: {{ pvc_storage_subnet }}/{{ pvc_storage_netmask }}
|
|
|
|
floating_ip: {{ pvc_storage_floatingip }}/{{ pvc_storage_netmask }}
|
2019-06-09 00:11:06 -04:00
|
|
|
coordinator:
|
|
|
|
dns:
|
|
|
|
database:
|
|
|
|
host: localhost
|
|
|
|
port: 5432
|
2019-12-23 23:25:27 -05:00
|
|
|
name: {{ pvc_dns_database_name }}
|
|
|
|
user: {{ pvc_dns_database_user }}
|
|
|
|
pass: {{ pvc_dns_database_password }}
|
2019-12-25 12:37:32 -05:00
|
|
|
metadata:
|
|
|
|
database:
|
|
|
|
host: localhost
|
|
|
|
port: 5432
|
|
|
|
name: {{ pvc_prov_database_name }}
|
|
|
|
user: {{ pvc_prov_database_user }}
|
|
|
|
pass: {{ pvc_prov_database_password }}
|
2019-06-09 00:11:06 -04:00
|
|
|
system:
|
2019-08-01 13:21:12 -04:00
|
|
|
intervals:
|
|
|
|
keepalive_interval: 5
|
|
|
|
fence_intervals: 6
|
|
|
|
suicide_intervals: 0
|
2019-06-09 00:11:06 -04:00
|
|
|
fencing:
|
|
|
|
actions:
|
|
|
|
successful_fence: migrate
|
|
|
|
failed_fence: None
|
|
|
|
ipmi:
|
2020-04-06 12:36:35 -04:00
|
|
|
host: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.ipmi_host }}{% endfor %}
|
2019-06-09 00:11:06 -04:00
|
|
|
|
2020-04-06 12:36:35 -04:00
|
|
|
user: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.ipmi_user }}{% endfor %}
|
2019-06-09 00:11:06 -04:00
|
|
|
|
2020-04-06 12:36:35 -04:00
|
|
|
pass: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.ipmi_password }}{% endfor %}
|
2019-06-09 00:11:06 -04:00
|
|
|
|
|
|
|
migration:
|
|
|
|
target_selector: mem
|
|
|
|
configuration:
|
|
|
|
directories:
|
|
|
|
dynamic_directory: "/run/pvc"
|
|
|
|
log_directory: "/var/log/pvc"
|
|
|
|
console_log_directory: "/var/log/libvirt"
|
|
|
|
logging:
|
2019-06-18 12:51:08 -04:00
|
|
|
file_logging: {{ pvc_log_to_file }}
|
|
|
|
stdout_logging: {{ pvc_log_to_stdout }}
|
2019-07-10 21:49:38 -04:00
|
|
|
log_colours: {{ pvc_log_colours }}
|
|
|
|
log_dates: {{ pvc_log_dates }}
|
2019-06-18 12:51:08 -04:00
|
|
|
log_keepalives: {{ pvc_log_keepalives }}
|
2019-06-18 19:56:46 -04:00
|
|
|
log_keepalive_cluster_details: {{ pvc_log_keepalive_cluster_details }}
|
|
|
|
log_keepalive_storage_details: {{ pvc_log_keepalive_storage_details }}
|
2019-06-18 12:51:08 -04:00
|
|
|
console_log_lines: {{ pvc_log_console_lines }}
|
2019-06-09 00:11:06 -04:00
|
|
|
networking:
|
2020-01-06 14:35:25 -05:00
|
|
|
bridge_device: {{ pvc_bridge_device }}
|
2019-12-25 13:31:02 -05:00
|
|
|
upstream:
|
|
|
|
device: {{ pvc_upstream_device }}
|
|
|
|
mtu: {{ pvc_upstream_mtu }}
|
2020-04-06 12:36:35 -04:00
|
|
|
address: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.upstream_ip }}/{{ pvc_upstream_netmask }}{% endfor %}
|
2019-12-25 13:31:02 -05:00
|
|
|
|
2019-06-17 23:46:35 -04:00
|
|
|
cluster:
|
|
|
|
device: {{ pvc_cluster_device }}
|
|
|
|
mtu: {{ pvc_cluster_mtu }}
|
2020-04-06 12:36:35 -04:00
|
|
|
address: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.cluster_ip }}/{{ pvc_cluster_netmask }}{% endfor %}
|
2019-06-09 00:11:06 -04:00
|
|
|
|
2019-06-17 23:46:35 -04:00
|
|
|
storage:
|
|
|
|
device: {{ pvc_storage_device }}
|
|
|
|
mtu: {{ pvc_storage_mtu }}
|
2020-04-06 12:36:35 -04:00
|
|
|
address: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.storage_ip }}/{{ pvc_storage_netmask }}{% endfor %}
|
2019-06-11 16:37:44 -04:00
|
|
|
|
2020-06-06 21:14:53 -04:00
|
|
|
storage:
|
|
|
|
ceph_config_file: "/etc/ceph/ceph.conf"
|
|
|
|
ceph_admin_keyring: "/etc/ceph/ceph.client.admin.keyring"
|