slack.conf(5)
π slack.conf(5) π
okay bestie, welcome to slack.conf(5) β yes that's the manual name, it lives in the File Formats Manual section, and it's literally just the vibe guide for one little config file. no cap. let's get into it π«Ά
β¨ NAME β¨
slack.conf β the configuration file for slack πΈ
π DESCRIPTION π
so the file /etc/slack.conf is where all the configuration tea lives for slack(8) and its backends. it's giving very "one keyword-value pair per line" energy, separated by an = sign. that's the whole format. iconic, honestly.
the rules, because there are rules π :
- Keywords must consist solely of capital letters and underscores. that's it. no lowercase, no dashes, no chaos.
- Values can be in whatever format makes sense, but they must not begin with a space. fr fr.
- Comments start with
#, and everything from that#all the way to the end of the line is ignored. ghosted. π - Trailing whitespace on lines is ignored. so you can leave your little accidental spaces, she doesn't care.
- Empty lines, or lines that are only whitespace and comments, are ignored too.
now the valid keywords, bestie. here they are, all of them, no skips:
SOURCEβ the master source for slack roles. this one has β¨fourβ¨ forms and they all matter, so pay attention:/path/to/dir
use a local directory. simple. cozy. π
somehost:/path/to/dir
use given directory on a remote host via rsync over SSH. π₯
rsync://somehost/module
use module on a remote rsyncd server (directly over the network).
somehost::module
use the rsync daemon protocol over SSH to the given host. and for the full lore on this one, go read βUSING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTIONβ in rsync(1). π¦
all forms of SOURCE get passed directly to rsync, so you can absolutely do little tricks like adding user@ before the host on any of the remote forms. for more about what rsync can do, obviously go read its manual page, bestie.
for that last form though? we do a little magic β¨. rsync treats the last two forms equivalently, so we overload the last form by automatically passing -e ssh to rsync whenever we see it. this hack is how we let slack use this nice feature of rsync just by setting the SOURCE config option. slay.
ROOTβ the root filesystem into which to install slack roles. usually/. πROLE_LISTβ the location of the role list, which lists the roles to be installed by default on each host.
this can be a path relative to the source, or it can be a completely separate location if it starts with a slash or a hostname (optionally preceded by user@). your call, main character. π«Ά
CACHEβ a local cache directory, used as a local mirror of theSOURCE.STAGEβ a local staging directory, used as an intermediate stage when installing files.BACKUP_DIRβ a directory in which to keep dated backups for rollbacks. so you can always rewind. π
π EXAMPLE π
a typical file might look like this:
# slack.conf configuration file
SOURCE=slack-master:/slack # source is on a remote
# host named "slack-master"
ROLE_LIST=slack-master:/roles.conf
ROOT=/
CACHE=/var/cache/slack
STAGE=/var/lib/slack/stage
BACKUP_DIR=/var/lib/slack/backups
look at her. consistent. glowing. β¨
π¦ FILES π¦
/etc/slack.conf
β SEE ALSO β
ok that's the whole page, bestie. go forth and configure responsibly. π
and that's a wrap on slack.conf(5), from the File formats section β dated 2005-05-23, so she's an elder but she's still that girl. no notes. periodt. ππΈ
π¦ where this page comes from
- debian bookworm: slack 1:0.15.2-11
- debian trixie: slack 1:0.15.2-11
- ubuntu jammy: slack 1:0.15.2-9.1
- ubuntu noble: slack 1:0.15.2-11
- ubuntu questing: slack 1:0.15.2-11
- ubuntu resolute: slack 1:0.15.2-11build1
- ubuntu stonking: slack 1:0.15.2-11build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms