components/ruby/puppet/files/puppet.xml.stub
changeset 7945 bb307b57cd05
parent 7580 d8438d87f127
equal deleted inserted replaced
7941:cbeee2330f63 7945:bb307b57cd05
       
     1 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
       
     2 <!--
       
     3  CDDL HEADER START
       
     4 
       
     5  The contents of this file are subject to the terms of the
       
     6  Common Development and Distribution License (the "License").
       
     7  You may not use this file except in compliance with the License.
       
     8 
       
     9  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    10  or http://www.opensolaris.org/os/licensing.
       
    11  See the License for the specific language governing permissions
       
    12  and limitations under the License.
       
    13 
       
    14  When distributing Covered Code, include this CDDL HEADER in each
       
    15  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    16  If applicable, add the following below this CDDL HEADER, with the
       
    17  fields enclosed by brackets "[]" replaced with your own identifying
       
    18  information: Portions Copyright [yyyy] [name of copyright owner]
       
    19 
       
    20  CDDL HEADER END
       
    21 
       
    22  Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
       
    23 
       
    24  NOTE:  This service manifest is not editable; its contents will
       
    25  be overwritten by package or patch operations, including
       
    26  operating system upgrade.  Make customizations in a different
       
    27  file.
       
    28 
       
    29 -->
       
    30 <service_bundle type="manifest" name="puppet">
       
    31   <service name="application/puppet" type="service" version="1">
       
    32     <dependency name="filesystem" grouping="require_all" restart_on="error" type="service">
       
    33       <service_fmri value="svc:/system/filesystem/minimal"/>
       
    34     </dependency>
       
    35     <dependency name="network" grouping="require_all" restart_on="error" type="service">
       
    36       <service_fmri value="svc:/milestone/network"/>
       
    37     </dependency>
       
    38     <dependency name="identity" grouping="require_all" restart_on="error" type="service">
       
    39       <service_fmri value="svc:/system/identity:node"/>
       
    40     </dependency>
       
    41     <dependency name="puppet_self-assembly-complete" grouping="optional_all" restart_on="none" type="service">
       
    42       <service_fmri value="svc:/milestone/self-assembly-complete"/>
       
    43     </dependency>
       
    44     <exec_method type="method" name="start" exec=":true" timeout_seconds="60"/>
       
    45     <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/>
       
    46     <exec_method type="method" name="refresh" exec=":true" timeout_seconds="0"/>
       
    47     <property_group name="general" type="framework">
       
    48       <!-- to start stop puppet -->
       
    49       <propval name="action_authorization" type="astring" value="solaris.smf.manage.puppet"/>
       
    50       <!-- to change puppet properties -->
       
    51       <propval name="value_authorization" type="astring" value="solaris.smf.value.puppet"/>
       
    52     </property_group>
       
    53     <property_group name="puppet_stencil" type="configfile">
       
    54       <propval name="path" type="astring" value="/etc/puppetlabs/puppet/puppet.conf"/>
       
    55       <propval name="stencil" type="astring" value="puppet.stencil"/>
       
    56       <propval name="mode" type="astring" value="0444"/>
       
    57     </property_group>
       
    58     <instance name="upgrade" enabled="true">
       
    59       <!--
       
    60            The upgrade instance performs migration and cleanup steps if needed
       
    61        -->
       
    62       <exec_method type="method" name="start" exec="/usr/puppetlabs/puppet/bin/upgrade.sh" timeout_seconds="0"/>
       
    63       <exec_method type="method" name="stop" exec=":true" timeout_seconds="0"/>
       
    64       <property_group name="startd" type="framework">
       
    65         <propval name="duration" type="astring" value="transient"/>
       
    66       </property_group>
       
    67       <property_group name="upgrade" type="application">
       
    68         <propval name="4.x" type="boolean" value="false"/>
       
    69       </property_group>
       
    70     </instance>
       
    71     <instance name="main" enabled="false">
       
    72       <!--
       
    73           The main instance exists to hold shared configuration values.
       
    74        -->
       
    75       <exec_method type="method" name="start" exec=":true" timeout_seconds="0"/>
       
    76       <exec_method type="method" name="stop" exec=":true" timeout_seconds="0"/>
       
    77       <property_group name="config" type="application">
       
    78         <propval name="vardir" type="astring" value="/var/cache/puppetlabs"/>
       
    79         <propval name="rundir" type="astring" value="/var/run/puppetlabs"/>
       
    80         <propval name="confdir" type="astring" value="/etc/puppetlabs/puppet"/>
       
    81       </property_group>
       
    82     </instance>
       
    83     <instance name="user" enabled="false">
       
    84       <!--
       
    85           user is used by the Puppet apply command, as well as many of the less
       
    86           common Puppet subcommands.
       
    87        -->
       
    88       <exec_method type="method" name="start" exec=":true" timeout_seconds="0"/>
       
    89       <exec_method type="method" name="stop" exec=":true" timeout_seconds="0"/>
       
    90       <property_group name="config" type="application">
       
    91         <propval name="vardir" type="astring" value="/var/cache/puppetlabs"/>
       
    92         <propval name="rundir" type="astring" value="/var/run/puppetlabs"/>
       
    93         <propval name="confdir" type="astring" value="/etc/puppetlabs/puppet"/>
       
    94       </property_group>
       
    95     </instance>
       
    96     <instance name="master" enabled="false">
       
    97       <exec_method type="method" name="start" exec="/usr/sbin/puppet master --logdest %{config/logdest}" timeout_seconds="600"/>
       
    98       <property_group name="config" type="application">
       
    99         <propval name="logdest" type="astring" value="/var/log/puppetlabs/puppet/puppet-master.log"/>
       
   100       </property_group>
       
   101     </instance>
       
   102     <instance name="agent" enabled="false">
       
   103       <exec_method type="method" name="start" exec="/usr/sbin/puppet agent --logdest %{config/logdest}" timeout_seconds="600"/>
       
   104       <property_group name="config" type="application">
       
   105         <propval name="logdest" type="astring" value="/var/log/puppetlabs/puppet/puppet-agent.log"/>
       
   106       </property_group>
       
   107     </instance>
       
   108     <stability value="Unstable"/>
       
   109     <template>
       
   110       <common_name>
       
   111         <loctext xml:lang="C">Puppet</loctext>
       
   112       </common_name>
       
   113       <documentation>
       
   114         <manpage title="puppet-master" section="8" manpath="/usr/share/man"/>
       
   115       </documentation>
       
   116     </template>
       
   117   </service>
       
   118 </service_bundle>