charm-ceph-iscsi/templates/iscsi-gateway.cfg
Liam Young 0434825ea9 Add support for Ceph dashboard support
This change adds an admin-access interface to pass the admin
credentials and api endpoint details to another charm. The
dashboard charm uses this information registern the iscsi
gateways with the dashboard.

Change-Id: I5336ecab6a08e71dda22ba0347b8bee2f5683c3f
2021-09-10 11:27:17 +00:00

19 lines
517 B
INI

[config]
logger_level = DEBUG
cluster_name = ceph
cluster_client_name = client.ceph-iscsi
pool = {{ options.gateway_metadata_pool }}
gateway_keyring = ceph.client.ceph-iscsi.keyring
ceph_config_dir = /etc/ceph/iscsi
api_secure = {{ certificates.enable_tls }}
api_user = admin
api_password = {{ cluster.admin_password }}
api_port = 5000
{% if admin_access.trusted_ips -%}
trusted_ip_list = {{ cluster.trusted_ips }},{{ admin_access.trusted_ips }}
{% else -%}
trusted_ip_list = {{ cluster.trusted_ips }}
{% endif -%}