Reformat instructions related with various OS

Follow up to "Ironic behind mod wsgi" documentation [1].

This reformats instructions and clears TODOs in the document,
similar places were found and fixed in this patch as well.

References to Fedora 21 are removed.

[1] https://review.openstack.org/#/c/407327

Change-Id: I3ded2614306df3f6ce4b1d14526b061dcaa7b829
This commit is contained in:
Kaifeng Wang 2018-08-09 13:51:00 +08:00
parent 89f68e70e0
commit f409a869ef
7 changed files with 132 additions and 110 deletions

View File

@ -20,32 +20,38 @@ The web console can be configured in Bare Metal service in the following way:
is not present in base repositories, user must enable EPEL repository, you can find is not present in base repositories, user must enable EPEL repository, you can find
more from `FedoraProject page`_. more from `FedoraProject page`_.
Installation example:: Installation example:
Ubuntu: Ubuntu::
sudo apt-get install shellinabox
Fedora 21/RHEL7/CentOS7: sudo apt-get install shellinabox
sudo yum install shellinabox
Fedora 22 or higher: RHEL7/CentOS7::
sudo dnf install shellinabox
sudo yum install shellinabox
Fedora::
sudo dnf install shellinabox
You can find more about shellinabox on the `shellinabox page`_. You can find more about shellinabox on the `shellinabox page`_.
You can optionally use the SSL certificate in shellinabox. If you want to use the SSL You can optionally use the SSL certificate in shellinabox. If you want to use the SSL
certificate in shellinabox, you should install openssl and generate the SSL certificate. certificate in shellinabox, you should install openssl and generate the SSL certificate.
1. Install openssl, for example:: 1. Install openssl, for example:
Ubuntu: Ubuntu::
sudo apt-get install openssl
Fedora 21/RHEL7/CentOS7: sudo apt-get install openssl
sudo yum install openssl
Fedora 22 or higher: RHEL7/CentOS7::
sudo dnf install openssl
sudo yum install openssl
Fedora::
sudo dnf install openssl
2. Generate the SSL certificate, here is an example, you can find more about openssl on 2. Generate the SSL certificate, here is an example, you can find more about openssl on
the `openssl page`_:: the `openssl page`_::
@ -163,16 +169,19 @@ Serial consoles can be configured in the Bare Metal service as follows:
* Install socat on the ironic conductor node. Also, ``socat`` needs to be in * Install socat on the ironic conductor node. Also, ``socat`` needs to be in
the $PATH environment variable that the ironic-conductor service uses. the $PATH environment variable that the ironic-conductor service uses.
Installation example:: Installation example:
Ubuntu: Ubuntu::
sudo apt-get install socat
Fedora 21/RHEL7/CentOS7: sudo apt-get install socat
sudo yum install socat
Fedora 22 or higher: RHEL7/CentOS7::
sudo dnf install socat
sudo yum install socat
Fedora::
sudo dnf install socat
* Append console parameters for bare metal PXE boot in the Bare Metal * Append console parameters for bare metal PXE boot in the Bare Metal
service configuration file. See the reference on how to configure them in service configuration file. See the reference on how to configure them in

View File

@ -40,7 +40,7 @@ well.
sudo apt-get install build-essential python-dev libssl-dev python-pip libmysqlclient-dev libxml2-dev libxslt-dev libpq-dev git git-review libffi-dev gettext ipmitool psmisc graphviz libjpeg-dev sudo apt-get install build-essential python-dev libssl-dev python-pip libmysqlclient-dev libxml2-dev libxslt-dev libpq-dev git git-review libffi-dev gettext ipmitool psmisc graphviz libjpeg-dev
- Fedora 21/RHEL7/CentOS7:: - RHEL7/CentOS7::
sudo yum install python-devel openssl-devel python-pip mysql-devel libxml2-devel libxslt-devel postgresql-devel git git-review libffi-devel gettext ipmitool psmisc graphviz gcc libjpeg-turbo-devel sudo yum install python-devel openssl-devel python-pip mysql-devel libxml2-devel libxslt-devel postgresql-devel git git-review libffi-devel gettext ipmitool psmisc graphviz gcc libjpeg-turbo-devel
@ -48,7 +48,7 @@ well.
package git-review available", use the EPEL software repository. package git-review available", use the EPEL software repository.
Instructions can be found at `<https://fedoraproject.org/wiki/EPEL/FAQ#howtouse>`_. Instructions can be found at `<https://fedoraproject.org/wiki/EPEL/FAQ#howtouse>`_.
- Fedora 22 or higher:: - Fedora::
sudo dnf install python-devel openssl-devel python-pip mysql-devel libxml2-devel libxslt-devel postgresql-devel git git-review libffi-devel gettext ipmitool psmisc graphviz gcc libjpeg-turbo-devel sudo dnf install python-devel openssl-devel python-pip mysql-devel libxml2-devel libxslt-devel postgresql-devel git git-review libffi-devel gettext ipmitool psmisc graphviz gcc libjpeg-turbo-devel
@ -236,43 +236,51 @@ This option will install RabbitMQ and MySQL on your local system. This may not
be desirable in some situations (eg, you're developing from a laptop and do not be desirable in some situations (eg, you're developing from a laptop and do not
want to run a MySQL server on it all the time). want to run a MySQL server on it all the time).
#. Install rabbitmq-server:: #. Install rabbitmq-server:
# install rabbit message broker Ubuntu/Debian::
# Ubuntu/Debian:
sudo apt-get install rabbitmq-server
# Fedora 21/RHEL7/CentOS7: sudo apt-get install rabbitmq-server
sudo yum install rabbitmq-server
sudo systemctl start rabbitmq-server.service
# Fedora 22 or higher: RHEL7/CentOS7::
sudo dnf install rabbitmq-server
sudo systemctl start rabbitmq-server.service
# openSUSE/SLE 12: sudo yum install rabbitmq-server
sudo zypper install rabbitmq-server sudo systemctl start rabbitmq-server.service
sudo systemctl start rabbitmq-server.service
#. Install mysql-server:: Fedora::
# Ubuntu/Debian: sudo dnf install rabbitmq-server
# sudo apt-get install mysql-server sudo systemctl start rabbitmq-server.service
# Fedora 21/RHEL7/CentOS7: openSUSE/SLE 12::
# sudo yum install mariadb mariadb-server
# sudo systemctl start mariadb.service
# Fedora 22 or higher: sudo zypper install rabbitmq-server
# sudo dnf install mariadb mariadb-server sudo systemctl start rabbitmq-server.service
# sudo systemctl start mariadb.service
# openSUSE/SLE 12: #. Install mysql-server:
# sudo zypper install mariadb
# sudo systemctl start mysql.service
# If using MySQL, you need to create the initial database Ubuntu/Debian::
mysql -u root -pMYSQL_ROOT_PWD -e "create schema ironic"
sudo apt-get install mysql-server
RHEL7/CentOS7::
sudo yum install mariadb mariadb-server
sudo systemctl start mariadb.service
Fedora::
sudo dnf install mariadb mariadb-server
sudo systemctl start mariadb.service
openSUSE/SLE 12::
sudo zypper install mariadb
sudo systemctl start mysql.service
If using MySQL, you need to create the initial database::
mysql -u root -pMYSQL_ROOT_PWD -e "create schema ironic"
.. note:: if you choose not to install mysql-server, ironic will default to .. note:: if you choose not to install mysql-server, ironic will default to
using a local sqlite database. using a local sqlite database.

View File

@ -23,11 +23,11 @@ node(s) where ``ironic-conductor`` is running.
sudo apt-get install xinetd tftpd-hpa syslinux-common pxelinux sudo apt-get install xinetd tftpd-hpa syslinux-common pxelinux
Fedora 21/RHEL7/CentOS7:: RHEL7/CentOS7::
sudo yum install tftp-server syslinux-tftpboot xinetd sudo yum install tftp-server syslinux-tftpboot xinetd
Fedora 22 or higher:: Fedora::
sudo dnf install tftp-server syslinux-tftpboot xinetd sudo dnf install tftp-server syslinux-tftpboot xinetd
@ -128,11 +128,11 @@ steps on the ironic conductor node to configure the PXE UEFI environment.
sudo apt-get install grub-efi-amd64-signed shim-signed sudo apt-get install grub-efi-amd64-signed shim-signed
Fedora 21/RHEL7/CentOS7:: RHEL7/CentOS7::
sudo yum install grub2-efi shim sudo yum install grub2-efi shim
Fedora 22 or higher:: Fedora::
sudo dnf install grub2-efi shim sudo dnf install grub2-efi shim
@ -147,7 +147,7 @@ steps on the ironic conductor node to configure the PXE UEFI environment.
sudo cp /usr/lib/shim/shim.efi.signed /tftpboot/bootx64.efi sudo cp /usr/lib/shim/shim.efi.signed /tftpboot/bootx64.efi
sudo cp /usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed /tftpboot/grubx64.efi sudo cp /usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed /tftpboot/grubx64.efi
Fedora: (21 and later):: Fedora::
sudo cp /boot/efi/EFI/fedora/shim.efi /tftpboot/bootx64.efi sudo cp /boot/efi/EFI/fedora/shim.efi /tftpboot/bootx64.efi
sudo cp /boot/efi/EFI/fedora/grubx64.efi /tftpboot/grubx64.efi sudo cp /boot/efi/EFI/fedora/grubx64.efi /tftpboot/grubx64.efi
@ -272,11 +272,11 @@ on the Bare Metal service node(s) where ``ironic-conductor`` is running.
apt-get install ipxe apt-get install ipxe
Fedora 21/RHEL7/CentOS7:: RHEL7/CentOS7::
yum install ipxe-bootimgs yum install ipxe-bootimgs
Fedora 22 or higher:: Fedora::
dnf install ipxe-bootimgs dnf install ipxe-bootimgs

View File

@ -29,31 +29,37 @@ CoreOS tools
git clone https://git.openstack.org/openstack/ironic-python-agent git clone https://git.openstack.org/openstack/ironic-python-agent
#. Install the requirements:: #. Install the requirements:
Fedora 21/RHEL7/CentOS7: RHEL7/CentOS7::
sudo yum install docker gzip util-linux cpio findutils grep gpg
Fedora 22 or higher: sudo yum install docker gzip util-linux cpio findutils grep gpg
sudo dnf install docker gzip util-linux cpio findutils grep gpg
Ubuntu 14.04 (trusty) or higher: Fedora::
sudo apt-get install docker.io gzip uuid-runtime cpio findutils grep gnupg cgroup-lite
SUSE: sudo dnf install docker gzip util-linux cpio findutils grep gpg
sudo zypper install docker gzip util-linux cpio findutils grep gpg2
Ubuntu 14.04 (trusty) or higher::
sudo apt-get install docker.io gzip uuid-runtime cpio findutils grep gnupg cgroup-lite
SUSE::
sudo zypper install docker gzip util-linux cpio findutils grep gpg2
#. Change directory to ``imagebuild/coreos``:: #. Change directory to ``imagebuild/coreos``::
cd ironic-python-agent/imagebuild/coreos cd ironic-python-agent/imagebuild/coreos
#. Start the docker daemon:: #. Start the docker daemon:
Fedora/RHEL7/CentOS7/SUSE: Fedora/RHEL7/CentOS7/SUSE::
sudo systemctl start docker
Ubuntu: sudo systemctl start docker
sudo service docker start
Ubuntu::
sudo service docker start
#. Create the image:: #. Create the image::

View File

@ -6,36 +6,37 @@ Bare Metal service comes with an example file for configuring the
#. Install the apache service: #. Install the apache service:
.. TODO(mmitchell): Split this based on operating system RHEL7/CentOS7::
.. code-block:: console
Fedora 21/RHEL7/CentOS7: sudo yum install httpd
sudo yum install httpd
Fedora 22 (or higher): Fedora::
sudo dnf install httpd
Debian/Ubuntu: sudo dnf install httpd
apt-get install apache2
SUSE: Debian/Ubuntu::
zypper install apache2
apt-get install apache2
SUSE::
zypper install apache2
#. Download the ``etc/apache2/ironic`` file from the Ironic project tree and #. Download the ``etc/apache2/ironic`` file from the Ironic project tree and
copy it to the apache sites: copy it to the apache sites:
.. TODO(mmitchell): Split this based on operating system Fedora/RHEL7/CentOS7::
.. code-block:: console
Fedora/RHEL7/CentOS7: sudo cp etc/apache2/ironic /etc/httpd/conf.d/ironic.conf
sudo cp etc/apache2/ironic /etc/httpd/conf.d/ironic.conf
Debian/Ubuntu: Debian/Ubuntu::
sudo cp etc/apache2/ironic /etc/apache2/sites-available/ironic.conf
SUSE sudo cp etc/apache2/ironic /etc/apache2/sites-available/ironic.conf
sudo cp etc/apache2/ironic /etc/apache2/vhosts.d/ironic.conf
SUSE::
sudo cp etc/apache2/ironic /etc/apache2/vhosts.d/ironic.conf
#. Edit the recently copied ``<apache-configuration-dir>/ironic.conf``: #. Edit the recently copied ``<apache-configuration-dir>/ironic.conf``:
@ -56,18 +57,18 @@ Bare Metal service comes with an example file for configuring the
#. Enable the apache ``ironic`` in site and reload: #. Enable the apache ``ironic`` in site and reload:
.. TODO(mmitchell): Split this based on operating system Fedora/RHEL7/CentOS7::
.. code-block:: console
Fedora/RHEL7/CentOS7: sudo systemctl reload httpd
sudo systemctl reload httpd
Debian/Ubuntu: Debian/Ubuntu::
sudo a2ensite ironic
sudo service apache2 reload
SUSE: sudo a2ensite ironic
sudo systemctl reload apache2 sudo service apache2 reload
SUSE::
sudo systemctl reload apache2
.. note:: .. note::
The file ``ironic-api-wsgi`` is automatically generated by pbr and is The file ``ironic-api-wsgi`` is automatically generated by pbr and is

View File

@ -79,11 +79,10 @@ Configuring ironic-api service
#. Restart the ironic-api service: #. Restart the ironic-api service:
.. TODO(mmitchell): Split this based on operating system Fedora/RHEL7/CentOS7/SUSE::
.. code-block:: console
Fedora/RHEL7/CentOS7/SUSE: sudo systemctl restart openstack-ironic-api
sudo systemctl restart openstack-ironic-api
Ubuntu: Ubuntu::
sudo service ironic-api restart
sudo service ironic-api restart

View File

@ -161,13 +161,12 @@ Configuring ironic-conductor service
#. Restart the ironic-conductor service: #. Restart the ironic-conductor service:
.. TODO(mmitchell): Split this based on operating system Fedora/RHEL7/CentOS7/SUSE::
.. code-block:: console
Fedora/RHEL7/CentOS7/SUSE: sudo systemctl restart openstack-ironic-conductor
sudo systemctl restart openstack-ironic-conductor
Ubuntu: Ubuntu::
sudo service ironic-conductor restart
sudo service ironic-conductor restart
.. _Keystoneauth documentation: https://docs.openstack.org/keystoneauth/latest/ .. _Keystoneauth documentation: https://docs.openstack.org/keystoneauth/latest/