Add additional API configuration

This commit is contained in:
Joshua Boniface 2019-12-23 23:25:27 -05:00
parent a37f511241
commit 93f44dd9dc
4 changed files with 46 additions and 3 deletions

View File

@ -30,6 +30,9 @@ pvc_ceph_storage_secret_uuid: "" # Use uuidgen to generate
pvc_dns_database_name: "pvcdns" pvc_dns_database_name: "pvcdns"
pvc_dns_database_user: "pvcdns" pvc_dns_database_user: "pvcdns"
pvc_dns_database_password: "" # Use pwgen to generate pvc_dns_database_password: "" # Use pwgen to generate
pvc_prov_database_name: "pvcprov"
pvc_prov_database_user: "pvcprov"
pvc_prov_database_password: "" # Use pwgen to generate
pvc_replication_database_user: "replicator" pvc_replication_database_user: "replicator"
pvc_replication_database_password: "" # Use pwgen to generate pvc_replication_database_password: "" # Use pwgen to generate
pvc_superuser_database_user: "postgres" pvc_superuser_database_user: "postgres"

View File

@ -6,6 +6,9 @@ ceph_storage_secret_uuid: ""
pvc_dns_database_name: "pvcdns" pvc_dns_database_name: "pvcdns"
pvc_dns_database_user: "pvcdns" pvc_dns_database_user: "pvcdns"
pvc_dns_database_password: "PVCdnsPassw0rd" pvc_dns_database_password: "PVCdnsPassw0rd"
pvc_prov_database_name: "pvcprov"
pvc_prov_database_user: "pvcprov"
pvc_prov_database_password: "PVCprovPassw0rd"
# Coordinators # Coordinators
pvc_nodes: pvc_nodes:
- hostname: "pvc1" - hostname: "pvc1"

View File

@ -33,3 +33,40 @@ pvc:
cert_file: "/etc/pvc/api-cert.pem" cert_file: "/etc/pvc/api-cert.pem"
# key_file: SSL certificate key file # key_file: SSL certificate key file
key_file: "/etc/pvc/api-key.pem" key_file: "/etc/pvc/api-key.pem"
# provisioner: Configuration of the Provisioner API listener
provisioner:
# database: Backend database configuration
database:
# host: PostgreSQL hostname, usually 'localhost'
host: localhost
# port: PostgreSQL port, invariably '5432'
port: 5432
# name: PostgreSQL database name, invariably 'pvcprov'
name: {{ pvc_prov_database_name }}
# user: PostgreSQL username, invariable 'pvcprov'
user: {{ pvc_prov_database_user }}
# pass: PostgreSQL user password, randomly generated
pass: {{ pvc_prov_database_password }}
# queue: Celery backend queue using the PVC Zookeeper cluster
queue:
# host: Redis hostname, usually 'localhost'
host: localhost
# port: Redis port, invariably '6279'
port: 6379
# path: Redis queue path, invariably '/0'
path: /0
# ceph_cluster: Information about the Ceph storage cluster
ceph_cluster:
# storage_hosts: The list of hosts that the Ceph monitors are valid on; if empty (the default),
# uses the list of coordinators
storage_hosts:
{% for node in pvc_nodes if node.is_coordinator %}
- {{ node.hostname }}
{% endfor %}
# storage_domain: The storage domain name, concatenated with the coordinators list names
# to form monitor access strings
storage_domain: {{ pvc_storage_domain }}
# ceph_monitor_port: The port that the Ceph monitor on each coordinator listens on
ceph_monitor_port: 6789
# ceph_storage_secret_uuid: Libvirt secret UUID for Ceph storage access
ceph_storage_secret_uuid: {{ pvc_ceph_storage_secret_uuid }}

View File

@ -34,9 +34,9 @@ pvc:
database: database:
host: localhost host: localhost
port: 5432 port: 5432
name: pvcdns name: {{ pvc_dns_database_name }}
user: pvcdns user: {{ pvc_dns_database_user }}
pass: PVCdnsPassw0rd pass: {{ pvc_dns_database_password }}
system: system:
intervals: intervals:
keepalive_interval: 5 keepalive_interval: 5