Add additional API configuration
This commit is contained in:
parent
a37f511241
commit
93f44dd9dc
|
@ -30,6 +30,9 @@ pvc_ceph_storage_secret_uuid: "" # Use uuidgen to generate
|
|||
pvc_dns_database_name: "pvcdns"
|
||||
pvc_dns_database_user: "pvcdns"
|
||||
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_password: "" # Use pwgen to generate
|
||||
pvc_superuser_database_user: "postgres"
|
||||
|
|
|
@ -6,6 +6,9 @@ ceph_storage_secret_uuid: ""
|
|||
pvc_dns_database_name: "pvcdns"
|
||||
pvc_dns_database_user: "pvcdns"
|
||||
pvc_dns_database_password: "PVCdnsPassw0rd"
|
||||
pvc_prov_database_name: "pvcprov"
|
||||
pvc_prov_database_user: "pvcprov"
|
||||
pvc_prov_database_password: "PVCprovPassw0rd"
|
||||
# Coordinators
|
||||
pvc_nodes:
|
||||
- hostname: "pvc1"
|
||||
|
|
|
@ -33,3 +33,40 @@ pvc:
|
|||
cert_file: "/etc/pvc/api-cert.pem"
|
||||
# key_file: SSL certificate key file
|
||||
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 }}
|
||||
|
|
|
@ -34,9 +34,9 @@ pvc:
|
|||
database:
|
||||
host: localhost
|
||||
port: 5432
|
||||
name: pvcdns
|
||||
user: pvcdns
|
||||
pass: PVCdnsPassw0rd
|
||||
name: {{ pvc_dns_database_name }}
|
||||
user: {{ pvc_dns_database_user }}
|
||||
pass: {{ pvc_dns_database_password }}
|
||||
system:
|
||||
intervals:
|
||||
keepalive_interval: 5
|
||||
|
|
Loading…
Reference in New Issue