Skip to content

Commit

Permalink
include only vendor scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
s-makin committed Sep 20, 2024
1 parent da92c36 commit d75eed0
Showing 1 changed file with 2 additions and 45 deletions.
47 changes: 2 additions & 45 deletions doc/rtd/reference/yaml_examples/scripts.rst
Original file line number Diff line number Diff line change
@@ -1,54 +1,11 @@
.. _cce-scripts:

Run scripts
***********
Run vendor scripts
******************

Scripts can be run by cloud-init by ensuring that the scripts are placed in
the correct directory on the datasource.

Run per-boot scripts
====================

Scripts in the ``scripts/per-boot`` directory are run on
every boot, and in alphabetical order. This module takes no config keys.

For more information, refer to the
:ref:`scripts per boot module <mod_cc_scripts_per_boot>` docs.

Run per-instance scripts
========================

Scripts in the ``scripts/per-instance`` directory are run
when a new instance is first booted, and in alphabetical order. This module
takes no config keys.

For more information, refer to the
:ref:`scripts per instance module <mod_cc_scripts_per_instance>` docs.

Run one-time scripts
====================

Scripts in the ``scripts/per-once`` directory are run only
once, and in alphabetical order. Changes to the instance will not force them
to be re-run.

For more information, refer to the
:ref:`scripts per once module <mod_cc_scripts_per_once>` docs.

Run all user scripts
====================

This module runs all user scripts present in the ``scripts`` directory. Any
cloud config parts with a ``#!`` will be treated as a script, and run in the
order they are specified in the configuration. This module takes no config
keys.

For more information, refer to the
:ref:`scripts user module <mod_cc_scripts_user>` docs.

Run vendor scripts
==================

Scripts in the ``scripts/vendor`` directory are run when a new instance is
first booted, and in alphabetical order.

Expand Down

0 comments on commit d75eed0

Please sign in to comment.