diff options
author | Nate House nathan.house@rackspace.com <> | 2014-01-23 21:31:53 -0600 |
---|---|---|
committer | Nate House nathan.house@rackspace.com <> | 2014-01-23 21:31:53 -0600 |
commit | f64cd3d53fb09fb41104f600ead60eefe9dbd4ab (patch) | |
tree | 72e4670f0e1fd58da24c99264bc92650c264d0dc /cloudinit/distros | |
parent | 7e2d084eabbabd035e56a65c52b277a0732b09d5 (diff) | |
download | vyos-cloud-init-f64cd3d53fb09fb41104f600ead60eefe9dbd4ab.tar.gz vyos-cloud-init-f64cd3d53fb09fb41104f600ead60eefe9dbd4ab.zip |
Package manager install / update fixes and service restart foo
Diffstat (limited to 'cloudinit/distros')
-rw-r--r-- | cloudinit/distros/debian.py | 1 | ||||
-rw-r--r-- | cloudinit/distros/gentoo.py | 2 | ||||
-rw-r--r-- | cloudinit/distros/rhel.py | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py index 1ae232fd..3b912728 100644 --- a/cloudinit/distros/debian.py +++ b/cloudinit/distros/debian.py @@ -48,6 +48,7 @@ class Distro(distros.Distro): network_conf_fn = "/etc/network/interfaces" tz_conf_fn = "/etc/timezone" tz_local_fn = "/etc/localtime" + init_cmd = ['service'] def __init__(self, name, cfg, paths): distros.Distro.__init__(self, name, cfg, paths) diff --git a/cloudinit/distros/gentoo.py b/cloudinit/distros/gentoo.py index b6291dc6..82d49fc3 100644 --- a/cloudinit/distros/gentoo.py +++ b/cloudinit/distros/gentoo.py @@ -60,7 +60,7 @@ class Distro(distros.Distro): def install_packages(self, pkglist): self.update_package_sources() - self.package_command('install', pkgs=pkglist) + self.package_command('', pkgs=pkglist) def _write_network(self, settings): util.write_file(self.network_conf_fn, settings) diff --git a/cloudinit/distros/rhel.py b/cloudinit/distros/rhel.py index 30195384..7cc7a813 100644 --- a/cloudinit/distros/rhel.py +++ b/cloudinit/distros/rhel.py @@ -49,6 +49,7 @@ class Distro(distros.Distro): network_script_tpl = '/etc/sysconfig/network-scripts/ifcfg-%s' resolve_conf_fn = "/etc/resolv.conf" tz_local_fn = "/etc/localtime" + init_cmd = ['service'] def __init__(self, name, cfg, paths): distros.Distro.__init__(self, name, cfg, paths) |