diff options
Diffstat (limited to 'man1/ezjail-admin.1')
-rwxr-xr-x | man1/ezjail-admin.1 | 67 |
1 files changed, 60 insertions, 7 deletions
diff --git a/man1/ezjail-admin.1 b/man1/ezjail-admin.1 index 8e42e46..a4d3109 100755 --- a/man1/ezjail-admin.1 +++ b/man1/ezjail-admin.1 | |||
@@ -4,7 +4,7 @@ ezjail-admin \- Administrate ezjail | |||
4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
5 | .T | 5 | .T |
6 | .B ezjail-admin create | 6 | .B ezjail-admin create |
7 | [-r jailroot] [-x] | 7 | [-f flavour] [-r jailroot] [-x] |
8 | .I hostname jailip | 8 | .I hostname jailip |
9 | 9 | ||
10 | .T | 10 | .T |
@@ -38,21 +38,36 @@ in situations where you just want to alter some of a jail properties and | |||
38 | called ezjail-admin delete without the -w option before. However, sanity | 38 | called ezjail-admin delete without the -w option before. However, sanity |
39 | checks are being performed. | 39 | checks are being performed. |
40 | 40 | ||
41 | It then creates an entry in its etc/ezjail/ resource directory allowing | 41 | It then creates an entry in its |
42 | the jail to be brought up after next reboot. | 42 | .I EZJAIL_PREFIX/etc/ezjail/ |
43 | resource directory allowing the jail to be brought up after next reboot. | ||
43 | 44 | ||
44 | If the ezjail_mount_enable option is set, a /etc/fstab.hostname is | 45 | If the ezjail_mount_enable option is set, a |
45 | generated, allowing the basejail to be auto-mounted when the jail starts | 46 | .I /etc/fstab.hostname |
47 | is generated, allowing the basejail to be auto-mounted when the jail starts | ||
46 | up. | 48 | up. |
47 | 49 | ||
50 | The newly created Jail can perform some initializiation actions, if the | ||
51 | -f <flavour> option is given, where flavour is a path to a flavour configuration | ||
52 | file or a short name expanding to | ||
53 | .I EZJAIL_PREFIX/etc/ezjail.flavour.<flavour> . | ||
54 | |||
55 | See section | ||
56 | .B FLAVOURS | ||
57 | below for more details. | ||
58 | |||
48 | Options for newly created jails are read from | 59 | Options for newly created jails are read from |
49 | .B ezjail.conf, | 60 | .B ezjail.conf, |
50 | refer to ezjail.conf(5) for more information. | 61 | refer to ezjail.conf(5) for more information. |
51 | .SH ezjail-admin delete | 62 | .SH ezjail-admin delete |
52 | removes a jail from ezjails etc/ezjail/ resource directory thus preventing | 63 | removes a jail from ezjails |
64 | .I EZJAIL_PREFIX/etc/ezjail/ | ||
65 | resource directory thus preventing | ||
53 | it from being brought up on next reboot. | 66 | it from being brought up on next reboot. |
54 | 67 | ||
55 | It then removes the /etc/fstab.hostname entry, if it exists. | 68 | It then removes the |
69 | .I /etc/fstab.hostname | ||
70 | entry, if it exists. | ||
56 | 71 | ||
57 | If the -w (wipe) option is given, the directory pointed to by the jail | 72 | If the -w (wipe) option is given, the directory pointed to by the jail |
58 | root entry is removed as well as the soft link in ezjails root dir. | 73 | root entry is removed as well as the soft link in ezjails root dir. |
@@ -89,11 +104,49 @@ host systems world, or at least its kernel. Combining a make world in the | |||
89 | host system with | 104 | host system with |
90 | .B ezjail-admin update | 105 | .B ezjail-admin update |
91 | is considered a good idea. | 106 | is considered a good idea. |
107 | .SH FLAVOURS | ||
108 | .B ezjail-admin | ||
109 | provides an easy way to create many Jails with similar or identical | ||
110 | properties. Currently it supports creating users, installing files and | ||
111 | installing packages. | ||
112 | |||
113 | A sample flavour config file resides under | ||
114 | .I EZJAIL_PREFIX/share/examples/ezjail/ezjail.flavour.default, | ||
115 | the corresponding root is at | ||
116 | .I EZJAIL_PREFIX/share/examples/ezjail/default/. | ||
117 | Some typical Jail initialization actions are demonstrated and you are | ||
118 | encouraged to use it as a template for your flavour configs. | ||
119 | |||
120 | If a flavour is selected on Jail creation, the Jail executes a config | ||
121 | script on its first startup. This looks for packages under | ||
122 | .I /basejail/config/pkg. | ||
123 | Usually it copies files from | ||
124 | .I /basejail/config/<flavour>, | ||
125 | you can specify the path in your flavour config file. | ||
126 | .SH EXAMPLES | ||
127 | ezjail-admin update | ||
128 | .br | ||
129 | ezjail-admin create -f httpd -r /jails/web12 web12.test.org 10.0.1.12 | ||
130 | .br | ||
131 | EZJAIL_PREFIX/etc/rc.d/ezjail.sh start web12.test.org | ||
132 | .br | ||
133 | EZJAIL_PREFIX/etc/rc.d/ezjail.sh stop ns.test.org | ||
134 | .br | ||
135 | ezjail-admin delete ns.test.org | ||
136 | .br | ||
137 | ezjail-admin create -x -r /jails/ns ns.test.org 10.0.2.1 | ||
138 | .SH BUGS | ||
139 | .B ezjail-admin | ||
140 | does not perform paranoid checks on its variables. | ||
92 | .SH FILES | 141 | .SH FILES |
93 | .T4 | 142 | .T4 |
94 | EZJAIL_PREFIX/etc/ezjail.conf | 143 | EZJAIL_PREFIX/etc/ezjail.conf |
95 | .br | 144 | .br |
96 | EZJAIL_PREFIX/etc/rc.d/ezjail.sh | 145 | EZJAIL_PREFIX/etc/rc.d/ezjail.sh |
146 | .br | ||
147 | EZJAIL_PREFIX/share/examples/ezjail/ | ||
148 | .br | ||
149 | EZJAIL_PREFIX/etc/ezjail.flavour.* | ||
97 | .SH "SEE ALSO" | 150 | .SH "SEE ALSO" |
98 | ezjail(5), ezjail.conf(5), jail(8), devfs(5), fdescfs(5), procfs(5) | 151 | ezjail(5), ezjail.conf(5), jail(8), devfs(5), fdescfs(5), procfs(5) |
99 | .SH AUTHOR | 152 | .SH AUTHOR |