Migrate from setup-env to refresh-env.

setup-env is also used to refresh, and we want to make that clearer in
the tripleo-cd element.

Change-Id: Ib253d17e9632c318a0f1cd22cc316d4e41ccd125
This commit is contained in:
Robert Collins 2013-10-10 08:42:54 +13:00
parent 17a1276df9
commit b11d246da1
2 changed files with 32 additions and 31 deletions

31
scripts/refresh-env Normal file
View File

@ -0,0 +1,31 @@
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# Setup/update your undercloud environment to run devtest_overcloud.sh
# Usage:
# source refresh-env TRIPLEO_ROOT
# Ex:
# source refresh-env ~/tripleo
export TRIPLEO_ROOT=$1
export PATH=$TRIPLEO_ROOT/tripleo-incubator/scripts:$PATH
export NODE_DIST=${NODE_DIST:-ubuntu}
export NODE_ARCH=${NODE_ARCH:-i386}
pull-tools
setup-clienttools
export ELEMENTS_PATH=$TRIPLEO_ROOT/tripleo-image-elements/elements
echo "Make sure to source your stackrc file"

View File

@ -1,31 +0,0 @@
# Copyright 2013 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# Setup your undercloud environment to run devtest_overcloud.sh
# Usage:
# source setup-env TRIPLEO_ROOT
# Ex:
# source setup-env ~/tripleo
export TRIPLEO_ROOT=$1
export PATH=$TRIPLEO_ROOT/tripleo-incubator/scripts:$PATH
export NODE_DIST=${NODE_DIST:-ubuntu}
export NODE_ARCH=${NODE_ARCH:-i386}
pull-tools
setup-clienttools
export ELEMENTS_PATH=$TRIPLEO_ROOT/tripleo-image-elements/elements
echo "Make sure to source your stackrc file"

1
scripts/setup-env Symbolic link
View File

@ -0,0 +1 @@
refresh-env