summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
authorAlberto Contreras <alberto.contreras@canonical.com>2022-12-15 17:13:17 +0100
committerGitHub <noreply@github.com>2022-12-15 17:13:17 +0100
commit99c0750fe954a1c166d7dd7c3e9757c2449a5e48 (patch)
treebf242d73ed33ad5c40433a817612dfa24978475e /cloudinit/config
parent6bdd88a7f1d69dc4aac9fa51d663c4b11e3b5217 (diff)
downloadcloud-init-git-99c0750fe954a1c166d7dd7c3e9757c2449a5e48.tar.gz
doc: improve cc_write_files doc (#1916)
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/cc_write_files.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/cloudinit/config/cc_write_files.py b/cloudinit/config/cc_write_files.py
index f7d89935..f59b2d54 100644
--- a/cloudinit/config/cc_write_files.py
+++ b/cloudinit/config/cc_write_files.py
@@ -37,15 +37,18 @@ meta: MetaSchema = {
before being written. For empty file creation, content can be omitted.
.. note::
- if multiline data is provided, care should be taken to ensure that it
- follows yaml formatting standards. to specify binary data, use the yaml
+ If multiline data is provided, care should be taken to ensure that it
+ follows yaml formatting standards. To specify binary data, use the yaml
option ``!!binary``
.. note::
Do not write files under /tmp during boot because of a race with
systemd-tmpfiles-clean that can cause temp files to get cleaned during
the early boot process. Use /run/somedir instead to avoid race
- LP:1707222."""
+ LP:1707222.
+
+ .. warning::
+ Existing files will be overridden."""
),
"distros": ["all"],
"examples": [