Skip to content

Commit f2c55bd

Browse files
authored
Merge pull request #456 from s4heid/apt-azure-repository
Configure Azure Stemcells to Use Azure-Optimized APT Mirrors
2 parents cb419c2 + 7d8df27 commit f2c55bd

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

bosh-stemcell/spec/stemcells/azure_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@
4343
end
4444
end
4545

46+
context 'cloud-init Azure APT mirror configuration' do
47+
describe file('/etc/cloud/cloud.cfg.d/90-azure-apt-sources.cfg') do
48+
it { should be_file }
49+
its(:content) { should include('http://azure.archive.ubuntu.com/ubuntu/') }
50+
end
51+
52+
describe file('/etc/cloud/cloud.cfg') do
53+
it { should be_file }
54+
its(:content) { should include('apt-configure') }
55+
end
56+
end
57+
4658
context 'installed by system_azure_network', {
4759
exclude_on_alicloud: true,
4860
exclude_on_aws: true,

stemcell_builder/stages/system_azure_init/assets/etc/cloud-init/cloud.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ cloud_init_modules:
1010
- update_etc_hosts
1111
- users-groups
1212
- ssh
13+
- apt-configure
1314
cloud_config_modules:
1415
- ssh-import-id
1516
- set-passwords

0 commit comments

Comments
 (0)