Created
June 8, 2016 16:25
-
-
Save ccamacho/6678a64c3fb1a1bfca522470420731d8 to your computer and use it in GitHub Desktop.
Deploy OpenStack Mitaka
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
#Execute on the hypervisor: | |
sudo useradd stack | |
echo "stack:stack" | chpasswd | |
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack | |
sudo chmod 0440 /etc/sudoers.d/stack | |
su - stack | |
sudo yum -y install epel-release | |
### | |
#Change it for different OpenStack versions. | |
sudo curl -o /etc/yum.repos.d/delorean-deps-mitaka.repo http://trunk.rdoproject.org/centos7-mitaka/delorean-deps.repo | |
sudo curl -o /etc/yum.repos.d/delorean-mitaka.repo https://trunk.rdoproject.org/centos7-mitaka/current/delorean.repo | |
### | |
sudo yum install -y instack-undercloud | |
export NODE_DIST=centos7 | |
export NODE_CPU=4 | |
export NODE_MEM=8000 | |
export UNDERCLOUD_NODE_CPU=4 | |
export UNDERCLOUD_NODE_MEM=8000 | |
export NODE_COUNT=3 | |
##Deploy 3 nodes overcloud + 1 undercloud | |
sudo yum install -y instack-undercloud | |
instack-virt-setup | |
##iptables -t nat -A PREROUTING -m tcp -p tcp --dport 2200 -j DNAT --to-destination `sudo virsh domifaddr instack | grep $(tripleo get-vm-mac instack) | awk '{print $4}' | sed 's/\/.*$//'`:22 | |
#On the undercloud: | |
#Now go to the undercloud node to install it. | |
ssh root@`sudo virsh domifaddr instack | grep $(tripleo get-vm-mac instack) | awk '{print $4}' | sed 's/\/.*$//'` | |
#Add the stack user | |
sudo useradd stack | |
echo "stack:stack" | chpasswd | |
echo "stack ALL=(root) NOPASSWD:ALL" | sudo tee -a /etc/sudoers.d/stack | |
sudo chmod 0440 /etc/sudoers.d/stack | |
su - stack | |
export STABLE_RELEASE=mitaka | |
export USE_DELOREAN_TRUNK=1 | |
export DELOREAN_TRUNK_REPO="http://trunk.rdoproject.org/centos7-mitaka/current/" | |
export DELOREAN_REPO_FILE="delorean.repo" | |
git clone -b stable/mitaka https://github.com/openstack/tripleo-heat-templates | |
git clone https://github.com/openstack-infra/tripleo-ci.git | |
./tripleo-ci/scripts/tripleo.sh --all | |
#repo_setup | |
#undercloud | |
#overcloud_images | |
#register_nodes | |
#introspect_nodes | |
#overcloud_deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment