1 # 2 # CDDL HEADER START 3 # 4 # The contents of this file are subject to the terms of the 5 # Common Development and Distribution License (the License). 6 # You may not use this file except in compliance with the License. 7 # 8 # You can obtain a copy of the license at usr/src/CDDL.txt 9 # or http://www.opensolaris.org/os/licensing. 10 # See the License for the specific language governing permissions 11 # and limitations under the License. 12 # 13 # When distributing Covered Code, include this CDDL HEADER in each 14 # file and include the License file at usr/src/CDDL.txt. 15 # If applicable, add the following below this CDDL HEADER, with the 16 # fields enclosed by brackets [] replaced with your own identifying 17 # information: Portions Copyright [yyyy] [name of copyright owner] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 27 #ident "@(#)SUNW.apache 1.37 07/06/06 SMI" 28 29 # Registration information and Paramtable for Apache Web Server 30 # 31 # NOTE: Keywords are case insensitive, i.e. users may use any 32 # capitalization style they wish 33 # 34 35 RESOURCE_TYPE = "apache"; 36 VENDOR_ID = SUNW; 37 RT_DESCRIPTION = "Apache Web Server on Sun Cluster"; 38 39 RT_VERSION ="4.1"; 40 API_VERSION = 2; 41 42 43 INIT_NODES = RG_PRIMARIES; 44 45 RT_BASEDIR=/opt/SUNWscapc/bin; 46 47 FAILOVER = FALSE; 48 49 START = apache_svc_start; 50 STOP = apache_svc_stop; 51 52 VALIDATE = apache_validate; 53 UPDATE = apache_update; 54 55 MONITOR_START = apache_monitor_start; 56 MONITOR_STOP = apache_monitor_stop; 57 MONITOR_CHECK = apache_monitor_check; 58 59 PKGLIST = SUNWscapc; 60 61 # 62 # Upgrade directives 63 # 64 #$upgrade 65 #$upgrade_from "1.0" anytime 66 #$upgrade_from "3.1" anytime 67 #$upgrade_from "4" anytime 68 69 70 # The paramtable is a list of bracketed resource property declarations 71 # that come after the resource-type declarations 72 # The property-name declaration must be the first attribute 73 # after the open curly of a paramtable entry 74 # 75 { 76 PROPERTY = Start_timeout; 77 MIN=60; 78 DEFAULT=300; 79 } 80 { 81 PROPERTY = Stop_timeout; 82 MIN=60; 83 DEFAULT=300; 84 } 85 { 86 PROPERTY = Validate_timeout; 87 MIN=60; 88 DEFAULT=300; 89 } 90 { 91 PROPERTY = Update_timeout; 92 MIN=60; 93 DEFAULT=300; 94 } 95 { 96 PROPERTY = Monitor_Start_timeout; 97 MIN=60; 98 DEFAULT=300; 99 } 100 { 101 PROPERTY = Monitor_Stop_timeout; 102 MIN=60; 103 DEFAULT=300; 104 } 105 { 106 PROPERTY = Monitor_Check_timeout; 107 MIN=60; 108 DEFAULT=300; 109 } 110 { 111 PROPERTY = Thorough_Probe_Interval; 112 MIN=0; 113 MAX=3600; 114 DEFAULT=60; 115 TUNABLE = ANYTIME; 116 } 117 { 118 PROPERTY = Retry_Count; 119 MIN=0; 120 MAX=10; 121 DEFAULT=2; 122 TUNABLE = ANYTIME; 123 } 124 { 125 PROPERTY = Retry_Interval; 126 MIN=0; 127 MAX=3600; 128 DEFAULT=620; 129 TUNABLE = ANYTIME; 130 } 131 { 132 PROPERTY = FailOver_Mode; 133 DEFAULT = SOFT; 134 TUNABLE = ANYTIME; 135 } 136 { 137 PROPERTY = Network_resources_used; 138 TUNABLE = AT_CREATION; 139 DEFAULT = ""; 140 } 141 { 142 PROPERTY = Scalable; 143 DEFAULT = FALSE; 144 TUNABLE = AT_CREATION; 145 } 146 { 147 PROPERTY = Load_balancing_policy; 148 DEFAULT = LB_WEIGHTED; 149 TUNABLE = AT_CREATION; 150 } 151 { 152 PROPERTY = Load_balancing_weights; 153 DEFAULT = ""; 154 TUNABLE = ANYTIME; 155 } 156 { 157 PROPERTY = Port_list; 158 DEFAULT = "80/tcp"; 159 TUNABLE = AT_CREATION; 160 } 161 162 # 163 # Extension Properties 164 # 165 166 # Not to be edited by end user 167 { 168 PROPERTY = Paramtable_version; 169 EXTENSION; 170 STRING; 171 DEFAULT = "1.1"; 172 DESCRIPTION = "The Paramtable Version for this Resource"; 173 } 174 175 # BinDir: Directory containing the Apache binaries, e.g. apachectl. 176 # 177 { 178 PROPERTY = Bin_dir; 179 EXTENSION; 180 STRING; 181 TUNABLE = AT_CREATION; 182 DESCRIPTION = "The Binary Directory Path"; 183 } 184 185 # These two control the restarting of the fault monitor itself 186 # (not the server daemon) by PMF. 187 { 188 PROPERTY = Monitor_retry_count; 189 EXTENSION; 190 INT; 191 MIN=-1; 192 DEFAULT = 4; 193 TUNABLE = ANYTIME; 194 DESCRIPTION = "Number of PMF restarts allowed for the fault monitor"; 195 } 196 197 { 198 PROPERTY = Monitor_retry_interval; 199 EXTENSION; 200 INT; 201 MIN=-1; 202 DEFAULT = 2; 203 TUNABLE = ANYTIME; 204 DESCRIPTION = "Time window (minutes) for fault monitor restarts"; 205 } 206 207 # This is an optional property, which determines whether to failover when 208 # retry_count is exceeded during retry_interval. 209 # 210 { 211 PROPERTY = Failover_enabled; 212 EXTENSION; 213 BOOLEAN; 214 DEFAULT = TRUE; 215 TUNABLE = WHEN_DISABLED; 216 DESCRIPTION = "Determines whether to failover when retry_count is exceeded during retry_interval"; 217 } 218 219 # Time out value for the probe 220 { 221 PROPERTY = Probe_timeout; 222 EXTENSION; 223 INT; 224 MIN=15; 225 DEFAULT = 90; 226 TUNABLE = ANYTIME; 227 DESCRIPTION = "Time out value for the probe (seconds)"; 228 } 229 230 # 231 # List of URIs to be probed. The apache agent probe will send HTTP/1.1 GET 232 # requests to each of the listed URIs. 233 # 234 # The probe looks at the http response code and regards 500 (Internal Server 235 # Error) as a failure. 236 { 237 PROPERTY = Monitor_Uri_List; 238 EXTENSION; 239 STRINGARRAY; 240 DEFAULT = ""; 241 TUNABLE = ANYTIME; 242 DESCRIPTION = "URI(s) that will be monitored by the agent probe"; 243 } 244