diff --git a/scripts/refresh-env b/scripts/refresh-env new file mode 100644 index 00000000..25285136 --- /dev/null +++ b/scripts/refresh-env @@ -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" diff --git a/scripts/setup-env b/scripts/setup-env deleted file mode 100644 index 97c1e7d3..00000000 --- a/scripts/setup-env +++ /dev/null @@ -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" diff --git a/scripts/setup-env b/scripts/setup-env new file mode 120000 index 00000000..2d21e0e7 --- /dev/null +++ b/scripts/setup-env @@ -0,0 +1 @@ +refresh-env \ No newline at end of file