#!/bin/bash

# Install GRAM on either compute or control node

export SENSE="control"

if [ $# -gt 0 ]
then
    export SENSE=$1
fi

# Align the owner id of gram for the packages we've read in
chown -R gram.gram ~gram /etc/gram

# This seems not to get set early enough in some circumstances...
mkdir -p /etc/quantum

# Set up the install shell scripts based on the parameters specified
# in /etc/gram/config.json
cd ~gram/gram/src/install
export PYTHONPATH=$PYTHONPATH:~gram/gram/src
python OpenStack.py
cd /tmp/install
chmod a+x *.sh
./install_$SENSE.sh

# Start up gram on the control node
if [ $SENSE = "control" ]
then
    /etc/gram/install_gram_services.sh
    /etc/gram/gram_services.sh start
fi





#!/bin/bash

# Install GRAM on either compute or control node

export SENSE="control"

if [ $# -gt 0 ]
then
    export SENSE=$1
fi

# Align the owner id of gram for the packages we've read in
chown -R gram.gram ~gram /etc/gram

# This seems not to get set early enough in some circumstances...
mkdir -p /etc/quantum

# Set up the install shell scripts based on the parameters specified
# in /etc/gram/config.json
cd ~gram/gram/src/install
export PYTHONPATH=$PYTHONPATH:~gram/gram/src
python OpenStack.py
cd /tmp/install
chmod a+x *.sh
./install_$SENSE.sh

# Control-node specific logic 
if [ $SENSE = "control" ]
then
    # Change the 'host' entry in .gcf/gcf_config to fit the configuration
    python modify_conf_env.py ~/.gcf/gcf_config host control_host "" | sh
    # Install and start up gram on the control node
    /etc/gram/install_gram_services.sh
    /etc/gram/gram_services.sh start
fi





Modify the .gcf/gcf_config host based on config
Modify the .gcf/gcf_config host based on config


Former-commit-id: 39b2422a34557bbf5d8bdd2eef16d6b92e520324