---
name: "cdist-type__debconf_set_selections"
section: "7"
platform: "linux"
package: "cdist"
version: "7.0.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cdist-type__debconf_set_selections"
---

# cdist-type\_\_debconf\_set\_selections(7)

Setup debconf selections

## NAME

cdist-type\_\_debconf\_set\_selections - Setup debconf selections

## DESCRIPTION

On Debian and alike systems [**debconf-set-selections**(1)](/debconf-set-selections/1.md) 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)](/debconf-set-selections/1.md) 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)](/debconf-set-selections/1.md) 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")"
```

## SEE ALSO

- •

  [**cdist-type\_\_update\_alternatives**(7)](/cdist-type__update_alternatives/7.md)

- •

  [**debconf-set-selections**(1)](/debconf-set-selections/1.md)

## AUTHORS

```
Nico Schottelius <nico-cdist--@--schottelius.org>
Dennis Camera <dennis.camera--@--ssrq-sds-fds.ch>
```

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