summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_salt_minion.py
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
commit9df0a78e527875d1bee2be02e477176c35a971b8 (patch)
treec1f99d1e5772b90165f7abbdf5a8277c5f15b83d /cloudinit/config/cc_salt_minion.py
parent7537cec4b6fdd27f9ad667f8b4682719b8da493c (diff)
parent9ced60371239eb961e9919f13bda8b496e077411 (diff)
downloadvyos-cloud-init-9df0a78e527875d1bee2be02e477176c35a971b8.tar.gz
vyos-cloud-init-9df0a78e527875d1bee2be02e477176c35a971b8.zip
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 'cloudinit/config/cc_salt_minion.py')
-rw-r--r--cloudinit/config/cc_salt_minion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_salt_minion.py b/cloudinit/config/cc_salt_minion.py
index f3eede18..53013dcb 100644
--- a/cloudinit/config/cc_salt_minion.py
+++ b/cloudinit/config/cc_salt_minion.py
@@ -31,7 +31,7 @@ def handle(name, cfg, cloud, log, _args):
salt_cfg = cfg['salt_minion']
# Start by installing the salt package ...
- cloud.distro.install_packages(["salt-minion"])
+ cloud.distro.install_packages(('salt-minion',))
# Ensure we can configure files at the right dir
config_dir = salt_cfg.get("config_dir", '/etc/salt')