components/openstack/ironic/files/ironic-db.xml
branchs11-update
changeset 4508 d8924d870370
child 5405 66fd59fecd68
equal deleted inserted replaced
4506:e5c1a87858fd 4508:d8924d870370
       
     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-db">
       
    24 
       
    25   <service version="1" type="service"
       
    26     name="application/openstack/ironic/ironic-db">
       
    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='ntp' grouping='optional_all' restart_on='none'
       
    34       type='service'>
       
    35       <service_fmri value='svc:/network/ntp'/>
       
    36     </dependency>
       
    37 
       
    38     <dependency name='mysql' grouping='optional_all' restart_on='none'
       
    39       type='service'>
       
    40       <service_fmri value='svc:/application/database/mysql'/>
       
    41     </dependency>
       
    42 
       
    43     <logfile_attributes permissions='600'/>
       
    44 
       
    45     <exec_method timeout_seconds="60" type="method" name="start"
       
    46       exec="/lib/svc/method/ironic-db %m %{config/config_path}">
       
    47       <method_context>
       
    48         <method_credential user='ironic' group='ironic' />
       
    49       </method_context>
       
    50     </exec_method>
       
    51     <exec_method timeout_seconds="60" type="method" name="stop"
       
    52       exec=":true"/>
       
    53 
       
    54     <property_group type="framework" name="startd">
       
    55       <propval type="astring" name="duration" value="transient"/>
       
    56     </property_group>
       
    57 
       
    58     <instance name='default' enabled='false'>
       
    59       <!-- to start/stop/refresh the service -->
       
    60       <property_group name='general' type='framework'>
       
    61         <propval name='action_authorization' type='astring'
       
    62                  value='solaris.smf.manage.ironic' />
       
    63         <propval name='value_authorization' type='astring'
       
    64                  value='solaris.smf.value.ironic' />
       
    65       </property_group>
       
    66       <property_group name='config' type='application'>
       
    67         <propval name='config_path' type='astring'
       
    68           value='/etc/ironic/ironic.conf'/>
       
    69       </property_group>
       
    70     </instance>
       
    71 
       
    72     <template>
       
    73       <common_name>
       
    74         <loctext xml:lang="C">
       
    75           OpenStack Ironic Database Creation Service
       
    76         </loctext>
       
    77       </common_name>
       
    78       <description>
       
    79         <loctext xml:lang="C">
       
    80           ironic-db is a transient service to create the Ironic database if
       
    81           required.
       
    82         </loctext>
       
    83       </description>
       
    84     </template>
       
    85   </service>
       
    86 </service_bundle>