This file is indexed.

config is in mcollective-common 2.0.0+dfsg-4.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/sh

MCOLLECTIVE_CONF="/etc/mcollective/server.cfg"

get_cfg_value() {
	PARAM=$1
	grep "${PARAM}" ${MCOLLECTIVE_CONF} | sed -e "s@^${PARAM}\([[:space:]]\+\|\)=\([[:space:]]\+\|\)@@"
}

set -e

. /usr/share/debconf/confmodule

# reread values from configuration
if [ -r "$MCOLLECTIVE_CONF" ]; then
	VAL=$(get_cfg_value "plugin.psk")
	db_set mcollective/security_psk $VAL

	VAL=$(get_cfg_value "plugin.stomp.host")
	db_set mcollective/stomp_host $VAL

	VAL=$(get_cfg_value "plugin.stomp.port")
	db_set mcollective/stomp_port $VAL

	VAL=$(get_cfg_value "plugin.stomp.user")
	db_set mcollective/stomp_user $VAL

	VAL=$(get_cfg_value "plugin.stomp.password")
	db_set mcollective/stomp_password $VAL
fi

db_input medium mcollective/security_psk || true
db_go

db_input medium mcollective/stomp_host || true
db_go

db_input low mcollective/stomp_port || true
db_go

db_input medium mcollective/stomp_user || true
db_go

db_input medium mcollective/stomp_password || true
db_go

db_stop