OpenStack: Difference between revisions

From Network Security Wiki
Content added Content deleted
Line 30: Line 30:
yum install ntpdate
yum install ntpdate


== Install OpenStack ==
== Preparing OpenStack Queens Installation ==



OpenStack will be deployed with the help of PackStack package provided by rdo repository (RPM Distribution of OpenStack):
OpenStack will be deployed with the help of PackStack package provided by rdo repository (RPM Distribution of OpenStack):
Line 38: Line 37:
On CentOS 7, the Extras repository includes the RPM that actives the OpenStack repository.<br/>
On CentOS 7, the Extras repository includes the RPM that actives the OpenStack repository.<br/>
Extras is already enabled, so you can easily install the RPM to setup the OpenStack repository:
Extras is already enabled, so you can easily install the RPM to setup the OpenStack repository:
yum install -y centos-release-openstack-mitaka
yum install -y centos-release-openstack-queens
yum update -y
yum update -y



Packstack represents a utility which facilitates the deployment on multiple nodes for different components of OpenStack via SSH connections and Puppet modulesL
Packstack represents a utility which facilitates the deployment on multiple nodes for different components of OpenStack via SSH connections and Puppet modulesL
Line 58: Line 56:
CONFIG_MARIADB_PW=mypassword1234 # The root password for MySQL server
CONFIG_MARIADB_PW=mypassword1234 # The root password for MySQL server
CONFIG_NAGIOS_INSTALL=n # Disable Nagios
CONFIG_NAGIOS_INSTALL=n # Disable Nagios






Enable Root SSH login by uncomment below line:
Enable Root SSH login by uncomment below line:
Line 69: Line 62:


systemctl restart sshd
systemctl restart sshd

== Start Installation using Packstack Answer File ==

packstack --answer-file 13.04.16.conf











Revision as of 14:11, 3 September 2018


Installation

Basics

Requirement:

CentOS VM
16 GB RAM
100 GB HDD

Remove unneeded services:

systemctl stop postfix firewalld NetworkManager
systemctl disable postfix firewalld NetworkManager
systemctl mask NetworkManager
yum remove postfix NetworkManager NetworkManager-libnm

Completely disable Selinux policy

setenforce 0
getenforce
vi /etc/selinux/config
SELINUX=disabled

Set hostname

hostnamectl set-hostname cloud.centos.lan

Install NTP

yum install ntpdate 

Preparing OpenStack Queens Installation

OpenStack will be deployed with the help of PackStack package provided by rdo repository (RPM Distribution of OpenStack):

yum install https://www.rdoproject.org/repos/rdo-release.rpm 

On CentOS 7, the Extras repository includes the RPM that actives the OpenStack repository.
Extras is already enabled, so you can easily install the RPM to setup the OpenStack repository:

yum install -y centos-release-openstack-queens
yum update -y

Packstack represents a utility which facilitates the deployment on multiple nodes for different components of OpenStack via SSH connections and Puppet modulesL

yum install  openstack-packstack

Generate an answer file for Packstack with the default configurations which will be later edited with the required parameters in order to deploy a standalone installation of Openstack (single node):

packstack --gen-answer-file='date +"%d.%m.%y"'.conf
ls

Edit the generated answer configuration file with a text editor:

vi 03.09.18.conf
CONFIG_NTP_SERVERS=0.ro.pool.ntp.org
CONFIG_PROVISION_DEMO=n
CONFIG_KEYSTONE_ADMIN_PW=your_password          # for Admin user
CONFIG_HORIZON_SSL=y                            # Access OpenStack dashboard via HTTP with SSL enabled
CONFIG_MARIADB_PW=mypassword1234                # The root password for MySQL server
CONFIG_NAGIOS_INSTALL=n                         # Disable Nagios

Enable Root SSH login by uncomment below line:

vi /etc/ssh/sshd_config
PermitRootLogin yes
systemctl restart sshd

Start Installation using Packstack Answer File

packstack --answer-file 13.04.16.conf






References





{{#widget:DISQUS |id=networkm |uniqid=OpenStack |url=https://aman.awiki.org/wiki/OpenStack }}