-
Notifications
You must be signed in to change notification settings - Fork 6
/
pln.5
87 lines (84 loc) · 2.53 KB
/
pln.5
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.\"
.\" Copyright (c) 2018 Eric Radman <ericshane@eradman.com>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
.\" copyright notice and this permission notice appear in all copies.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd September 24, 2024
.Dt PLN 5
.Os
.Sh NAME
.Nm pln
.Nd progressive label notation
.Sh DESCRIPTION
Progressive Label Notation
is a configuration format used by
.Xr rset 1 ,
and is designed to be evaluated sequentially.
.Nm
supports options defined by
.Em key=value
pairs and text fragments designated by tab indentation
.Bd -literal -offset indent
interpreter=/bin/sh -x
packages:
pkg_add ruby%3.2
ln -sf /usr/local/bin/ruby32 /usr/local/bin/ruby
ln -sf /usr/local/bin/irb32 /usr/local/bin/irb
services:
./rinstall mail/smtpd_relay.conf /etc/mail/smtpd.conf \\
&& rcctl restart smtpd
# vim:ts=4:syntax=sh
.Ed
.Pp
A label may also be followed by special content between a pair of braces on the
beginning of a line. A common use for this is to set environment variables using
local configuration
.Bd -literal -offset indent
www:
{
cat ssl.env
}
echo $SSL_PASSWORD > /etc/keys/global.pass
.Ed
.Sh OPTIONS
Each option may be set multiple times, and is effective for labels that follow.
Reset an option to the implementation-defined default using
.Ql \&=
without a value.
.Sh LABELS
Label names do not need to be unique and may contain any series of
characters except for single and double quotes.
A series of pathnames for use by the application may be specified after the
.Ql \&:
.Bd -literal -offset indent
svc1.local: etc/ rc.d/
httpd.pln
.Ed
.Pp
Labels may be split into multiple aliases separated by using commas
.Bd -literal -offset indent
svc1.local,10.0.0.10:
common.pln
.Ed
.Pp
Alternatively, sequence expressions may be used to match a range of hosts
.Bd -literal -offset indent
db{1..4}.local:
autofailover.pln
.Ed
.Sh COMMENTS
Comments begin with a hash
.Pq Ql \&#
character, and can only be used the beginning of a line.
.Sh SEE ALSO
.Xr labelgrep 1