File: data.yaml

package info (click to toggle)
cloud-init 25.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 12,052 kB
  • sloc: python: 134,399; sh: 3,879; makefile: 128; javascript: 30; xml: 22
file content (28 lines) | stat: -rw-r--r-- 1,188 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
26
27
28
cc_power_state_change:
  description: |
    This module handles shutdown/reboot after all config modules have been
    run. By default it will take no action, and the system will keep running
    unless a package installation/upgrade requires a system reboot (e.g.
    installing a new kernel) and ``package_reboot_if_required`` is ``true``.

    Using this module ensures that cloud-init is entirely finished with modules
    that would be executed. An example to distinguish delay from timeout:

    If you delay 5 (5 minutes) and have a timeout of 120 (2 minutes), the max
    time until shutdown will be 7 minutes, though it could be as soon as 5
    minutes. Cloud-init will invoke 'shutdown +5' after the process finishes,
    or when 'timeout' seconds have elapsed.

    .. note::
       With Alpine Linux any message value specified is ignored as Alpine's
       ``halt``, ``poweroff``, and ``reboot`` commands do not support
       broadcasting a message.
  examples:
  - comment: |
      Example 1:
    file: cc_power_state_change/example1.yaml
  - comment: |
      Example 2:
    file: cc_power_state_change/example2.yaml
  name: Power State Change
  title: Change power state