components/openstack/neutron/files/neutron-metadata-agent.xml
changeset 3998 5bd484384122
child 4389 a44bb9a2917e
equal deleted inserted replaced
3997:0ca3f3d6c919 3998:5bd484384122
       
     1 <?xml version="1.0" ?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4  Copyright (c) 2015, 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-metadata-agent">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/neutron/neutron-metadata-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     <dependency name='upgrade' grouping='require_all' restart_on='none'
       
    34       type='service'>
       
    35       <service_fmri
       
    36         value='svc:/application/openstack/neutron/neutron-upgrade' />
       
    37     </dependency>
       
    38 
       
    39     <dependency name='ntp' grouping='optional_all' restart_on='none'
       
    40       type='service'>
       
    41       <service_fmri value='svc:/network/ntp'/>
       
    42     </dependency>
       
    43 
       
    44     <dependency name='rabbitmq' grouping='optional_all' restart_on='none'
       
    45       type='service'>
       
    46       <service_fmri value='svc:/network/amqp/rabbitmq'/>
       
    47     </dependency>
       
    48 
       
    49     <logfile_attributes permissions='600'/>
       
    50 
       
    51     <exec_method timeout_seconds="60" type="method" name="start"
       
    52       exec="/lib/svc/method/neutron-metadata-agent %m %{config/config_path} %{config/metadata_config_path}">
       
    53       <method_context>
       
    54         <method_credential user='neutron' group='neutron' />
       
    55       </method_context>
       
    56     </exec_method>
       
    57     <exec_method timeout_seconds="60" type="method" name="stop"
       
    58       exec=":kill"/>
       
    59 
       
    60     <instance name='default' enabled='false'>
       
    61       <!-- to start/stop/refresh the service -->
       
    62       <property_group name='general' type='framework'>
       
    63         <propval name='action_authorization' type='astring'
       
    64                  value='solaris.smf.manage.neutron' />
       
    65         <propval name='value_authorization' type='astring'
       
    66                  value='solaris.smf.value.neutron' />
       
    67       </property_group>
       
    68 
       
    69       <property_group name='config' type='application'>
       
    70         <propval name='config_path' type='astring'
       
    71           value='/etc/neutron/neutron.conf'/>
       
    72         <propval name='metadata_config_path' type='astring'
       
    73           value='/etc/neutron/metadata_agent.ini'/>
       
    74       </property_group>
       
    75     </instance>
       
    76 
       
    77     <template>
       
    78       <common_name>
       
    79         <loctext xml:lang="C">
       
    80           OpenStack Neutron Metadata Agent
       
    81         </loctext>
       
    82       </common_name>
       
    83       <description>
       
    84         <loctext xml:lang="C">
       
    85           neutron-metadata-agent is a server daemon that proxies both OpenStack
       
    86           and EC2-compatible API metadata requests made by the VMs on tenant
       
    87           networks to nova-api-metadata
       
    88         </loctext>
       
    89       </description>
       
    90       <pg_pattern name='config' type='application' required='true'>
       
    91         <prop_pattern name='config_path' type='astring'
       
    92           required='true'>
       
    93           <common_name>
       
    94             <loctext xml:lang='C'>
       
    95               Filesystem path to Neutron configuration file
       
    96             </loctext>
       
    97           </common_name>
       
    98         </prop_pattern>
       
    99         <prop_pattern name='metadata_config_path' type='astring'
       
   100           required='true'>
       
   101           <common_name>
       
   102             <loctext xml:lang='C'>
       
   103               Filesystem path to Neutron Metadata .ini file
       
   104             </loctext>
       
   105           </common_name>
       
   106         </prop_pattern>
       
   107       </pg_pattern>
       
   108     </template>
       
   109   </service>
       
   110 </service_bundle>