OlgaGusarenko c10da1ec38 [Contributor Guide] RST section finished
1. Adds the following subsections:
   * Introduction to RST
   * Tables
   * Images
   * Profiling
   * Lists
   * Inline markups
   * Decorations
   * Commenting
2. Restructures the toc
3. Creates separate files for each subsection included in the
RST-related folder for simpler maintenance.

Change-Id: I08568fb37755109552edf9692b8f259660550a69
2015-10-20 11:14:32 +03:00

1.3 KiB

Profiling (conditional content)

Installation Guides has content that depends upon the operating systems.

Use the only directive to specify the content that is operating-system specific. Define one or several tags depending on the operating system the content belongs to.

The valid tags for the only directive are:

  • ubuntu for Ubuntu
  • debian for Debian
  • rdo for Red Hat Enterprise Linux, CentOS, and Fedora
  • obs for openSUSE and SUSE Linux Enterprise

Input

Install the NTP service
-----------------------

.. only:: ubuntu or debian

   .. code-block:: console

      # apt-get install chrony

.. only:: rdo

   .. code-block:: console

      # yum install chrony

.. only:: obs

   On openSUSE:

   .. code-block:: console

      # zypper addrepo http://download.opensuse.org/repositories/network:time/openSUSE_13.2/network:time.repo
      ...

   On SLES:

   .. code-block:: console

      # zypper addrepo http://download.opensuse.org/repositories/network:time/SLE_12/network:time.repo
      ...

For more details refer to Including content based on tags.