|
1 <?xml version="1.0"?> |
|
2 <!-- |
|
3 Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. |
|
4 |
|
5 CDDL HEADER START |
|
6 |
|
7 The contents of this file are subject to the terms of the |
|
8 Common Development and Distribution License (the "License"). |
|
9 You may not use this file except in compliance with the License. |
|
10 |
|
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
|
12 or http://www.opensolaris.org/os/licensing. |
|
13 See the License for the specific language governing permissions |
|
14 and limitations under the License. |
|
15 |
|
16 When distributing Covered Code, include this CDDL HEADER in each |
|
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
|
18 If applicable, add the following below this CDDL HEADER, with the |
|
19 fields enclosed by brackets "[]" replaced with your own identifying |
|
20 information: Portions Copyright [yyyy] [name of copyright owner] |
|
21 |
|
22 CDDL HEADER END |
|
23 --> |
|
24 |
|
25 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> |
|
26 |
|
27 <service_bundle type='manifest' name='vpanels'> |
|
28 |
|
29 <service |
|
30 name='network/vpanels-http' |
|
31 type='service' |
|
32 version='1'> |
|
33 |
|
34 <!-- |
|
35 Because we may have multiple instances of network/http |
|
36 provided by different implementations, we keep dependencies |
|
37 and methods within the instance. |
|
38 --> |
|
39 |
|
40 <instance name='apache2' enabled='false'> |
|
41 <!-- |
|
42 Wait for network interfaces to be initialized. |
|
43 --> |
|
44 <dependency name='network' |
|
45 grouping='require_all' |
|
46 restart_on='error' |
|
47 type='service'> |
|
48 <service_fmri value='svc:/milestone/network:default'/> |
|
49 </dependency> |
|
50 |
|
51 <!-- |
|
52 Wait for all local filesystems to be mounted. |
|
53 --> |
|
54 <dependency name='filesystem-local' |
|
55 grouping='require_all' |
|
56 restart_on='none' |
|
57 type='service'> |
|
58 <service_fmri |
|
59 value='svc:/system/filesystem/local:default'/> |
|
60 </dependency> |
|
61 |
|
62 <!-- |
|
63 Wait for automounting to be available, as we may be |
|
64 serving data from home directories or other remote |
|
65 filesystems. |
|
66 --> |
|
67 <dependency name='autofs' |
|
68 grouping='optional_all' |
|
69 restart_on='error' |
|
70 type='service'> |
|
71 <service_fmri |
|
72 value='svc:/system/filesystem/autofs:default'/> |
|
73 </dependency> |
|
74 |
|
75 <exec_method |
|
76 type='method' |
|
77 name='start' |
|
78 exec='/lib/svc/method/http-vpanels start' |
|
79 timeout_seconds='60' /> |
|
80 |
|
81 <exec_method |
|
82 type='method' |
|
83 name='stop' |
|
84 exec='/lib/svc/method/http-vpanels stop' |
|
85 timeout_seconds='60' /> |
|
86 |
|
87 <exec_method |
|
88 type='method' |
|
89 name='refresh' |
|
90 exec='/lib/svc/method/http-vpanels refresh' |
|
91 timeout_seconds='60' /> |
|
92 |
|
93 <property_group name='firewall_context' type='com.sun,fw_definition'> |
|
94 <propval name='ipf_method' type='astring' |
|
95 value='/lib/svc/method/http-vpanels ipfilter' /> |
|
96 </property_group> |
|
97 |
|
98 <property_group name='firewall_config' type='com.sun,fw_configuration'> |
|
99 <propval name='policy' type='astring' value='use_global' /> |
|
100 <propval name='apply_to' type='astring' value='' /> |
|
101 <propval name='exceptions' type='astring' value='' /> |
|
102 <propval name='value_authorization' type='astring' |
|
103 value='solaris.smf.value.firewall.config' /> |
|
104 </property_group> |
|
105 |
|
106 <property_group name='httpd' type='application'> |
|
107 <stability value='Evolving' /> |
|
108 <propval name='sslengine' type='boolean' value='false' /> |
|
109 <propval name='custom_conf' type='boolean' |
|
110 value='false' /> |
|
111 <propval name='user' type='astring' |
|
112 value='webservd' /> |
|
113 <propval name='group' type='astring' |
|
114 value='webservd' /> |
|
115 <propval name='custom_file' type='astring' |
|
116 value='' /> |
|
117 </property_group> |
|
118 |
|
119 <property_group name='vhost-1' type='application'> |
|
120 <stability value='Evolving' /> |
|
121 <propval name='enabled' type='boolean' |
|
122 value='true' /> |
|
123 <propval name='port' type='count' |
|
124 value='80' /> |
|
125 <propval name='docroot' type='astring' |
|
126 value='/var/apache2/2.2/htdocs' /> |
|
127 <propval name='custom_conf' type='boolean' |
|
128 value='false' /> |
|
129 <propval name='custom_file' type='astring' |
|
130 value='' /> |
|
131 <propval name='domain' type='astring' |
|
132 value='localhost' /> |
|
133 <propval name='serve_home_dir' type='boolean' |
|
134 value='false' /> |
|
135 <propval name='sslengine' type='boolean' |
|
136 value='false' /> |
|
137 <propval name='sslip' type='astring' |
|
138 value='' /> |
|
139 <propval name='sslport' type='count' |
|
140 value='443' /> |
|
141 <propval name='sslcert' type='astring' |
|
142 value='' /> |
|
143 <propval name='sslkey' type='astring' |
|
144 value='' /> |
|
145 <property name='mime-1' type='astring'> |
|
146 <astring_list> |
|
147 <value_node value='MIME:video/x-msvideo'/> |
|
148 <value_node value='avi'/> |
|
149 </astring_list> |
|
150 </property> |
|
151 <property name='mime-2' type='astring'> |
|
152 <astring_list> |
|
153 <value_node value='MIME:x-conference/x-cooltalk'/> |
|
154 <value_node value='ice'/> |
|
155 </astring_list> |
|
156 </property> |
|
157 </property_group> |
|
158 |
|
159 <property_group name='tm_pg_pattern_httpd' |
|
160 type='template_pg_pattern'> |
|
161 <propval name='name' type='astring' value='httpd' /> |
|
162 <propval name='type' type='astring' value='application' /> |
|
163 <propval name='required' type='boolean' value='true' /> |
|
164 </property_group> |
|
165 |
|
166 <property_group name='tm_prop_pattern_httpd_ssl' type='template_prop_pattern'> |
|
167 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
168 <propval name='name' type='astring' value='ssl' /> |
|
169 <propval name='type' type='astring' value='boolean' /> |
|
170 <propval name='required' type='boolean' value='true' /> |
|
171 <propval name='visibility' type='astring' value='readwrite' /> |
|
172 <propval name='cardinality' type='astring' value='1' /> |
|
173 <propval name='common_name_C' type='ustring' value='Enable SSL' /> |
|
174 <propval name='description_C' type='ustring' value='Start Apache in SSL mode' /> |
|
175 </property_group> |
|
176 |
|
177 <property_group name='tm_prop_pattern_httpd_custom_conf' type='template_prop_pattern'> |
|
178 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
179 <propval name='name' type='astring' value='custom_conf' /> |
|
180 <propval name='type' type='astring' value='boolean' /> |
|
181 <propval name='required' type='boolean' value='true' /> |
|
182 <propval name='visibility' type='astring' value='readwrite' /> |
|
183 <propval name='cardinality' type='astring' value='1' /> |
|
184 <propval name='common_name_C' type='ustring' value='Use Custom Config' /> |
|
185 <propval name='description_C' type='ustring' value='Start Apache with a custom configuration file' /> |
|
186 </property_group> |
|
187 |
|
188 <property_group name='tm_prop_pattern_httpd_user' type='template_prop_pattern'> |
|
189 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
190 <propval name='name' type='astring' value='user' /> |
|
191 <propval name='type' type='astring' value='astring' /> |
|
192 <propval name='required' type='boolean' value='true' /> |
|
193 <propval name='visibility' type='astring' value='readwrite' /> |
|
194 <propval name='cardinality' type='astring' value='1' /> |
|
195 <propval name='common_name_C' type='ustring' value='User' /> |
|
196 <propval name='description_C' type='ustring' value='The user to run the Apache daemon as' /> |
|
197 </property_group> |
|
198 |
|
199 <property_group name='tm_prop_pattern_httpd_group' type='template_prop_pattern'> |
|
200 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
201 <propval name='name' type='astring' value='group' /> |
|
202 <propval name='type' type='astring' value='astring' /> |
|
203 <propval name='required' type='boolean' value='true' /> |
|
204 <propval name='visibility' type='astring' value='readwrite' /> |
|
205 <propval name='cardinality' type='astring' value='1' /> |
|
206 <propval name='common_name_C' type='ustring' value='Group' /> |
|
207 <propval name='description_C' type='ustring' value='The group to run the Apache daemon as' /> |
|
208 </property_group> |
|
209 |
|
210 <property_group name='tm_prop_pattern_httpd_custom_file' type='template_prop_pattern'> |
|
211 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
212 <propval name='name' type='astring' value='custom_file' /> |
|
213 <propval name='type' type='astring' value='astring' /> |
|
214 <propval name='required' type='boolean' value='true' /> |
|
215 <propval name='visibility' type='astring' value='readwrite' /> |
|
216 <propval name='cardinality' type='astring' value='1' /> |
|
217 <propval name='common_name_C' type='ustring' value='Custom Config File' /> |
|
218 <propval name='description_C' type='ustring' value='The path to the custom configuration file' /> |
|
219 </property_group> |
|
220 |
|
221 <property_group name='tm_prop_pattern_httpd_admin_email' type='template_prop_pattern'> |
|
222 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
223 <propval name='name' type='astring' value='admin_email' /> |
|
224 <propval name='type' type='astring' value='astring' /> |
|
225 <propval name='required' type='boolean' value='true' /> |
|
226 <propval name='visibility' type='astring' value='readwrite' /> |
|
227 <propval name='cardinality' type='astring' value='1' /> |
|
228 <propval name='common_name_C' type='ustring' value='Admin email' /> |
|
229 <propval name='description_C' type='ustring' value='The address Apache problems should be mailed to' /> |
|
230 </property_group> |
|
231 |
|
232 <property_group name='tm_prop_pattern_httpd_docroot' type='template_prop_pattern'> |
|
233 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
234 <propval name='name' type='astring' value='docroot' /> |
|
235 <propval name='type' type='astring' value='astring' /> |
|
236 <propval name='required' type='boolean' value='true' /> |
|
237 <propval name='visibility' type='astring' value='readwrite' /> |
|
238 <propval name='cardinality' type='astring' value='1' /> |
|
239 <propval name='common_name_C' type='ustring' value='Document root' /> |
|
240 <propval name='description_C' type='ustring' value='The path to the root of the documents you wish to share' /> |
|
241 </property_group> |
|
242 |
|
243 <property_group name='tm_prop_pattern_httpd_logfile' type='template_prop_pattern'> |
|
244 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
245 <propval name='name' type='astring' value='logfile' /> |
|
246 <propval name='type' type='astring' value='astring' /> |
|
247 <propval name='required' type='boolean' value='true' /> |
|
248 <propval name='visibility' type='astring' value='readwrite' /> |
|
249 <propval name='cardinality' type='astring' value='1' /> |
|
250 <propval name='common_name_C' type='ustring' value='Logfile' /> |
|
251 <propval name='description_C' type='ustring' value='The name of a file to write log messages to' /> |
|
252 </property_group> |
|
253 |
|
254 <property_group name='tm_prop_pattern_httpd_loglevel' type='template_prop_pattern'> |
|
255 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
256 <propval name='name' type='astring' value='loglevel' /> |
|
257 <propval name='type' type='astring' value='astring' /> |
|
258 <propval name='required' type='boolean' value='true' /> |
|
259 <propval name='visibility' type='astring' value='readwrite' /> |
|
260 <propval name='cardinality' type='astring' value='1' /> |
|
261 <propval name='common_name_C' type='ustring' value='Log Level' /> |
|
262 <propval name='description_C' type='ustring' value='The amount of data you want logged' /> |
|
263 </property_group> |
|
264 |
|
265 <property_group name='tm_prop_pattern_httpd_share_homedirs' type='template_prop_pattern'> |
|
266 <propval name='pg_pattern' type='astring' value='tm_pg_pattern_httpd' /> |
|
267 <propval name='name' type='astring' value='share_homedirs' /> |
|
268 <propval name='type' type='astring' value='boolean' /> |
|
269 <propval name='required' type='boolean' value='true' /> |
|
270 <propval name='visibility' type='astring' value='readwrite' /> |
|
271 <propval name='cardinality' type='astring' value='1' /> |
|
272 <propval name='common_name_C' type='ustring' value='Share Home Directories' /> |
|
273 <propval name='description_C' type='ustring' value='Set to true to share ~user/public_html' /> |
|
274 </property_group> |
|
275 |
|
276 <property_group name='startd' type='framework'> |
|
277 <!-- sub-process core dumps shouldn't restart |
|
278 session --> |
|
279 <propval name='ignore_error' type='astring' |
|
280 value='core,signal' /> |
|
281 </property_group> |
|
282 |
|
283 </instance> |
|
284 |
|
285 <stability value='Evolving' /> |
|
286 |
|
287 <template> |
|
288 <common_name> |
|
289 <loctext xml:lang='C'> |
|
290 Apache Web Server |
|
291 </loctext> |
|
292 </common_name> |
|
293 <description> |
|
294 <loctext xml:lang='C'> |
|
295 An alternate instance of the Apache |
|
296 web server offering simplified |
|
297 configuration management. |
|
298 </loctext> |
|
299 </description> |
|
300 <documentation> |
|
301 <manpage title='httpd' section='8' |
|
302 manpath='/usr/apache2/man' /> |
|
303 <doc_link name='apache.org' |
|
304 uri='http://httpd.apache.org' /> |
|
305 </documentation> |
|
306 </template> |
|
307 </service> |
|
308 |
|
309 </service_bundle> |