Updated Branches:
  refs/heads/master 69979b237 -> 5d36e6b89

Update installer for 4.0.0 Alpha

Signed-off-by: Manula Thantriwatte <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/5d36e6b8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/5d36e6b8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/5d36e6b8

Branch: refs/heads/master
Commit: 5d36e6b89b61df64999b808de2e984afca1bfbb0
Parents: 69979b2
Author: Dinesh Bandara <[email protected]>
Authored: Thu Feb 13 16:41:16 2014 +0530
Committer: Manula Thantriwatte <[email protected]>
Committed: Thu Feb 13 16:45:53 2014 +0530

----------------------------------------------------------------------
 tools/stratos-installer/README.txt              |  4 +-
 tools/stratos-installer/conf/setup.conf         | 49 +------------
 .../cc/repository/conf/cloud-controller.xml     |  1 -
 .../repository/conf/cartridge-config.properties | 27 -------
 tools/stratos-installer/ec2.sh                  | 12 ----
 tools/stratos-installer/openstack.sh            |  9 ---
 tools/stratos-installer/setup.sh                | 75 ++++++--------------
 7 files changed, 27 insertions(+), 150 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5d36e6b8/tools/stratos-installer/README.txt
----------------------------------------------------------------------
diff --git a/tools/stratos-installer/README.txt 
b/tools/stratos-installer/README.txt
index 118ddb1..b2160f7 100644
--- a/tools/stratos-installer/README.txt
+++ b/tools/stratos-installer/README.txt
@@ -63,14 +63,14 @@ How to Install
        - stratos_pack_path     ==> Folder path containing stratos packages(all 
stratos packs + cep + mb) 
        - stratos_path          ==> Folder which stratos will be installed (Eg: 
/opt )
        - JAVA_HOME             ==> java home
-       - host_user             ==> A host user account for stratos. If not 
provided deafult is assumed stratos. If no account #named stratos exist it will 
be created.
+       - host_user             ==> A host user account for stratos
        - mb_ip                 ==> Machine ip on which mb run
        - cep_ip                ==> Machine ip on which cep run
        - cc_ip                 ==> Machine ip on which cc run
        - as_ip                 ==> Machine ip on which auto scalar run
        - sm_ip                 ==> Machine ip on which sc run
        - puppet_ip             ==> Machine ip on which puppet master run
-       - cep_extension_path    ==> Folder path containing cep 
extensions(STRATOS_SOURCE_ROOT/extensions/cep)
+       - cep_artifacts_path    ==> Folder path containing cep 
artifacts(STRATOS_SOURCE_ROOT/extensions/cep/artifacts)
        - andes_client_jar      ==> andes client jar file name
        - mysql_connector_jar   ==> mysql connector jar file name
        - userstore_db_hostname ==> hostname or ip where mysql is running

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5d36e6b8/tools/stratos-installer/conf/setup.conf
----------------------------------------------------------------------
diff --git a/tools/stratos-installer/conf/setup.conf 
b/tools/stratos-installer/conf/setup.conf
index 9cd0c20..f35df0a 100644
--- a/tools/stratos-installer/conf/setup.conf
+++ b/tools/stratos-installer/conf/setup.conf
@@ -41,7 +41,7 @@ export JAVA_HOME= #Java home path
 
 export log_path=/var/log/apache-stratos
 
-export host_user="" #A host user account for stratos. If not provided deafult 
is assumed stratos. If no account #named stratos exist it will be created.
+export host_user="" #A host user account for stratos.
 
 export stratos_domain="stratos.apache.org"
 
@@ -67,7 +67,6 @@ export as_hostname="as.$stratos_domain"
 export resource_path=$setup_path/resources
 
 
-
 # ----------------------------------------------------------------------------
 # MB configuration
 # ----------------------------------------------------------------------------
@@ -78,7 +77,7 @@ export mb_pack_path=$stratos_pack_path/"wso2mb-2.1.0.zip"
 # ----------------------------------------------------------------------------
 # CEP configuration
 # ----------------------------------------------------------------------------
-export cep_extension_path= #Folder path containing cep extensions
+export cep_artifacts_path= #Folder path containing cep artifacts files
 export 
cep_extension_jar=$stratos_pack_path/"org.apache.stratos.cep.extension-1.0.0-SNAPSHOT.jar"
 # cep extensions jar file name
 export andes_client_jar=$stratos_pack_path/"andes-client-0.13.wso2v8.jar" # 
andes client jar file name
 
@@ -98,10 +97,6 @@ export 
cc_pack_path=$stratos_pack_path/"apache-stratos-cc-4.0.0-SNAPSHOT.zip"
 export cc_mb_listen_port=$((5672 + $mb_port_offset))
 export cc_https_port=$((9443 + $cc_port_offset))
 
-
-export mb_cassandra_host="localhost"
-export mb_cassandra_port="9161"
-
 # IaaS Providers
 # ----------------------------------------------------------------------------
 # Set <iaas-name>_provider_enabled parameter to true to enable desired IaaS. A 
hybrid cloud could be
@@ -113,28 +108,15 @@ export ec2_identity="<ec2_identity>"
 export ec2_credential="<ec2_credential>"
 export ec2_keypair_name="<ec2_keypair_name>"
 export ec2_owner_id="<ec2_owner_id>"
-export ec2_scaleup_order=1
-export ec2_scaledown_order=2
-export ec2_region="ap-southeast-1"
 export ec2_availability_zone="<ec2_availability_zone>"
 export ec2_security_groups="<ec2_security_groups>"
-export ec2_instance_type="m1.large"
-export ec2_image_id=""
 
 # Openstack
 export openstack_provider_enabled=false
 export openstack_identity="stratos:stratos" # Openstack project name:Openstack 
login user
 export openstack_credential="password" # Openstack login password
-export openstack_tenant="stratos" # openstack project name
-export openstack_project_id=$openstack_tenant
 export openstack_jclouds_endpoint="http://hostname:5000/v2.0";
-export openstack_scaleup_order=2
-export openstack_scaledown_order=3
 export openstack_keypair_name=""
-export openstack_image_id="RegionOne/" #No need to change this as of now
-export nova_region="RegionOne"
-export openstack_instance_type_tiny="RegionOne\/1"
-export openstack_instance_type_small="RegionOne\/2"
 export openstack_security_groups="security-groups"
 
 
@@ -148,6 +130,7 @@ export as_mb_listen_port=$((5672 + $mb_port_offset))
 export as_cc_https_port=$((9443 + $cc_port_offset))
 export as_sm_https_port=$((9443 + $sm_port_offset))
 
+
 # ----------------------------------------------------------------------------
 # SM configuration
 # ----------------------------------------------------------------------------
@@ -161,36 +144,10 @@ export userstore_db_port="3306"
 export userstore_db_user="root"
 export userstore_db_pass="mysql"
 
-export stratos_foundation_db_hostname="$stratos_domain"
-export stratos_foundation_db_schema="stratos_foundation"
-export stratos_foundation_db_port="3306"
-export stratos_foundation_db_user="root"
-export stratos_foundation_db_pass="mysql"
-
 export sm_puppet_ip=$puppet_ip
-export sm_mb_ip=$mb_ip
-export sm_cep_ip=$cep_ip
 export sm_mb_listen_port=$((5672 + $mb_port_offset))
-export sm_cep_tcp_port=$((7611 + $cep_port_offset))
 export sm_cc_https_port=$((9443 + $cc_port_offset))
 export sm_as_https_port=$((9443 + $as_port_offset))
 export sm_https_port=$((9443 + $sm_port_offset))
 export sm_http_port=$((9763 + $sm_port_offset))
 
-export cassandra_port="9163"
-export keypair_path="<keypair_path>"
-
-
-# Cassandra configuration
-# ----------------------------------------------------------------------------
-export cassandra_port1=9160
-export cassandra_port2=7000
-
-# Hadoop configuration
-# ----------------------------------------------------------------------------
-export hadoop_port1=5140
-export hadoop_port2=9000
-
-export sc_cluster_port="5001"
-export lb_cluster_port="4000"
-

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5d36e6b8/tools/stratos-installer/config/cc/repository/conf/cloud-controller.xml
----------------------------------------------------------------------
diff --git 
a/tools/stratos-installer/config/cc/repository/conf/cloud-controller.xml 
b/tools/stratos-installer/config/cc/repository/conf/cloud-controller.xml
index eb6c72c..d41df59 100644
--- a/tools/stratos-installer/config/cc/repository/conf/cloud-controller.xml
+++ b/tools/stratos-installer/config/cc/repository/conf/cloud-controller.xml
@@ -59,7 +59,6 @@
                         <property name="jclouds.ec2.ami-query" 
value="owner-id=EC2_OWNER_ID;state=available;image-type=machine"/>
                         <property name="availabilityZone" 
value="EC2_AVAILABILITY_ZONE"/>
                         <property name="securityGroups" 
value="EC2_SECURITY_GROUPS"/>
-                        <property name="instanceType" 
value="EC2_INSTANCE_TYPE"/>
                         <property name="autoAssignIp" value="true" />
                         <property name="keyPair" value="EC2_KEYPAIR"/>
                 </iaasProviderEC2_PROVIDER_END>

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5d36e6b8/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
index 736ed59..8bd14da 100644
--- 
a/tools/stratos-installer/config/sm/repository/conf/cartridge-config.properties
+++ 
b/tools/stratos-installer/config/sm/repository/conf/cartridge-config.properties
@@ -21,33 +21,6 @@
 
 # Configuration properties
 
-sc.ip=SM_IP
 
autoscaler.service.url=https://AS_HOSTNAME:AS_HTTPS_PORT/services/AutoScalerService/
 
cloud.controller.service.url=https://CC_HOSTNAME:CC_HTTPS_PORT/services/CloudControllerService/
-autoscaler.time.out=190000
-cartridge.agent.epr=https://AGENT_HOSTNAME:AGENT_PORT/services/CartridgeAgentService
-git.host.name=git.STRATOS_DOMAIN
-git.host.ip=GIT_IP
-git.repo.notification.url=https://SM_HOSTNAME:SM_HTTPS_PORT/services/RepoNotificationService/
-identity.server.url=https://SM_HOSTNAME:SM_HTTPS_PORT/services/RepoNotificationService/
-
-adc.jdbc.url=jdbc:mysql://STRATOS_FOUNDATION_DB_HOSTNAME:STRATOS_FOUNDATION_DB_PORT/STRATOS_FOUNDATION_DB_SCHEMA
-adc.jdbc.username=STRATOS_FOUNDATION_DB_USER
-adc.jdbc.password=STRATOS_FOUNDATION_DB_PASS
-adc.jdbc.driver=com.mysql.jdbc.Driver
-
-mb.ip=MB_IP
-mb.port=MB_LISTEN_PORT
-cep.ip=CEP_IP
-cep.port=CEP_LISTEN_PORT
-
 puppet.ip=PUPPET_IP
-
-feature.externalrepo.validation.enabled=true
-feature.internalrepo.enabled=false
-feature.multitenant.multiplesubscription.enabled=false
-
-append.script=SCRIPT_PATH/add_entry_zone_file.sh
-remove.script=SCRIPT_PATH/remove_entry_zone_file.sh
-bind.file.path=/etc/bind/db.STRATOS_DOMAIN
-elb.ip=LB_IP

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5d36e6b8/tools/stratos-installer/ec2.sh
----------------------------------------------------------------------
diff --git a/tools/stratos-installer/ec2.sh b/tools/stratos-installer/ec2.sh
index a146ab2..cbb7db3 100755
--- a/tools/stratos-installer/ec2.sh
+++ b/tools/stratos-installer/ec2.sh
@@ -49,12 +49,6 @@ cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.
 cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_CREDENTIAL@$ec2_credential@g" > repository/conf/cloud-controller.xml
        
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
-cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_SCALEUP_ORDER@$ec2_scaleup_order@g" > 
repository/conf/cloud-controller.xml
-       
-cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
-cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_SCALEDOWN_ORDER@$ec2_scaledown_order@g" > 
repository/conf/cloud-controller.xml
-       
-cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
 cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_OWNER_ID@$ec2_owner_id@g" > repository/conf/cloud-controller.xml
 
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
@@ -62,17 +56,11 @@ cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_AVAILABILITY_ZONE@
        
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
 cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_SECURITY_GROUPS@$ec2_security_groups@g" > 
repository/conf/cloud-controller.xml
-       
-cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
-cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_INSTANCE_TYPE@$ec2_instance_type@g" > 
repository/conf/cloud-controller.xml
 
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
 cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_KEYPAIR@$ec2_keypair_name@g" > repository/conf/cloud-controller.xml
 
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
-cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@EC2_IMAGE_ID@$ec2_image_id@g" > repository/conf/cloud-controller.xml
-
-cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
 cat repository/conf/cloud-controller.xml.orig | sed -e "s@EC2_PROVIDER_END@@g" 
> repository/conf/cloud-controller.xml
    
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5d36e6b8/tools/stratos-installer/openstack.sh
----------------------------------------------------------------------
diff --git a/tools/stratos-installer/openstack.sh 
b/tools/stratos-installer/openstack.sh
index 96ae760..1228b88 100755
--- a/tools/stratos-installer/openstack.sh
+++ b/tools/stratos-installer/openstack.sh
@@ -52,15 +52,6 @@ cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.
 cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@OPENSTACK_ENDPOINT@$openstack_jclouds_endpoint@g" > 
repository/conf/cloud-controller.xml
 
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
-cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@OPENSTACK_SCALEUP_ORDER@$openstack_scaleup_order@g" > 
repository/conf/cloud-controller.xml
-
-cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
-cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@OPENSTACK_SCALEDOWN_ORDER@$openstack_scaledown_order@g" > 
repository/conf/cloud-controller.xml
-
-cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
-cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@OPENSTACK_IMAGE_ID@$openstack_image_id@g" > 
repository/conf/cloud-controller.xml
-
-cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig
 cat repository/conf/cloud-controller.xml.orig | sed -e 
"s@OPENSTACK_PROVIDER_END@@g" > repository/conf/cloud-controller.xml
 
 cp -f repository/conf/cloud-controller.xml 
repository/conf/cloud-controller.xml.orig

http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/5d36e6b8/tools/stratos-installer/setup.sh
----------------------------------------------------------------------
diff --git a/tools/stratos-installer/setup.sh b/tools/stratos-installer/setup.sh
index 922747d..0ab71b3 100755
--- a/tools/stratos-installer/setup.sh
+++ b/tools/stratos-installer/setup.sh
@@ -33,7 +33,6 @@ export LOG=$log_path/stratos-setup.log
 
 mb="false"
 cc="false"
-lb="false"
 as="false"
 sm="false"
 cep="false"
@@ -107,6 +106,11 @@ if [[ -z $product_list || $product_list = "" ]]; then
     exit 1
 fi
 
+if [[ $host_user == "" ]]; then
+    echo "user provided in conf/setup.conf is null. Please provide a user"
+    exit 1
+fi
+
 echo "user provided in conf/setup.conf is $host_user. If you want to provide 
some other user name please specify it at the prompt."
 echo "If you want to continue with $host_user just press enter to continue"
 read username
@@ -119,12 +123,7 @@ if [[ $? = 1 ]]; then
     adduser --home /home/$host_user $host_user
 fi
 
-echo "StrictHostKeyChecking no" > /home/$host_user/.ssh/config
-chmod 600 /home/$host_user/.ssh/config
-chown $host_user:$host_user /home/$host_user/.ssh/config
-export $enable_internal_git
 export $host_user
-export hostname=`hostname -f`
 
 # Check validity of IP
 function valid_ip()
@@ -195,6 +194,10 @@ function cep_conf_validate {
        helpsetup CEP
        exit 1
     fi
+    if [[ ! -d $cep_artifacts_path ]]; then
+        echo "Please specify the cep_artifacts_path folder which contains cep 
artifacts files"
+        exit 1
+    fi
     if [[ ! -f $cep_extension_jar ]]; then
         echo "Please copy the cep extension jar into the same folder as this 
command(stratos release pack folder) and update conf/setup.conf file"
         exit 1
@@ -254,7 +257,7 @@ function as_conf_validate {
 }
 
 function sm_conf_validate {
-    if [[ (-z $sm_path || -z $sm_port_offset || -z $stratos_foundation_db_user 
|| -z $stratos_foundation_db_pass) ]]; then
+    if [[ (-z $sm_path || -z $sm_port_offset) ]]; then
        helpsetup SM
        exit 1
     fi
@@ -262,15 +265,15 @@ function sm_conf_validate {
         echo "Please copy the mysql connector jar into the same folder as this 
command(stratos release pack folder) and update conf/setup.conf file"
         exit 1
     fi
-    if [[ -z $cc_port_offset || -z $as_port_offset || -z $cep_port_offset ]]; 
then
-        echo "Please specify the port offset of AS and/or CC and/or CEP"
+    if [[ -z $cc_port_offset || -z $as_port_offset ]]; then
+        echo "Please specify the port offset of AS and/or CC"
         exit 1
     fi
-    if [[ -z $sm_ip || -z $as_ip || -z $cc_ip || -z $cep_ip ]]; then
-        echo "Please specify the ips of SM and/or AS and/or CC and/or CEP"
+    if [[ -z $sm_ip || -z $as_ip || -z $cc_ip ]]; then
+        echo "Please specify the ips of SM and/or AS and/or CC"
         exit 1
-    elif !(valid_ip $sm_ip && valid_ip $cc_ip && valid_ip $as_ip && valid_ip 
$cep_ip); then
-        echo "Please provide valid ips for SM and/or AS and/or CC and/or CEP"
+    elif !(valid_ip $sm_ip && valid_ip $cc_ip && valid_ip $as_ip); then
+        echo "Please provide valid ips for SM and/or AS and/or CC"
         exit 1
     fi
     if [[ -z $puppet_ip ]]; then
@@ -382,12 +385,12 @@ function cep_setup {
     cp -f ./config/cep/repository/conf/jndi.properties 
$cep_path/repository/conf/
     cp -f $cep_extension_jar $cep_path/repository/components/lib/
     cp -f $andes_client_jar $cep_path/repository/components/dropins/
-    cp -f $cep_extension_path/artifacts/eventbuilders/*.xml 
$cep_path/repository/deployment/server/eventbuilders/
-    cp -f $cep_extension_path/artifacts/inputeventadaptors/*.xml 
$cep_path/repository/deployment/server/inputeventadaptors/
-    cp -f $cep_extension_path/artifacts/outputeventadaptors/*.xml 
$cep_path/repository/deployment/server/outputeventadaptors/
-    cp -f $cep_extension_path/artifacts/executionplans/*.xml 
$cep_path/repository/deployment/server/executionplans/
-    cp -f $cep_extension_path/artifacts/eventformatters/*.xml 
$cep_path/repository/deployment/server/eventformatters/
-    cp -f $cep_extension_path/artifacts/streamdefinitions/*.xml 
$cep_path/repository/conf/
+    cp -f $cep_artifacts_path/eventbuilders/*.xml 
$cep_path/repository/deployment/server/eventbuilders/
+    cp -f $cep_artifacts_path/inputeventadaptors/*.xml 
$cep_path/repository/deployment/server/inputeventadaptors/
+    cp -f $cep_artifacts_path/outputeventadaptors/*.xml 
$cep_path/repository/deployment/server/outputeventadaptors/
+    cp -f $cep_artifacts_path/executionplans/*.xml 
$cep_path/repository/deployment/server/executionplans/
+    cp -f $cep_artifacts_path/eventformatters/*.xml 
$cep_path/repository/deployment/server/eventformatters/
+    cp -f $cep_artifacts_path/streamdefinitions/*.xml 
$cep_path/repository/conf/
 
     pushd $cep_path
 
@@ -531,10 +534,6 @@ function sm_setup {
     cat repository/conf/jndi.properties.orig | sed -e 
"s@MB_HOSTNAME:MB_LISTEN_PORT@$mb_hostname:$sm_mb_listen_port@g" > 
repository/conf/jndi.properties
 
     echo "In repository/conf/cartridge-config.properties" >> $LOG
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@SM_IP@$sm_ip@g" > repository/conf/cartridge-config.properties
-
     cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
     cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@CC_HOSTNAME:CC_HTTPS_PORT@$cc_hostname:$sm_cc_https_port@g" > 
repository/conf/cartridge-config.properties
 
@@ -542,36 +541,6 @@ function sm_setup {
     cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@AS_HOSTNAME:AS_HTTPS_PORT@$as_hostname:$sm_as_https_port@g" > 
repository/conf/cartridge-config.properties
 
     cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@STRATOS_DOMAIN@$stratos_domain@g" > 
repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@SM_HOSTNAME:SM_HTTPS_PORT@$sm_ip:$sm_https_port@g" > 
repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@STRATOS_FOUNDATION_DB_HOSTNAME:STRATOS_FOUNDATION_DB_PORT@$stratos_foundation_db_hostname:$stratos_foundation_db_port@g"
 > repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@STRATOS_FOUNDATION_DB_USER@$stratos_foundation_db_user@g" > 
repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@STRATOS_FOUNDATION_DB_PASS@$stratos_foundation_db_pass@g" > 
repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@STRATOS_FOUNDATION_DB_SCHEMA@$stratos_foundation_db_schema@g" > 
repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@MB_IP@$sm_mb_ip@g" > repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@MB_LISTEN_PORT@$sm_mb_listen_port@g" > 
repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@CEP_IP@$sm_cep_ip@g" > repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
-    cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@CEP_LISTEN_PORT@$sm_cep_tcp_port@g" > 
repository/conf/cartridge-config.properties
-
-    cp -f repository/conf/cartridge-config.properties 
repository/conf/cartridge-config.properties.orig
     cat repository/conf/cartridge-config.properties.orig | sed -e 
"s@PUPPET_IP@$sm_puppet_ip@g" > repository/conf/cartridge-config.properties
 
     echo "In repository/conf/datasources/master-datasources.xml" >> $LOG

Reply via email to