3.2 KiB
Home OpenStack-Ansible Installation Guide
Preparing the target hosts
All target hosts will need a properly configured operating system as well as some additional configurations that are noted in the following sections.
Installing the operating system
Install the Ubuntu Server 14.04 (Trusty Tahr) LTS 64-bit operating system on the target host with at least one network interface configured to access the Internet or suitable local repositories.
On target hosts without local (console) access, We recommend adding the Secure Shell (SSH) server packages to the installation.
Configuring the operating system
Check the kernel version, install additional software packages, and configure NTP.
Check the kernel version. It should be
3.13.0-34-genericor later.Install additional software packages if not already installed during operating system installation:
# apt-get install bridge-utils debootstrap ifenslave ifenslave-2.6 \ lsof lvm2 ntp ntpdate openssh-server sudo tcpdump vlanAdd the appropriate kernel modules to the
/etc/modulesfile to enable VLAN and bond interfaces:# echo 'bonding' >> /etc/modules # echo '8021q' >> /etc/modulesConfigure NTP to synchronize with a suitable time source.
Reboot the host to activate the changes.
Deploying SSH keys
Ansible uses Secure Shell (SSH) for connectivity between the deployment and target hosts.
- Copy the contents of the public key file on the deployment host to
the
/root/.ssh/authorized_keysfile on each target host. - Test public key authentication from the deployment host to each target host. SSH should provide a shell without asking for a password.
For more information on how to generate an SSH keypair as well as best practices, refer to GitHub's documentation on generating SSH keys.
Configuring LVM
Logical Volume Manager (LVM) allows a single device to be split into multiple logical volumes which appear as a physical storage device to the operating system. The Block Storage (cinder) service as well as the LXC containers that run the OpenStack infrastructure can optionally use LVM for their data storage.
To use the optional Block Storage (cinder) service, create an LVM volume group named cinder-volumes on the Block Storage host. A metadata size of 2048 must be specified during physical volume creation. For example:
# pvcreate --metadatasize 2048 physical_volume_device_path # vgcreate cinder-volumes physical_volume_device_pathOptionally, create an LVM volume group named lxc for container file systems. If the lxc volume group does not exist, containers will be automatically installed into the file system under /var/lib/lxc by default.