RETIRED, Ansible based project for setting up TripleO virtual environments
Go to file
John Trowbridge 3f3cd470cf Add release configs for CentOS build system content
Our current release configs all point to content generated by
DLRN, however some users would like to use the signed packages
provided by the CentOS build system.

This change adds the following quickstart.sh options:
  - "--release stable/mitaka"
  - "--release stable/newton"
  - "--release trunk/liberty" ("--release liberty" is a symlink to this)
  - "--release trunk/mitaka" ("--release mitaka" is a symlink to this)
  - "--release trunk/newton" ("--release newton" is a symlink to this)

The CBS image links currently point to images.rdoproject.org fileserver,
but once that content is on the buildlogs CDN we should change them to
point there.[1]
[1] https://bugs.centos.org/view.php?id=12013

Change-Id: I72cf1154851fc3d7381cbe8898badfd2b6d16609
2016-10-12 16:00:01 +00:00
ci-scripts Gate roles during quickstart full-ci-check jobs 2016-09-29 18:13:44 +02:00
config Add release configs for CentOS build system content 2016-10-12 16:00:01 +00:00
doc/source Customize undercloud and overcloud with virt-customize 2016-09-28 16:27:45 +02:00
library Fix H102 Apache 2.0 license header not found 2016-07-29 14:08:00 -04:00
playbooks Add fact gathering prior to deploying the overcloud 2016-10-07 17:22:21 -04:00
roles Merge "Update libvirt role to identify flavor correctly" 2016-10-11 12:34:33 +00:00
test_plugins Fix H102 Apache 2.0 license header not found 2016-07-29 14:08:00 -04:00
.gitignore Initial support for sphinxdoc 2016-07-29 18:04:37 -04:00
.gitreview Fix .gitreview for move to openstack git 2016-04-01 11:08:07 -04:00
ansible_ssh_env.sh use environmental variables for ansible ssh configuration 2016-06-15 14:37:32 +00:00
ansible-role-requirements.yml Switch to using standalone role for image building 2016-04-13 09:43:16 -04:00
ansible.cfg Add path to general roles used by quickstart 2016-06-08 10:08:00 -04:00
LICENSE Initial commit 2015-11-19 08:16:11 -05:00
quickstart-extras-requirements.txt set up quickstart to replace instack-virt-setup 2016-09-13 15:37:35 -04:00
quickstart-role-requirements.txt Removing locking hash on undercloud post role 2016-09-14 03:33:22 -04:00
quickstart.sh Merge "ensure the OPT_WORKDIR is set appropriately when executed from any directory" 2016-10-03 12:51:14 +00:00
README.rst Change README.rst to point to the full docs 2016-10-06 12:48:52 +02:00
requirements.txt Revert "Temporarily pin pycparser" 2016-10-03 15:30:27 +00:00
setup.cfg Changed the home-page link 2016-10-05 23:58:50 +05:30
setup.py Add installation and setup machinery 2015-11-30 17:16:00 -05:00
test-requirements.txt Initial support for sphinxdoc 2016-07-29 18:04:37 -04:00
tox.ini Fix and improve the ansible-lint gate job 2016-09-19 18:26:05 +02:00

tripleo-quickstart

One of the barriers to entry for trying out TripleO and its derivatives has been the relative difficulty in getting an environment up quickly.

This set of ansible roles is meant to help.

You will need a host machine (referred to as $VIRTHOST) with at least 16G of RAM, preferably 32G, and you must be able to ssh to the virthost machine as root without a password from the machine running ansible. Currently the virthost machine must be running a recent Red Hat-based Linux distribution (CentOS 7, RHEL 7, Fedora 22 - only CentOS 7 is currently tested), but we hope to add support for non-Red Hat distributions too.

A quick way to test that your virthost machine is ready to rock is:

ssh root@$VIRTHOST uname -a

The defaults are meant to "just work", so it is as easy as downloading and running the quickstart.sh script.

Getting the script

You can download the quickstart.sh script with wget:

wget https://raw.githubusercontent.com/openstack/tripleo-quickstart/master/quickstart.sh

Alternatively, you can clone this repository and run the script from there.

Requirements

You need some software available on your local system before you can run quickstart.sh. You can install the necessary dependencies by running:

bash quickstart.sh --install-deps

Deploying with instructions

Deploy your virtual environment by running:

bash quickstart.sh $VIRTHOST

Where $VIRTHOST is the name of the host on which you want to install your virtual triple0 environment. The quickstart.sh script will install this repository along with ansible in a virtual environment on your Ansible host and run the quickstart playbook. Note, the quickstart playbook will delete the stack user on $VIRTHOST and recreate it.

This script will output instructions at the end to access the deployed undercloud. If a release name is not given, mitaka is used.

Deploying without instructions

bash quickstart.sh -p quickstart-extras.yml -r quickstart-extras-requirements.txt --tags all $VIRTHOST

You may choose to execute an end to end deployment without displaying the instructions and scripts provided by default. Using the --tags all flag will instruct quickstart to provision the environment and deploy both the undercloud and overcloud. Additionally a validation test will be executed to ensure the overcloud is functional.

Deploying on localhost

bash quickstart.sh localhost

Please note the following when using quickstart to deploy tripleo directly on localhost. The deployment should pass, however you may not be able to ssh to the overcloud nodes while using the default ssh config file. The ssh config file that is generated by quickstart e.g. ~/.quickstart/ssh.config.ansible will try to proxy through the localhost to ssh to the localhost and will cause an error if ssh is not setup to support it. An alternative workflow is being tested and can be found under tripleo-quickstart/ci-scripts/usbkey/.

Enable Developer mode

If you are working on TripleO upstream development, and need to reproduce what runs in tripleo-ci, you will want to use developer mode.

This will fetch the images produced by tripleo-ci instead of the ones produced by RDO. The incantation for a job using the quickstart defaults other than developer mode would be:

bash quickstart.sh \
        --release master-tripleo-ci \
        $VIRTHOST

Documentation

The full documentation is in the doc/source directory, it can be built using:

tox -e docs

An up-to-date HTML version is available on docs.openstack.org.

Copyright 2015-2016 Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.