Merge "Export prepare_node variables rather than pass them around"

This commit is contained in:
Jenkins 2014-08-01 22:43:39 +00:00 committed by Gerrit Code Review
commit d3cd431052
6 changed files with 36 additions and 30 deletions

View File

@ -17,12 +17,13 @@
# limitations under the License.
HOSTNAME=$1
SUDO=$2
THIN=$3
PYTHON3=${4:-false}
PYPY=${5:-false}
ALL_MYSQL_PRIVS=${6:-false}
GIT_BASE=${7:-git://git.openstack.org}
SUDO=${SUDO:-true}
THIN=${THIN:-true}
PYTHON3=${PYTHON3:-false}
PYPY=${PYPY:-false}
ALL_MYSQL_PRIVS=${ALL_MYSQL_PRIVS:-false}
GIT_BASE=${GIT_BASE:-git://git.openstack.org}
# Save the nameservers configured by our provider.
cat >/tmp/forwarding.conf <<EOF

View File

@ -17,12 +17,13 @@
# limitations under the License.
HOSTNAME=$1
SUDO='true'
THIN='false'
PYTHON3='false'
PYPY='false'
ALL_MYSQL_PRIVS='true'
./prepare_node.sh "$HOSTNAME" "$SUDO" "$THIN" "$PYTHON3" "$PYPY" "$ALL_MYSQL_PRIVS"
export SUDO='true'
export THIN='false'
export PYTHON='false'
export PYPY='false'
export ALL_MYSQL_PRIVS='true'
./prepare_node.sh "$HOSTNAME"
./restrict_memory.sh

View File

@ -17,10 +17,11 @@
# limitations under the License.
HOSTNAME=$1
SUDO='true'
THIN='true'
./prepare_node.sh "$HOSTNAME" "$SUDO" "$THIN"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack.sh $HOSTNAME
export SUDO='true'
export THIN='true'
./prepare_node.sh "$HOSTNAME"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack.sh "$HOSTNAME"
./restrict_memory.sh

View File

@ -17,10 +17,11 @@
# limitations under the License.
HOSTNAME=$1
SUDO='true'
THIN='true'
./prepare_node.sh "$HOSTNAME" "$SUDO" "$THIN"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack_new_kernel.sh $HOSTNAME
export SUDO='true'
export THIN='true'
./prepare_node.sh "$HOSTNAME"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack_new_kernel.sh "$HOSTNAME"
./restrict_memory.sh

View File

@ -17,12 +17,13 @@
# limitations under the License.
HOSTNAME=$1
SUDO='false'
THIN='false'
PYTHON3='true'
PYPY='true'
ALL_MYSQL_PRIVS='true'
./prepare_node.sh "$HOSTNAME" "$SUDO" "$THIN" "$PYTHON3" "$PYPY" "$ALL_MYSQL_PRIVS"
export SUDO='false'
export THIN='false'
export PYTHON3='true'
export PYPY='true'
export ALL_MYSQL_PRIVS='true'
./prepare_node.sh "$HOSTNAME"
./fix_pip.sh
./restrict_memory.sh

View File

@ -17,13 +17,14 @@
# limitations under the License.
HOSTNAME=$1
SUDO='true'
THIN='true'
export SUDO='true'
export THIN='true'
# Workaround bug 1270646 during node bootstrapping.
sudo ip link set mtu 1458 dev eth0
./prepare_node.sh "$HOSTNAME" "$SUDO" "$THIN"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_tripleo.sh $HOSTNAME
./prepare_node.sh "$HOSTNAME"
sudo -u jenkins -i /opt/nodepool-scripts/prepare_tripleo.sh "$HOSTNAME"
sync
sleep 5