CoreOS 配置工具 Ignition v2.2
时间:2022-04-29
本文章向大家介绍CoreOS 配置工具 Ignition v2.2,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
This pre-release version of the specification is experimental and is subject to change without notice or regard to backward compatibility.
https://github.com/coreos/ignition/blob/master/doc/configuration-v2_2-experimental.md
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.
-
hash (string): the hash of the config, in the form
-
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.
-
hash (string): the hash of the config, in the form
-
append (list of objects): a list of the configs to be appended to the current config.
-
timeouts (object): options relating to http timeouts when fetching files over http or https.
- httpResponseHeaders (integer) the time to wait (in seconds) for the server’s response headers (but not the body) after making a request. 0 indicates no timeout. Default is 10 seconds.
- httpTotal (integer) the time limit (in seconds) for the operation (connection, request, and response), including retries. 0 indicates no timeout. Default is 0.
-
version (string): the semantic version number of the spec. The spec version must be compatible with the latest version (
-
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 fill the remainder of the disk.
- start (integer): the start of the partition (in device logical sectors). If zero, the partition will be positioned at the earliest available part of the disk.
- typeGuid (string): the GPT partition type GUID. If omitted, the default will be 0FC63DAF-8483-4772-8E79-3D69D8477DE4 (Linux filesystem data).
- guid (string): the GPT unique partition GUID.
-
device (string): the absolute path to the device. Devices are typically referenced by the
-
raid (list of objects): the list of RAID arrays to be configured.
- name (string): the name to use for the resulting md device.
- level (string): the redundancy level of the array (e.g. linear, raid1, raid5, etc.).
- devices (list of strings): the list of devices (referenced by their absolute path) in the array.
- spares (integer): the number of spares (if applicable) in the array.
-
filesystems (list of objects): the list of filesystems to be configured and/or used in the “files” section. Either “mount” or “path” needs to be specified.
- name (string): the identifier for the filesystem, internal to Ignition. This is only required if the filesystem needs to be referenced in the “files” section.
-
mount (object): contains the set of mount and formatting options for the filesystem. A non-null entry indicates that the filesystem should be mounted before it is used by Ignition.
-
device (string): the absolute path to the device. Devices are typically referenced by the
/dev/disk/by-*
symlinks. - format (string): the filesystem format (ext4, btrfs, xfs, vfat, or swap).
- wipeFilesystem (boolean): whether or not to wipe the device before filesystem creation, see the documentation on filesystems for more information.
- label (string): the label of the filesystem.
- uuid (string): the uuid of the filesystem.
- options (list of strings): any additional options to be passed to the format-specific mkfs utility.
-
create (object, DEPRECATED): contains the set of options to be used when creating the filesystem.
- force (boolean, DEPRECATED): whether or not the create operation shall overwrite an existing filesystem.
- options (list of strings, DEPRECATED): any additional options to be passed to the format-specific mkfs utility.
-
device (string): the absolute path to the device. Devices are typically referenced by the
- 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.
-
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.
-
hash (string): the hash of the config, in the form
- 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.
- 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
-
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.
-
disks (list of objects): the list of disks to be configured and their options.
-
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.
-
units (list of objects): the list of systemd units.
-
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.
-
units (list of objects): the list of networkd files.
-
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.
- shell (string): the login shell of the new account.
-
groups (list of objects): the list of groups to be added.
- name (string): the name of the group.
- gid (integer): the group ID of the new group.
- passwordHash (string): the encrypted password of the new group.
-
users (list of objects): the list of accounts that shall exist.
- BZOJ 2456: mode(新生必做的水题)
- 【专知-PyTorch手把手深度学习教程07】NLP-基于字符级RNN的姓名分类
- Codeforces Round #301 (Div. 2)(A,【模拟】B,【贪心构造】C,【DFS】)
- 【专知-PyTorch手把手深度学习教程06】NLP-Word Embedding快速理解与PyTorch实现: 图文+代码
- [linux][memory]memcmp几种实现和性能对比
- 蒙特卡洛算法及其实现
- 【专知-PyTorch手把手深度学习教程05】Dropout快速理解与PyTorch实现: 图文+代码
- 【专知-PyTorch手把手深度学习教程04】GAN快速理解与PyTorch实现: 图文+代码
- 2017年中国大学生程序设计竞赛-中南地区赛暨第八届湘潭市大学生计算机程序设计大赛题解&源码(A.高斯消元,D,模拟,E,前缀和,F,LCS,H,Prim算法,I,胡搞,J,树状数组)
- 【专知中秋呈献-PyTorch手把手深度学习教程03】LSTM快速理解与PyTorch实现: 图文+代码
- BZOJ 3098: Hash Killer II(新生必做的水题)
- [接口测试 - 基础篇] 04 无法绕过的json解析
- 【专知-PyTorch手把手深度学习教程02】CNN快速理解与PyTorch实现: 图文+代码
- [接口测试 - 基础篇] 03 unittest测试框架了解多少才够?
- JavaScript 教程
- JavaScript 编辑工具
- JavaScript 与HTML
- JavaScript 与Java
- JavaScript 数据结构
- JavaScript 基本数据类型
- JavaScript 特殊数据类型
- JavaScript 运算符
- JavaScript typeof 运算符
- JavaScript 表达式
- JavaScript 类型转换
- JavaScript 基本语法
- JavaScript 注释
- Javascript 基本处理流程
- Javascript 选择结构
- Javascript if 语句
- Javascript if 语句的嵌套
- Javascript switch 语句
- Javascript 循环结构
- Javascript 循环结构实例
- Javascript 跳转语句
- Javascript 控制语句总结
- Javascript 函数介绍
- Javascript 函数的定义
- Javascript 函数调用
- Javascript 几种特殊的函数
- JavaScript 内置函数简介
- Javascript eval() 函数
- Javascript isFinite() 函数
- Javascript isNaN() 函数
- parseInt() 与 parseFloat()
- escape() 与 unescape()
- Javascript 字符串介绍
- Javascript length属性
- javascript 字符串函数
- Javascript 日期对象简介
- Javascript 日期对象用途
- Date 对象属性和方法
- Javascript 数组是什么
- Javascript 创建数组
- Javascript 数组赋值与取值
- Javascript 数组属性和方法
- 31.opengl高级光照-泛光bloom
- Swift 泛型
- Swift高阶函数map,filter,reduce
- 一文解决大批量基因相关性分析
- Swift String 与 NSString
- 30.opengl高级光照-HDR
- Angular bootstrap的一个例子
- MicrobiomeAnalyst | 零代码分析宏基因组数据
- Java8实战——通过行为参数化传递代码 顶
- Angular component的一个例子
- 初识mybatis中的缓存
- 【卷积神经网络结构专题】ResNet及其变体的结构梳理、有效性分析
- Steganographer:能帮助在图片中隐藏数据的Python隐写工具
- 内网横向移动:Kerberos认证与(哈希)票据传递攻击
- 诺禾致源linux下数据下载