|
1 <?xml version="1.0" ?> |
|
2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> |
|
3 <!-- |
|
4 Copyright (c) 2013, 2014, 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="neutron-l3-agent"> |
|
24 |
|
25 <service version="1" type="service" |
|
26 name="application/openstack/neutron/neutron-l3-agent"> |
|
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 <exec_method timeout_seconds="60" type="method" name="start" |
|
34 exec="/lib/svc/method/neutron-l3-agent %m %{config/config_path} %{config/l3_config_path}"> |
|
35 <method_context> |
|
36 <method_credential user='neutron' group='neutron' /> |
|
37 </method_context> |
|
38 </exec_method> |
|
39 <exec_method timeout_seconds="60" type="method" name="stop" |
|
40 exec=":kill"/> |
|
41 |
|
42 <instance name='default' enabled='false'> |
|
43 <!-- to start/stop/refresh the service --> |
|
44 <property_group name='general' type='framework'> |
|
45 <propval name='action_authorization' type='astring' |
|
46 value='solaris.smf.manage.neutron' /> |
|
47 <propval name='value_authorization' type='astring' |
|
48 value='solaris.smf.value.neutron' /> |
|
49 </property_group> |
|
50 |
|
51 <property_group name='config' type='application'> |
|
52 <propval name='config_path' type='astring' |
|
53 value='/etc/neutron/quantum.conf'/> |
|
54 <propval name='l3_config_path' type='astring' |
|
55 value='/etc/neutron/l3_agent.ini'/> |
|
56 </property_group> |
|
57 </instance> |
|
58 |
|
59 <template> |
|
60 <common_name> |
|
61 <loctext xml:lang="C"> |
|
62 OpenStack Neutron Layer 3 Agent |
|
63 </loctext> |
|
64 </common_name> |
|
65 <description> |
|
66 <loctext xml:lang="C"> |
|
67 neutron-l3-agent is a server daemon that supports Layer 3 and NAT |
|
68 forwarding to provide external network access for VMs on tenant |
|
69 networks. |
|
70 </loctext> |
|
71 </description> |
|
72 <pg_pattern name='config' type='application' required='true'> |
|
73 <prop_pattern name='config_path' type='astring' |
|
74 required='true'> |
|
75 <common_name> |
|
76 <loctext xml:lang='C'> |
|
77 Filesystem path to Neutron configuration file |
|
78 </loctext> |
|
79 </common_name> |
|
80 </prop_pattern> |
|
81 <prop_pattern name='l3_config_path' type='astring' |
|
82 required='true'> |
|
83 <common_name> |
|
84 <loctext xml:lang='C'> |
|
85 Filesystem path to Neutron l3 .ini file |
|
86 </loctext> |
|
87 </common_name> |
|
88 </prop_pattern> |
|
89 </pg_pattern> |
|
90 </template> |
|
91 </service> |
|
92 </service_bundle> |