1CDIST-TYPE__PACKAGE_APT(7) cdist CDIST-TYPE__PACKAGE_APT(7)
2
3
4
6 cdist-type__package_apt - Manage packages with apt-get
7
9 apt-get is usually used on Debian and variants (like Ubuntu) to manage
10 packages.
11
13 None
14
16 name If supplied, use the name and not the object id as the package
17 name.
18
19 state Either "present" or "absent", defaults to "present"
20
21 target-release
22 Passed on to apt-get install, see apt-get(8). Essentially
23 allows you to retrieve packages from a different release
24
25 version
26 The version of the package to install. Default is to install the
27 version chosen by the local package manager.
28
30 purge-if-absent
31 If this parameter is given when state is absent, the package is
32 purged from the system (using --purge).
33
35 # Ensure zsh in installed
36 __package_apt zsh --state present
37
38 # In case you only want *a* webserver, but don't care which one
39 __package_apt webserver --state present --name nginx
40
41 # Remove obsolete package
42 __package_apt puppet --state absent
43
45 cdist-type__package(7)
46
48 Nico Schottelius <nico-cdist--@--schottelius.org>
49
51 Copyright (C) 2011-2012 Nico Schottelius. You can redistribute it
52 and/or modify it under the terms of the GNU General Public License as
53 published by the Free Software Foundation, either version 3 of the
54 License, or (at your option) any later version.
55
57 ungleich GmbH 2019
58
59
60
61
626.4.0 Jan 04, 2020 CDIST-TYPE__PACKAGE_APT(7)