2023-09-01 15:42:20 -04:00
|
|
|
---
|
2023-09-01 15:42:21 -04:00
|
|
|
# Logging configuration
|
2023-09-01 15:42:21 -04:00
|
|
|
pvc_log_to_file: True
|
|
|
|
pvc_log_to_stdout: True
|
|
|
|
pvc_log_keepalives: True
|
|
|
|
pvc_log_keepalive_cluster_details: True
|
|
|
|
pvc_log_keepalive_storage_details: True
|
|
|
|
pvc_log_console_lines: 1000
|
|
|
|
|
2023-09-01 15:42:21 -04:00
|
|
|
# Client API configuration
|
2023-09-01 15:42:21 -04:00
|
|
|
pvc_api_listen_address: "0.0.0.0"
|
|
|
|
pvc_api_listen_port: "7370"
|
2023-09-01 15:42:21 -04:00
|
|
|
pvc_api_enable_authentication: False
|
|
|
|
pvc_api_secret_key: ""
|
|
|
|
pvc_api_tokens:
|
|
|
|
- description: "myuser"
|
|
|
|
token: ""
|
|
|
|
pvc_api_enable_ssl: False
|
|
|
|
pvc_api_ssl_cert: >
|
|
|
|
# A RAW CERTIFICATE FILE, installed to /etc/pvc/api-cert.pem
|
|
|
|
pvc_api_ssl_key: >
|
|
|
|
# A RAW KEY FILE, installed to /etc/pvc/api-key.pem
|
2023-09-01 15:42:21 -04:00
|
|
|
|
2023-09-01 15:42:21 -04:00
|
|
|
# Ceph storage configuration
|
2023-09-01 15:42:20 -04:00
|
|
|
pvc_ceph_storage_secret_uuid: "" # Use uuidgen to generate
|
2023-09-01 15:42:21 -04:00
|
|
|
|
2023-09-01 15:42:21 -04:00
|
|
|
# Database configuration
|
2023-09-01 15:42:20 -04:00
|
|
|
pvc_dns_database_name: "pvcdns"
|
|
|
|
pvc_dns_database_user: "pvcdns"
|
|
|
|
pvc_dns_database_password: "" # Use pwgen to generate
|
|
|
|
pvc_replication_database_user: "replicator"
|
|
|
|
pvc_replication_database_password: "" # Use pwgen to generate
|
|
|
|
pvc_superuser_database_user: "postgres"
|
|
|
|
pvc_superuser_database_password: "" # Use pwgen to generate
|
2023-09-01 15:42:21 -04:00
|
|
|
|
|
|
|
# Network routing configuration
|
|
|
|
# > The ASN should be a private ASN number.
|
|
|
|
# > The list of routers are those which will learn routes to the PVC client networks via BGP;
|
|
|
|
# they should speak BGP and allow sessions from the PVC nodes.
|
|
|
|
pvc_asn: "65500"
|
|
|
|
pvc_routers:
|
|
|
|
- "192.168.100.1"
|
|
|
|
|
|
|
|
# Node list
|
|
|
|
# > Every node configured with this playbook must be specified in this list.
|
2023-09-01 15:42:20 -04:00
|
|
|
pvc_nodes:
|
|
|
|
- hostname: "pvchv1"
|
|
|
|
is_coordinator: yes
|
|
|
|
node_id: 1
|
|
|
|
router_id: "192.168.100.11"
|
|
|
|
upstream_ip: "192.168.100.11"
|
|
|
|
upstream_cidr: 24
|
|
|
|
cluster_ip: "10.0.0.1"
|
|
|
|
cluster_cidr: 24
|
|
|
|
storage_ip: "10.0.1.1"
|
|
|
|
storage_cidr: 24
|
|
|
|
ipmi_host: "pvchv1-lom.{{ local_domain }}"
|
|
|
|
ipmi_user: "{{ username_ipmi_host }}"
|
|
|
|
ipmi_password: "{{ passwd_ipmi_host }}"
|
|
|
|
- hostname: "pvchv2"
|
|
|
|
is_coordinator: yes
|
|
|
|
node_id: 2
|
|
|
|
router_id: "192.168.100.12"
|
|
|
|
upstream_ip: "192.168.100.12"
|
|
|
|
upstream_cidr: 24
|
|
|
|
cluster_ip: "10.0.0.2"
|
|
|
|
cluster_cidr: 24
|
|
|
|
storage_ip: "10.0.1.2"
|
|
|
|
storage_cidr: 24
|
|
|
|
ipmi_host: "pvchv2-lom.{{ local_domain }}"
|
|
|
|
ipmi_user: "{{ username_ipmi_host }}"
|
|
|
|
ipmi_password: "{{ passwd_ipmi_host }}"
|
|
|
|
- hostname: "pvchv3"
|
|
|
|
is_coordinator: yes
|
|
|
|
node_id: 3
|
|
|
|
router_id: "192.168.100.13"
|
|
|
|
upstream_ip: "192.168.100.13"
|
|
|
|
upstream_cidr: 24
|
|
|
|
cluster_ip: "10.0.0.3"
|
|
|
|
cluster_cidr: 24
|
|
|
|
storage_ip: "10.0.1.3"
|
|
|
|
storage_cidr: 24
|
|
|
|
ipmi_host: "pvchv3-lom.{{ local_domain }}"
|
|
|
|
ipmi_user: "{{ username_ipmi_host }}"
|
|
|
|
ipmi_password: "{{ passwd_ipmi_host }}"
|
2023-09-01 15:42:21 -04:00
|
|
|
|
|
|
|
# Configuration file networks
|
|
|
|
# > Taken from base.yml's configuration; do not modify this section.
|
|
|
|
pvc_upstream_device: "{{ networks['upstream']['device'] }}"
|
|
|
|
pvc_upstream_mtu: "{{ networks['upstream']['mtu'] }}"
|
|
|
|
pvc_upstream_domain: "{{ networks['upstream']['domain'] }}"
|
|
|
|
pvc_upstream_subnet: "{{ networks['upstream']['subnet'] }}"
|
|
|
|
pvc_upstream_floatingip: "{{ networks['upstream']['floating_ip'] }}"
|
|
|
|
pvc_upstream_gatewayip: "{{ networks['upstream']['gateway_ip'] }}"
|
|
|
|
pvc_cluster_device: "{{ networks['cluster']['device'] }}"
|
|
|
|
pvc_cluster_mtu: "{{ networks['cluster']['mtu'] }}"
|
|
|
|
pvc_cluster_domain: "{{ networks['cluster']['domain'] }}"
|
|
|
|
pvc_cluster_subnet: "{{ networks['cluster']['subnet'] }}"
|
|
|
|
pvc_cluster_floatingip: "{{ networks['cluster']['floating_ip'] }}"
|
|
|
|
pvc_storage_device: "{{ networks['storage']['device'] }}"
|
|
|
|
pvc_storage_mtu: "{{ networks['storage']['mtu'] }}"
|
|
|
|
pvc_storage_domain: "{{ networks['storage']['domain'] }}"
|
|
|
|
pvc_storage_subnet: "{{ networks['storage']['subnet'] }}"
|
|
|
|
pvc_storage_floatingip: "{{ networks['storage']['floating_ip'] }}"
|