| 1 |
<?xml version='1.0'?> <!--*-nxml-*--> |
| 2 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 3 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 4 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 5 |
|
| 6 |
<refentry id="systemd-imds-generator" conditional='ENABLE_IMDS' |
| 7 |
xmlns:xi="http://www.w3.org/2001/XInclude"> |
| 8 |
|
| 9 |
<refentryinfo> |
| 10 |
<title>systemd-imds-generator</title> |
| 11 |
<productname>systemd</productname> |
| 12 |
</refentryinfo> |
| 13 |
|
| 14 |
<refmeta> |
| 15 |
<refentrytitle>systemd-imds-generator</refentrytitle> |
| 16 |
<manvolnum>8</manvolnum> |
| 17 |
</refmeta> |
| 18 |
|
| 19 |
<refnamediv> |
| 20 |
<refname>systemd-imds-generator</refname> |
| 21 |
<refpurpose>Generator to automatically enable IMDS on supporting environments</refpurpose> |
| 22 |
</refnamediv> |
| 23 |
|
| 24 |
<refsynopsisdiv> |
| 25 |
<para><filename>/usr/lib/systemd/system-generators/systemd-imds-generator</filename></para> |
| 26 |
</refsynopsisdiv> |
| 27 |
|
| 28 |
<refsect1> |
| 29 |
<title>Description</title> |
| 30 |
|
| 31 |
<para><command>systemd-imds-generator</command> is a generator that enables IMDS (Instance Metadata |
| 32 |
Service) functionality at boot on systems that support it. Specifically it does three things:</para> |
| 33 |
|
| 34 |
<itemizedlist> |
| 35 |
<listitem><para>It pulls the <filename>systemd-imdsd.socket</filename> unit (which activates |
| 36 |
<citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry>) |
| 37 |
into the initial transaction, which provides IMDS access to local applications via Varlink |
| 38 |
IPC.</para></listitem> |
| 39 |
|
| 40 |
<listitem><para>It pulls the <filename>systemd-imds-early-network.service</filename> unit into the |
| 41 |
initial transaction, which generates a suitable |
| 42 |
<citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> |
| 43 |
network configuration file that allows early-boot network access to the IMDS |
| 44 |
functionality.</para></listitem> |
| 45 |
|
| 46 |
<listitem><para>It pulls the <filename>systemd-imds-import.service</filename> unit into the initial |
| 47 |
transaction, which automatically imports various credentials from IMDS into the local system, storing |
| 48 |
them in <filename>/run/credstore/</filename>.</para></listitem> |
| 49 |
</itemizedlist> |
| 50 |
|
| 51 |
<para>By default, whether to pull in these services or not is decided based on |
| 52 |
<citerefentry><refentrytitle>hwdb</refentrytitle><manvolnum>7</manvolnum></citerefentry> information, |
| 53 |
that detects various IMDS environments automatically. However, this logic may be overridden via |
| 54 |
<varname>systemd.imds=</varname>, see below.</para> |
| 55 |
|
| 56 |
<para><command>systemd-imds-generator</command> implements |
| 57 |
<citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para> |
| 58 |
</refsect1> |
| 59 |
|
| 60 |
<refsect1> |
| 61 |
<title>Kernel Command Line</title> |
| 62 |
|
| 63 |
<para><command>systemd-imds-generator</command> understands the following kernel command line |
| 64 |
parameters:</para> |
| 65 |
|
| 66 |
<variablelist class='kernel-commandline-options'> |
| 67 |
|
| 68 |
<varlistentry> |
| 69 |
<term><varname>systemd.imds=</varname></term> |
| 70 |
<listitem> |
| 71 |
<para>Takes a boolean argument or the special value <literal>auto</literal>, and may be used to |
| 72 |
enable or disable the IMDS logic. Note that this controls only whether the relevant services (as |
| 73 |
listed above) are automatically pulled into the initial transaction, it has no effect if some other |
| 74 |
unit or the user explicitly activates the relevant units. If this option is not used (or set to |
| 75 |
<literal>auto</literal>) automatic detection of IMDS is used, see above.</para> |
| 76 |
|
| 77 |
<xi:include href="version-info.xml" xpointer="v261"/> |
| 78 |
</listitem> |
| 79 |
</varlistentry> |
| 80 |
|
| 81 |
<xi:include href="[email protected]" xpointer="kernel-cmdline-imds-network"/> |
| 82 |
|
| 83 |
<varlistentry> |
| 84 |
<term><varname>systemd.imds.import=</varname></term> |
| 85 |
<listitem> |
| 86 |
<para>Takes a boolean argument. If false the <filename>systemd-imds-import.service</filename> (see |
| 87 |
above) is not pulled into the initial transaction, i.e. no credentials are imported from |
| 88 |
IMDS. Defaults to true.</para> |
| 89 |
|
| 90 |
<xi:include href="version-info.xml" xpointer="v261"/> |
| 91 |
</listitem> |
| 92 |
</varlistentry> |
| 93 |
|
| 94 |
</variablelist> |
| 95 |
</refsect1> |
| 96 |
|
| 97 |
<refsect1> |
| 98 |
<title>See Also</title> |
| 99 |
<para><simplelist type="inline"> |
| 100 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 101 |
<member><citerefentry><refentrytitle>systemd-imds</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 102 |
<member><citerefentry><refentrytitle>[email protected]</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 103 |
<member><citerefentry><refentrytitle>systemd.system-credentials</refentrytitle><manvolnum>7</manvolnum></citerefentry></member> |
| 104 |
</simplelist></para> |
| 105 |
</refsect1> |
| 106 |
|
| 107 |
</refentry> |