File: data.yaml

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (25 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cc_bootcmd:
  description: |
    This module runs arbitrary commands very early in the boot process, only
    slightly after a boothook would run. This is very similar to a boothook,
    but more user friendly. Commands can be
    specified either as lists or strings. For invocation details, see
    ``runcmd``.

    .. note::
       ``bootcmd`` should only be used for things that could not be done later
       in the boot process.

    .. note::
       When writing files, do not use ``/tmp`` dir as it races with
       ``systemd-tmpfiles-clean`` (LP: #1707222). Use ``/run/somedir`` instead.
    .. warning::
         Use of ``INSTANCE_ID`` variable within this module is deprecated.
         Use :ref:`jinja templates<user_data_formats-jinja>` with
         :ref:`v1.instance_id<v1_instance_id>` instead.
  examples:
  - comment: |
      Example 1:
    file: cc_bootcmd/example1.yaml
  name: Bootcmd
  title: Run arbitrary commands early in the boot process