diff --git a/deploy-guide/source/conf.py b/deploy-guide/source/conf.py index 1b5ca68d1e..eb5e4c1835 100644 --- a/deploy-guide/source/conf.py +++ b/deploy-guide/source/conf.py @@ -47,20 +47,27 @@ current_series = openstackdocstheme.ext._get_series_name() if current_series == "latest": watermark = "Pre-release" latest_tag = "master" + rdo_series = previous_series_name + suse_series = previous_series_name.capitalize() else: watermark = series_names = current_series.capitalize() latest_tag = os.popen('git describe --abbrev=0 --tags').read().strip('\n') + rdo_series = current_series_name + suse_series = current_series_name.capitalize() deploy_guide_prefix = "http://docs.openstack.org/project-deploy-guide/openstack-ansible/{}/%s".format(current_series) dev_docs_prefix = "http://docs.openstack.org/openstack-ansible/{}/%s".format(current_series) role_docs_prefix = "http://docs.openstack.org/openstack-ansible-%s/{}".format(current_series) - # Substitutions loader rst_epilog = """ .. |latest_tag| replace:: {latest_tag} +.. |rdo_series| replace:: {rdo_series} +.. |suse_series| replace:: {suse_series} """.format( latest_tag=latest_tag, + rdo_series=rdo_series, + suse_series=suse_series ) # Format: Reference name: (string containing %s for substitution, linkname) diff --git a/deploy-guide/source/deploymenthost.rst b/deploy-guide/source/deploymenthost.rst index e9bd445356..7d44d19ca1 100644 --- a/deploy-guide/source/deploymenthost.rst +++ b/deploy-guide/source/deploymenthost.rst @@ -59,8 +59,7 @@ Before you begin, we recommend upgrading your system packages and kernel. .. code-block:: shell-session - # apt-get install aptitude build-essential git ntp ntpdate \ - openssh-server python-dev sudo + # apt-get install aptitude build-essential git ntp ntpdate openssh-server python-dev sudo #. Configure NTP to synchronize with a suitable time source. @@ -81,11 +80,10 @@ Before you begin, we recommend upgrading your system packages and kernel. #. Install additional software packages if they were not installed during the operating system installation: - .. code-block:: shell-session + .. parsed-literal:: - # yum install https://rdoproject.org/repos/openstack-pike/rdo-release-pike.rpm - # yum install git ntp ntpdate openssh-server python-devel \ - sudo '@Development Tools' + # yum install \https://rdoproject.org/repos/openstack-|rdo_series|/rdo-release-|rdo_series|.rpm + # yum install git ntp ntpdate openssh-server python-devel sudo '\@Development Tools' #. Configure NTP to synchronize with a suitable time source. @@ -123,11 +121,10 @@ Before you begin, we recommend upgrading your system packages and kernel. #. Install additional software packages if they were not installed during the operating system installation: - .. code-block:: shell-session + .. parsed-literal:: - # zypper ar http://download.opensuse.org/repositories/Cloud:/OpenStack:/Pike/openSUSE_Leap_42.3 OBS:Cloud:OpenStack:Pike - # zypper install git-core ntp openssh python-devel \ - sudo gcc libffi-devel libopenssl-devel + # zypper ar \http://download.opensuse.org/repositories/Cloud:/OpenStack:/|suse_series|/openSUSE_Leap_42.3 OBS:Cloud:OpenStack:|suse_series| + # zypper install git-core ntp openssh python-devel sudo gcc libffi-devel libopenssl-devel #. Configure NTP to synchronize with a suitable time source. @@ -176,16 +173,14 @@ Install the source and dependencies for the deployment host. .. parsed-literal:: - # git clone -b |latest_tag| https://git.openstack.org/openstack/openstack-ansible \\ - /opt/openstack-ansible + # git clone -b |latest_tag| \https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible If git.openstack.org can not be accessed to run git clone, github.com can be used as an alternative repo: .. parsed-literal:: - # git clone -b |latest_tag| https://github.com/openstack/openstack-ansible.git \\ - /opt/openstack-ansible + # git clone -b |latest_tag| \https://github.com/openstack/openstack-ansible.git /opt/openstack-ansible #. Change to the ``/opt/openstack-ansible`` directory, and run the Ansible bootstrap script: