]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr/orchestrator: use yaml syntax highlighting
authorSebastian Wagner <sebastian.wagner@suse.com>
Tue, 31 Mar 2020 13:21:45 +0000 (15:21 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Fri, 3 Apr 2020 13:18:28 +0000 (15:18 +0200)
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit bc162005a92d92dc5e84bda5a7034057af2436b6)

doc/mgr/orchestrator.rst

index c420ba6929d6232d9ee7c064ec4df1cd45036ba2..7fe7cf9cc35ad9cf19abb2a12a153f8912275013 100644 (file)
@@ -271,7 +271,9 @@ Service Specification
 =====================
 
 As *Service Specification* is a data structure often represented as YAML 
-to specify the deployment of services. For example::
+to specify the deployment of services. For example:
+
+.. code-block:: yaml
 
     service_type: rgw
     service_id: realm.zone
@@ -299,10 +301,12 @@ Service specifications of type ``mon``, ``mgr``, and the monitoring
 types do not require a ``service_id``
 
 A service of type ``nfs`` requires a pool name and contain
-an optional namespace::
+an optional namespace:
+
+.. code-block:: yaml
 
     service_type: nfs
-    service_id: realm.zone
+    service_id: mynfs
     placement: 
       hosts: 
         - host1
@@ -352,7 +356,9 @@ Daemons can be explictly placed on hosts by simply specifying them::
 
     orch apply prometheus "host1 host2 host3"
     
-Or in yaml::
+Or in yaml:
+
+.. code-block:: yaml
   
     service_type: prometheus
     placement:
@@ -375,7 +381,9 @@ Daemons can be explictly placed on hosts that match a specifc label::
 
     orch apply prometheus label:mylabel
 
-Or in yaml::
+Or in yaml:
+
+.. code-block:: yaml
 
     service_type: prometheus
     placement:
@@ -389,7 +397,9 @@ Daemons can be placed on hosts as well::
 
     orch apply prometheus '*'
 
-Or in yaml::
+Or in yaml:
+
+.. code-block:: yaml
 
     service_type: prometheus
     placement:
@@ -411,13 +421,17 @@ If the count is bigger than the amount of hosts, cephadm still deploys two daemo
 
     orch apply prometheus "3 host1 host2"
 
-Or in yaml::
+Or in yaml:
+
+.. code-block:: yaml
 
     service_type: prometheus
     placement:
       count: 3
       
-Or with hosts::
+Or with hosts:
+
+.. code-block:: yaml
 
     service_type: prometheus
     placement: