components/puppet/files/puppet-master.xml
changeset 1198 f9a4100102d8
equal deleted inserted replaced
1197:2cb98ee9bc03 1198:f9a4100102d8
       
     1 <?xml version="1.0"?>
       
     2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
       
     3 <!--
       
     4  CDDL HEADER START
       
     5 
       
     6  The contents of this file are subject to the terms of the
       
     7  Common Development and Distribution License (the "License").
       
     8  You may not use this file except in compliance with the License.
       
     9 
       
    10  You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    11  or http://www.opensolaris.org/os/licensing.
       
    12  See the License for the specific language governing permissions
       
    13  and limitations under the License.
       
    14 
       
    15  When distributing Covered Code, include this CDDL HEADER in each
       
    16  file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    17  If applicable, add the following below this CDDL HEADER, with the
       
    18  fields enclosed by brackets "[]" replaced with your own identifying
       
    19  information: Portions Copyright [yyyy] [name of copyright owner]
       
    20 
       
    21  CDDL HEADER END
       
    22 
       
    23  Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
       
    24 
       
    25  NOTE:  This service manifest is not editable; its contents will
       
    26  be overwritten by package or patch operations, including
       
    27  operating system upgrade.  Make customizations in a different
       
    28  file.
       
    29 -->
       
    30 
       
    31 <service_bundle type='manifest' name='puppetmaster'>
       
    32 
       
    33 <service
       
    34 	name='application/puppet/master'
       
    35 	type='service'
       
    36 	version='1'>
       
    37 
       
    38 	<dependency
       
    39 		name='filesystem'
       
    40 		grouping='require_all'
       
    41 		restart_on='error'
       
    42 		type='service'>
       
    43 		    <service_fmri value='svc:/system/filesystem/minimal' />
       
    44 	</dependency>
       
    45 
       
    46 	<exec_method
       
    47 		type='method'
       
    48 		name='start'
       
    49 		exec='/lib/svc/method/puppet_master %m'
       
    50 		timeout_seconds='600' >
       
    51 	</exec_method>
       
    52 
       
    53 	<exec_method
       
    54 		type='method'
       
    55 		name='stop'
       
    56 		exec=':kill'
       
    57 		timeout_seconds='60' >
       
    58 	</exec_method>
       
    59 
       
    60 	<property_group name='general' type='framework'>
       
    61 		<!-- to start stop puppet -->
       
    62 		<propval name='action_authorization' type='astring'
       
    63 		value='solaris.smf.manage.puppet' />
       
    64 		<!-- to change puppet properties -->
       
    65 		<propval name='value_authorization' type='astring'
       
    66 		value='solaris.smf.value.puppet' />
       
    67 	</property_group>
       
    68 
       
    69 	<instance name='default' enabled='false'>
       
    70 		<property_group name='config' type='application'>
       
    71 			<propval name='logdest' type='astring'
       
    72 			    value='/var/log/puppet/puppet-master.log'/>
       
    73 			<propval name='server' type='host' value=''/>
       
    74 		</property_group>
       
    75 	</instance>
       
    76 
       
    77 	<stability value='Unstable' />
       
    78 
       
    79 	<template>
       
    80 		<common_name>
       
    81 			<loctext xml:lang='C'>
       
    82 			Puppet master version 3.0.1
       
    83 			</loctext>
       
    84 		</common_name>
       
    85 		<documentation>
       
    86 			<manpage title='puppet-master' section='8' manpath='/usr/share/man' />
       
    87 		</documentation>
       
    88 		<pg_pattern name='config' type='application' required='false'>
       
    89 			<prop_pattern name='server' type='host'
       
    90 			    required='false'>
       
    91 				<common_name>
       
    92 					<loctext xml:lang='C'>
       
    93 					Server name or IP address of puppet master
       
    94 					</loctext>
       
    95 				</common_name>
       
    96 			</prop_pattern>
       
    97 			<prop_pattern name='logdest' type='astring'
       
    98 			    required='false'>
       
    99 				<common_name>
       
   100 					<loctext xml:lang='C'>
       
   101 					Logfile destination
       
   102 					</loctext>
       
   103 				</common_name>
       
   104 			</prop_pattern>
       
   105 		</pg_pattern>
       
   106 	</template>
       
   107 </service>
       
   108 
       
   109 </service_bundle>