summaryrefslogtreecommitdiff
path: root/man5/ezjail.conf.5
blob: a86db0743bc228c94a33b9b58832741a7becaae8 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
.Dd December 5, 2013
.Dt EZJAIL.CONF 5 USD
.Os FreeBSD
.Sh NAME
.Pa ezjail.conf
.Nd configuration file for ezjail script
.Sh DESCRIPTION
The file
.Pa ezjail.conf
contains settings that control the operation of the ezjail
.Xr rc 8
script. It is also read by the
.Cm ezjail-admin
utility to figure out where it should perform its actions. Its path is
set at installation time to
.Pa EZJAIL_PREFIX/etc/ezjail.conf ,
with an example file installed at
.Pa EZJAIL_PREFIX/etc/ezjail.conf.sample .
.Pp
This file is really a shell script that is sourced by the
.Cm ezjail-admin
command at run-time.
.Dq (str)
denotes a string; it should be enclosed in quotes if it contains space.
.Dq (bool)
notes a boolean, whose possible values are
.Dq YES
and
.Dq NO .
.Sh PATH OPTIONS
.Bl -tag -width option
.It ezjail_jaildir (str)
Location of jail root directories.
.br
Default:
.Em /usr/jails .
.It ezjail_jailtemplate (str)
Location of template jail used to create a new jail
.br
Default:
.Em ${ezjail_jaildir}/newjail .
.It ezjail_jailbase (str)
Location of base jail, the one that is mounted to all jails
.br
Default:
.Em ${ezjail_jaildir}/basejail .
.It ezjail_sourcetree (str)
Location of your copy of FreeBSD's source tree (refer to the
.Xr ezjail-admin 8
utility for more information).
.br
Default:
.Em /usr/src .
.It ezjail_flavours_dir (str)
Location of the flavours, where each directory is a different flavour.
.br
Default:
.Em ${ezjail_jaildir}/flavours .
.It ezjail_ftphost (str)
This is where the install subcommand defaults to fetch its packages from.
.br
Default:
.Em ftp.freebsd.org .
.It ezjail_archivedir (str)
This is the default archive location for the
.Cm ezjail-admin archive
command.
.br
Default:
.Em ${ezjail_jaildir}/ezjail_archives .
.El
.Sh JAIL ADMIN OPTIONS
.Bl -tag -width option
.It ezjail_default_execute (str)
This is the default command executed in a jail by
.Cm ezjail-admin console .
.br
Default:
.Em /usr/bin/login -f root .
.It ezjail_exec_start (str)
The command to execute in a jail when starting it.
.br
Default:
.Em /bin/sh /etc/rc .
.El
.Sh JAIL CREATION OPTIONS
Default options for newly created jails. Used by the
.Xr ezjail-admin 1
utility. Be careful about disabling
.Em ezjail_mount_enable .
.Bl -tag -width option
.It ezjail_mount_enable (bool)
Controls whether
.Pa /etc/fstab. Ar hostname
should be executed at jail startup time.
.br
Default: 
.Em YES .
.It ezjail_devfs_enable (bool)
Controls whether newly created jails are given a working
.Pa /dev
directory. (Refer to
.Xr devfs 5
and
.Xr jail 8
for more information).
.br
Default:
.Em YES .
.It ezjail_devfs_ruleset (str)
Specifies which devfs ruleset should apply for newly created jails.
(Refer to
.Xr devfs 5
and
.Xr jail 8
for more information).
.br
Default:
.Em devfsrules_jail .
.It ezjail_procfs_enable (bool)
Controls whether newly created jails are given a working
.Pa /proc
directory. (Refer to
.Xr procfs 5
and
.Xr jail (8)
for more information).
.br
Default:
.Em YES .
.It ezjail_fdescfs_enable (bool)
Controls whether newly created jails are given a working
.Pa /dev/fd/
directory. (Refer to
.Xr fdescfs (5)
and
.Xr jail (8)
for more information).
.br
Default:
.Em YES .
.It ezjail_uglyperlhack (bool)
Set to YES, if ezjail should provide a soft link from
.Pa /usr/bin/perl
to
.Pa /usr/local/bin/perl
in base jail.
.br
Default:
.Em YES .
.It ezjail_default_flavour (str)
Controls which flavours should be used for newly created jails if none
are given on the command line.
.br
Default:
.Em none .
.It ezjail_imagetype (one of simple, bde, eli, zfs)
Type of jail to create when creating a jail with the
.Fl i
flag without specifying the type explicitly.
.br
Default:
.Em simple
.El
.Sh ZFS OPTIONS
.Bl -tag -width option
.It ezjail_use_zfs (bool)
Set to YES, if ezjail should manage basejail and newjail in a separate
ZFS-datasets.
.br
Default:
.Em NO .
.It ezjail_use_zfs_for_jails (bool)
Set to YES, if ezjail should manage all new jails in their own
ZFS-datasets. To override that on the command line, use
.Cm ezjail-admin create -c simple
for image based jails or
.Cm ezjail-admin create -c ''
for non-image jails. 
.br
Default:
.Em NO .
.It ezjail_jailzfs (str)
The name of the parent ZFS-dataset which ezjail will use to create
jails on. It will be mounted in
.Em ezjail_jaildir .
Setting this will automatically enable ezjail managing jails in separate
ZFS-datasets.
.br
Default:
.Em none .
.It ezjail_zfs_properties (str)
Default properties ZFS will use for creating datasets. See
.Xr zfs 1m
for details. ADVANCED, be very careful!
.br
Default:
.Em none .
.El
.Sh FILES
EZJAIL_PREFIX/etc/ezjail.conf
.br
EZJAIL_PREFIX/etc/rc.d/ezjail.sh
.Sh SEE ALSO
.Xr ezjail-admin 1 ,
.Xr ezjail 5 ,
.Xr jail 8 ,
.Xr devfs 5 ,
.Xr fdescfs 5 ,
.Xr procfs 5 .
.Sh AUTHOR
Dirk Engling
.Aq erdgeist@erdgeist.org .
.Pp
The man page is based on a draft by
.An JoeB
.Aq joeb1@a1poweruser.com
and was rewritten by
.An Frederic Perrin
.Aq frederic.perrin@resel.fr .