summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2013-01-30 21:39:49 -0800
committerJoshua Harlow <harlowja@yahoo-inc.com>2013-01-30 21:39:49 -0800
commit00a00ff86f6de535a31d69060e83596c34129ce4 (patch)
treec1f99d1e5772b90165f7abbdf5a8277c5f15b83d /doc
parentcbc04cb8548f540c2ff5ec722bc01cbc01696e40 (diff)
parent5aad69a31be645dd8b3ae82e1b1efcf9efa63bf9 (diff)
downloadcloud-init-00a00ff86f6de535a31d69060e83596c34129ce4.tar.gz
Adding package versioning logic to package installation.
This change adds the ability to provide specific package versions to Distro.install_packages and subsequently Distro.package_command. In order to effectively use Distro.install_packages, one is now able to pass a variety of formats in order to easily manage package requirements. These are examples of what can be passed: - "package" - ["package1","package2"] - ("package",) - ("package", "version") - [("package1",)("package2",)] - [("package1", "version1"),("package2","version2")] This change also adds the option to install a specific version for the puppet configuration module. This is especially important here as successful puppet deployments are highly reliant on specific puppet versions.
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/cloud-config-install-packages.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/examples/cloud-config-install-packages.txt b/doc/examples/cloud-config-install-packages.txt
index 4984818f..2edc63da 100644
--- a/doc/examples/cloud-config-install-packages.txt
+++ b/doc/examples/cloud-config-install-packages.txt
@@ -6,6 +6,10 @@
#
# if packages are specified, this apt_update will be set to true
#
+# packages may be supplied as a single package name or as a list
+# with the format [<package>, <version>] wherein the specifc
+# package version will be installed.
packages:
- pwgen
- pastebinit
+ - [libpython2.7, 2.7.3-0ubuntu3.1]