Merge "Reformat instructions related with various OS"
This commit is contained in:
commit
d42343deea
@ -20,15 +20,18 @@ 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
|
||||
more from `FedoraProject page`_.
|
||||
|
||||
Installation example::
|
||||
Installation example:
|
||||
|
||||
Ubuntu::
|
||||
|
||||
Ubuntu:
|
||||
sudo apt-get install shellinabox
|
||||
|
||||
Fedora 21/RHEL7/CentOS7:
|
||||
RHEL7/CentOS7::
|
||||
|
||||
sudo yum install shellinabox
|
||||
|
||||
Fedora 22 or higher:
|
||||
Fedora::
|
||||
|
||||
sudo dnf install shellinabox
|
||||
|
||||
You can find more about shellinabox on the `shellinabox page`_.
|
||||
@ -36,15 +39,18 @@ The web console can be configured in Bare Metal service in the following way:
|
||||
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.
|
||||
|
||||
1. Install openssl, for example::
|
||||
1. Install openssl, for example:
|
||||
|
||||
Ubuntu::
|
||||
|
||||
Ubuntu:
|
||||
sudo apt-get install openssl
|
||||
|
||||
Fedora 21/RHEL7/CentOS7:
|
||||
RHEL7/CentOS7::
|
||||
|
||||
sudo yum install openssl
|
||||
|
||||
Fedora 22 or higher:
|
||||
Fedora::
|
||||
|
||||
sudo dnf install openssl
|
||||
|
||||
2. Generate the SSL certificate, here is an example, you can find more about openssl on
|
||||
@ -163,15 +169,18 @@ 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
|
||||
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:
|
||||
RHEL7/CentOS7::
|
||||
|
||||
sudo yum install socat
|
||||
|
||||
Fedora 22 or higher:
|
||||
Fedora::
|
||||
|
||||
sudo dnf install socat
|
||||
|
||||
* Append console parameters for bare metal PXE boot in the Bare Metal
|
||||
|
@ -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
|
||||
|
||||
- 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
|
||||
|
||||
@ -48,7 +48,7 @@ well.
|
||||
package git-review available", use the EPEL software repository.
|
||||
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
|
||||
|
||||
@ -236,42 +236,50 @@ 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
|
||||
want to run a MySQL server on it all the time).
|
||||
|
||||
#. Install rabbitmq-server::
|
||||
#. Install rabbitmq-server:
|
||||
|
||||
Ubuntu/Debian::
|
||||
|
||||
# install rabbit message broker
|
||||
# Ubuntu/Debian:
|
||||
sudo apt-get install rabbitmq-server
|
||||
|
||||
# Fedora 21/RHEL7/CentOS7:
|
||||
RHEL7/CentOS7::
|
||||
|
||||
sudo yum install rabbitmq-server
|
||||
sudo systemctl start rabbitmq-server.service
|
||||
|
||||
# Fedora 22 or higher:
|
||||
Fedora::
|
||||
|
||||
sudo dnf install rabbitmq-server
|
||||
sudo systemctl start rabbitmq-server.service
|
||||
|
||||
# openSUSE/SLE 12:
|
||||
openSUSE/SLE 12::
|
||||
|
||||
sudo zypper install rabbitmq-server
|
||||
sudo systemctl start rabbitmq-server.service
|
||||
|
||||
#. Install mysql-server::
|
||||
#. Install mysql-server:
|
||||
|
||||
# Ubuntu/Debian:
|
||||
# sudo apt-get install mysql-server
|
||||
Ubuntu/Debian::
|
||||
|
||||
# Fedora 21/RHEL7/CentOS7:
|
||||
# sudo yum install mariadb mariadb-server
|
||||
# sudo systemctl start mariadb.service
|
||||
sudo apt-get install mysql-server
|
||||
|
||||
# Fedora 22 or higher:
|
||||
# sudo dnf install mariadb mariadb-server
|
||||
# sudo systemctl start mariadb.service
|
||||
RHEL7/CentOS7::
|
||||
|
||||
# openSUSE/SLE 12:
|
||||
# sudo zypper install mariadb
|
||||
# sudo systemctl start mysql.service
|
||||
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::
|
||||
|
||||
# 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
|
||||
|
@ -23,11 +23,11 @@ node(s) where ``ironic-conductor`` is running.
|
||||
|
||||
sudo apt-get install xinetd tftpd-hpa syslinux-common pxelinux
|
||||
|
||||
Fedora 21/RHEL7/CentOS7::
|
||||
RHEL7/CentOS7::
|
||||
|
||||
sudo yum install tftp-server syslinux-tftpboot xinetd
|
||||
|
||||
Fedora 22 or higher::
|
||||
Fedora::
|
||||
|
||||
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
|
||||
|
||||
Fedora 21/RHEL7/CentOS7::
|
||||
RHEL7/CentOS7::
|
||||
|
||||
sudo yum install grub2-efi shim
|
||||
|
||||
Fedora 22 or higher::
|
||||
Fedora::
|
||||
|
||||
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/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/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
|
||||
|
||||
Fedora 21/RHEL7/CentOS7::
|
||||
RHEL7/CentOS7::
|
||||
|
||||
yum install ipxe-bootimgs
|
||||
|
||||
Fedora 22 or higher::
|
||||
Fedora::
|
||||
|
||||
dnf install ipxe-bootimgs
|
||||
|
||||
|
@ -29,30 +29,36 @@ CoreOS tools
|
||||
|
||||
git clone https://git.openstack.org/openstack/ironic-python-agent
|
||||
|
||||
#. Install the requirements::
|
||||
#. Install the requirements:
|
||||
|
||||
RHEL7/CentOS7::
|
||||
|
||||
Fedora 21/RHEL7/CentOS7:
|
||||
sudo yum install docker gzip util-linux cpio findutils grep gpg
|
||||
|
||||
Fedora 22 or higher:
|
||||
Fedora::
|
||||
|
||||
sudo dnf install docker gzip util-linux cpio findutils grep gpg
|
||||
|
||||
Ubuntu 14.04 (trusty) or higher:
|
||||
Ubuntu 14.04 (trusty) or higher::
|
||||
|
||||
sudo apt-get install docker.io gzip uuid-runtime cpio findutils grep gnupg cgroup-lite
|
||||
|
||||
SUSE:
|
||||
SUSE::
|
||||
|
||||
sudo zypper install docker gzip util-linux cpio findutils grep gpg2
|
||||
|
||||
#. Change directory to ``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:
|
||||
Ubuntu::
|
||||
|
||||
sudo service docker start
|
||||
|
||||
#. Create the image::
|
||||
|
@ -6,35 +6,36 @@ Bare Metal service comes with an example file for configuring the
|
||||
|
||||
#. Install the apache service:
|
||||
|
||||
.. TODO(mmitchell): Split this based on operating system
|
||||
.. code-block:: console
|
||||
RHEL7/CentOS7::
|
||||
|
||||
Fedora 21/RHEL7/CentOS7:
|
||||
sudo yum install httpd
|
||||
|
||||
Fedora 22 (or higher):
|
||||
Fedora::
|
||||
|
||||
sudo dnf install httpd
|
||||
|
||||
Debian/Ubuntu:
|
||||
Debian/Ubuntu::
|
||||
|
||||
apt-get install apache2
|
||||
|
||||
SUSE:
|
||||
SUSE::
|
||||
|
||||
zypper install apache2
|
||||
|
||||
|
||||
#. Download the ``etc/apache2/ironic`` file from the Ironic project tree and
|
||||
copy it to the apache sites:
|
||||
|
||||
.. TODO(mmitchell): Split this based on operating system
|
||||
.. code-block:: console
|
||||
Fedora/RHEL7/CentOS7::
|
||||
|
||||
Fedora/RHEL7/CentOS7:
|
||||
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
|
||||
SUSE::
|
||||
|
||||
sudo cp etc/apache2/ironic /etc/apache2/vhosts.d/ironic.conf
|
||||
|
||||
|
||||
@ -56,17 +57,17 @@ Bare Metal service comes with an example file for configuring the
|
||||
|
||||
#. Enable the apache ``ironic`` in site and reload:
|
||||
|
||||
.. TODO(mmitchell): Split this based on operating system
|
||||
.. code-block:: console
|
||||
Fedora/RHEL7/CentOS7::
|
||||
|
||||
Fedora/RHEL7/CentOS7:
|
||||
sudo systemctl reload httpd
|
||||
|
||||
Debian/Ubuntu:
|
||||
Debian/Ubuntu::
|
||||
|
||||
sudo a2ensite ironic
|
||||
sudo service apache2 reload
|
||||
|
||||
SUSE:
|
||||
SUSE::
|
||||
|
||||
sudo systemctl reload apache2
|
||||
|
||||
.. note::
|
||||
|
@ -79,11 +79,10 @@ Configuring ironic-api service
|
||||
|
||||
#. Restart the ironic-api service:
|
||||
|
||||
.. TODO(mmitchell): Split this based on operating system
|
||||
.. code-block:: console
|
||||
Fedora/RHEL7/CentOS7/SUSE::
|
||||
|
||||
Fedora/RHEL7/CentOS7/SUSE:
|
||||
sudo systemctl restart openstack-ironic-api
|
||||
|
||||
Ubuntu:
|
||||
Ubuntu::
|
||||
|
||||
sudo service ironic-api restart
|
||||
|
@ -161,13 +161,12 @@ Configuring ironic-conductor service
|
||||
|
||||
#. Restart the ironic-conductor service:
|
||||
|
||||
.. TODO(mmitchell): Split this based on operating system
|
||||
.. code-block:: console
|
||||
Fedora/RHEL7/CentOS7/SUSE::
|
||||
|
||||
Fedora/RHEL7/CentOS7/SUSE:
|
||||
sudo systemctl restart openstack-ironic-conductor
|
||||
|
||||
Ubuntu:
|
||||
Ubuntu::
|
||||
|
||||
sudo service ironic-conductor restart
|
||||
|
||||
.. _Keystoneauth documentation: https://docs.openstack.org/keystoneauth/latest/
|
||||
|
Loading…
Reference in New Issue
Block a user