Permalink
Please sign in to comment.
Browse files
Apt: add new apt configuration format
This adds an improved apt configuration format that is fully backwards compatible with previous behavior. This is mostly copied from curtin's implementation. It does: * clean up and centralizes many of the top level 'apt_*' values that previously existed into a single top level 'apt'key. * support a 'source' in apt/sources/entry that has only a key * documents new features and adds tests. See the added doc/examples/cloud-config-apt.txt for more information.
- Loading branch information...
Showing
with
2,604 additions
and 597 deletions.
- +547 −156 cloudinit/config/cc_apt_configure.py
- +4 −4 cloudinit/gpg.py
- +130 −17 cloudinit/util.py
- +28 −14 doc/examples/cloud-config-add-apt-repos.txt
- +328 −0 doc/examples/cloud-config-apt.txt
- +34 −33 doc/examples/cloud-config-chef-oneiric.txt
- +34 −33 doc/examples/cloud-config-chef.txt
- +1 −250 doc/examples/cloud-config.txt
- +0 −3 tests/configs/sample1.yaml
- +0 −3 tests/unittests/test_distros/test_generic.py
- +12 −12 tests/unittests/test_handler/{test_handler_apt_configure.py → test_handler_apt_conf_v1.py}
- +42 −22 ...dler/{test_handler_apt_configure_sources_list.py → test_handler_apt_configure_sources_list_v1.py}
- +187 −0 tests/unittests/test_handler/test_handler_apt_configure_sources_list_v3.py
- +85 −50 tests/unittests/test_handler/{test_handler_apt_source.py → test_handler_apt_source_v1.py}
- +1,103 −0 tests/unittests/test_handler/test_handler_apt_source_v3.py
- +69 −0 tests/unittests/test_util.py
Oops, something went wrong.
0 comments on commit
d861415