]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
documented the new functionality for pkg
authorAlfredo Deza <alfredo.deza@inktank.com>
Thu, 12 Dec 2013 20:46:16 +0000 (15:46 -0500)
committerAlfredo Deza <alfredo.deza@inktank.com>
Thu, 12 Dec 2013 20:46:16 +0000 (15:46 -0500)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
docs/source/contents.rst
docs/source/pkg.rst [new file with mode: 0644]

index 263e3b0313a9da41ef014178ee03317fa7943596..d48d66a07925a4aa106e0363e8ac3ad284d922a2 100644 (file)
@@ -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 (file)
index 0000000..bd942c5
--- /dev/null
@@ -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
+    ...