components/openstack/cloudbase-init/files/cloudbase-init.xml
changeset 7799 e35d3ee6d1b8
parent 7080 49b4c7a1ceca
equal deleted inserted replaced
7798:fd5b3d046269 7799:e35d3ee6d1b8
     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) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     4  Copyright (c) 2015, 2017, 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 
    28     <dependency name='network' grouping='require_all' restart_on='error'
    28     <dependency name='network' grouping='require_all' restart_on='error'
    29       type='service'>
    29       type='service'>
    30       <service_fmri value='svc:/milestone/network:default' />
    30       <service_fmri value='svc:/milestone/network:default' />
    31     </dependency>
    31     </dependency>
    32 
    32 
    33     <logfile_attributes permissions='600'/>
    33     <instance name='default' enabled='true'>
       
    34       <logfile_attributes permissions='600'/>
    34 
    35 
    35     <exec_method timeout_seconds="0" type="method" name="start"
    36       <exec_method timeout_seconds="0" type="method" name="start"
    36       exec="/lib/svc/method/cloudbase-init %m">
    37         exec="/lib/svc/method/cloudbase-init %m">
    37     </exec_method>
    38       </exec_method>
    38     <exec_method timeout_seconds="30" type="method" name="stop"
       
    39       exec=":kill"/>
       
    40 
    39 
    41     <property_group name='startd' type='framework'>
    40       <!-- This is a transient service, so nothing to stop -->
    42       <propval name='duration' type='astring' value='transient' />
    41       <exec_method timeout_seconds="0" type="method" name="stop"
    43     </property_group>
    42         exec=":true"/>
       
    43 
       
    44       <property_group name='startd' type='framework'>
       
    45         <propval name='duration' type='astring' value='transient' />
       
    46       </property_group>
    44     
    47     
    45     <instance name='default' enabled='true'>
       
    46       <!-- to start/stop/refresh the service -->
    48       <!-- to start/stop/refresh the service -->
    47       <property_group name='general' type='framework'>
    49       <property_group name='general' type='framework'>
    48         <propval name='action_authorization' type='astring'
    50         <propval name='action_authorization' type='astring'
    49                  value='solaris.smf.manage.cloudbase-init' />
    51                  value='solaris.smf.manage.cloudbase-init' />
    50         <propval name='value_authorization' type='astring'
    52         <propval name='value_authorization' type='astring'
    51                  value='solaris.smf.value.cloudbase-init' />
    53                  value='solaris.smf.value.cloudbase-init' />
       
    54       </property_group>
       
    55 
       
    56       <property_group name='cloudbase_stencil' type='configfile'>
       
    57         <propval name='path' type='astring'
       
    58 	  value='/etc/cloudbase-init.conf' />
       
    59         <propval name='stencil' type='astring'
       
    60 	  value='cloudbase-init.stencil' />
       
    61         <propval name='mode' type='astring' value='0444' />
       
    62         <propval name='owner' type='astring' value='root' />
       
    63         <propval name='group' type='astring' value='bin' />
       
    64       </property_group>
       
    65 
       
    66       <property_group name='config' type='application' >
       
    67         <propval name='plugins' type='astring'
       
    68           value='cloudbaseinit.plugins.common.userdata.UserDataPlugin' />
       
    69         <propval name='debug' type='boolean' value='false' />
    52       </property_group>
    70       </property_group>
    53     </instance>
    71     </instance>
    54 
    72 
    55     <template>
    73     <template>
    56       <common_name>
    74       <common_name>