-
Notifications
You must be signed in to change notification settings - Fork 881
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apt: install software-properties-common when absent but needed (#4441)
When optional user-data contains APT sources configuration that warrants APT repo setup, cloud-init calls add-apt-repository which is packaged in software-properties common. The software-properties-common package is defined as a Recommends: in debian/control, and some minimal images do not install recommended packages. When minimal images do not have software-properties-common installed, cloud-init will install this package on first boot only when required by optional apt sources user-data. The gnupg package is another optional/recommended package that willl be installed is specific apt user-data config requires gpg interaction. Refactor _ensure_gpg to _ensure_dependencies which now inspects cloud-config to determine if either gpg or add-apt-repository are required commands based on optional user-data. Attempt to install any missing package dependencies before processing the cloud-config.
- Loading branch information
1 parent
d18c9cc
commit 015543d
Showing
6 changed files
with
73 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters