3.3 KiB
Installation tutorials and guides
For the Newton release, a new method of publishing installation tutorials and guides is being implemented. This will allow each big tent project to create their own installation guide, based on a standard template, in their own repository. These guides are then centrally published to docs.openstack.org.
For updates on the progress of this project, see the Install Guide wiki page. If you would like to help out, attend a meeting.
Set up project specific installation guides:
Install
cookiecutter:# pip install cookiecutterRun the Install Guide cookiecutter to create a skeleton for your project:
$ cookiecutter https://git.openstack.org/openstack/installguide-cookiecutter.gitYou will be prompted to answer questions to complete the installation. Content will be added to the
install-guidedirectory in the top-level of the project repository.Create a
tox.inienvironment forinstall-guidein your project repository, using this content:[testenv:install-guide] commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/htmlAdd your installation content, and test the build locally with
tox:$ tox -e install-guideThe local build is in
install-guide/build/html.Add the python package
openstackdocsthemeto thetest-requirements.txtfile. Copy the exact requirement line from the global file:openstackdocstheme>=1.5.0 # Apache-2.0Commit 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 tarball-site: tarballs.openstack.org doc-publisher-site: docs.openstack.org 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.
To create or update the master index file, create or update the
www/project-install-guide/RELEASE/index.html file at the
openstack-manuals repository. For draft (unreleased)
version, replace RELEASE with draft.