Last active
February 26, 2017 08:08
-
-
Save harish-r/54442126281529e6c309b2659ce3584a to your computer and use it in GitHub Desktop.
Openstack Kolla Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Script to install Openstack Kolla (Mitaka Release) in Ubuntu 16.04 | |
# Script START | |
# Upgrade to latest kernel | |
apt-get install -y linux-image-generic-lts-wily | |
# Update packages | |
sudo apt-get update | |
# Install depenedencids | |
sudo apt-get install -y curl wget python-pip python-dev libffi-dev gcc libssl-dev ntp | |
# Install Dockr | |
sudo curl -fsSL https://test.docker.com | sh | |
# Create drop in config file for docker | |
sudo mkdir -p /etc/systemd/system/docker.service.d | |
# Update docker settings | |
sudo tee /etc/systemd/system/docker.service.d/kolla.conf <<-'EOF' | |
[Service] | |
MountFlags=shared | |
EOF | |
# Restart docker service | |
sudo systemctl daemon-reload | |
sudo systemctl restart docker | |
# Clone the kolla git repository stable/mitaka branch | |
cd ~ | |
sudo git clone -b stable/mitaka https://git.openstack.org/openstack/kolla | |
# Install python dependencies | |
sudo pip install kolla/ | |
sudo pip install -U python-openstackclient python-neutronclient | |
# install ansible | |
sudo pip install -U ansible==1.9.4 | |
# Copy configuration files to from etc/kolla to /etc | |
sudo cd kolla | |
sudo cp -r etc/kolla /etc/ | |
# Build Kolla Images (Only core service) | |
# -b --baseOS [centos | ubuntu] | |
# -t --type [binary | source] | |
sudo kolla-build -p default -b ubuntu -t binary | |
# Script END | |
# /etc/kolla/globals.yml | |
# Change COPY_STRATEGY: "COPY ALWAYS" | |
# change base os to "ubuntu" | |
# change type to "binary" | |
# change kolla_internal_vip: <unsed address, if no un-used address, then give network interface, add enable_haproxy: "no" in file> | |
# change network_interface: <internal network interface> | |
# change neutron_external_interface: <external network, with internet access> | |
# enerate passwords in passwords.yml - Command below | |
# sudo kolla-genpwd | |
# Check if all-in-one hosts are ready | |
# sudo kolla-ansible prechecks | |
# Deploy kolla | |
# sudo kolla-ansible deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment