This patch is to ensure the old files are not left over when running these document builds. Change-Id: I2941a006fd44447931cfde63af7da26363e3a352
4.1 KiB
Installation Guides
Pike and later
Each official OpenStack project should maintain an installation guide
following the layout described in project-guides. When the guide is available, update
openstack-manuals/www/project-data/latest.yaml to include
information about the project and ensure that the
has_install_guide flag is set to true to
ensure that the guide is listed along with the guides from other
projects.
Newton and Ocata
For the Newton and Ocata releases only, big tent projects created their own installation guides, based on a standard template, in their own repository. These guides were then centrally published to docs.openstack.org.
Warning
The following instructions are superseded by project-guides. New
installation guides should be created using the layout defined in the
spec, rather than the following instructions.
Set up project specific installation guides:
Install
cookiecutter:# pip install cookiecutterRun the Install Guide cookiecutter in the top-level directory of your projects repository to create a skeleton for the install guide of your project:
$ cookiecutter https://git.openstack.org/openstack/installguide-cookiecutter.gitYou will be prompted to answer the following questions to complete the installation:
Parameter Explanation Example directory_name The name of the install guide directory inside the project repository. This should be, install-guide.install-guide service The service name what the project implements. Compute, Telemetry Alarming, or Root Cause Analysis codename The name how the different components of the project are refering to the project nova, aodh, or vitrage as in nova-conductor or vitrage-api A directory will be created with the name that was defined in
directory_name(usuallyinstall-guide) with the skeleton of the install guide.Create a
tox.inienvironment forinstall-guidein your project repository, using this content:[testenv:install-guide] whitelist_externals = rm commands = rm -rf install-guide/build sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/htmlAdd the python package
openstackdocsthemeto thetest-requirements.txtfile. Copy the exact requirement line from the global file:openstackdocstheme>=1.5.0 # Apache-2.0Add your installation content, and test the build locally with
tox:$ tox -e install-guideThe local build will be generated in the
install-guide/build/htmldirectory".Commit the changes to your project repository for review.
After these changes have merged, you can set up the jobs for building.
Clone the
project-configrepo:$ git clone https://git.openstack.org/openstack-infra/project-configIn
jenkins/jobs/projects.yaml, addinstall-guide-jobswithin the entry for your project:- project: name: heat jobs: ... - install-guide-jobs: service: orchestrationHere
serviceis the service name of the project, like orchestration for heat.This defines the jobs using the JJB
install-guide-jobsjob-template.In
zuul/layout.yaml, locate the entry for your project and add theinstall-guide-jobstemplate:- name: openstack/heat template: - name: install-guide-jobsThis schedules the Install Guide jobs.
Commit the changes to the infra repository for review.