Created
February 16, 2019 11:00
-
-
Save goffinet/90e0eeca405aa8569d30e00c670143b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # http://superuser.openstack.org/articles/new-tripleo-quick-start-cheatsheet/ | |
| # 01 - Create the toor user. | |
| sudo useradd toor | |
| echo "toor:toor" | chpasswd | |
| echo "toor ALL=(root) NOPASSWD:ALL" \ | |
| | sudo tee -a /etc/sudoers.d/toor | |
| sudo chmod 0440 /etc/sudoers.d/toor | |
| su - toor | |
| # 02 - Prepare the hypervisor node. | |
| cd | |
| mkdir .ssh | |
| ssh-keygen -t rsa -N "" -f .ssh/id_rsa | |
| cat .ssh/id_rsa.pub >> .ssh/authorized_keys | |
| sudo bash -c "cat .ssh/id_rsa.pub \ | |
| >> /root/.ssh/authorized_keys" | |
| sudo bash -c "echo '127.0.0.1 127.0.0.2' \ | |
| >> /etc/hosts" | |
| export VIRTHOST=127.0.0.2 | |
| sudo yum groupinstall "Virtualization Host" -y | |
| sudo yum groupinstall "Development Tools" -y | |
| sudo yum install git lvm2 lvm2-devel -y | |
| ssh root@$VIRTHOST uname -a | |
| # 03 - Clone repos and install deps. | |
| git clone \ | |
| https://github.com/openstack/tripleo-quickstart | |
| chmod u+x ./tripleo-quickstart/quickstart.sh | |
| bash ./tripleo-quickstart/quickstart.sh \ | |
| --install-deps | |
| sudo setenforce 0 | |
| # 04 - Configure the TripleO deployment with Docker and HA. | |
| export CONFIG=~/deploy-config.yaml | |
| cat > $CONFIG << EOF | |
| overcloud_nodes: | |
| - name: control_0 | |
| flavor: control | |
| virtualbmc_port: 6230 | |
| - name: compute_0 | |
| flavor: compute | |
| virtualbmc_port: 6231 | |
| node_count: 2 | |
| containerized_overcloud: true | |
| delete_docker_cache: true | |
| enable_pacemaker: true | |
| run_tempest: false | |
| extra_args: >- | |
| --libvirt-type qemu | |
| --ntp-server pool.ntp.org | |
| -e /usr/share/openstack-tripleo-heat-templates/environments/docker.yaml | |
| -e /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml | |
| EOF | |
| # 05 - Deploy TripleO. | |
| export VIRTHOST=127.0.0.2 | |
| bash ./tripleo-quickstart/quickstart.sh \ | |
| --clean \ | |
| --release master \ | |
| --teardown all \ | |
| --tags all \ | |
| -e @$CONFIG \ | |
| $VIRTHOST |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment