Uncategorized

Configuration Specification v2.2.0-experimental

NOTE: This pre-release version of the specification is experimental and is subject to change without notice or regard to backward compatibility.

The Ignition configuration is a JSON document conforming to the following specification, with italicized entries being optional:

ignition (object): metadata about the configuration itself.

version (string): the semantic version number of the spec. The spec version must be compatible with the latest version (2.2.0-experimental). Compatibility requires the major versions to match and the spec version be less than or equal to the latest version. -experimental versions compare less than the final version with the same number, and previous experimental versions are not accepted.

config (objects): options related to the configuration.

append (list of objects): a list of the configs to be appended to the current config.

source (string): the URL of the config. Supported schemes are http, https, s3, tftp, and data. Note: When using http, it is advisable to use the verification option to ensure the contents haven't been modified.

verification (object): options related to the verification of the config.

hash (string): the hash of the config, in the form <type>-<value> where type is sha512.

replace (object): the config that will replace the current.

source (string): the URL of the config. Supported schemes are http, https, s3, tftp, and data. Note: When using http, it is advisable to use the verification option to ensure the contents haven't been modified.

verification (object): options related to the verification of the config.

hash (string): the hash of the config, in the form <type>-<value> where type is sha512.

certificateAuthorities (list of objects): the list of additional certificate authorities (in addition to the system authorities) to be used for TLS verification when fetching over https.

source (string): the URL of the certificate (in PEM format). Supported schemes are http, https, s3, tftp, and data. Note: When using http, it is advisable to use the verification option to ensure the contents haven't been modified.

verification (object): options related to the verification of the certificate.

hash (string): the hash of the certificate, in the form <type>-<value> where type is sha512.

storage (object): describes the desired state of the system's storage devices.

disks (list of objects): the list of disks to be configured and their options.

device (string): the absolute path to the device. Devices are typically referenced by the /dev/disk/by-* symlinks.

wipeTable (boolean): whether or not the partition tables shall be wiped. When true, the partition tables are erased before any further manipulation. Otherwise, the existing entries are left intact.

partitions (list of objects): the list of partitions and their configuration for this particular disk.

label (string): the PARTLABEL for the partition.

number (integer): the partition number, which dictates it's position in the partition table (one-indexed). If zero, use the next available partition slot.

size (integer): the size of the partition (in device logical sectors, 512 or 4096 bytes). If zero, the partition will be made as large as possible.

start (integer): the start of the partition (in device logical sectors). If zero, the partition will be positioned at the start of the largest block available.

options (list of strings, DEPRECATED): any additional options to be passed to the format-specific mkfs utility.

path (string): the mount-point of the filesystem. A non-null entry indicates that the filesystem has already been mounted by the system at the specified path. This is really only useful for "/sysroot".

files (list of objects): the list of files to be written.

filesystem (string): the internal identifier of the filesystem in which to write the file. This matches the last filesystem with the given identifier.

path (string): the absolute path to the file.

overwrite (boolean): whether to delete preexisting nodes at the path. Defaults to true.

append (boolean): whether to append to the specified file. Creates a new file if nothing exists at the path. Cannot be set if overwrite is set to true.

contents (object): options related to the contents of the file.

compression (string): the type of compression used on the contents (null or gzip). Compression cannot be used with S3.

source (string): the URL of the file contents. Supported schemes are http, https, tftp, s3, and data. When using http, it is advisable to use the verification option to ensure the contents haven't been modified.

verification (object): options related to the verification of the file contents.

hash (string): the hash of the config, in the form <type>-<value> where type is sha512.

mode (integer): the file's permission mode. Note that the mode must be properly specified as a decimal value (i.e. 0644 -> 420).

user (object): specifies the file's owner.

id (integer): the user ID of the owner.

name (string): the user name of the owner.

group (object): specifies the group of the owner.

id (integer): the group ID of the owner.

name (string): the group name of the owner.

directories (list of objects): the list of directories to be created.

filesystem (string): the internal identifier of the filesystem in which to create the directory. This matches the last filesystem with the given identifier.

path (string): the absolute path to the directory.

overwrite (boolean): whether to delete preexisting nodes at the path.

mode (integer): the directory's permission mode. Note that the mode must be properly specified as a decimal value (i.e. 0755 -> 493).

user (object): specifies the directory's owner.

id (integer): the user ID of the owner.

name (string): the user name of the owner.

group (object): specifies the group of the owner.

id (integer): the group ID of the owner.

name (string): the group name of the owner.

links (list of objects): the list of links to be created

filesystem (string): the internal identifier of the filesystem in which to write the link. This matches the last filesystem with the given identifier.

path (string): the absolute path to the link

overwrite (boolean): whether to delete preexisting nodes at the path.

user (object): specifies the symbolic link's owner.

id (integer): the user ID of the owner.

name (string): the user name of the owner.

group (object): specifies the group of the owner.

id (integer): the group ID of the owner.

name (string): the group name of the owner.

target (string): the target path of the link

hard (boolean): a symbolic link is created if this is false, a hard one if this is true.

systemd (object): describes the desired state of the systemd units.

units (list of objects): the list of systemd units.

name (string): the name of the unit. This must be suffixed with a valid unit type (e.g. "thing.service").

enable (boolean, DEPRECATED): whether or not the service shall be enabled. When true, the service is enabled. In order for this to have any effect, the unit must have an install section.

enabled (boolean): whether or not the service shall be enabled. When true, the service is enabled. When false, the service is disabled. When omitted, the service is unmodified. In order for this to have any effect, the unit must have an install section.

mask (boolean): whether or not the service shall be masked. When true, the service is masked by symlinking it to /dev/null.

contents (string): the contents of the unit.

dropins (list of objects): the list of drop-ins for the unit.

name (string): the name of the drop-in. This must be suffixed with ".conf".

contents (string): the contents of the drop-in.

networkd (object): describes the desired state of the networkd files.

units (list of objects): the list of networkd files.

name (string): the name of the file. This must be suffixed with a valid unit type (e.g. "00-eth0.network").

contents (string): the contents of the networkd file.

dropins (list of objects): the list of drop-ins for the unit.

name (string): the name of the drop-in. This must be suffixed with ".conf".

contents (string): the contents of the drop-in.

passwd (object): describes the desired additions to the passwd database.

users (list of objects): the list of accounts that shall exist.

name (string): the username for the account.

passwordHash (string): the encrypted password for the account.

sshAuthorizedKeys (list of strings): a list of SSH keys to be added to the user's authorized_keys.

uid (integer): the user ID of the account.

gecos (string): the GECOS field of the account.

homeDir (string): the home directory of the account.

noCreateHome (boolean): whether or not to create the user's home directory. This only has an effect if the account doesn't exist yet.

primaryGroup (string): the name of the primary group of the account.

groups (list of strings): the list of supplementary groups of the account.

noUserGroup (boolean): whether or not to create a group with the same name as the user. This only has an effect if the account doesn't exist yet.

noLogInit (boolean): whether or not to add the user to the lastlog and faillog databases. This only has an effect if the account doesn't exist yet.

shell (string): the login shell of the new account.

system (bool): whether or not to make the account a system account. This only has an effect if the account doesn't exist yet.

create (object, DEPRECATED): contains the set of options to be used when creating the user. A non-null entry indicates that the user account shall be created. This object has been marked for deprecation, please use the users level fields instead.

uid (integer): the user ID of the new account.

gecos (string): the GECOS field of the new account.

homeDir (string): the home directory of the new account.

noCreateHome (boolean): whether or not to create the user's home directory.

primaryGroup (string): the name or ID of the primary group of the new account.

groups (list of strings): the list of supplementary groups of the new account.

noUserGroup (boolean): whether or not to create a group with the same name as the user.

noLogInit (boolean): whether or not to add the user to the lastlog and faillog databases.