This structure is supposed to be enough information to
start the services.
"""
- KNOWN_SERVICE_TYPES = 'alertmanager crash grafana iscsi nvmeof loki promtail mds mgr mon nfs ' \
- 'node-exporter osd prometheus rbd-mirror rgw agent ceph-exporter ' \
- 'container ingress cephfs-mirror snmp-gateway jaeger-tracing ' \
- 'elasticsearch jaeger-agent jaeger-collector jaeger-query ' \
- 'node-proxy'.split()
- REQUIRES_SERVICE_ID = 'iscsi nvmeof mds nfs rgw container ingress '.split()
+
+ # list of all service type names that a ServiceSpec can be cast info
+ KNOWN_SERVICE_TYPES = [
+ 'agent',
+ 'alertmanager',
+ 'ceph-exporter',
+ 'cephfs-mirror',
+ 'container',
+ 'crash',
+ 'elasticsearch',
+ 'grafana',
+ 'ingress',
+ 'iscsi',
+ 'jaeger-agent',
+ 'jaeger-collector',
+ 'jaeger-query',
+ 'jaeger-tracing',
+ 'loki',
+ 'mds',
+ 'mgr',
+ 'mon',
+ 'nfs',
+ 'node-exporter',
+ 'node-proxy',
+ 'nvmeof',
+ 'osd',
+ 'prometheus',
+ 'promtail',
+ 'rbd-mirror',
+ 'rgw',
+ 'snmp-gateway',
+ ]
+
+ # list of all service type names that require/get assigned a service_id value.
+ # if a service is not listed here it *will not* be assigned a service_id even
+ # if it is present in the JSON/YAML input
+ REQUIRES_SERVICE_ID = [
+ 'container',
+ 'ingress',
+ 'iscsi',
+ 'mds',
+ 'nfs',
+ 'nvmeof',
+ 'rgw',
+ ]
+
MANAGED_CONFIG_OPTIONS = [
'mds_join_fs',
]