|
1 <?xml version="1.0" ?> |
|
2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> |
|
3 <!-- |
|
4 Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
5 |
|
6 Licensed under the Apache License, Version 2.0 (the "License"); you may |
|
7 not use this file except in compliance with the License. You may obtain |
|
8 a copy of the License at |
|
9 |
|
10 http://www.apache.org/licenses/LICENSE-2.0 |
|
11 |
|
12 Unless required by applicable law or agreed to in writing, software |
|
13 distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
|
14 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
|
15 License for the specific language governing permissions and limitations |
|
16 under the License. |
|
17 |
|
18 NOTE: This service manifest is not editable; its contents will |
|
19 be overwritten by package or patch operations, including |
|
20 operating system upgrade. Make customizations in a different |
|
21 file. |
|
22 --> |
|
23 <service_bundle type="manifest" name="horizon"> |
|
24 |
|
25 <service version="1" type="service" |
|
26 name="application/openstack/horizon"> |
|
27 |
|
28 <dependency name='multiuser' grouping='require_all' restart_on='error' |
|
29 type='service'> |
|
30 <service_fmri value='svc:/milestone/multi-user:default' /> |
|
31 </dependency> |
|
32 |
|
33 <dependency name='upgrade' grouping='require_all' restart_on='none' |
|
34 type='service'> |
|
35 <service_fmri |
|
36 value='svc:/application/openstack/horizon/horizon-upgrade' /> |
|
37 </dependency> |
|
38 |
|
39 <exec_method timeout_seconds="60" type="method" name="start" |
|
40 exec="/lib/svc/method/horizon %m"> |
|
41 <method_context> |
|
42 <method_credential user='webservd' group='webservd' |
|
43 privileges='basic,{zone}:/system/volatile/openstack_dashboard_wsgi_*'/> |
|
44 </method_context> |
|
45 </exec_method> |
|
46 |
|
47 <exec_method timeout_seconds="60" type="method" name="stop" |
|
48 exec="/lib/svc/method/horizon %m"> |
|
49 <method_context> |
|
50 <method_credential user='webservd' group='webservd'/> |
|
51 </method_context> |
|
52 </exec_method> |
|
53 |
|
54 <exec_method timeout_seconds="60" type="method" name="restart" |
|
55 exec="/lib/svc/method/horizon %m"> |
|
56 <method_context> |
|
57 <method_credential user='webservd' group='webservd' /> |
|
58 </method_context> |
|
59 </exec_method> |
|
60 |
|
61 <property_group type="framework" name="startd"> |
|
62 <propval type="astring" name="ignore_error" value="core,signal"/> |
|
63 </property_group> |
|
64 |
|
65 <instance name='default' enabled='false'> |
|
66 <!-- to start/stop/refresh the service --> |
|
67 <property_group name='general' type='framework'> |
|
68 <propval name='action_authorization' type='astring' |
|
69 value='solaris.smf.manage.horizon' /> |
|
70 <propval name='value_authorization' type='astring' |
|
71 value='solaris.smf.value.horizon' /> |
|
72 </property_group> |
|
73 |
|
74 <property_group name='horizon_stencil' type='configfile'> |
|
75 <propval name='path' type='astring' |
|
76 value='/var/lib/openstack_dashboard/openstack_dashboard.httpd.conf'/> |
|
77 <propval name='stencil' type='astring' value='horizon.stencil'/> |
|
78 <propval name='mode' type='astring' value='0444'/> |
|
79 <propval name='owner' type='astring' value='webservd'/> |
|
80 <propval name='group' type='astring' value='webservd'/> |
|
81 </property_group> |
|
82 |
|
83 <property_group name='horizon_use_tls_stencil' type='configfile'> |
|
84 <propval name='path' type='astring' |
|
85 value='/etc/openstack_dashboard/local_settings.d/use_tls.py'/> |
|
86 <propval name='stencil' type='astring' value='use_tls.stencil'/> |
|
87 <propval name='mode' type='astring' value='0444'/> |
|
88 <propval name='owner' type='astring' value='root'/> |
|
89 <propval name='group' type='astring' value='root'/> |
|
90 </property_group> |
|
91 |
|
92 <property_group name='config' type='application'> |
|
93 <propval name='servername' type='astring' value='127.0.0.1'/> |
|
94 <propval name='access_log' type='astring' |
|
95 value='/var/log/openstack_dashboard/openstack_dashboard_access.log'/> |
|
96 <propval name='error_log' type='astring' |
|
97 value='/var/log/openstack_dashboard/openstack_dashboard_error.log'/> |
|
98 <propval name='port' type='count' value='6788'/> |
|
99 <propval name='use_tls' type='boolean' value='true'/> |
|
100 </property_group> |
|
101 </instance> |
|
102 |
|
103 <template> |
|
104 <common_name> |
|
105 <loctext xml:lang="C"> |
|
106 OpenStack Horizon Dashboard Service |
|
107 </loctext> |
|
108 </common_name> |
|
109 <description> |
|
110 <loctext xml:lang="C"> |
|
111 horizon provides a web-based dashboard for OpenStack. |
|
112 </loctext> |
|
113 </description> |
|
114 |
|
115 <pg_pattern required='true' type='application' name='config'> |
|
116 <prop_pattern required='true' type='astring' name='servername'> |
|
117 <description> |
|
118 <loctext xml:lang='C'> |
|
119 The Apache ServerName Directive. Hostname and port that the |
|
120 server uses to identify itself. |
|
121 </loctext> |
|
122 </description> |
|
123 </prop_pattern> |
|
124 |
|
125 <prop_pattern required='true' type='astring' name='access_log'> |
|
126 <description> |
|
127 <loctext xml:lang='C'> |
|
128 The absolute path for the Apache access log file. Defaults to |
|
129 /var/log/openstack_dashboard/openstack_dashboard_access.log |
|
130 </loctext> |
|
131 </description> |
|
132 </prop_pattern> |
|
133 |
|
134 <prop_pattern required='true' type='astring' name='error_log'> |
|
135 <description> |
|
136 <loctext xml:lang='C'> |
|
137 The absolute path for the Apache error log file. Defaults to |
|
138 /var/log/openstack_dashboard/openstack_dashboard_error.log |
|
139 </loctext> |
|
140 </description> |
|
141 </prop_pattern> |
|
142 |
|
143 <prop_pattern required='true' type='count' name='port'> |
|
144 <description> |
|
145 <loctext xml:lang='C'> |
|
146 The port for requests. Default value is 6788. |
|
147 </loctext> |
|
148 </description> |
|
149 </prop_pattern> |
|
150 |
|
151 <prop_pattern required='false' type='astring' name='ssl_cert_file'> |
|
152 <description> |
|
153 <loctext xml:lang='C'> |
|
154 Server PEM-encoded X.509 Certificate file. |
|
155 </loctext> |
|
156 </description> |
|
157 </prop_pattern> |
|
158 |
|
159 <prop_pattern required='false' type='astring' name='ssl_ca_cert_file'> |
|
160 <description> |
|
161 <loctext xml:lang='C'> |
|
162 File of concatenated PEM-encoded CA Certificates for Client authentication. |
|
163 </loctext> |
|
164 </description> |
|
165 </prop_pattern> |
|
166 |
|
167 <prop_pattern required='false' type='astring' name='ssl_cert_key_file'> |
|
168 <description> |
|
169 <loctext xml:lang='C'> |
|
170 Server PEM-encoded Private Key file. |
|
171 </loctext> |
|
172 </description> |
|
173 </prop_pattern> |
|
174 |
|
175 <prop_pattern required='true' type='boolean' name='use_tls'> |
|
176 <description> |
|
177 <loctext xml:lang='C'> |
|
178 Boolean property to indicate usage of TLS. Defaults to 'true'. |
|
179 </loctext> |
|
180 </description> |
|
181 </prop_pattern> |
|
182 |
|
183 </pg_pattern> |
|
184 </template> |
|
185 </service> |
|
186 </service_bundle> |