cdist/cdist/conf/type/__interface/man.rst

91 lines
2.2 KiB
ReStructuredText

cdist-type__interface(7)
========================
NAME
----
cdist-type__interface - Manage network interfaces
DESCRIPTION
-----------
This cdist type allows you to manage network interfaces on the target.
It dispatches the actual work to the interface management system specific types.
Only TCP/IP is supported. For other protocol stacks, use the specific types for
your OS.
REQUIRED PARAMETERS
-------------------
None.
OPTIONAL PARAMETERS
-------------------
address
The IP address (in CIDR notation) to assign to the network interface.
Can be repeated to assign multiple IP addresses.
bootproto
The boot protocol to use.
Acceptable values are ``dhcp``, ``static``, ``manual``.
Defaults to ``dhcp``.
comment
A comment to be stored in the configuration file.
extra-config
Other options to be passed to the implementation type verbatim.
Using this option makes the configuration non-portable to other backends.
If this option is used extensively, it is recommended to use the respective
backend type directly.
gateway
The default gateway to assign to this interface (optional).
name
The name of the physical or logical network device to configure.
Defaults to ``__object_id``.
onchange
The action to perform if the interface configuration has changed.
Available options are:
leave (default)
Do nothing.
up
Bring the interface up if it is down.
down
Bring the interface down if it is up.
refresh
Refresh the interface (down && up).
state
``present`` or ``absent``, defaults to ``present``.
type
The backend to use to store the interface configuration.
Default is to auto detect.
BOOLEAN PARAMETERS
------------------
onboot
Whether to bring the interface up on boot
hotplug
Allow/disallow hotplug support for this interface
EXAMPLES
--------
.. code-block:: sh
# TODO
__interface
AUTHORS
-------
Dennis Camera <dennis.camera@ssrq-sds-fds.ch>
COPYING
-------
Copyright \(C) 2020 Dennis Camera. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.