.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CDIST-TYPE__PACKAGE" "7" "Sep 26, 2023" "7.0.0" "cdist" .SH NAME .sp cdist\-type__package \- Manage packages .SH DESCRIPTION .sp This cdist type allows you to install or uninstall packages on the target. It dispatches the actual work to the package system dependent types. .SH REQUIRED PARAMETERS .sp None .SH OPTIONAL PARAMETERS .INDENT 0.0 .TP .B name The name of the package to install. Default is to use the object_id as the package name. .TP .B version The version of the package to install. Default is to install the version chosen by the local package manager. .TP .B type The package type to use. Default is determined based on the $os explorer variable. e.g. * __package_apt for Debian * __package_emerge for Gentoo .TP .B state Either \(dqpresent\(dq or \(dqabsent\(dq, defaults to \(dqpresent\(dq .UNINDENT .SH EXAMPLES .INDENT 0.0 .INDENT 3.5 .sp .EX # Install the package vim on the target __package vim \-\-state present # Same but install specific version __package vim \-\-state present \-\-version 7.3.50 # Force use of a specific package type __package vim \-\-state present \-\-type __package_apt .EE .UNINDENT .UNINDENT .SH AUTHORS .sp Steven Armstrong <\fI\%steven\-cdist\-\-@\-\-armstrong.cc\fP> .SH COPYING .sp 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. .SH COPYRIGHT ungleich GmbH 2021 .\" Generated by docutils manpage writer. .