Created
June 9, 2016 08:19
-
-
Save ccamacho/543b5aadf3438d78018a5831be6c8842 to your computer and use it in GitHub Desktop.
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 | |
sudo yum -y install yum-plugin-priorities | |
### | |
#Change it for different OpenStack versions. | |
sudo curl -o /etc/yum.repos.d/delorean-deps-liberty.repo http://trunk.rdoproject.org/centos7-liberty/delorean-deps.repo | |
sudo curl -o /etc/yum.repos.d/delorean-liberty.repo https://trunk.rdoproject.org/centos7-liberty/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/\/.*$//'` | |
su - stack | |
sudo yum -y install yum-plugin-priorities | |
export STABLE_RELEASE=liberty | |
export USE_DELOREAN_TRUNK=1 | |
export DELOREAN_TRUNK_REPO="http://trunk.rdoproject.org/centos7-liberty/current/" | |
export DELOREAN_REPO_FILE="delorean.repo" | |
git clone -b stable/liberty 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