2. Prepare target hosts
This section describes the installation and configuration of operating systems for the target host(s).
MiaRec team officially supports the following operating system for the controller host:
- Centos/RedHat 6 64-bit
- Centos/RedHat 7 64-bit
- Ubuntu Server 14.04 LTS 64-bit
- Ubuntu Server 16.04 LTS 64-bit
2.1. Configure the operating system (Ubuntu)
Install additional software packages and configure Network Time Protocol (NTP). Before you begin, we recommend upgrading your system packages and kernel.
Update package source lists:
sudo apt-get update
Upgrade the system packages and kernel:
sudo apt-get dist-upgrade
Reboot the host to use the new kernel.
Install additional software packages if they were not installed during the operating system installation:
sudo apt-get install aptitude ntp ntpdate openssh-server acl python
Configure Network Time Protocol (NTP) in /etc/ntp.conf to synchronize with a suitable time source and restart the service:
service ntp restart
2.2. Configure the operating system (RedHat/Centos)
Install additional software packages and configure Network Time Protocol (NTP). Before you begin, we recommend upgrading your system packages and kernel.
Upgrade the system packages and kernel
sudo yum upgrade
Reboot the host to use the new kernel.
Install the Software Collections (SCL) repository. It is required for the latest version of PostgreSQL (11/12).
On Centos 7:
sudo yum install centos-release-scl
On RedHat Enterprise:
sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
Install additional software packages if they were not installed during the operating system installation:
sudo yum install ntp ntpdate openssh-server
Configure Network Time Protocol (NTP) in /etc/ntp.conf to synchronize with a suitable time source and start the service:
# On RedHat/Centos 7 (SystemD)
sudo systemctl enable ntpd.service
sudo systemctl start ntpd.service
2.3. Configured password-less access (optional, recommended)
Skip this step if the same host is used as a controller and target host.
Use the following instructions to setup password-less access from the Ansible controller to the target hosts.