openstack-manuals/doc/install-guide/source/environment-ntp-other.rst
Christian Berendt 245fe26289 [install] use code-block directive instead of code directive
Change-Id: Id56dfc8572824d1dad47eee014870c9a64381645
Implements: blueprint installguide-liberty
2015-10-08 10:12:30 +02:00

74 lines
1.5 KiB
ReStructuredText

.. _environment-ntp-other:
Other nodes
~~~~~~~~~~~
Install and configure components
--------------------------------
Install the packages:
.. 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
# zypper refresh
# zypper install chrony
On SLES:
.. code-block:: console
# zypper addrepo http://download.opensuse.org/repositories/network:time/SLE_12/network:time.repo
# zypper refresh
# zypper install chrony
Configure the network and compute nodes to reference the controller
node.
.. only:: ubuntu or debian
1. Edit the ``/etc/chrony/chrony.conf`` file and comment out or remove all
but one ``server`` key. Change it to reference the controller node:
.. code-block:: ini
server controller iburst
2. Restart the NTP service:
.. code-block:: console
# service chrony restart
.. only:: rdo or obs
1. Edit the ``/etc/chrony.conf`` file and comment out or remove all but one
``server`` key. Change it to reference the controller node:
.. code-block:: ini
server controller iburst
2. Start the NTP service and configure it to start when the system boots:
.. code-block:: console
# systemctl enable chronyd.service
# systemctl start chronyd.service