1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
=====================================================
``baremetal`` Standalone Command-Line Interface (CLI)
=====================================================
.. program:: baremetal
.. highlight:: bash
Synopsis
========
:program:`baremetal [options]` <command> [command-options]
:program:`baremetal help` <command>
Description
===========
The standalone ``baremetal`` tool allows interacting with the Bare Metal
service without installing the OpenStack Client tool as in
:doc:`osc_plugin_cli`.
The standalone tool is mostly identical to its OSC counterpart, with two
exceptions:
#. No need to prefix commands with ``openstack``.
#. No authentication is assumed by default.
Check the :doc:`OSC CLI reference </cli/osc/v1/index>` for a list of available
commands.
Inspector support
-----------------
The standalone ``baremetal`` tool optionally supports the low-level bare metal
introspection API provided by ironic-inspector_. If ironic-inspector-client_ is
installed, its commands_ are automatically available (also without the
``openstack`` prefix).
.. _ironic-inspector: https://docs.openstack.org/ironic-inspector/
.. _ironic-inspector-client: https://docs.openstack.org/python-ironic-inspector-client/
.. _commands: https://docs.openstack.org/python-ironic-inspector-client/latest/cli/index.html
Standalone usage
----------------
To use the CLI with a standalone bare metal service, you need to provide an
endpoint to connect to. It can be done in three ways:
#. Provide an explicit ``--os-endpoint`` argument, e.g.:
.. code-block:: bash
$ baremetal --os-endpoint https://ironic.host:6385 node list
#. Set the corresponding environment variable, e.g.:
.. code-block:: bash
$ export OS_ENDPOINT=https://ironic.host:6385
$ baremetal node list
#. Populate a clouds.yaml_ file, setting ``baremetal_endpoint_override``, e.g.:
.. code-block:: bash
$ cat ~/.config/openstack/clouds.yaml
clouds:
ironic:
auth_type: none
baremetal_endpoint_override: http://127.0.0.1:6385
$ export OS_CLOUD=ironic
$ baremetal node list
`Inspector support`_ works similarly, but the ``clouds.yaml`` option is
called ``baremetal_introspection_endpoint_override``. The two endpoints can
be configured simultaneously, e.g.:
.. code-block:: bash
$ cat ~/.config/openstack/clouds.yaml
clouds:
ironic:
auth_type: none
baremetal_endpoint_override: http://127.0.0.1:6385
baremetal_introspection_endpoint_override: http://127.0.0.1:5050
$ export OS_CLOUD=ironic
$ baremetal node list
$ baremetal introspection list
.. _clouds.yaml: https://docs.openstack.org/openstacksdk/latest/user/guides/connect_from_config.html
Usage with OpenStack
--------------------
The standalone CLI can also be used with the Bare Metal service installed as
part of OpenStack. See :ref:`osc-auth` for information on the required input.
|