]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: use sphinx autoclass to document IscsiServiceSpec
authorSebastian Wagner <sewagner@redhat.com>
Wed, 29 Sep 2021 10:00:42 +0000 (12:00 +0200)
committerSebastian Wagner <sewagner@redhat.com>
Tue, 2 Nov 2021 09:01:22 +0000 (10:01 +0100)
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit 2e7b369373236c32e429463512521da1fc7e159d)

doc/cephadm/services/iscsi.rst
src/python-common/ceph/deployment/service_spec.py

index 581d2c9d406121ef602b67b3b5d0643b7f2f0f6f..e039e8d9a34672043a4c9639429aaac1d2396cf9 100644 (file)
@@ -44,7 +44,6 @@ For example:
       trusted_ip_list: "IP_ADDRESS_1,IP_ADDRESS_2,IP_ADDRESS_3,..."
       api_user: API_USERNAME
       api_password: API_PASSWORD
-      api_secure: true
       ssl_cert: |
         -----BEGIN CERTIFICATE-----
         MIIDtTCCAp2gAwIBAgIYMC4xNzc1NDQxNjEzMzc2MjMyXzxvQ7EcMA0GCSqGSIb3
@@ -58,6 +57,11 @@ For example:
         [...]
         -----END PRIVATE KEY-----
 
+.. py:currentmodule:: ceph.deployment.service_spec
+
+.. autoclass:: IscsiServiceSpec
+   :members:
+
 
 The specification can then be applied using:
 
@@ -68,6 +72,8 @@ The specification can then be applied using:
 
 See :ref:`orchestrator-cli-placement-spec` for details of the placement specification.
 
+See also: :ref:`orchestrator-cli-service-spec`.
+
 Further Reading
 ===============
 
index eb4e6c2e9210eb228439e281aab539278cc65f01..b0b852c1216db2fd4a5b12d5257f533df8b0be8e 100644 (file)
@@ -833,12 +833,19 @@ class IscsiServiceSpec(ServiceSpec):
 
         #: RADOS pool where ceph-iscsi config data is stored.
         self.pool = pool
+        #: list of trusted IP addresses
         self.trusted_ip_list = trusted_ip_list
+        #: ``api_port`` as defined in the ``iscsi-gateway.cfg``
         self.api_port = api_port
+        #: ``api_user`` as defined in the ``iscsi-gateway.cfg``
         self.api_user = api_user
+        #: ``api_password`` as defined in the ``iscsi-gateway.cfg``
         self.api_password = api_password
+        #: ``api_secure`` as defined in the ``iscsi-gateway.cfg``
         self.api_secure = api_secure
+        #: SSL certificate
         self.ssl_cert = ssl_cert
+        #: SSL private key
         self.ssl_key = ssl_key
 
         if not self.api_secure and self.ssl_cert and self.ssl_key: