components/openstack/ironic/files/ironic-api.xml
changeset 4460 e5811789e2fb
child 5405 66fd59fecd68
equal deleted inserted replaced
4459:5a11150c7d2e 4460:e5811789e2fb
       
     1 <?xml version="1.0" ?>
       
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
       
     3 <!--
       
     4  Copyright (c) 2014, 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="ironic-api">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/ironic/ironic-api">
       
    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     <!-- create a dependency on the ironic-db service ensuring the database
       
    34          is created/synced for all other services. -->
       
    35     <dependency name='ironic_db' grouping='optional_all' restart_on='error'
       
    36       type='service'>
       
    37       <service_fmri value='svc:/application/openstack/ironic/ironic-db'/>
       
    38     </dependency>
       
    39 
       
    40     <dependency name='ntp' grouping='optional_all' restart_on='none'
       
    41       type='service'>
       
    42       <service_fmri value='svc:/network/ntp'/>
       
    43     </dependency>
       
    44 
       
    45     <dependency name='rabbitmq' grouping='optional_all' restart_on='none'
       
    46       type='service'>
       
    47       <service_fmri value='svc:/application/rabbitmq:default'/>
       
    48     </dependency>
       
    49 
       
    50     <logfile_attributes permissions='600'/>
       
    51 
       
    52     <exec_method timeout_seconds="60" type="method" name="start"
       
    53       exec="/lib/svc/method/ironic-api %m %{config/config_path}">
       
    54       <method_context>
       
    55         <method_credential user='ironic' group='ironic' />
       
    56       </method_context>
       
    57     </exec_method>
       
    58     <exec_method timeout_seconds="60" type="method" name="stop"
       
    59       exec=":kill"/>
       
    60 
       
    61     <instance name='default' enabled='false'>
       
    62       <!-- to start/stop/refresh the service -->
       
    63       <property_group name='general' type='framework'>
       
    64         <propval name='action_authorization' type='astring'
       
    65                  value='solaris.smf.manage.ironic' />
       
    66         <propval name='value_authorization' type='astring'
       
    67                  value='solaris.smf.value.ironic' />
       
    68       </property_group>
       
    69       <property_group name='config' type='application'>
       
    70         <propval name='config_path' type='astring'
       
    71           value='/etc/ironic/ironic.conf'/>
       
    72       </property_group>
       
    73     </instance>
       
    74 
       
    75     <template>
       
    76       <common_name>
       
    77         <loctext xml:lang="C">
       
    78           OpenStack Ironic API Service
       
    79         </loctext>
       
    80       </common_name>
       
    81       <description>
       
    82         <loctext xml:lang="C">
       
    83           ironic-api is a server daemon that provides the Ironic API service in
       
    84           order to provide bare metal deployment for OpenStack.
       
    85         </loctext>
       
    86       </description>
       
    87     </template>
       
    88   </service>
       
    89 </service_bundle>