http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/config/lb/repository/conf/axis2/axis2.xml ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/config/lb/repository/conf/axis2/axis2.xml b/tools/stratos-installer/config/lb/repository/conf/axis2/axis2.xml deleted file mode 100644 index 0cd6812..0000000 --- a/tools/stratos-installer/config/lb/repository/conf/axis2/axis2.xml +++ /dev/null @@ -1,526 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. See the License for the - ~ specific language governing permissions and limitations - ~ under the License. - --> - -<axisconfig name="AxisJava2.0"> - - <!-- ================================================= --> - <!-- Parameters --> - <!-- ================================================= --> - - <!-- This will give out the timout of the configuration contexts, in milliseconds --> - <parameter name="ConfigContextTimeoutInterval" locked="false">30000</parameter> - - <!-- Synapse Configuration file location relative to CARBON_HOME --> - <parameter name="SynapseConfig.ConfigurationFile" locked="false">repository/deployment/server/synapse-configs</parameter> - <!-- Synapse Home parameter --> - <parameter name="SynapseConfig.HomeDirectory" locked="false">.</parameter> - <!-- Resolve root used to resolve synapse references like schemas inside a WSDL --> - <parameter name="SynapseConfig.ResolveRoot" locked="false">.</parameter> - <!-- Synapse Server name parameter --> - <parameter name="SynapseConfig.ServerName" locked="false">localhost</parameter> - - - <!-- ================================================= --> - <!-- Message Formatters --> - <!-- ================================================= --> - - <!-- Following content type to message formatter mapping can be used to implement support --> - <!-- for different message format serializations in Axis2. These message formats are --> - <!-- expected to be resolved based on the content type. --> - <messageFormatters> - <!--messageFormatter contentType="application/xml" - class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>--> - <!--messageFormatter contentType="text/xml" - class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>--> - <!--messageFormatter contentType="application/soap+xml" - class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>--> - <!--messageFormatter contentType="application/x-www-form-urlencoded" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/--> - <messageFormatter contentType="multipart/related" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/xml" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/txt" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="text/html" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/soap+xml" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="text/xml" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <!--messageFormatter contentType="x-application/hessian" - class="org.apache.synapse.format.hessian.HessianMessageFormatter"/--> - <!--messageFormatter contentType="" - class="org.apache.synapse.format.hessian.HessianMessageFormatter"/--> - - <messageFormatter contentType="text/css" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="text/javascript" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - - <messageFormatter contentType="image/gif" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="img/gif" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="image/jpeg" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="image/png" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="image/ico" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="image/x-icon" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - - <messageFormatter contentType="application/x-javascript" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/x-shockwave-flash" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/atom+xml" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/x-www-form-urlencoded" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/xhtml+xml" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/octet-stream" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/javascript" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - - <messageFormatter contentType="multipart/form-data" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/soap+xml" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - - <!--JSON Message Formatters--> - <messageFormatter contentType="application/json" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="application/json/badgerfish" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - <messageFormatter contentType="text/javascript" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - - - <messageFormatter contentType=".*" - class="org.wso2.carbon.relay.ExpandingMessageFormatter"/> - - </messageFormatters> - - <!-- ================================================= --> - <!-- Message Builders --> - <!-- ================================================= --> - - <!-- Following content type to builder mapping can be used to implement support for --> - <!-- different message formats in Axis2. These message formats are expected to be --> - <!-- resolved based on the content type. --> - <messageBuilders> - <messageBuilder contentType="application/xml" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/txt" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <!--messageBuilder contentType="application/xml" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/--> - <!--messageBuilder contentType="application/x-www-form-urlencoded" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/--> - <!--messageBuilder contentType="multipart/form-data" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/--> - <messageBuilder contentType="multipart/related" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/soap+xml" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="text/plain" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="text/xml" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <!--messageBuilder contentType="x-application/hessian" - class="org.apache.synapse.format.hessian.HessianMessageBuilder"/--> - <!--messageBuilder contentType="" - class="org.apache.synapse.format.hessian.HessianMessageBuilder"/--> - - <!--JSON Message Builders--> - <messageBuilder contentType="application/json" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/json/badgerfish" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="text/javascript" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - - - <messageBuilder contentType="text/html" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="text/css" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="text/javascript" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - - <messageBuilder contentType="image/gif" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="img/gif" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="image/jpeg" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="image/png" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="image/ico" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="image/x-icon" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - - - <messageBuilder contentType="application/x-javascript" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/x-shockwave-flash" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/atom+xml" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/x-www-form-urlencoded" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/xhtml+xml" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/octet-stream" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/javascript" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - - <messageBuilder contentType="multipart/form-data" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - <messageBuilder contentType="application/soap+xml" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - - - <messageBuilder contentType=".*" - class="org.wso2.carbon.relay.BinaryRelayBuilder"/> - - </messageBuilders> - - <!-- ================================================= --> - <!-- Transport Ins (Listeners) --> - <!-- ================================================= --> - <!--Default trasnport will be passthrough if you need to change please add it here --> - <!--transportReceiver name="http" class="org.apache.synapse.transport.passthru.PassThroughHttpListener"> - <parameter name="port">8280</parameter> - <parameter name="non-blocking"> true</parameter> - <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter> - </transportReceiver--> - <!--transportReceiver name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLListener"> - <parameter name="port" locked="false">8243</parameter> - <parameter name="non-blocking" locked="false">true</parameter--> - <!--parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.PassThroughNHttpGetProcessor</parameter--> - <!--parameter name="bind-address" locked="false">hostname or IP address</parameter--> - <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter--> - <!--parameter name="keystore" locked="false"> - <KeyStore> - <Location>repository/resources/security/wso2carbon.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - <KeyPassword>wso2carbon</KeyPassword> - </KeyStore> - </parameter> - <parameter name="truststore" locked="false"> - <TrustStore> - <Location>repository/resources/security/client-truststore.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - </TrustStore> - </parameter--> - <!--<parameter name="SSLVerifyClient">require</parameter> - supports optional|require or defaults to none --> - <!--/transportReceiver--> - - <!-- uncomment for non blocking http transport based on HttpCore + NIO extensions --> - <transportReceiver name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOListener"> - <parameter name="port" locked="false">8280</parameter> - <parameter name="non-blocking" locked="false">true</parameter> - <!--parameter name="bind-address" locked="false">hostname or IP address</parameter--> - <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter--> - <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter> - </transportReceiver> - - <!-- the non blocking https transport based on HttpCore + SSL-NIO extensions --> - <transportReceiver name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLListener"> - <parameter name="port" locked="false">8243</parameter> - <parameter name="non-blocking" locked="false">true</parameter> - <!--parameter name="bind-address" locked="false">hostname or IP address</parameter--> - <!--parameter name="WSDLEPRPrefix" locked="false">https://apachehost:port/somepath</parameter--> - <parameter name="httpGetProcessor" locked="false">org.wso2.carbon.transport.nhttp.api.NHttpGetProcessor</parameter> - <parameter name="keystore" locked="false"> - <KeyStore> - <Location>repository/resources/security/wso2carbon.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - <KeyPassword>wso2carbon</KeyPassword> - </KeyStore> - </parameter> - <parameter name="truststore" locked="false"> - <TrustStore> - <Location>repository/resources/security/client-truststore.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - </TrustStore> - </parameter> - <!--<parameter name="SSLVerifyClient">require</parameter> - supports optional|require or defaults to none --> - </transportReceiver> - - <!-- ================================================= --> - <!-- Transport Outs (Senders) --> - <!-- ================================================= --> - <!--Default trasnport will be passthrough if you need to change please add it here --> - <!--transportSender name="http" class="org.apache.synapse.transport.passthru.PassThroughHttpSender"> - <parameter name="non-blocking" locked="false">true</parameter> - <parameter name="warnOnHTTP500" locked="false">*</parameter--> - <!--parameter name="http.proxyHost" locked="false">localhost</parameter> - <parameter name="http.proxyPort" locked="false">3128</parameter> - <parameter name="http.nonProxyHosts" locked="false">localhost|moon|sun</parameter--> - <!--/transportSender> - <transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender"> - <parameter name="non-blocking" locked="false">true</parameter> - <parameter name="keystore" locked="false"> - <KeyStore> - <Location>repository/resources/security/wso2carbon.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - <KeyPassword>wso2carbon</KeyPassword> - </KeyStore> - </parameter> - <parameter name="truststore" locked="false"> - <TrustStore> - <Location>repository/resources/security/client-truststore.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - </TrustStore> - </parameter> - <parameter name="HostnameVerifier">AllowAll</parameter--> - <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified --> - <!--/transportSender--> - <!-- Uncomment for non-blocking http transport based on HttpCore + NIO extensions --> - <transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender"> - <parameter name="non-blocking" locked="false">true</parameter> - </transportSender> - <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender"> - <parameter name="non-blocking" locked="false">true</parameter> - <parameter name="keystore" locked="false"> - <KeyStore> - <Location>repository/resources/security/wso2carbon.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - <KeyPassword>wso2carbon</KeyPassword> - </KeyStore> - </parameter> - <parameter name="truststore" locked="false"> - <TrustStore> - <Location>repository/resources/security/client-truststore.jks</Location> - <Type>JKS</Type> - <Password>wso2carbon</Password> - </TrustStore> - </parameter> - <parameter name="HostnameVerifier">AllowAll</parameter> - <!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified --> - </transportSender> - - <transportSender name="local" class="org.apache.axis2.transport.local.LocalTransportSender"/> - - <!-- ================================================= --> - <!-- Clustering --> - <!-- ================================================= --> - <!-- - To enable clustering for this node, set the value of "enable" attribute of the "clustering" - element to "true". The initialization of a node in the cluster is handled by the class - corresponding to the "class" attribute of the "clustering" element. It is also responsible for - getting this node to join the cluster. - --> - <clustering class="org.apache.axis2.clustering.tribes.TribesClusteringAgent" enable="true"> - - <!-- - This parameter indicates whether the cluster has to be automatically initalized - when the AxisConfiguration is built. If set to "true" the initialization will not be - done at that stage, and some other party will have to explictly initialize the cluster. - --> - <parameter name="AvoidInitiation">true</parameter> - - <!-- - The membership scheme used in this setup. The only values supported at the moment are - "multicast" and "wka" - - 1. multicast - membership is automatically discovered using multicasting - 2. wka - Well-Known Address based multicasting. Membership is discovered with the help - of one or more nodes running at a Well-Known Address. New members joining a - cluster will first connect to a well-known node, register with the well-known node - and get the membership list from it. When new members join, one of the well-known - nodes will notify the others in the group. When a member leaves the cluster or - is deemed to have left the cluster, it will be detected by the Group Membership - Service (GMS) using a TCP ping mechanism. - --> - <parameter name="membershipScheme">wka</parameter> - - <!-- - The clustering domain/group. Nodes in the same group will belong to the same multicast - domain. There will not be interference between nodes in different groups. - --> - <parameter name="domain">lb.domain</parameter> - - <!-- - When a Web service request is received, and processed, before the response is sent to the - client, should we update the states of all members in the cluster? If the value of - this parameter is set to "true", the response to the client will be sent only after - all the members have been updated. Obviously, this can be time consuming. In some cases, - such this overhead may not be acceptable, in which case the value of this parameter - should be set to "false" - --> - <parameter name="synchronizeAll">false</parameter> - - <!-- - The maximum number of times we need to retry to send a message to a particular node - before giving up and considering that node to be faulty - --> - <parameter name="maxRetries">10</parameter> - - <!-- The multicast address to be used --> - <parameter name="mcastAddress">228.0.0.4</parameter> - - <!-- The multicast port to be used --> - <parameter name="mcastPort">45564</parameter> - - <!-- The frequency of sending membership multicast messages (in ms) --> - <parameter name="mcastFrequency">500</parameter> - - <!-- The time interval within which if a member does not respond, the member will be - deemed to have left the group (in ms) - --> - <parameter name="memberDropTime">3000</parameter> - - <!-- - The IP address of the network interface to which the multicasting has to be bound to. - Multicasting would be done using this interface. - --> - <parameter name="mcastBindAddress">127.0.0.1</parameter> - - <!-- The host name or IP address of this member --> - - <!--parameter name="localMemberHost">127.0.0.1</parameter--> - - - <!-- - The TCP port used by this member. This is the port through which other nodes will - contact this member - --> - <parameter name="localMemberPort">4000</parameter> - - <!-- - Preserve message ordering. This will be done according to sender order. - --> - <parameter name="preserveMessageOrder">false</parameter> - - <!-- - Maintain atmost-once message processing semantics - --> - <parameter name="atmostOnceMessageSemantics">false</parameter> - - <!-- - This interface is responsible for handling state replication. The property changes in - the Axis2 context hierarchy in this node, are propagated to all other nodes in the cluster. - - The "excludes" patterns can be used to specify the prefixes (e.g. local_*) or - suffixes (e.g. *_local) of the properties to be excluded from replication. The pattern - "*" indicates that all properties in a particular context should not be replicated. - - The "enable" attribute indicates whether context replication has been enabled - --> - <stateManager class="org.apache.axis2.clustering.state.DefaultStateManager" - enable="false"> - <replication> - <defaults> - <exclude name="local_*"/> - <exclude name="LOCAL_*"/> - </defaults> - <context class="org.apache.axis2.context.ConfigurationContext"> - <exclude name="local_*"/> - <exclude name="UseAsyncOperations"/> - <exclude name="SequencePropertyBeanMap"/> - </context> - <context class="org.apache.axis2.context.ServiceGroupContext"> - <exclude name="local_*"/> - <exclude name="my.sandesha.*"/> - </context> - <context class="org.apache.axis2.context.ServiceContext"> - <exclude name="local_*"/> - <exclude name="my.sandesha.*"/> - </context> - </replication> - </stateManager> - </clustering> - - <!-- ================================================= --> - <!-- Phases --> - <!-- ================================================= --> - - <phaseOrder type="InFlow"> - <!-- System pre defined phases --> - <phase name="Transport"/> - <phase name="Addressing"/> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/> - <!-- System pre defined phases --> - <phase name="RMPhase"/> - <phase name="OpPhase"/> - </phaseOrder> - - <phaseOrder type="OutFlow"> - <!-- Handlers related to unified-endpoint component are added to the UEPPhase --> - <phase name="UEPPhase" /> - <!-- user can add his own phases to this area --> - <phase name="RMPhase"/> - <phase name="MUPhase"/> - <phase name="OpPhase"/> - <phase name="OperationOutPhase"/> - <!--system predefined phase--> - <!--these phase will run irrespective of the service--> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> - - <phaseOrder type="InFaultFlow"> - <phase name="Transport"/> - <phase name="Addressing"/> - <phase name="Security"/> - <phase name="PreDispatch"/> - <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase"/> - <!-- user can add his own phases to this area --> - <phase name="RMPhase"/> - <phase name="OpPhase"/> - <phase name="MUPhase"/> - <phase name="OperationInFaultPhase"/> - </phaseOrder> - - <phaseOrder type="OutFaultFlow"> - <!-- Handlers related to unified-endpoint component are added to the UEPPhase --> - <phase name="UEPPhase" /> - <!-- user can add his own phases to this area --> - <phase name="RMPhase"/> - <!-- Must Understand Header processing phase --> - <phase name="MUPhase"/> - <phase name="OperationOutFaultPhase"/> - <phase name="PolicyDetermination"/> - <phase name="MessageOut"/> - <phase name="Security"/> - </phaseOrder> - -</axisconfig>
http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/config/lb/repository/conf/loadbalancer.conf ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/config/lb/repository/conf/loadbalancer.conf b/tools/stratos-installer/config/lb/repository/conf/loadbalancer.conf deleted file mode 100644 index 971abd5..0000000 --- a/tools/stratos-installer/config/lb/repository/conf/loadbalancer.conf +++ /dev/null @@ -1,118 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -loadbalancer { - - # Default load balancing algorithm - # Refer algorithm name from algorithms section. - algorithm: round-robin; - - # Enable/disable failover handling - # If failover handling is enabled load balancer will retry requests on all members in a - # given cluster if the selected member fails to respond. - failover: true; - - # Enable/disable session affinity - # If session affinity is enabled load balancer will track all outgoing sessions and delegate - # incoming requests to members with same sessions. - session-affinity: true; - - # Session timeout in milli-seconds - session-timeout: 90000; - - # Enable/disable topology event listener - # If this property is set to true, load balancer will listen to topology events and build - # the topology configuration accordingly. If not static configuration given in the services - # section will be used. - topology-event-listener: true; - - # Message broker endpoint - # Provide message broker ip address and port if topology-event-listener or multi-tenancy is set to true. - mb-ip: MB_IP; - mb-port: MB_LISTEN_PORT; - - # Topology service filter - # Provide service names in a comma separated list to filter incoming topology events if - # topology_event_listener_enabled is set to true. This functionality could be used for hosting - # dedicated load balancers for services. - # topology-service-filter: service-name1, service-name2; - - # Topology cluster filter - # Provide cluster ids in a comma separated list to filter incoming topology events if - # topology_event_listener_enabled is set to true. This functionality could be used for hosting - # dedicated load balancers for subscriptions. - # topology-cluster-filter: cluster-id1, cluster-id2; - - # Enable/disable cep statistics publisher - cep-stats-publisher: true; - - # Complex event processor endpoint - # Provide CEP ip address and port if cep-stats-publisher is set to true. - cep-ip: CEP_IP; - cep-port: CEP_LISTEN_PORT; - - # Load balancing algorithm class names. - algorithms { - round-robin { # algorithm name - class-name: org.apache.stratos.load.balancer.algorithm.RoundRobin; - } - } - - # Static topology configuration - # Define a static topology configuration if topology-event-listener is set to false. - # A sample configuration has been given below: - # - # services { - # app-server { # service name, a unique identifier to identify a service - # clusters { - # app-server-cluster1 { # cluster id, a unique identifier to identify a cluster - # hosts: cluster1.appserver.foo.org, cluster1.org; # comma separated hostname list - # algorithm: round-robin; # algorithm name - # members { - # m1 { # member id, a unique identifier to identify a member - # ip: 10.0.0.10; # member ip address - # ports { - # http { - # value: 8080; # application port - # proxy: 80; # proxy port exposed by load balancer transport, set this value in axis2.xml - # } - # https { - # value: 8090; - # proxy: 443; - # } - # } - # } - # m2 { - # ip: 10.0.0.11; - # ports { - # http { - # value: 8080; - # proxy: 80; - # } - # https { - # value: 8090; - # proxy: 443; - # } - # } - # } - # } - # } - # } - # } - # } -} - http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/config/sm/repository/conf/carbon.xml ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/config/sm/repository/conf/carbon.xml b/tools/stratos-installer/config/sm/repository/conf/carbon.xml deleted file mode 100644 index 4ea32a3..0000000 --- a/tools/stratos-installer/config/sm/repository/conf/carbon.xml +++ /dev/null @@ -1,603 +0,0 @@ -<?xml version="1.0" encoding="ISO-8859-1"?> - -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - - or more contributor license agreements. See the NOTICE file - - distributed with this work for additional information - - regarding copyright ownership. The ASF licenses this file - - to you under the Apache License, Version 2.0 (the - - "License"); you may not use this file except in compliance - - with the License. You may obtain a copy of the License at - - - - http://www.apache.org/licenses/LICENSE-2.0 - - - - Unless required by applicable law or agreed to in writing, - - software distributed under the License is distributed on an - - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - - KIND, either express or implied. See the License for the - - specific language governing permissions and limitations - - under the License. ---> - -<!-- - This is the main server configuration file - - ${carbon.home} represents the carbon.home system property. - Other system properties can be specified in a similar manner. ---> -<Server xmlns="http://wso2.org/projects/carbon/carbon.xml"> - - <!-- - Product Name - --> - <Name>Apache Stratos Controller</Name> - - <!-- - machine readable unique key to identify each product - --> - <ServerKey>SCC</ServerKey> - - <!-- - Product Version - --> - <version>4.0.0-SNAPSHOT</version> - - <!-- - Host name or IP address of the machine hosting this server - e.g. www.wso2.org, 192.168.1.10 - This is will become part of the End Point Reference of the - services deployed on this server instance. - --> - <!--HostName>www.wso2.org</HostName--> - - <!-- - Host name to be used for the Carbon management console - --> - <!--MgtHostName>mgt.wso2.org</MgtHostName--> - - <!-- - The URL of the back end server. This is where the admin services are hosted and - will be used by the clients in the front end server. - This is required only for the Front-end server. This is used when seperating BE server from FE server - --> - <ServerURL>local:/${carbon.context}/services/</ServerURL> - <!-- - <ServerURL>https://${carbon.local.ip}:${carbon.management.port}${carbon.context}/services/</ServerURL> - --> - <!-- - The URL of the index page. This is where the user will be redirected after signing in to the - carbon server. - --> - <IndexPageURL>/console/login</IndexPageURL> - - <!-- - For cApp deployment, we have to identify the roles that can be acted by the current server. - The following property is used for that purpose. Any number of roles can be defined here. - Regular expressions can be used in the role. - Ex : <Role>.*</Role> means this server can act any role - --> - <ServerRoles> - <Role>Stratos Controller</Role> - </ServerRoles> - - <!-- uncommnet this line to subscribe to a bam instance automatically --> - <!--<BamServerURL>https://bamhost:bamport/services/</BamServerURL>--> - - <!-- - The fully qualified name of the server - --> - <Package>org.wso2.carbon</Package> - - <!-- - Webapp context root of WSO2 Carbon. - --> - <WebContextRoot>/</WebContextRoot> - - <!-- In-order to get the registry http Port from the back-end when the default http transport is not the same--> - <!--RegistryHttpPort>9763</RegistryHttpPort--> - - <!-- - Number of items to be displayed on a management console page. This is used at the - backend server for pagination of various items. - --> - <ItemsPerPage>15</ItemsPerPage> - - <!-- The endpoint URL of the cloud instance management Web service --> - <!--<InstanceMgtWSEndpoint>https://ec2.amazonaws.com/</InstanceMgtWSEndpoint>--> - - <!-- - Ports used by this server - --> - <Ports> - - <!-- Ports offset. This entry will set the value of the ports defined below to - the define value + Offset. - e.g. Offset=2 and HTTPS port=9443 will set the effective HTTPS port to 9445 - --> - <Offset>SC_PORT_OFFSET</Offset> - - <!-- The JMX Ports --> - <JMX> - <!--The port RMI registry is exposed--> - <RMIRegistryPort>9999</RMIRegistryPort> - <!--The port RMI server should be exposed--> - <RMIServerPort>11111</RMIServerPort> - </JMX> - - <!-- Embedded LDAP server specific ports --> - <EmbeddedLDAP> - <!-- Port which embedded LDAP server runs --> - <LDAPServerPort>10389</LDAPServerPort> - <!-- Port which KDC (Kerberos Key Distribution Center) server runs --> - <KDCServerPort>8000</KDCServerPort> - </EmbeddedLDAP> - - <!-- Embedded Qpid broker ports --> - <EmbeddedQpid> - <!-- Broker TCP Port --> - <BrokerPort>5672</BrokerPort> - <!-- SSL Port --> - <BrokerSSLPort>8672</BrokerSSLPort> - </EmbeddedQpid> - - <!-- - Override datasources JNDIproviderPort defined in bps.xml and datasources.properties files - --> - <!--<JNDIProviderPort>2199</JNDIProviderPort>--> - <!--Override receive port of thrift based entitlement service.--> - <ThriftEntitlementReceivePort>10500</ThriftEntitlementReceivePort> - - </Ports> - - <!-- - JNDI Configuration - --> - <JNDI> - <!-- - The fully qualified name of the default initial context factory - --> - <DefaultInitialContextFactory>org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory</DefaultInitialContextFactory> - <!-- - The restrictions that are done to various JNDI Contexts in a Multi-tenant environment - --> - <Restrictions> - <!-- - Contexts that will be available only to the super-tenant - --> - <!-- <SuperTenantOnly> - <UrlContexts> - <UrlContext> - <Scheme>foo</Scheme> - </UrlContext> - <UrlContext> - <Scheme>bar</Scheme> - </UrlContext> - </UrlContexts> - </SuperTenantOnly> --> - <!-- - Contexts that are common to all tenants - --> - <AllTenants> - <UrlContexts> - <UrlContext> - <Scheme>java</Scheme> - </UrlContext> - <!-- <UrlContext> - <Scheme>foo</Scheme> - </UrlContext> --> - </UrlContexts> - </AllTenants> - <!-- - All other contexts not mentioned above will be available on a per-tenant basis - (i.e. will not be shared among tenants) - --> - </Restrictions> - </JNDI> - - <!-- - Property to determine if the server is running an a cloud deployment environment. - This property should only be used to determine deployment specific details that are - applicable only in a cloud deployment, i.e when the server deployed *-as-a-service. - --> - <IsCloudDeployment>false</IsCloudDeployment> - - <!-- - Property to determine whether usage data should be collected for metering purposes - --> - <EnableMetering>false</EnableMetering> - - <!-- The Max time a thread should take for execution in seconds --> - <MaxThreadExecutionTime>600</MaxThreadExecutionTime> - - <!-- - A flag to enable or disable Ghost Deployer. By default this is set to false. That is - because the Ghost Deployer works only with the HTTP/S transports. If you are using - other transports, don't enable Ghost Deployer. - --> - <GhostDeployment> - <Enabled>false</Enabled> - <PartialUpdate>false</PartialUpdate> - </GhostDeployment> - - <!-- - Axis2 related configurations - --> - <Axis2Config> - <!-- - Location of the Axis2 Services & Modules repository - - This can be a directory in the local file system, or a URL. - - e.g. - 1. /home/wso2wsas/repository/ - An absolute path - 2. repository - In this case, the path is relative to CARBON_HOME - 3. file:///home/wso2wsas/repository/ - 4. http://wso2wsas/repository/ - --> - <RepositoryLocation>${carbon.home}/repository/deployment/server/</RepositoryLocation> - - <!-- - Deployment update interval in seconds. This is the interval between repository listener - executions. - --> - <DeploymentUpdateInterval>15</DeploymentUpdateInterval> - - <!-- - Location of the main Axis2 configuration descriptor file, a.k.a. axis2.xml file - - This can be a file on the local file system, or a URL - - e.g. - 1. /home/repository/axis2.xml - An absolute path - 2. conf/axis2.xml - In this case, the path is relative to CARBON_HOME - 3. file:///home/carbon/repository/axis2.xml - 4. http://repository/conf/axis2.xml - --> - <ConfigurationFile>${carbon.home}/repository/conf/axis2/axis2.xml</ConfigurationFile> - - <!-- - ServiceGroupContextIdleTime, which will be set in ConfigurationContex - for multiple clients which are going to access the same ServiceGroupContext - Default Value is 30 Sec. - --> - <ServiceGroupContextIdleTime>30000</ServiceGroupContextIdleTime> - - <!-- - This repository location is used to crete the client side configuration - context used by the server when calling admin services. - --> - <ClientRepositoryLocation>${carbon.home}/repository/deployment/client/</ClientRepositoryLocation> - <!-- This axis2 xml is used in createing the configuration context by the FE server - calling to BE server --> - <clientAxis2XmlLocation>${carbon.home}/repository/conf/axis2/axis2_client.xml</clientAxis2XmlLocation> - <!-- If this parameter is set, the ?wsdl on an admin service will not give the admin service wsdl. --> - <HideAdminServiceWSDLs>true</HideAdminServiceWSDLs> - - <!--WARNING-Use With Care! Uncommenting bellow parameter would expose all AdminServices in HTTP transport. - With HTTP transport your credentials and data routed in public channels are vulnerable for sniffing attacks. - Use bellow parameter ONLY if your communication channels are confirmed to be secured by other means --> - <!--HttpAdminServices>*</HttpAdminServices--> - - </Axis2Config> - - <!-- - The default user roles which will be created when the server - is started up for the first time. - --> - <ServiceUserRoles> - <Role> - <Name>admin</Name> - <Description>Default Administrator Role</Description> - </Role> - <Role> - <Name>user</Name> - <Description>Default User Role</Description> - </Role> - </ServiceUserRoles> - - <!-- - Enable following config to allow Emails as usernames. - --> - <!--EnableEmailUserName>true</EnableEmailUserName--> - - <!-- - Security configurations - --> - <Security> - <!-- - KeyStore which will be used for encrypting/decrypting passwords - and other sensitive information. - --> - <KeyStore> - <!-- Keystore file location--> - <Location>${carbon.home}/repository/resources/security/wso2carbon.jks</Location> - <!-- Keystore type (JKS/PKCS12 etc.)--> - <Type>JKS</Type> - <!-- Keystore password--> - <Password>wso2carbon</Password> - <!-- Private Key alias--> - <KeyAlias>wso2carbon</KeyAlias> - <!-- Private Key password--> - <KeyPassword>wso2carbon</KeyPassword> - </KeyStore> - - <!-- - System wide trust-store which is used to maintain the certificates of all - the trusted parties. - --> - <TrustStore> - <!-- trust-store file location --> - <Location>${carbon.home}/repository/resources/security/client-truststore.jks</Location> - <!-- trust-store type (JKS/PKCS12 etc.) --> - <Type>JKS</Type> - <!-- trust-store password --> - <Password>wso2carbon</Password> - </TrustStore> - - <!-- - The Authenticator configuration to be used at the JVM level. We extend the - java.net.Authenticator to make it possible to authenticate to given servers and - proxies. - --> - <NetworkAuthenticatorConfig> - <!-- - Below is a sample configuration for a single authenticator. Please note that - all child elements are mandatory. Not having some child elements would lead to - exceptions at runtime. - --> - <!-- <Credential> --> - <!-- - the pattern that would match a subset of URLs for which this authenticator - would be used - --> - <!-- <Pattern>regularExpression</Pattern> --> - <!-- - the type of this authenticator. Allowed values are: - 1. server - 2. proxy - --> - <!-- <Type>proxy</Type> --> - <!-- the username used to log in to server/proxy --> - <!-- <Username>username</Username> --> - <!-- the password used to log in to server/proxy --> - <!-- <Password>password</Password> --> - <!-- </Credential> --> - </NetworkAuthenticatorConfig> - - <!-- - The Tomcat realm to be used for hosted Web applications. Allowed values are; - 1. UserManager - 2. Memory - - If this is set to 'UserManager', the realm will pick users & roles from the system's - WSO2 User Manager. If it is set to 'memory', the realm will pick users & roles from - CARBON_HOME/repository/conf/tomcat/tomcat-users.xml - --> - <TomcatRealm>UserManager</TomcatRealm> - - <!--Option to disable storing of tokens issued by STS--> - <DisableTokenStore>false</DisableTokenStore> - - <!-- - Security token store class name. If this is not set, default class will be - org.wso2.carbon.security.util.SecurityTokenStore - --> - <!--<TokenStoreClassName>org.wso2.carbon.security.util.SecurityTokenStore</TokenStoreClassName> --> - - - <!-- - Encrypt Decrypt Store will be used for encrypting and decrypting - --> - <RegistryKeyStore> - <!-- Keystore file location--> - <Location>${carbon.home}/repository/resources/security/wso2carbon.jks</Location> - <!-- Keystore type (JKS/PKCS12 etc.)--> - <Type>JKS</Type> - <!-- Keystore password--> - <Password>wso2carbon</Password> - <!-- Private Key alias--> - <KeyAlias>wso2carbon</KeyAlias> - <!-- Private Key password--> - <KeyPassword>wso2carbon</KeyPassword> - </RegistryKeyStore> - </Security> - - <!-- - The temporary work directory - --> - <WorkDirectory>${carbon.home}/tmp/work</WorkDirectory> - - <!-- - House-keeping configuration - --> - <HouseKeeping> - - <!-- - true - Start House-keeping thread on server startup - false - Do not start House-keeping thread on server startup. - The user will run it manually as and when he wishes. - --> - <AutoStart>true</AutoStart> - - <!-- - The interval in *minutes*, between house-keeping runs - --> - <Interval>10</Interval> - - <!-- - The maximum time in *minutes*, temp files are allowed to live - in the system. Files/directories which were modified more than - "MaxTempFileLifetime" minutes ago will be removed by the - house-keeping task - --> - <MaxTempFileLifetime>30</MaxTempFileLifetime> - </HouseKeeping> - - <!-- - Configuration for handling different types of file upload & other file uploading related - config parameters. - To map all actions to a particular FileUploadExecutor, use - <Action>*</Action> - --> - <FileUploadConfig> - <!-- - The total file upload size limit in MB - --> - <TotalFileSizeLimit>100</TotalFileSizeLimit> - - <Mapping> - <Actions> - <Action>keystore</Action> - <Action>certificate</Action> - <Action>*</Action> - </Actions> - <Class>org.wso2.carbon.ui.transports.fileupload.AnyFileUploadExecutor</Class> - </Mapping> - - <Mapping> - <Actions> - <Action>jarZip</Action> - </Actions> - <Class>org.wso2.carbon.ui.transports.fileupload.JarZipUploadExecutor</Class> - </Mapping> - <Mapping> - <Actions> - <Action>dbs</Action> - </Actions> - <Class>org.wso2.carbon.ui.transports.fileupload.DBSFileUploadExecutor</Class> - </Mapping> - <Mapping> - <Actions> - <Action>tools</Action> - </Actions> - <Class>org.wso2.carbon.ui.transports.fileupload.ToolsFileUploadExecutor</Class> - </Mapping> - <Mapping> - <Actions> - <Action>toolsAny</Action> - </Actions> - <Class>org.wso2.carbon.ui.transports.fileupload.ToolsAnyFileUploadExecutor</Class> - </Mapping> - </FileUploadConfig> - - <!-- - Processors which process special HTTP GET requests such as ?wsdl, ?policy etc. - - In order to plug in a processor to handle a special request, simply add an entry to this - section. - - The value of the Item element is the first parameter in the query string(e.g. ?wsdl) - which needs special processing - - The value of the Class element is a class which implements - org.wso2.carbon.transport.HttpGetRequestProcessor - --> - <HttpGetRequestProcessors> - <Processor> - <Item>info</Item> - <Class>org.wso2.carbon.core.transports.util.InfoProcessor</Class> - </Processor> - <Processor> - <Item>wsdl</Item> - <Class>org.wso2.carbon.core.transports.util.Wsdl11Processor</Class> - </Processor> - <Processor> - <Item>wsdl2</Item> - <Class>org.wso2.carbon.core.transports.util.Wsdl20Processor</Class> - </Processor> - <Processor> - <Item>xsd</Item> - <Class>org.wso2.carbon.core.transports.util.XsdProcessor</Class> - </Processor> - </HttpGetRequestProcessors> - - <!-- Deployment Synchronizer Configuration. Uncomment the following section when running with "svn based" dep sync. - In master nodes you need to set both AutoCommit and AutoCheckout to true - and in worker nodes set only AutoCheckout to true. - --> - <!--<DeploymentSynchronizer> - <Enabled>true</Enabled> - <AutoCommit>false</AutoCommit> - <AutoCheckout>true</AutoCheckout> - <RepositoryType>svn</RepositoryType> - <SvnUrl>http://svnrepo.example.com/repos/</SvnUrl> - <SvnUser>username</SvnUser> - <SvnPassword>password</SvnPassword> - <SvnUrlAppendTenantId>true</SvnUrlAppendTenantId> - </DeploymentSynchronizer>--> - - <!-- Deployment Synchronizer Configuration. Uncomment the following section when running with "registry based" dep sync. - In master nodes you need to set both AutoCommit and AutoCheckout to true - and in worker nodes set only AutoCheckout to true. - --> - <!--<DeploymentSynchronizer> - <Enabled>true</Enabled> - <AutoCommit>false</AutoCommit> - <AutoCheckout>true</AutoCheckout> - </DeploymentSynchronizer>--> - - <!-- Mediation persistence configurations. Only valid if mediation features are available i.e. ESB --> - <!--<MediationConfig> - <LoadFromRegistry>false</LoadFromRegistry> - <SaveToFile>false</SaveToFile> - <Persistence>enabled</Persistence> - <RegistryPersistence>enabled</RegistryPersistence> - </MediationConfig>--> - - <!-- - Server intializing code, specified as implementation classes of org.wso2.carbon.core.ServerInitializer. - This code will be run when the Carbon server is initialized - --> - <ServerInitializers> - <!--<Initializer></Initializer>--> - </ServerInitializers> - - <!-- - Indicates whether the Carbon Servlet is required by the system, and whether it should be - registered - --> - <RequireCarbonServlet>${require.carbon.servlet}</RequireCarbonServlet> - - <!-- - Carbon H2 OSGI Configuration - By default non of the servers start. - name="web" - Start the web server with the H2 Console - name="webPort" - The port (default: 8082) - name="webAllowOthers" - Allow other computers to connect - name="webSSL" - Use encrypted (HTTPS) connections - name="tcp" - Start the TCP server - name="tcpPort" - The port (default: 9092) - name="tcpAllowOthers" - Allow other computers to connect - name="tcpSSL" - Use encrypted (SSL) connections - name="pg" - Start the PG server - name="pgPort" - The port (default: 5435) - name="pgAllowOthers" - Allow other computers to connect - name="trace" - Print additional trace information; for all servers - name="baseDir" - The base directory for H2 databases; for all servers - --> - <!--H2DatabaseConfiguration> - <property name="web" /> - <property name="webPort">8082</property> - <property name="webAllowOthers" /> - <property name="webSSL" /> - <property name="tcp" /> - <property name="tcpPort">9092</property> - <property name="tcpAllowOthers" /> - <property name="tcpSSL" /> - <property name="pg" /> - <property name="pgPort">5435</property> - <property name="pgAllowOthers" /> - <property name="trace" /> - <property name="baseDir">${carbon.home}</property> - </H2DatabaseConfiguration--> - <!--Disabling statistics reporter by default--> - <StatisticsReporterDisabled>true</StatisticsReporterDisabled> - - <!-- - Default Feature Repository of WSO2 Carbon. - --> - <FeatureRepository> - <RepositoryName>default repository</RepositoryName> - <RepositoryURL>http://dist.wso2.org/p2/carbon/releases/4.1.3</RepositoryURL> - </FeatureRepository> -</Server> http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/config/sm/repository/conf/cartridge-config.properties ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/config/sm/repository/conf/cartridge-config.properties b/tools/stratos-installer/config/sm/repository/conf/cartridge-config.properties deleted file mode 100644 index 8d4b730..0000000 --- a/tools/stratos-installer/config/sm/repository/conf/cartridge-config.properties +++ /dev/null @@ -1,29 +0,0 @@ -# -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -# Configuration properties - -autoscaler.service.url=https://AS_HOSTNAME:AS_HTTPS_PORT/services/AutoscalerService/ -stratos.manager.service.url=https://localhost:9443/services/StratosManagerService/ -cloud.controller.service.url=https://CC_HOSTNAME:CC_HTTPS_PORT/services/CloudControllerService/ -puppet.ip=PUPPET_IP -puppet.hostname=PUPPET_HOSTNAME -puppet.environment=PUPPET_ENV http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/config/sm/repository/conf/datasources/master-datasources.xml ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/config/sm/repository/conf/datasources/master-datasources.xml b/tools/stratos-installer/config/sm/repository/conf/datasources/master-datasources.xml deleted file mode 100644 index 34dee42..0000000 --- a/tools/stratos-installer/config/sm/repository/conf/datasources/master-datasources.xml +++ /dev/null @@ -1,129 +0,0 @@ -<?xml version='1.0'?> -<!-- - - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. - ---> - -<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration"> - - <providers> - <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider> - </providers> - - <datasources> - - <datasource> - <name>WSO2_CARBON_DB</name> - <description>The datasource used for registry and user manager</description> - <jndiConfig> - <name>jdbc/WSO2CarbonDB</name> - </jndiConfig> - <definition type="RDBMS"> - <configuration> - <url>jdbc:mysql://USERSTORE_DB_HOSTNAME:USERSTORE_DB_PORT/USERSTORE_DB_SCHEMA?autoReconnect=true</url> - <username>USERSTORE_DB_USER</username> - <password>USERSTORE_DB_PASS</password> - <driverClassName>com.mysql.jdbc.Driver</driverClassName> - <maxActive>50</maxActive> - <maxWait>60000</maxWait> - <testOnBorrow>true</testOnBorrow> - <validationQuery>SELECT 1</validationQuery> - <validationInterval>30000</validationInterval> - </configuration> - </definition> - </datasource> - - <!--datasource> - <name>WSO2BAM_DATASOURCE</name> - <description>The datasource used for analyzer data</description> - <definition type="RDBMS"> - <configuration> - <url>jdbc:h2:repository/database/samples/BAM_STATS_DB;AUTO_SERVER=TRUE</url> - <username>wso2carbon</username> - <password>wso2carbon</password> - <driverClassName>org.h2.Driver</driverClassName> - <maxActive>50</maxActive> - <maxWait>60000</maxWait> - <testOnBorrow>true</testOnBorrow> - <validationQuery>SELECT 1</validationQuery> - <validationInterval>30000</validationInterval> - </configuration> - </definition> - </datasource> - - <datasource> - <name>WSO2BillingDS</name> - <description>The datasource used for registry and user manager</description> - <jndiConfig> - <name>jdbc/WSO2BillingDS</name> - </jndiConfig> - <definition type="RDBMS"> - <configuration> - - <url>jdbc:mysql://BILLING_DB_HOSTNAME:BILLING_DB_PORT/BILLING_DB_SCHEMA</url> - <username>BILLING_USERNAME</username> - <password>BILLING_PASSWORD</password> - <driverClassName>com.mysql.jdbc.Driver</driverClassName> - <maxActive>50</maxActive> - <maxWait>60000</maxWait> - <testOnBorrow>true</testOnBorrow> - <validationQuery>SELECT 1</validationQuery> - <validationInterval>30000</validationInterval> - </configuration> - </definition> - </datasource--> - - <!-- For an explanation of the properties, see: http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html --> - <!--datasource> - <name>SAMPLE_DATA_SOURCE</name> - <jndiConfig> - <name></name> - <environment> - <property name="java.naming.factory.initial"></property> - <property name="java.naming.provider.url"></property> - </environment> - </jndiConfig> - <definition type="RDBMS"> - <configuration> - - <defaultAutoCommit></defaultAutoCommit> - <defaultReadOnly></defaultReadOnly> - <defaultTransactionIsolation>NONE|READ_COMMITTED|READ_UNCOMMITTED|REPEATABLE_READ|SERIALIZABLE</defaultTransactionIsolation> - <defaultCatalog></defaultCatalog> - <username></username> - <password svns:secretAlias="WSO2.DB.Password"></password> - <maxActive></maxActive> - <maxIdle></maxIdle> - <initialSize></initialSize> - <maxWait></maxWait> - - <dataSourceClassName>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</dataSourceClassName> - <dataSourceProps> - <property name="url">jdbc:mysql://localhost:3306/Test1</property> - <property name="user">root</property> - <property name="password">123</property> - </dataSourceProps> - - </configuration> - </definition> - </datasource--> - - </datasources> - -</datasources-configuration> http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/config/sm/repository/conf/datasources/stratos-datasources.xml ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/config/sm/repository/conf/datasources/stratos-datasources.xml b/tools/stratos-installer/config/sm/repository/conf/datasources/stratos-datasources.xml deleted file mode 100644 index 73a9739..0000000 --- a/tools/stratos-installer/config/sm/repository/conf/datasources/stratos-datasources.xml +++ /dev/null @@ -1,51 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. See the License for the - ~ specific language governing permissions and limitations - ~ under the License. - --> - -<datasources-configuration xmlns:svns="http://org.wso2.securevault/configuration"> - <providers> - <provider>org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader</provider> - </providers> - <datasources> - - - <datasource> - <name>WSO2BillingDS</name> - <description>The datasource used for registry and user manager</description> - <jndiConfig> - <name>jdbc/WSO2BillingDS</name> - </jndiConfig> - <definition type="RDBMS"> - <configuration> - - <url>jdbc:mysql://BILLING_DB_HOSTNAME:BILLING_DB_PORT/BILLING_DB_SCHEMA</url> - <username>BILLING_USERNAME</username> - <password>BILLING_PASSWORD</password> - <driverClassName>com.mysql.jdbc.Driver</driverClassName> - <maxActive>50</maxActive> - <maxWait>60000</maxWait> - <testOnBorrow>true</testOnBorrow> - <validationQuery>SELECT 1</validationQuery> - <validationInterval>30000</validationInterval> - </configuration> - </definition> - </datasource> - </datasources> - -</datasources-configuration> - http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/config/sm/repository/conf/jndi.properties ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/config/sm/repository/conf/jndi.properties b/tools/stratos-installer/config/sm/repository/conf/jndi.properties deleted file mode 100644 index c15a540..0000000 --- a/tools/stratos-installer/config/sm/repository/conf/jndi.properties +++ /dev/null @@ -1,24 +0,0 @@ -# -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# - -java.naming.factory.initial=org.wso2.andes.jndi.PropertiesFileInitialContextFactory -connectionfactoryName=topicConnectionfactory -connectionfactory.topicConnectionfactory=amqp://admin:admin@clientID/carbon?brokerlist='tcp://MB_HOSTNAME:MB_LISTEN_PORT'&reconnect='true' http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/demo.sh ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/demo.sh b/tools/stratos-installer/demo.sh deleted file mode 100755 index 0440cd1..0000000 --- a/tools/stratos-installer/demo.sh +++ /dev/null @@ -1,154 +0,0 @@ -#!/bin/bash -# ---------------------------------------------------------------------------- -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# ---------------------------------------------------------------------------- -# EC2 Demo configuration script for Apache Stratos -# ---------------------------------------------------------------------------- - -# Die on any error: -set -e - -# General commands -if [ "$(uname)" == "Darwin" ]; then - # Do something under Mac OS X platform - SED=`which gsed` && : || (echo "Command 'gsed' is not installed."; exit 10;) -else - # Do something else under some other platform - SED=`which sed` && : || (echo "Command 'sed' is not installed."; exit 10;) -fi - -source "./conf/setup.conf" -SLEEP=40 -export LOG=$log_path/stratos-ec2-user-data.log - -# Make sure the user is running as root. -if [ "$UID" -ne "0" ]; then - echo ; echo " You must be root to run $0. (Try running 'sudo bash' first.)" ; echo - exit 69 -fi - -if [[ ! -d $log_path ]]; then - mkdir -p $log_path -fi - -# Configuring Amazon EC2 user data. -# ---------------------------------------------------------------------------- - -# Following is helpful if you've mistakenly added data in user-data and want to recover. -read -p "Please confirm whether you want to be prompted, irrespective of the data available in user-data? [y/n] " answer -if [[ $answer = n && `curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://169.254.169.254/latest/user-data` = "200" ]] ; then - echo "Trying to find values via user-data" >> $LOG - wget http://169.254.169.254/latest/user-data -O /opt/user-data.txt >> $LOG - userData=`cat /opt/user-data.txt` - echo "Extracted user-data: $userData" >> $LOG - - # Assign values obtained through user-data - for i in {1..8} - do - entry=`echo $userData | cut -d',' -f$i | sed 's/,//g'` - key=`echo $entry | cut -d'=' -f1 | sed 's/=//g'` - value=`echo $entry | cut -d'=' -f2 | sed 's/=//g'` - if [[ "$key" == *ACCESS_KEY* ]] ; then ACCESS_KEY=$value; - elif [[ "$key" == *SECRET_KEY* ]] ; then SECRET_KEY=$value; - elif [[ "$key" == *OWNER_ID* ]] ; then OWNER_ID=$value; - elif [[ "$key" == *AVAILABILITY_ZONE* ]] ; then AVAILABILITY_ZONE=$value; - elif [[ "$key" == *SECURITY_GROUP* ]] ; then SECURITY_GROUP=$value; - elif [[ "$key" == *KEY_PAIR_NAME* ]] ; then KEY_PAIR_NAME=$value; - elif [[ "$key" == *DOMAIN* ]] ; then DOMAIN=$value; - fi - done -fi - -# Prompt for the values that are not retrieved via user-data -if [[ -z $ACCESS_KEY ]]; then - echo -n "Access Key of EC2 account: " - read ACCESS_KEY -fi -if [[ -z $SECRET_KEY ]]; then - echo -n "Secret key of EC2 account: " - read SECRET_KEY -fi -if [[ -z $OWNER_ID ]]; then - echo -n "Owner id of EC2 account: " - read OWNER_ID -fi -if [[ -z $AVAILABILITY_ZONE ]]; then - echo -n "Availability zone: " - read AVAILABILITY_ZONE -fi -if [[ -z $SECURITY_GROUP ]]; then - echo -n "Name of the EC2 security group: " - read SECURITY_GROUP -fi -if [[ -z $KEY_PAIR_NAME ]]; then - echo -n "Name of the key pair: " - read KEY_PAIR_NAME -fi -if [[ -z $DOMAIN ]]; then - echo -n "Domain name for Stratos [stratos.apache.org]: " - read DOMAIN -fi -if [ -z "$DOMAIN" ]; then - DOMAIN="stratos.apache.org" -fi - -echo "Updating conf/setup.conf with user data" -${SED} -i "s@export stratos_domain=\"*.*\"@export stratos_domain=\"$DOMAIN\"@g" conf/setup.conf - -${SED} -i "s@export ec2_keypair_name=\"*.*\"@export ec2_keypair_name=\"$KEY_PAIR_NAME\"@g" conf/setup.conf - -${SED} -i "s@export ec2_identity=\"*.*\"@export ec2_identity=\"$ACCESS_KEY\"@g" conf/setup.conf - -${SED} -i "s@export ec2_credential=\"*.*\"@export ec2_credential=\"$SECRET_KEY\"@g" conf/setup.conf - -${SED} -i "s@export ec2_owner_id=\"*.*\"@export ec2_owner_id=\"$OWNER_ID\"@g" conf/setup.conf - -${SED} -i "s@export ec2_availability_zone=\"*.*\"@export ec2_availability_zone=\"$AVAILABILITY_ZONE\"@g" conf/setup.conf - -${SED} -i "s@export ec2_security_groups=\"*.*\"@export ec2_security_groups=\"$SECURITY_GROUP\"@g" conf/setup.conf - - -# Updating conf/setup.conf with relevent data -# ---------------------------------------------------------------------------- - -ip=`facter ipaddress` -echo "Setting private ip addresses $ip" >> $LOG - -${SED} -i "s@export host_ip=\"*.*\"@export host_ip=\"$ip\"@g" conf/setup.conf - -${SED} -i "s@export mb_ip=\"*.*\"@export mb_ip=\"$ip\"@g" conf/setup.conf - -${SED} -i "s@export puppet_ip=\"*.*\"@export puppet_ip=\"$ip\"@g" conf/setup.conf - -${SED} -i "s@export stratos_domain=\"*.*\"@export stratos_domain=\"$DOMAIN\"@g" conf/setup.conf - -${SED} -i "s@\s*\$mb_ip\s*=\s*'.*'\s*@ \$mb_ip = '$ip'@g" /etc/puppet/manifests/nodes.pp - -${SED} -i "s@\s*\$cep_ip\s*=\s*'.*'\s*@ \$cep_ip = '$ip'@g" /etc/puppet/manifests/nodes.pp - -hostname $puppet_hostname -service puppetmaster restart - -echo "Setup configuration completed successfully" - -# Server configurations -# ---------------------------------------------------------------------------- -su -c "$setup_path/setup.sh -s" - http://git-wip-us.apache.org/repos/asf/stratos/blob/e615fb82/tools/stratos-installer/ec2-cartridge.sh ---------------------------------------------------------------------- diff --git a/tools/stratos-installer/ec2-cartridge.sh b/tools/stratos-installer/ec2-cartridge.sh deleted file mode 100755 index a35fbf0..0000000 --- a/tools/stratos-installer/ec2-cartridge.sh +++ /dev/null @@ -1,132 +0,0 @@ -#!/bin/bash -# ---------------------------------------------------------------------------- -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -# -# ---------------------------------------------------------------------------- -# -# This script is invoked by setup.sh for configuring cartridges for Amazon EC2. -# ---------------------------------------------------------------------------- - -# Die on any error: -set -e - -SLEEP=60 -export LOG=$log_path/stratos-ec2-cartridge.log - -source "./conf/setup.conf" - -if [[ ! -d $log_path ]]; then - mkdir -p $log_path -fi - - -echo "Creating payload directory ... " | tee $LOG -if [[ ! -d $cc_path/repository/resources/payload ]]; then - mkdir -p $cc_path/repository/resources/payload -fi - -echo "Creating cartridges directory ... " | tee $LOG -if [[ ! -d $cc_path/repository/deployment/server/cartridges/ ]]; then - mkdir -p $cc_path/repository/deployment/server/cartridges/ -fi - - -# Copy cartridge configuration files to CC -if [ "$(find ./cartridges/ec2/ -type f)" ]; then - cp -f ./cartridges/ec2/*.xml $cc_path/repository/deployment/server/cartridges/ -fi - - -pushd $cc_path -echo "Updating repository/deployment/server/cartridges/ec2-mysql.xml" | tee $LOG -# <iaasProvider type="openstack" > -# <imageId>nova/d6e5dbe9-f781-460d-b554-23a133a887cd</imageId> -# <property name="keyPair" value="stratos-demo"/> -# <property name="instanceType" value="nova/1"/> -# <property name="securityGroups" value="default"/> -# <!--<property name="payload" value="resources/as.txt"/>--> -# </iaasProvider> - - -cp -f repository/deployment/server/cartridges/ec2-mysql.xml repository/deployment/server/cartridges/ec2-mysql.xml.orig -cat repository/deployment/server/cartridges/ec2-mysql.xml.orig | sed -e "s@<property name=\"keyPair\" value=\"*.*\"/>@<property name=\"keyPair\" value=\"$ec2_keypair_name\"/>@g" > repository/deployment/server/cartridges/ec2-mysql.xml - -cp -f repository/deployment/server/cartridges/ec2-mysql.xml repository/deployment/server/cartridges/ec2-mysql.xml.orig -cat repository/deployment/server/cartridges/ec2-mysql.xml.orig | sed -e "s@<property name=\"instanceType\" value=\"*.*\"/>@<property name=\"instanceType\" value=\"$ec2_instance_type\"/>@g" > repository/deployment/server/cartridges/ec2-mysql.xml - -cp -f repository/deployment/server/cartridges/ec2-mysql.xml repository/deployment/server/cartridges/ec2-mysql.xml.orig -cat repository/deployment/server/cartridges/ec2-mysql.xml.orig | sed -e "s@<property name=\"securityGroups\" value=\"*.*\"/>@<property name=\"securityGroups\" value=\"$ec2_security_groups\"/>@g" > repository/deployment/server/cartridges/ec2-mysql.xml - -cp -f repository/deployment/server/cartridges/ec2-mysql.xml repository/deployment/server/cartridges/ec2-mysql.xml.orig -cat repository/deployment/server/cartridges/ec2-mysql.xml.orig | sed -e "s@<imageId>*.*</imageId>@<imageId>$ec2_region/$ec2_mysql_cartridge_image_id</imageId>@g" > repository/deployment/server/cartridges/ec2-mysql.xml - -cp -f repository/deployment/server/cartridges/ec2-mysql.xml repository/deployment/server/cartridges/ec2-mysql.xml.orig -cat repository/deployment/server/cartridges/ec2-mysql.xml.orig | sed -e "s@STRATOS_DOMAIN@$stratos_domain@g" > repository/deployment/server/cartridges/ec2-mysql.xml - - -echo "Updating repository/deployment/server/cartridges/ec2-php.xml" | tee $LOG -# <iaasProvider type="openstack" > -# <imageId>nova/250cd0bb-96a3-4ce8-bec8-7f9c1efea1e6</imageId> -# <property name="keyPair" value="stratos-demo"/> -# <property name="instanceType" value="nova/1"/> -# <property name="securityGroups" value="default"/> -# <!--<property name="payload" value="resources/as.txt"/>--> -# </iaasProvider> - -cp -f repository/deployment/server/cartridges/ec2-php.xml repository/deployment/server/cartridges/ec2-php.xml.orig -cat repository/deployment/server/cartridges/ec2-php.xml.orig | sed -e "s@<property name=\"keyPair\" value=\"*.*\"/>@<property name=\"keyPair\" value=\"$ec2_keypair_name\"/>@g" > repository/deployment/server/cartridges/ec2-php.xml - -cp -f repository/deployment/server/cartridges/ec2-php.xml repository/deployment/server/cartridges/ec2-php.xml.orig -cat repository/deployment/server/cartridges/ec2-php.xml.orig | sed -e "s@<property name=\"instanceType\" value=\"*.*\"/>@<property name=\"instanceType\" value=\"$ec2_instance_type\"/>@g" > repository/deployment/server/cartridges/ec2-php.xml - -cp -f repository/deployment/server/cartridges/ec2-php.xml repository/deployment/server/cartridges/ec2-php.xml.orig -cat repository/deployment/server/cartridges/ec2-php.xml.orig | sed -e "s@<property name=\"securityGroups\" value=\"*.*\"/>@<property name=\"securityGroups\" value=\"$ec2_security_groups\"/>@g" > repository/deployment/server/cartridges/ec2-php.xml - -cp -f repository/deployment/server/cartridges/ec2-php.xml repository/deployment/server/cartridges/ec2-php.xml.orig -cat repository/deployment/server/cartridges/ec2-php.xml.orig | sed -e "s@<imageId>*.*</imageId>@<imageId>$ec2_region/$ec2_php_cartridge_image_id</imageId>@g" > repository/deployment/server/cartridges/ec2-php.xml - -cp -f repository/deployment/server/cartridges/ec2-php.xml repository/deployment/server/cartridges/ec2-php.xml.orig -cat repository/deployment/server/cartridges/ec2-php.xml.orig | sed -e "s@STRATOS_DOMAIN@$stratos_domain@g" > repository/deployment/server/cartridges/ec2-php.xml - - -echo "Updating repository/deployment/server/cartridges/ec2-tomcat.xml" | tee $LOG -# <iaasProvider type="openstack" > -# <imageId>RegionOne/9701eb18-d7e1-4a53-a2bf-a519899d451c</imageId> -# <property name="keyPair" value="manula_openstack"/> -# <property name="instanceType" value="RegionOne/2"/> -# <property name="securityGroups" value="im-security-group1"/> -# <!--<property name="payload" value="resources/as.txt"/>--> -# </iaasProvider> - -cp -f repository/deployment/server/cartridges/ec2-tomcat.xml repository/deployment/server/cartridges/ec2-tomcat.xml.orig -cat repository/deployment/server/cartridges/ec2-tomcat.xml.orig | sed -e "s@<property name=\"keyPair\" value=\"*.*\"/>@<property name=\"keyPair\" value=\"$ec2_keypair_name\"/>@g" > repository/deployment/server/cartridges/ec2-tomcat.xml - -cp -f repository/deployment/server/cartridges/ec2-tomcat.xml repository/deployment/server/cartridges/ec2-tomcat.xml.orig -cat repository/deployment/server/cartridges/ec2-tomcat.xml.orig | sed -e "s@<property name=\"instanceType\" value=\"*.*\"/>@<property name=\"instanceType\" value=\"$ec2_instance_type\"/>@g" > repository/deployment/server/cartridges/ec2-tomcat.xml - -cp -f repository/deployment/server/cartridges/ec2-tomcat.xml repository/deployment/server/cartridges/ec2-tomcat.xml.orig -cat repository/deployment/server/cartridges/ec2-tomcat.xml.orig | sed -e "s@<property name=\"securityGroups\" value=\"*.*\"/>@<property name=\"securityGroups\" value=\"$ec2_security_groups\"/>@g" > repository/deployment/server/cartridges/ec2-tomcat.xml - -cp -f repository/deployment/server/cartridges/ec2-tomcat.xml repository/deployment/server/cartridges/ec2-tomcat.xml.orig -cat repository/deployment/server/cartridges/ec2-tomcat.xml.orig | sed -e "s@<imageId>*.*</imageId>@<imageId>$ec2_region/$ec2_tomcat_cartridge_image_id</imageId>@g" > repository/deployment/server/cartridges/ec2-tomcat.xml - -cp -f repository/deployment/server/cartridges/ec2-tomcat.xml repository/deployment/server/cartridges/ec2-tomcat.xml.orig -cat repository/deployment/server/cartridges/ec2-tomcat.xml.orig | sed -e "s@STRATOS_DOMAIN@$stratos_domain@g" > repository/deployment/server/cartridges/ec2-tomcat.xml - -popd # cc_path
