pvc-ansible/roles/pvc/templates/pvc/pvcapid.yaml.j2

81 lines
3.6 KiB
Plaintext
Raw Normal View History

2019-07-06 02:49:25 -04:00
---
# pvcapid configuration
2019-07-06 02:49:25 -04:00
# {{ ansible_managed }}
pvc:
2019-07-26 11:44:08 -04:00
debug: False
2019-07-06 02:49:25 -04:00
coordinators:
{% for node in pvc_nodes if node.is_coordinator %}
2020-04-06 13:53:05 -04:00
- {{ node.hostname.split('.')[0] }}
2019-07-06 02:49:25 -04:00
{% endfor %}
# api: Configuration of the API listener
2019-07-06 02:49:25 -04:00
api:
# listen_address: IP address(es) to listen on; use 0.0.0.0 for all interfaces
2019-07-06 02:49:25 -04:00
listen_address: "{{ pvc_api_listen_address }}"
# listen_port: TCP port to listen on, usually 7370
2019-07-06 02:49:25 -04:00
listen_port: "{{ pvc_api_listen_port }}"
# authentication: Authentication and security settings
2019-07-06 02:49:25 -04:00
authentication:
# enabled: Enable or disable authentication (True/False)
enabled: {{ pvc_api_enable_authentication }}
# secret_key: Per-cluster secret key for API cookies; generate with uuidgen or pwgen
secret_key: "{{ pvc_api_secret_key }}"
# tokens: a list of authentication tokens; leave as an empty list to disable authentication
tokens:
{% for token in pvc_api_tokens %}
2019-07-08 19:24:59 -04:00
- description: "{{ token.description }}"
token: "{{ token.token }}"
{% endfor %}
# ssl: SSL configuration
ssl:
# enabled: Enabled or disable SSL operation (True/False)
enabled: {{ pvc_api_enable_ssl }}
# cert_file: SSL certificate file
{% if pvc_api_ssl_cert_path is defined and pvc_api_ssl_cert_path %}
cert_file: "{{ pvc_api_ssl_cert_path }}"
{% else %}
cert_file: "/etc/pvc/api-cert.pem"
{% endif %}
# key_file: SSL certificate key file
{% if pvc_api_ssl_key_path is defined and pvc_api_ssl_key_path %}
key_file: "{{ pvc_api_ssl_key_path }}"
{% else %}
key_file: "/etc/pvc/api-key.pem"
{% endif %}
2019-12-23 23:25:27 -05:00
# 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 'pvcapi'
name: {{ pvc_api_database_name }}
# user: PostgreSQL username, invariable 'pvcapi'
user: {{ pvc_api_database_user }}
2019-12-23 23:25:27 -05:00
# pass: PostgreSQL user password, randomly generated
pass: {{ pvc_api_database_password }}
2019-12-23 23:25:27 -05:00
# 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 %}
2020-04-06 13:53:05 -04:00
- {{ node.hostname.split('.')[0] }}
2019-12-23 23:25:27 -05:00
{% 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 }}