blob: b8da486c9328e71495951b08d2da6cfe01688a28 [file] [log] [blame]
#!/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.
#
# ----------------------------------------------------------------------------
#
# Server configuration script for Apache Stratos
# ----------------------------------------------------------------------------
#
# Configure below parameters to install Apache Stratos using ../setup.sh.
# General configuration parameters are mandatory and other sections are optional.
#
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# General configuration
# ----------------------------------------------------------------------------
export setup_path= #Folder path containing stratos_setup
export stratos_packs= #Folder path containing stratos package and other third party packs and jars
export stratos_path= #Folder which stratos will be installed
export JAVA_HOME= #Java home path
export log_path=/var/log/apache-stratos
export host_user="" #A host user account for the machine which run Stratos component(s)
export stratos_domain="stratos.apache.org"
export host_ip="127.0.0.1" # Machine ip on host machine
export offset=0
export puppet_ip="127.0.0.1" # Machine ip on which puppet master run
export puppet_hostname="puppet-hostname" # Host name given to identify the puppet master
export puppet_environment="puppet_environment" # Name of puppet environment
export mb_ip="127.0.0.1" # Machine ip on which mb run
export mb_port=61616 #default port which the message broker service runs
export stratos_extract_path=$stratos_path/"apache-stratos"
export stratos_pack_zip_name="apache-stratos-4.1.4.zip"
export stratos_pack_zip=$stratos_packs/$stratos_pack_zip_name
export activemq_pack=$stratos_packs/"apache-activemq-5.9.1-bin.tar.gz"
export activemq_path=$stratos_path/"apache-activemq-5.9.1"
export jndi_template_path=$setup_path/"templates/activemq/jndi.properties"
export resource_path=$setup_path/resources
# IaaS Providers
# ----------------------------------------------------------------------------
# Set <iaas-name>_provider_enabled parameter to true to enable desired IaaS. A hybrid cloud could be
# created using multiple IaaSs.
# EC2
export ec2_provider_enabled=true
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_availability_zone="<ec2_availability_zone>"
export ec2_security_groups="<ec2_security_groups>"
# 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_jclouds_endpoint="http://hostname:5000/v2.0"
export openstack_keypair_name=""
export openstack_security_groups=""
# default to nova. If you have neutron networking environment, set it to neutron
export openstack_networking_provider="nova"
# vCloud
export vcloud_provider_enabled=false
export vcloud_identity="stratos" # vCloud login user
export vcloud_credential="password" # vCloud login password
export vcloud_jclouds_endpoint="https://vcloud/api"
# GCE
export gce_provider_enabled=false
export gce_identity="<gce_identity>"
export gce_credential="<gce_credential>"
# kubernetes
export kubernetes_provider_enabled=false
export kubernetes_identity="<kubernetes_identity>"
export kubernetes_credential="<kubernetes_credential>"
# Mock
export mock_iaas_enabled=false
# Database configuration
# ----------------------------------------------------------------------------
export mysql_connector_jar=$stratos_packs/"mysql-connector-java-5.1.29-bin.jar" #mysql connector jar file name
export userstore_db_hostname="localhost"
export userstore_db_schema="userstore"
export userstore_db_port="3306"
export userstore_db_user="root"
export userstore_db_pass="root"