From: Alfredo Deza Date: Thu, 12 Dec 2013 20:46:16 +0000 (-0500) Subject: documented the new functionality for pkg X-Git-Tag: v1.3.4~2^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ad02eed23f286c24b968f712741391ba6a03d044;p=ceph-deploy.git documented the new functionality for pkg Signed-off-by: Alfredo Deza --- diff --git a/docs/source/contents.rst b/docs/source/contents.rst index 263e3b0..d48d66a 100644 --- a/docs/source/contents.rst +++ b/docs/source/contents.rst @@ -7,3 +7,4 @@ Content Index index.rst changelog.rst install.rst + pkg.rst diff --git a/docs/source/pkg.rst b/docs/source/pkg.rst new file mode 100644 index 0000000..bd942c5 --- /dev/null +++ b/docs/source/pkg.rst @@ -0,0 +1,58 @@ + +.. _pkg: + +``pkg`` +======= +Provides a simple interface to install or remove packages on a remote host (or +a number of remote hosts). + +Packages to install or remove *must* be comma separated when there are more +than one package in the argument. + +.. note:: + This feature only supports installing on same distributions. You cannot + install a given package on different distributions at the same time. + + +.. _pkg-install: + +``--install`` +------------- +This flag will use the package (or packages) passed in to perform an installation using +the distribution package manager in a non-interactive way. Package managers +that tend to ask for confirmation will not prompt. + +An example call to install a few packages on 2 hosts (with hostnames like +``node1`` and ``node2``) would look like:: + + ceph-deploy pkg --install vim,zsh node1 node2 + [ceph_deploy.cli][INFO ] Invoked (1.3.3): /bin/ceph-deploy pkg --install vim,zsh node1 node2 + [node1][DEBUG ] connected to host: node1 + [node1][DEBUG ] detect platform information from remote host + [node1][DEBUG ] detect machine type + [ceph_deploy.pkg][INFO ] Distro info: Ubuntu 12.04 precise + [node1][INFO ] installing packages on node1 + [node1][INFO ] Running command: sudo env DEBIAN_FRONTEND=noninteractive apt-get -q install --assume-yes vim zsh + ... + + +.. _pkg-remove: + +``--remove`` +------------ +This flag will use the package (or packages) passed in to remove them using +the distribution package manager in a non-interactive way. Package managers +that tend to ask for confirmation will not prompt. + +An example call to remove a few packages on 2 hosts (with hostnames like +``node1`` and ``node2``) would look like:: + + + [ceph_deploy.cli][INFO ] Invoked (1.3.3): /bin/ceph-deploy pkg --remove vim,zsh node1 node2 + [node1][DEBUG ] connected to host: node1 + [node1][DEBUG ] detect platform information from remote host + [node1][DEBUG ] detect machine type + [ceph_deploy.pkg][INFO ] Distro info: Ubuntu 12.04 precise + [node1][INFO ] removing packages from node1 + [node1][INFO ] Running command: sudo apt-get -q remove -f -y --force-yes -- vim zsh + ...