Skip to content

Commit

Permalink
docs: apt_configure represent deb822 sources behavior and example
Browse files Browse the repository at this point in the history
  • Loading branch information
blackboxsw committed Sep 15, 2023
1 parent 5521de6 commit 7c3437c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion cloudinit/config/cc_apt_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
cloud-init's distro support for instructions on using
these config options.
In cloud-init 23.4 or later, cloud-init will generate default
apt sources information in deb822 format at
:file:`/etc/apt/sources.list.d/<distro>.sources`.
.. note::
To ensure that apt configuration is valid yaml, any strings
containing special characters, especially ``:`` should be quoted.
Expand Down Expand Up @@ -127,7 +131,21 @@
------BEGIN PGP PUBLIC KEY BLOCK-------
<key data>
------END PGP PUBLIC KEY BLOCK-------"""
)
),
dedent(
"""\
# cloud-init version 23.4 will generate a deb822 formatted sources
# file at /etc/apt/sources.list.d/<distro>.sources instead of
# /etc/apt/sources.list when `sources_list` content is deb822
# format.
apt:
sources_list: |
Types: deb
URIs: http://archive.ubuntu.com/ubuntu/
Suites: $RELEASE
Components: main
"""
),
],
"frequency": frequency,
"activate_by_schema_keys": [],
Expand Down

0 comments on commit 7c3437c

Please sign in to comment.