components/openstack/cinder/files/cinder-api.xml
changeset 6849 f9a2279efa0d
parent 4476 230dcd277ef6
child 7094 61352b4e5af5
equal deleted inserted replaced
6848:8e252a37ed0d 6849:f9a2279efa0d
     1 <?xml version="1.0" ?>
     1 <?xml version="1.0" ?>
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
     2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
     3 <!--
     3 <!--
     4  Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
     4  Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
     5 
     5 
     6  Licensed under the Apache License, Version 2.0 (the "License"); you may
     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
     7  not use this file except in compliance with the License. You may obtain
     8  a copy of the License at
     8  a copy of the License at
     9 
     9 
    56     <logfile_attributes permissions='600'/>
    56     <logfile_attributes permissions='600'/>
    57 
    57 
    58     <exec_method timeout_seconds="60" type="method" name="start"
    58     <exec_method timeout_seconds="60" type="method" name="start"
    59       exec="/lib/svc/method/cinder-api %m">
    59       exec="/lib/svc/method/cinder-api %m">
    60       <method_context>
    60       <method_context>
       
    61         <method_credential user='cinder' group='cinder'
       
    62           privileges='basic,{zone}:/system/volatile/cinder_wsgi_*'/>
       
    63       </method_context>
       
    64     </exec_method>
       
    65 
       
    66     <exec_method timeout_seconds="60" type="method" name="stop"
       
    67       exec="/lib/svc/method/cinder-api %m">
       
    68       <method_context>
       
    69         <method_credential user='cinder' group='cinder'/>
       
    70       </method_context>
       
    71     </exec_method>
       
    72 
       
    73     <exec_method timeout_seconds="60" type="method" name="restart"
       
    74       exec="/lib/svc/method/cinder-api %m">
       
    75       <method_context>
    61         <method_credential user='cinder' group='cinder' />
    76         <method_credential user='cinder' group='cinder' />
    62       </method_context>
    77       </method_context>
    63     </exec_method>
    78     </exec_method>
    64     <exec_method timeout_seconds="60" type="method" name="stop"
    79 
    65       exec=":kill"/>
    80     <property_group type="framework" name="startd">
       
    81       <propval type="astring" name="ignore_error" value="core,signal"/>
       
    82     </property_group>
    66 
    83 
    67     <instance name='default' enabled='false'>
    84     <instance name='default' enabled='false'>
    68       <!-- to start/stop/refresh the service -->
    85       <!-- to start/stop/refresh the service -->
    69       <property_group name='general' type='framework'>
    86       <property_group name='general' type='framework'>
    70         <propval name='action_authorization' type='astring'
    87         <propval name='action_authorization' type='astring'
    71                  value='solaris.smf.manage.cinder' />
    88                  value='solaris.smf.manage.cinder' />
    72         <propval name='value_authorization' type='astring'
    89         <propval name='value_authorization' type='astring'
    73                  value='solaris.smf.value.cinder' />
    90                  value='solaris.smf.value.cinder' />
    74       </property_group>
    91       </property_group>
       
    92 
       
    93       <property_group name='cinder-api_stencil' type='configfile'>
       
    94         <propval name='path' type='astring'
       
    95           value='/var/lib/cinder/cinder.httpd.conf'/>
       
    96         <propval name='stencil' type='astring' value='cinder-api.stencil'/>
       
    97         <propval name='mode' type='astring' value='0444'/>
       
    98         <propval name='owner' type='astring' value='cinder'/>
       
    99         <propval name='group' type='astring' value='cinder'/>
       
   100       </property_group>
       
   101 
       
   102       <property_group name='config' type='application'>
       
   103         <propval name='access_log' type='astring'
       
   104           value='/var/log/cinder/cinder_access.log'/>
       
   105         <propval name='error_log' type='astring'
       
   106           value='/var/log/cinder/cinder_error.log'/>
       
   107         <propval name='port' type='count' value='8776'/>
       
   108         <propval name='servername' type='astring' value='127.0.0.1'/>
       
   109         <propval name='use_tls' type='boolean' value='false'/>
       
   110       </property_group>
       
   111 
    75     </instance>
   112     </instance>
    76 
   113 
    77     <template>
   114     <template>
    78       <common_name>
   115       <common_name>
    79         <loctext xml:lang="C">
   116         <loctext xml:lang="C">
    84         <loctext xml:lang="C">
   121         <loctext xml:lang="C">
    85           cinder-api is a server daemon that provides the Cinder API service in
   122           cinder-api is a server daemon that provides the Cinder API service in
    86           order to provide volume management for the OpenStack Compute service.
   123           order to provide volume management for the OpenStack Compute service.
    87         </loctext>
   124         </loctext>
    88       </description>
   125       </description>
       
   126 
       
   127       <pg_pattern required='true' type='application' name='config'>
       
   128         <prop_pattern required='true' type='astring' name='access_log'>
       
   129           <description>
       
   130             <loctext xml:lang='C'>
       
   131               The absolute path for the Apache access log file.  Defaults to
       
   132               /var/log/cinder/cinder_access.log
       
   133             </loctext>
       
   134           </description>
       
   135         </prop_pattern>
       
   136 
       
   137         <prop_pattern required='true' type='astring' name='error_log'>
       
   138           <description>
       
   139             <loctext xml:lang='C'>
       
   140               The absolute path for the Apache error log file.  Defaults to
       
   141               /var/log/cinder/cinder_error.log
       
   142             </loctext>
       
   143           </description>
       
   144         </prop_pattern>
       
   145 
       
   146         <prop_pattern required='true' type='count' name='port'>
       
   147           <description>
       
   148             <loctext xml:lang='C'>
       
   149               The port for public requests.  Default value is 8776.
       
   150             </loctext>
       
   151           </description>
       
   152         </prop_pattern>
       
   153 
       
   154         <prop_pattern required='true' type='astring' name='servername'>
       
   155           <description>
       
   156             <loctext xml:lang='C'>
       
   157               The Apache ServerName Directive.  Hostname and port that the
       
   158               server uses to identify itself.
       
   159             </loctext>
       
   160           </description>
       
   161         </prop_pattern>
       
   162 
       
   163         <prop_pattern required='false' type='astring' name='ssl_cert_file'>
       
   164           <description>
       
   165             <loctext xml:lang='C'>
       
   166               Server PEM-encoded X.509 Certificate file.
       
   167             </loctext>
       
   168           </description>
       
   169         </prop_pattern>
       
   170 
       
   171         <prop_pattern required='false' type='astring' name='ssl_ca_cert_file'>
       
   172           <description>
       
   173             <loctext xml:lang='C'>
       
   174               File of concatenated PEM-encoded CA Certificates for Client Auth.
       
   175             </loctext>
       
   176           </description>
       
   177         </prop_pattern>
       
   178 
       
   179         <prop_pattern required='false' type='astring' name='ssl_cert_key_file'>
       
   180           <description>
       
   181             <loctext xml:lang='C'>
       
   182               Server PEM-encoded Private Key file.
       
   183             </loctext>
       
   184           </description>
       
   185         </prop_pattern>
       
   186 
       
   187         <prop_pattern required='true' type='boolean' name='use_tls'>
       
   188           <description>
       
   189             <loctext xml:lang='C'>
       
   190               Boolean property to indicate usage of TLS.  Defaults to 'false'.
       
   191             </loctext>
       
   192           </description>
       
   193         </prop_pattern>
       
   194       </pg_pattern>
    89     </template>
   195     </template>
    90   </service>
   196   </service>
    91 </service_bundle>
   197 </service_bundle>