2012-02-08 21:16:09 +00:00
|
|
|
cdist-type__package(7)
|
|
|
|
======================
|
2011-03-15 16:01:35 +00:00
|
|
|
Steven Armstrong <steven-cdist--@--armstrong.cc>
|
|
|
|
|
|
|
|
|
|
|
|
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 dependant types.
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRED PARAMETERS
|
|
|
|
-------------------
|
|
|
|
state::
|
2012-02-08 21:16:09 +00:00
|
|
|
The state the package should be in, either "present" or "absent"
|
|
|
|
(the old values "installed" or "removed" will be removed in cdist 2.1).
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
OPTIONAL PARAMETERS
|
|
|
|
-------------------
|
|
|
|
name::
|
2012-02-08 21:16:09 +00:00
|
|
|
The name of the package to install. Default is to use the object_id as the
|
|
|
|
package name.
|
2011-03-15 16:01:35 +00:00
|
|
|
version::
|
2012-02-08 21:16:09 +00:00
|
|
|
The version of the package to install. Default is to install the version
|
|
|
|
choosen by the local package manager.
|
2011-03-15 16:01:35 +00:00
|
|
|
type::
|
2012-02-08 21:16:09 +00:00
|
|
|
The package type to use. Default is determined based on the $os explorer
|
|
|
|
variable.
|
|
|
|
e.g. __package_apt for Debian
|
|
|
|
__package_emerge for Gentoo
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES
|
|
|
|
--------
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
# Install the package vim on the target
|
2012-02-08 21:16:09 +00:00
|
|
|
__package vim --state present
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
# Same but install specific version
|
2012-02-08 21:16:09 +00:00
|
|
|
__package vim --state present --version 7.3.50
|
2011-03-15 16:01:35 +00:00
|
|
|
|
|
|
|
# Force use of a specific package type
|
2012-02-08 21:16:09 +00:00
|
|
|
__package vim --state present --type __package_apt
|
2011-03-15 16:01:35 +00:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
- cdist-type(7)
|
|
|
|
|
|
|
|
|
|
|
|
COPYING
|
|
|
|
-------
|
|
|
|
Copyright \(C) 2011 Steven Armstrong. Free use of this software is
|
|
|
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|