tripleo-image-elements/elements/boot-stack/install.d/01-boot-stack

26 lines
650 B
Bash
Executable File

#!/bin/bash
set -eux
install -m 0755 -o root -g root -d /opt/stack/boot-stack
# tools
for f in `ls $(dirname $0)/../bin`; do
install -m 0755 -o root -g root $(dirname $0)/../bin/$f /usr/local/bin/$f
done
# db
install-packages python-mysqldb
function deps() {
if hash apt-get &> /dev/null; then
apt-get update
fi
install-packages screen ccze
install-packages git ipmitool python-dev python-greenlet libxml2-dev libxslt-dev
install-packages openvswitch-common openvswitch-switch open-iscsi
install-packages python-numpy python-lxml
}
deps
sysctl-set-value "net.ipv4.ip_forward" "1" "Bootstack IPv4 forwarding."