Skip to content

Latest commit

 

History

History
106 lines (75 loc) · 1.74 KB

01-controller.md

File metadata and controls

106 lines (75 loc) · 1.74 KB

Controller setup

1. CONTROLLER NODE

MySQL

  1. Install mysql packages:
apt install mariadb-server python3-pymysql -y
  1. Create and edit /etc/mysql/mariadb.conf.d/99-openstack.cnf
[mysqld]
bind-address = 10.10.10.11
default-storage-engine = innodb
innodb_file_per_table = on
max_connections = 4096
collation-server = utf8_general_ci
character-set-server = utf8
  1. Finalize MYSQL installation
systemctl enable mariadb
systemctl restart mariadb
  1. Run mysql setup:
mysql_secure_installation

RabbitMQ

  1. Install rabbitmq packages:
apt install rabbitmq-server -y
  1. Add openstack user to rabbitmq:
rabbitmqctl add_user openstack password123
  1. Apply permissions for openstack rabbitmq user:
rabbitmqctl set_permissions openstack ".*" ".*" ".*"

Memcached

  1. Install memcached packages:
apt install memcached python3-memcache -y
  1. Edit /etc/memcached.conf and change following setting:
-l 10.10.10.11
  1. Finalize installation
systemctl enable memcached
systemctl restart memcached

Etcd

  1. Install etcd packages:
apt install etcd -y
  1. Edit /etc/default/etcd and change following setting:
ETCD_NAME="controller"
ETCD_DATA_DIR="/var/lib/etcd"
ETCD_INITIAL_CLUSTER_STATE="new"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER="controller=http://10.10.10.11:2380"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://10.10.10.11:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://10.10.10.11:2379"
ETCD_LISTEN_PEER_URLS="http://10.10.10.11:2380"
ETCD_LISTEN_CLIENT_URLS="http://10.10.10.11:2379"
  1. Enable and restart etcd service:
systemctl enable etcd
systemctl restart etcd