Commit 7d8df27
committed
Enable cloud-init apt-configure module for Azure stemcells
Azure stemcells now properly use Azure-optimized APT mirrors
(azure.archive.ubuntu.com) by enabling the apt-configure module
in cloud-init configuration.
The LISA (Linux Integration Services Automation) test suite's
verify_repository_installed test was failing because Azure VMs
were using archive.ubuntu.com instead of azure.archive.ubuntu.com
for APT package repositories. While the Azure mirror configuration
existed in /etc/cloud/cloud.cfg.d/90-azure-apt-sources.cfg, it
was never applied because the apt-configure module was not enabled
in cloud-init's module list.
Added apt-configure to the cloud_init_modules list in cloud.cfg,
which instructs cloud-init to read and apply the Azure APT mirror
configuration at VM boot time. This ensures /etc/apt/sources.list
is automatically updated to use Azure-optimized mirrors.1 parent f7df8b8 commit 7d8df27
File tree
2 files changed
+13
-0
lines changed- bosh-stemcell/spec/stemcells
- stemcell_builder/stages/system_azure_init/assets/etc/cloud-init
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
47 | 59 | | |
48 | 60 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments