introduce pubsub config for git master
[mirror/dsa-puppet.git] / modules / porterbox / files / schroot-dsa / config
1 # Settings for "dsa" profile.
2
3 ##
4 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
5 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 ##
7
8 FSTAB="/etc/schroot/dsa/fstab"
9 [ -e "$FSTAB" ] || FSTAB="/etc/schroot/default/fstab"
10
11 COPYFILES="/etc/schroot/dsa/copyfiles"
12 [ -e "$COPYFILES" ] || COPYFILES="/etc/schroot/default/copyfiles"
13
14 NSSDATABASES="/etc/schroot/dsa/nssdatabases"
15 [ -e "$NSSDATABASES" ] || NSSDATABASES="/etc/schroot/default/nssdatabases"
16
17
18 # added by weasel:
19 if [ "$CHROOT_SESSION_PURGE" = "true" ]; then
20     case $CHROOT_DESCRIPTION in
21         "["*-*_*-dchroot"]"*)
22             chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}"
23             suitevariant_arch_tuple="${chroot_type%%-dchroot-*}"
24             suitevariant=${suitevariant_arch_tuple%_*}
25             SUITE_BASE=${suitevariant%-*}
26             SUITE_VARIANT=${suitevariant##*-}
27         ;;
28         "["*_*-dchroot"]"*)
29             chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}"
30             SUITE_BASE="${chroot_type%%_*}"
31         ;;
32         *)
33             if [ "$STAGE" = "setup-start" ]; then
34                echo >&2 "Unable to parse chroot description for what kind of chroot you want."
35                exit 1
36             fi
37         ;;
38     esac
39 fi
40
41 CHROOT_FILE_UNPACK_DIR=/srv/chroot/schroot-unpack
42
43 if [ -e /etc/schroot/dsa/default-mirror ]; then
44     MIRROR=$(cat /etc/schroot/dsa/default-mirror )
45 fi
46 MIRROR=${MIRROR:-cdn.debian.net}
47
48 if [ "$(basename "$0")" = "00check" ] &&
49    [ "$CHROOT_TYPE" = "file" ] &&
50    [ "$STAGE" = "setup-start" ]; then
51         echo "Untarring chroot environment.  This might take a minute or two."
52 fi