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 (26 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download
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
cc_install_hotplug:
  description: |
    This module will install the udev rules to enable hotplug if supported by
    the datasource and enabled in the user-data. The udev rules will be
    installed as ``/etc/udev/rules.d/90-cloud-init-hook-hotplug.rules``.

    When hotplug is enabled, newly added network devices will be added to the
    system by cloud-init. After udev detects the event, cloud-init will
    refresh the instance metadata from the datasource, detect the device in
    the updated metadata, then apply the updated network configuration.

    Udev rules are installed while cloud-init is running, which means that
    devices which are added during boot might not be configured. To work
    around this limitation, one can wait until cloud-init has completed
    before hotplugging devices.

    Currently supported datasources: Openstack, EC2
  examples:
  - comment: |
      Example 1: Enable hotplug of network devices
    file: cc_install_hotplug/example1.yaml
  - comment: |
      Example 2: Enable network hotplug alongside boot event
    file: cc_install_hotplug/example2.yaml
  name: Install Hotplug
  title: Install hotplug udev rules if supported and enabled