summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2019-12-06 16:00:55 -0800
committerDaniel Watkins <daniel@daniel-watkins.co.uk>2019-12-11 16:55:21 -0500
commit5784c4aaa442af62100c814160bc8f96bfeee5a9 (patch)
treed0685d32818238768b1c412a707e9c3aa06a1df8 /cloudinit
parentf8ab7debb60200b0f79bf2de74676801e8de2e46 (diff)
downloadcloud-init-git-5784c4aaa442af62100c814160bc8f96bfeee5a9.tar.gz
docs: add additional details to per-instance/once
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/config/cc_scripts_per_instance.py3
-rw-r--r--cloudinit/config/cc_scripts_per_once.py5
2 files changed, 6 insertions, 2 deletions
diff --git a/cloudinit/config/cc_scripts_per_instance.py b/cloudinit/config/cc_scripts_per_instance.py
index 2bc8a6ef..75549b52 100644
--- a/cloudinit/config/cc_scripts_per_instance.py
+++ b/cloudinit/config/cc_scripts_per_instance.py
@@ -15,6 +15,9 @@ Any scripts in the ``scripts/per-instance`` directory on the datasource will
be run when a new instance is first booted. Scripts will be run in alphabetical
order. This module does not accept any config keys.
+Some cloud platforms change instance-id if a significant change was made to
+the system. As a result per-instance scripts will run again.
+
**Internal name:** ``cc_scripts_per_instance``
**Module frequency:** per instance
diff --git a/cloudinit/config/cc_scripts_per_once.py b/cloudinit/config/cc_scripts_per_once.py
index 3f27ee34..259bdfab 100644
--- a/cloudinit/config/cc_scripts_per_once.py
+++ b/cloudinit/config/cc_scripts_per_once.py
@@ -12,8 +12,9 @@ Scripts Per Once
**Summary:** run one time scripts
Any scripts in the ``scripts/per-once`` directory on the datasource will be run
-only once. Scripts will be run in alphabetical order. This module does not
-accept any config keys.
+only once. Changes to the instance will not force a re-run. The only way to
+re-run these scripts is to run the clean subcommand and reboot. Scripts will
+be run in alphabetical order. This module does not accept any config keys.
**Internal name:** ``cc_scripts_per_once``