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 --line below, it's the actual requirement, we'll get there πŸ’…)

πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

⚠️ 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 in debconf-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. πŸ“œ


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