Skip to content

Instantly share code, notes, and snippets.

echo update kernel
yum -y update
echo install glibc
yum -y install glibc.i686
echo install libstdc++
yum -y install compat-libstdc++-33.x86_64
echo install vim
yum -y install vim
#! /bin/bash
echo install ems
cd /vagrant/ems_install/ems_install
./TIBCOUniversalInstaller-lnx-x86.bin -silent -V responseFile=ems_install.silent
echo config ems
cd ~/tibco/ems/8.2/bin
./tibemsd64 &
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
#! /bin/bash
echo configure third party driver for Oracle
/home/vagrant/tibco/amx-bpm/bpm/4.0/bin/tct tpcl /vagrant/bpm_install/build_third_party_driver.properties
echo create BPM server
/home/vagrant/tibco/amx-bpm/bpm/4.0/bin/tct bpm /vagrant/bpm_install/build_bpm.properties
#! /bin/bash
echo install BPM4.0
/vagrant/bpm_install/TIBCOUniversalInstaller-lnx-x86-64.bin -silent
#! /bin/bash
echo set up bpmadm user in ems
cd /home/vagrant/tibco/ems/8.2/bin
./tibemsadmin64 -server "tcp://localhost:7222" -user admin -password "" -script /vagrant/ems_install/ems_install/bpm_setup.scr
#! /bin/bash
echo create tibco_ems.service
touch /etc/systemd/system/tibco_ems.service
chmod 644 /etc/systemd/system/tibco_ems.service
cat <<EOT >> /etc/systemd/system/tibco_ems.service
[Unit]
Description=Tibco EMS server
After=syslog.target network.target
[Service]
#! /bin/bash
su -l oracle -c "/vagrant/oracle_install/runInstaller -silent -responseFile /vagrant/oracle_install/response/db_install.rsp"
#! /bin/bash
echo run generated script
/opt/oracle/product/12.1.0/dbhome_1/root.sh
/opt/oraInventory/orainstRoot.sh
echo configure Oracle
su -l oracle -c "touch /home/oracle/cfgrsp.properties"
chmod 600 /home/oracle/cfgrsp.properties
su -l oracle -c "cat <<EOT >> /home/oracle/cfgrsp.properties
#! /bin/bash
echo install oracle pre-requisites
groupadd -g 54321 oinstall
groupadd -g 54322 dba
useradd oracle -u 54321 -g oinstall -G dba
echo oracle:oracle | sudo chpasswd
usermod -aG wheel oracle
chown :dba /opt
chmod g+w /opt
dd if=/dev/zero of=/swapfile count=4096 bs=1MiB