<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-cloud-init.git/tests/integration_tests/modules, branch current</title>
<subtitle> (mirror of https://github.com/marekm72/vyos-cloud-init.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=current</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/atom?h=current'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/'/>
<updated>2022-02-14T15:51:03+00:00</updated>
<entry>
<title>tests: when generating crypted password, generate in target env (#1252)</title>
<updated>2022-02-14T15:51:03+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-14T15:51:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=17818549b3dda58a907ef44ed7de9f837ad66c3c'/>
<id>urn:sha1:17818549b3dda58a907ef44ed7de9f837ad66c3c</id>
<content type='text'>
There are inconsistencies for cryptographic libraries across
major distribution releases.

From a bionic host, which doesn't support yescrypt hashing scheme,
attempting run run crypt.crypt locally using a yescrypt hash
from a Jammmy /etc/shadow file will result in failure to produce an
encrypted password. For "unsupported" hash schemes, crypt.crypt
returns None.

To avoid inconsistencies of python cryptographic libs across Linux
releases, perform the password encryption on the system under test.</content>
</entry>
<entry>
<title>test_apt_security: azure platform has specific security URL overrides (#1263)</title>
<updated>2022-02-11T14:34:43+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-11T14:34:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=6dc67d732a92536dd42947af60cf4bfb25411489'/>
<id>urn:sha1:6dc67d732a92536dd42947af60cf4bfb25411489</id>
<content type='text'>
Delivered in /etc/cloud/cloud.cfg.d/90-azure.cfg</content>
</entry>
<entry>
<title>tests: lsblk --json output changes mountpoint key to mountpoinst [] (#1261)</title>
<updated>2022-02-10T22:37:17+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-10T22:37:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=deb3ae828ea88090931c4cfe47957ae044f18ca8'/>
<id>urn:sha1:deb3ae828ea88090931c4cfe47957ae044f18ca8</id>
<content type='text'>
Ubuntu Jammy output from lsblk --json now contains
'mountpoints': [...] instead of 'mountpoint' for children devs.

Let our integration test handle either case.</content>
</entry>
<entry>
<title>mounts: fix mount opts string for ephemeral disk (#1250)</title>
<updated>2022-02-10T22:09:03+00:00</updated>
<author>
<name>Chris Patterson</name>
<email>cpatterson@microsoft.com</email>
</author>
<published>2022-02-10T22:09:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=8d96687e558d87fd767bdba9dff71e406f9bcf39'/>
<id>urn:sha1:8d96687e558d87fd767bdba9dff71e406f9bcf39</id>
<content type='text'>
Fixes the spaces introduced in #1213

Signed-off-by: Chris Patterson &lt;cpatterson@microsoft.com&gt;</content>
</entry>
<entry>
<title>cloud-id: publish /run/cloud-init/cloud-id-&lt;cloud-type&gt; files (#1244)</title>
<updated>2022-02-10T20:18:00+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-10T20:18:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=217ef6ba6c52788f4363b998b6da08863fea5cd9'/>
<id>urn:sha1:217ef6ba6c52788f4363b998b6da08863fea5cd9</id>
<content type='text'>
Once a valid datasource is detected, publish the following artifacts
to expedite cloud-identification without having to invoke cloud-id from
shell scripts or sheling out from python.
    
These files can also be relied on in systemd ConditionPathExists
directives to limit execution of services and units to specific
clouds.
    
/run/cloud-init/cloud-id:
 - A symlink with content that is the canonical cloud-id of the
   datasource detected. This content is the same lower-case value
   as the output of /usr/bin/cloud-id.

/run/cloud-init/cloud-id-&lt;canonical-cloud-id&gt;:
 - A single file which will contain the canonical cloud-id encoded
   in the filename</content>
</entry>
<entry>
<title>Integration test changes (#1240)</title>
<updated>2022-02-03T21:37:14+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2022-02-03T21:37:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=3f0918b57c6042de99da25bc6a9d120a074b8a8e'/>
<id>urn:sha1:3f0918b57c6042de99da25bc6a9d120a074b8a8e</id>
<content type='text'>
* Wrap the log fetching code in a try/except in case file is missing
* Stop checking NoCloud seed dir when testing datasource detection</content>
</entry>
<entry>
<title>Integration testing docs and refactor (#1231)</title>
<updated>2022-02-03T03:14:52+00:00</updated>
<author>
<name>James Falcon</name>
<email>james.falcon@canonical.com</email>
</author>
<published>2022-02-03T03:14:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=b64b7d8ceb0e7bdb7cc9839c238798622c5b9682'/>
<id>urn:sha1:b64b7d8ceb0e7bdb7cc9839c238798622c5b9682</id>
<content type='text'>
* Include CI and Fixtures sections in integration test docs
* Incorporate additional variable annotations
* Remove unnecessary IntegrationInstance subclasses
* Move setup_image teardown into its fixture</content>
</entry>
<entry>
<title>Schema a d (#1211)</title>
<updated>2022-02-01T03:45:29+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-02-01T03:45:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=af7eb1deab12c7208853c5d18b55228e0ba29c4d'/>
<id>urn:sha1:af7eb1deab12c7208853c5d18b55228e0ba29c4d</id>
<content type='text'>
Migrate from legacy schema or define new schema in
cloud-init-schema.json, adding extensive schema tests for:
- cc_apt_configure
- cc_bootcmd
- cc_byobu
- cc_ca_certs
- cc_chef
- cc_debug
- cc_disable_ec2_metadata
- cc_disk_setup

Deprecate config hyphenated schema keys in favor of underscores:
  - ca_certs and ca_certs.remove_defaults instead of
    ca-certs and ca-certs.remove-defaults

- Continue to honor deprecated config keys but emit DEPRECATION
  warnings in logs for continued use of the deprecated keys:
  - apt_sources key
  - any apt v1 or v2 keys
  - use or ca-certs or ca_certs.remove-defaults

- Extend apt_configure schema
   - Define more strict schema below object opaque keys using
     patternProperties
  -  create common $def apt_configure.mirror for reuse in 'primary'
     and 'security' schema definitions within cc_apt_configure

 Co-Authored-by: James Falcon &lt;james.falcon@canonical.com&gt;</content>
</entry>
<entry>
<title>Single JSON schema validation in early boot (#1175)</title>
<updated>2022-01-18T17:05:29+00:00</updated>
<author>
<name>Chad Smith</name>
<email>chad.smith@canonical.com</email>
</author>
<published>2022-01-18T17:05:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=4ba6fd283674df1ef25300d91c6d2061910744be'/>
<id>urn:sha1:4ba6fd283674df1ef25300d91c6d2061910744be</id>
<content type='text'>
Package a single JSON schema file for user-data validation at
cloudinit/config/cloud-init-schema.json.

Perform validate_cloudconfig_schema call to just after the
user-data is consumed. This will allow single validation of all
user-data against the full schema instead of
repetitive validatation calls against each cloud-config module
(cloudinit.config.cc_*) sub-schemas.

This branch defines the simple apt_pipelining schema and
migrates existing cc_apk_configure into cloud-init-schema.json.

The expectation will be additional branches to migrate from legacy
"schema" attributes inside each cloud-config module toward unique
cc_&lt;module_name&gt; definitions in the global shema file under "$defs"
of cloud-init-schema-X.Y..json.

Before legacy sub-schema definitions are migrated the following
funcs grew support to read sub-schemas from both static
cloud-init-schema.json and the individual cloud-config module
"schema" attributes:

- get_schema: source base schema file from cloud-init-schema.json
  and supplement with all legacy cloud-config module "schema" defs
- get_meta_doc: optional schema param so cloud-config modules
  no longer provide the own local sub-schemas
- _get_property_doc: render only documentation of sub-schema based
  on meta['id'] provided
- validate_cloudconfig_schema: allow optional schema param


Additionally, fix two minor bugs in _schemapath_for_cloudconfig:
- `cloud-init devel schema --annotate` which results in a Traceback
  if two keys at the same indent level have invalid types.
- exit early on empty cloud-config to avoid a Traceback on the CLI</content>
</entry>
<entry>
<title>Add new config module to set keyboard layout (#1176)</title>
<updated>2022-01-12T14:37:32+00:00</updated>
<author>
<name>maxnet</name>
<email>bos@je-eigen-domein.nl</email>
</author>
<published>2022-01-12T14:37:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-cloud-init.git/commit/?id=5147e8d4764e368ab8ccea7433b02e4ff9d6c901'/>
<id>urn:sha1:5147e8d4764e368ab8ccea7433b02e4ff9d6c901</id>
<content type='text'>
Adds a new module to allow setting keyboard layout,
for use-cases in which cloud-init is used to configure
OS images meant for physical computers instead
of the cloud.

This initial release only implements support
for Linux distributions that allow layout to be
set through systemd's localectl.

LP: #1951593</content>
</entry>
</feed>
