#!/bin/bash for step in {1..$1} do mkdir /opt/uesb$step #Create a clone of UlatraESB cp -r /opt/ultraesb/* /opt/uesb$step/ #Change ULTRA_HOME sed -i "s/\/opt\/ultraesb/\/opt\/uesb$step/g" /opt/uesb$step/bin/ultraesb-daemon.sh #Change ram disk path sed -i "s/\/tmp\/ram/\/tmp\/ram$step/g" /opt/uesb$step/conf/ultra-root.xml #Change ram disk overflow path sed -i "s/\/tmp\/overflow/\/tmp\/overflow$step/g" /opt/uesb$step/conf/ultra-root.xml #Change HTTP port sed -i "s/property name=\"port\" value=\"8280\"/property name=\"port\" value=\"$((step+8280))\"/g" /opt/uesb$step/conf/ultra-root.xml #Change HTTPS port sed -i "s/property name=\"port\" value=\"8443\"/property name=\"port\" value=\"$((step+8443))\"/g" /opt/uesb$step/conf/ultra-root.xml #Change host name sed -i "s/name=\"nodeName\" value=\"192.168.56.5\"/name=\"nodeName\" value=\"node$step\"/g" /opt/uesb$step/conf/ultra-root.xml #Change JMX Ports sed -i "s/9994/${step}9994/g" /opt/uesb$step/conf/ultra-root.xml sed -i "s/1099/1${step}99/g" /opt/uesb$step/conf/ultra-root.xml #Changing wrapper name sed -i "s/wrapper.ntservice.name=UltraESB/wrapper.ntservice.name=uesb$step/g" /opt/uesb$step/conf/wrapper.conf #Add init scripts cd /etc/init.d sudo ln -s /opt/uesb$step/bin/ultraesb-daemon.sh uesb$step sudo chown -R ultraesb:ultraesb /opt/uesb$step/ #sudo service uesb$step start done
Sunday, November 29, 2015
UltraESB - Cloning Script
In some cases you may need to build a UltraESB cluster running in a single machine. In that case you should make sure ports that each UltraESB instance acquire does not conflict with others. This script makes sure that a UltraESB installed in a default location (/opt/ultraesb) is cloned into a given number of instances in /opt/uesb1,2,3.. path. To run this, you have to give number of clones you need to have as a parameter.
Installing Openstack with Neutron networking using Devstack on Ubuntu 14.04
Devstack [1] is package with a set of scripts to easily install Openstack on Ubuntu environment without worrying about painful configurations while installing Openstack from scratch. In this post I'm describing how to install Openstack in a single machine with networking (neutron) facility using Devstack. This set up consists of installation guide for Openstack's main servers (nova, keystone, cinder, glance and horizon) and additional networking server (neutron).
Prerequisites
Before continuing with installation verify whether following requirements are met in your machine
1. At least 4 threads in your processor
2. 4 GB physical memory
3. Physical network interface with connected to a router and available IPs in that subnet to allocate to VMs. In my case it is 192.168.1.200 in the network 192.168.1.0/24
4. An internet connection. Devstack may need to download required libraries from internet while installation
5. 100 GB free space in the partition (If you need not to create larger vloumes, you can proceed with the installation without that much of space)
Installation steps
1. Clone Devstack from following URL
git clone https://git.openstack.org/openstack-dev/devstack
2. Go to Devstack directory and create a file named local.conf and add following configuration details.
[1] http://docs.openstack.org/developer/devstack/
Prerequisites
Before continuing with installation verify whether following requirements are met in your machine
1. At least 4 threads in your processor
2. 4 GB physical memory
3. Physical network interface with connected to a router and available IPs in that subnet to allocate to VMs. In my case it is 192.168.1.200 in the network 192.168.1.0/24
4. An internet connection. Devstack may need to download required libraries from internet while installation
5. 100 GB free space in the partition (If you need not to create larger vloumes, you can proceed with the installation without that much of space)
Installation steps
1. Clone Devstack from following URL
git clone https://git.openstack.org/openstack-dev/devstack
2. Go to Devstack directory and create a file named local.conf and add following configuration details.
[[local|localrc]] MULTI_HOST=1 LOGFILE=/opt/stack/logs/stack.sh.log ADMIN_PASSWORD=123456 DATABASE_PASSWORD=123456 RABBIT_PASSWORD=123456 SERVICE_PASSWORD=123456 SERVICE_TOKEN=xyzpdqlazydog API_RATE_LIMIT=False # neutron (networking) configuration HOST_IP=192.168.1.200 # IP of your Ethernet interface disable_service n-net enable_service q-svc enable_service q-agt enable_service q-dhcp enable_service q-l3 enable_service q-meta enable_service q-metering Q_USE_SECGROUP=True FLOATING_RANGE="192.168.1.0/24" # floating (public) IP range of external interface that can be # used to access VMs from outside FIXED_RANGE="10.0.0.0/24" # Fixed IP range that is assigned to VMs for housekeeping #tasks of Openstack Q_FLOATING_ALLOCATION_POOL=start=192.168.1.226,end=192.168.1.254 PUBLIC_NETWORK_GATEWAY="192.168.1.1" Q_L3_ENABLED=True PUBLIC_INTERFACE=eth0 # Ethernet interface name Q_USE_PROVIDERNET_FOR_PUBLIC=True OVS_PHYSICAL_BRIDGE=br-ex PUBLIC_BRIDGE=br-ex OVS_BRIDGE_MAPPINGS=public:br-ex # Optional, to enable tempest configuration as part of DevStack # enable_service tempest # cinder volume configuration # By default cinder creates a LVM partition with a size of 10 GB which limits you to # create volumes size of less than 10 GB, If you want to increase this default value, uncomment # following lines # VOLUME_GROUP="stack-volumes" # VOLUME_NAME_PREFIX="volume-" # VOLUME_BACKING_FILE_SIZE=60250M3. Run stack.sh to install Openstack using Devstack scripts.
[1] http://docs.openstack.org/developer/devstack/
Subscribe to:
Posts (Atom)