.. _install-obs:


Install and configure for openSUSE and SUSE Linux Enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This section describes how to install and configure the Key Manager service
for openSUSE Leap 42.1 and SUSE Linux Enterprise Server 12 SP1.

.. include:: common_prerequisites.rst

Install and configure components
--------------------------------

#. Install the packages:

   .. code-block:: console

      # zypper --quiet --non-interactive install

.. include:: common_configure.rst


Finalize installation
---------------------

Start the Key Manager services and configure them to start when
the system boots:

.. code-block:: console

   # systemctl enable openstack-barbican-api.service

   # systemctl start openstack-barbican-api.service

.. _install-obs:


Install and configure for openSUSE and SUSE Linux Enterprise
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This section describes how to install and configure the Key Manager service
for openSUSE Leap 42.1 and SUSE Linux Enterprise Server 12 SP1.

.. include:: common_prerequisites.rst

Install and configure components
--------------------------------

#. Install the packages:

   .. code-block:: console

      # zypper install openstack-barbican-api openstack-barbican-keystone-listener openstack-barbican-worker

.. include:: common_configure.rst


Finalize installation
---------------------

#. Copy the sample Apache vhost file into place:

.. code-block:: console

   # cp /etc/apache2/conf.d/barbican-api.conf.sample /etc/apache2/vhosts.d/barbican-api.conf

#.  Start the Apache HTTP service and configure it to start when the system boots:

    .. code-block:: console

        # systemctl enable apache2.service
        # systemctl start apache2.service

Fix install guide docs for SUSE
Fix install guide docs for SUSE

First, the example package install command neglected to include any of
the package names, so this patch adds the correct package names as well
as omits the non-essential, personal-preference command flags so as to
be consistent with the examples in the main OpenStack install guide.

Second, like the barbican packages in RDO, the OBS barbican packages do
not include an openstack-barbican-api systemd unit file and instead
provide an Apache vhost sample file, so this patch modifies the service
instructions to configure the service with Apache.

Change-Id: I13bfeef4f06602984d2ffb727212ab6d39797401
