Merge "Add the ingress daemon to the supported cephadm daemon list"

This commit is contained in:
Zuul 2021-11-25 14:14:21 +00:00 committed by Gerrit Code Review
commit 9ccf72a072
2 changed files with 27 additions and 6 deletions

View File

@ -18,12 +18,8 @@ import ipaddress
import json
import sys
# NOTES/TODO(s):
# 1. multilevel spec_keys validation
# 2. Allow count != 0 for daemons
ALLOWED_DAEMONS = ['host', 'mon', 'mgr', 'mds', 'nfs', 'osd', 'rgw', 'grafana',
'crash', 'prometheus', 'alertmanager', 'node-exporter']
'crash', 'prometheus', 'alertmanager', 'node-exporter', 'ingress']
ALLOWED_HOST_PLACEMENT_MODE = ['hosts', 'host_pattern', 'label']
@ -49,6 +45,14 @@ ALLOWED_SPEC_KEYS = {
'namespace',
'pool'
],
'ingress': [
'backend_service',
'frontend_port',
'monitor_port',
'virtual_ip',
'virtual_interface_networks',
'ssl_cert'
],
}

View File

@ -64,7 +64,7 @@ options:
- The Ceph daemon that is going to be applied
required: true
type: str
choices: ['host', 'mon', 'osd', 'mds', 'rgw', 'nfs', 'node-exporter', 'prometheus', 'alertmanager', 'grafana', 'rbd-mirror']
choices: ['host', 'mon', 'osd', 'mds', 'rgw', 'nfs', 'node-exporter', 'prometheus', 'alertmanager', 'grafana', 'rbd-mirror', 'ingress']
service_id:
description:
- The ID associated to the Ceph daemon
@ -149,6 +149,7 @@ EXAMPLES = '''
labels:
- "controller"
apply: true
- name: create the Ceph RGW daemon spec
ceph_spec:
service_type: rgw
@ -161,6 +162,22 @@ EXAMPLES = '''
labels:
- "controller"
apply: true
- name: create the Ceph RGW ingress daemon spec
ceph_spec:
service_type: ingress
service_id: rgw.default
service_name: ingress.rgw.default
render_path: '/home/ceph-admin/specs'
labels:
- "controller"
spec:
backend_service: rgw.default
frontend_port: 8080
monitor_port: 8081
virtual_ip: 1.2.3.4/24"
apply: true
'''
RETURN = '''# '''