components/openstack/nova/files/nova-api-ec2.xml
changeset 6854 52081f923019
parent 6853 cf1567491b1b
child 6855 ea44e7e0ca98
equal deleted inserted replaced
6853:cf1567491b1b 6854:52081f923019
     1 <?xml version="1.0" ?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4  Copyright (c) 2013, 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="nova-api">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/nova/nova-api-ec2">
       
    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/nova/nova-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:/application/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/nova-api %m ec2">
       
    53       <method_context>
       
    54         <method_credential user='nova' group='nova' />
       
    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.nova' />
       
    65         <propval name='value_authorization' type='astring'
       
    66                  value='solaris.smf.value.nova' />
       
    67       </property_group>
       
    68     </instance>
       
    69 
       
    70     <template>
       
    71       <common_name>
       
    72         <loctext xml:lang="C">
       
    73           OpenStack Nova EC2 API Service
       
    74         </loctext>
       
    75       </common_name>
       
    76       <description>
       
    77         <loctext xml:lang="C">
       
    78           nova-api-ec2 is a service that supports the Nova EC2 API.
       
    79         </loctext>
       
    80       </description>
       
    81     </template>
       
    82   </service>
       
    83 </service_bundle>