From 1f4dca75a4a8bad3b530f8d459b3939635b98f0b Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Tue, 27 Nov 2018 15:30:29 +0100 Subject: [PATCH] Update doc to use chrony instead of ntp ansible-hardening defaults to using chrony rather than ntp. Installing ntp in the target host preparation step results in it being uninstalled later by ansible-hardning in favor of chrony. Change-Id: I04165292b8f013f0948f154041bd90b0fccb5c5f (cherry picked from commit 0b2b7c99ae78bfa07cc8e2c626b3f0d80bf8dd85) --- deploy-guide/source/targethosts-prepare.rst | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/deploy-guide/source/targethosts-prepare.rst b/deploy-guide/source/targethosts-prepare.rst index 14913ddb85..98202fb30f 100644 --- a/deploy-guide/source/targethosts-prepare.rst +++ b/deploy-guide/source/targethosts-prepare.rst @@ -54,7 +54,7 @@ Configure Ubuntu .. code-block:: shell-session # apt-get install bridge-utils debootstrap ifenslave ifenslave-2.6 \ - lsof lvm2 ntp ntpdate openssh-server sudo tcpdump vlan python + lsof lvm2 chrony openssh-server sudo tcpdump vlan python #. Add the appropriate kernel modules to the ``/etc/modules`` file to enable VLAN and bond interfaces: @@ -64,12 +64,12 @@ Configure Ubuntu # echo 'bonding' >> /etc/modules # echo '8021q' >> /etc/modules -#. Configure Network Time Protocol (NTP) in ``/etc/ntp.conf`` to +#. Configure Network Time Protocol (NTP) in ``/etc/chrony/chrony.conf`` to synchronize with a suitable time source and restart the service: .. code-block:: shell-session - # service ntp restart + # service chrony restart #. Reboot the host to activate the changes and use the new kernel. @@ -95,7 +95,7 @@ Configure CentOS .. code-block:: shell-session # yum install bridge-utils iputils lsof lvm2 \ - ntp ntpdate openssh-server sudo tcpdump python + chrony openssh-server sudo tcpdump python #. Add the appropriate kernel modules to the ``/etc/modules`` file to enable VLAN and bond interfaces: @@ -105,13 +105,13 @@ Configure CentOS # echo 'bonding' >> /etc/modules-load.d/openstack-ansible.conf # echo '8021q' >> /etc/modules-load.d/openstack-ansible.conf -#. Configure Network Time Protocol (NTP) in ``/etc/ntp.conf`` to +#. Configure Network Time Protocol (NTP) in ``/etc/chrony.conf`` to synchronize with a suitable time source and start the service: .. code-block:: shell-session - # systemctl enable ntpd.service - # systemctl start ntpd.service + # systemctl enable chronyd.service + # systemctl start chronyd.service #. Reboot the host to activate the changes and use the new kernel. @@ -138,7 +138,7 @@ Configure openSUSE .. code-block:: shell-session # zypper install bridge-utils iputils lsof lvm2 \ - ntp opensshr sudo tcpdump python + chrony opensshr sudo tcpdump python #. Add the appropriate kernel modules to the ``/etc/modules`` file to enable VLAN and bond interfaces: @@ -148,13 +148,13 @@ Configure openSUSE # echo 'bonding' >> /etc/modules-load.d/openstack-ansible.conf # echo '8021q' >> /etc/modules-load.d/openstack-ansible.conf -#. Configure Network Time Protocol (NTP) in ``/etc/ntp.conf`` to +#. Configure Network Time Protocol (NTP) in ``/etc/chrony.conf`` to synchronize with a suitable time source and start the service: .. code-block:: shell-session - # systemctl enable ntpd.service - # systemctl start ntpd.service + # systemctl enable chronyd.service + # systemctl start chronyd.service #. Reboot the host to activate the changes and use the new kernel.