CDIST-TYPE__DEB..._SET_SELECTIONS(7)
π cdist-type__debconf_set_selections(7) β the debconf selections one
okay bestie, welcome to section 7 of the cdist manual, this is cdist-type__debconf_set_selections, and yes the name is a whole mouthful, we're not gonna talk about it π«Ά
β¨ NAME β¨
cdist-type__debconf_set_selections β setup debconf selections, no cap, that's literally the whole job π
πΈ DESCRIPTION πΈ
so on Debian and systems that are alike (you know the vibe), debconf-set-selections(1) exists and you can use it to setup configuration parameters. that's it. that's the tea β the type just wraps that up all nicely for you so you don't have to hand-hold debconf yourself.
π REQUIRED PARAMETERS π
- cf.
--line. (yes queen, go look at--linebelow, it's the actual requirement, we'll get there π )
π OPTIONAL PARAMETERS π
fileβ use the given filename as input fordebconf-set-selections(1). if the filename is-, read from stdin.
β οΈ bestie, this parameter is deprecated, because it doesn't work with state detection. like, it just does not. we're keeping it around but it's giving legacy energy π
lineβ a line indebconf-set-selections(1)compatible format. you can use this parameter multiple times to set multiple options.
π okay so plot twist: this parameter is actually required, but it's marked optional because the deprecated --file is still accepted. so like, technically-optional, spiritually-mandatory, iykyk.
π BOOLEAN PARAMETERS π
None. absolutely zero. nothing here. moving on β¨
π₯ EXAMPLES π₯
the part you actually came for, let's go:
# Setup gitolite's gituser
__debconf_set_selections nslcd --line 'gitolite gitolite/gituser string git'
# Setup configuration for nslcd from a file.
# NB: Multiple lines can be passed to --line, although this can be considered a hack.
__debconf_set_selections nslcd --line "$(cat "${__files:?}/preseed/nslcd.debconf")"
not the $(cat ...) hack being called out in the actual source comments π iconic honestly, we love a self-aware manpage.
π¦ SEE ALSO π¦
go read those too, they're also slay π
π AUTHORS π
- Nico Schottelius
<nico-cdist--@--schottelius.org> - Dennis Camera
<dennis.camera--@--ssrq-sds-fds.ch>
thank you for your service kings π
π COPYING π
Copyright (C) 2011-2014 Nico Schottelius, 2021 Dennis Camera. 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. π
β COPYRIGHT β
ungleich GmbH 2021 π’β¨
and that's the whole page bestie!! this was cdist manpage version 7.0.0, dated Jul 31, 2021 β stay hydrated, read your manpages, and remember: state detection is the main character here, not --file π
π«Άπ
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms