cdist/cdist/conf/type/__package/man.rst

65 lines
1.4 KiB
ReStructuredText
Raw Normal View History

cdist-type__package(7)
======================
NAME
----
cdist-type__package - Manage packages
DESCRIPTION
-----------
This cdist type allows you to install or uninstall packages on the target.
It dispatches the actual work to the package system dependent types.
REQUIRED PARAMETERS
-------------------
None
OPTIONAL PARAMETERS
-------------------
2016-05-20 06:50:56 +00:00
name
The name of the package to install. Default is to use the object_id as the
package name.
2016-05-20 06:50:56 +00:00
version
The version of the package to install. Default is to install the version
chosen by the local package manager.
2016-05-20 06:50:56 +00:00
type
The package type to use. Default is determined based on the $os explorer
variable.
2016-05-20 06:50:56 +00:00
e.g.
* __package_apt for Debian
* __package_emerge for Gentoo
2016-05-20 06:50:56 +00:00
state
Either "present" or "absent", defaults to "present"
EXAMPLES
--------
2016-05-20 06:50:56 +00:00
.. code-block:: sh
# Install the package vim on the target
__package vim --state present
2016-05-20 06:50:56 +00:00
# Same but install specific version
__package vim --state present --version 7.3.50
2016-05-20 06:50:56 +00:00
# Force use of a specific package type
__package vim --state present --type __package_apt
AUTHORS
-------
Steven Armstrong <steven-cdist--@--armstrong.cc>
COPYING
-------
2016-08-10 16:15:54 +00:00
Copyright \(C) 2011 Steven Armstrong. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.