cdist-type__debconf_set_selections(7)

cdist-type__debconf_set_selections7

Setup debconf selections

Overview

On Debian and alike systems debconf-set-selections(1) can be used to setup configuration parameters.

Required parameters

cf. --line.

Optional parameters

file

Use the given filename as input for debconf-set-selections(1) If filename is -, read from stdin.

This parameter is deprecated, because it doesn't work with state detection.

line

A line in debconf-set-selections(1) compatible format. This parameter can be used multiple times to set multiple options.

(This parameter is actually required, but marked optional because the deprecated --file is still accepted.)

Boolean parameters

None.

Examples

# 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")"

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

Nico Schottelius <[email protected]>
Dennis Camera <[email protected]>

From cdist 7.0.0-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.