Append with cloud-init write_files



在云初始化中使用write_files时,是否可以附加内容?如果是,如何?

write_files: [
{
"path": "/home/user/some-file",
"content": "nLine to append!"
}
]

perhttps://cloudinit.readthedocs.io/en/latest/topics/modules.html#write-文件

write_files:
- path: /home/user/some-file
content: | 
Line to append!
append: true

这是不可能的,但我添加了功能并提出了合并请求,该请求随后得到了批准。

该功能从18.5起提供。

最新更新