Package: util-vserver
Version: 0.30.216~r2772-6
Severity: wishlist
File: /usr/sbin/vapt-get
Tags: patch


When using vapt-get to update multiple vservers, admistrators have two
options: either use --all to apply the command to all servers, or specify
vservers manually.

With a larger number of heterogeneous vservers, this gets uncomfortable;
while most of the systems may need updates, several system might not even run
debian or should be excluded from the procedure for other reasons, e.g. if the
root user of the vserver takes care of updates himself.

The attached patch included a --mark option that allows to limit the vapt-get
operation to hosts tagged with a keyword in /etc/vserver/$SERVER/apps/apt/mark

Using that file, instances you wish to use vapt-get on can be tagged with a 
special
tag:

TAG=debian
for SERVER in foo bar baz; do
    mkdir -p /etc/vserver/$SERVER/apps/apt/
    echo $TAG > /etc/vserver/$SERVER/apps/apt/mark
done

after tagging the hosts, vapt-get can be called with a simple command line:

vapt-get --mark debian -- -u upgrade

This command will run the upgrade procedure on all hosts tagged "debian" (foo,
bar and baz in this example)



-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-vserver-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages util-vserver depends on:
ii  debconf                       1.5.24     Debian configuration management sy
ii  iproute                       20080725-2 networking and traffic control too
ii  libbeecrypt6                  4.1.2-7    open source C library of cryptogra
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  make                          3.81-5     The GNU version of the "make" util
ii  net-tools                     1.60-22    The NET-3 networking toolkit
ii  util-linux                    2.13.1.1-1 Miscellaneous system utilities

Versions of packages util-vserver recommends:
ii  binutils            2.18.1~cvs20080103-7 The GNU assembler, linker and bina
ii  debootstrap         1.0.10lenny1         Bootstrap a basic Debian system

Versions of packages util-vserver suggests:
ii  iptables                      1.4.2-6    administration tools for packet fi
ii  linux-image-2.6.26-2-vserver- 2.6.26-19  Linux 2.6.26 image on AMD64, Linux
ii  module-init-tools             3.4-1      tools for managing Linux kernel mo
ii  procps                        1:3.2.7-11 /proc file system utilities
pn  vlan                          <none>     (no description available)
ii  wget                          1.11.4-2   retrieves files from the web
pn  yum                           <none>     (no description available)

-- debconf information excluded

-- 
[email protected]
GPG available and welcome
http://stefans.datenbruch.de/



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to