From 9e6abb5970dfa2c1ce272a796b9f503db16d120c Mon Sep 17 00:00:00 2001 From: Joseph Tam Date: Tue, 7 Apr 2015 11:52:26 -0400 Subject: [PATCH 1/2] ansible_python_interpreter "PATH=/home/core/bin:$PATH python" didn't work for me, I had to change it to "/home/core/bin/python" for ansible to pick up the location of the python file --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 974e362..c74d878 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ host-02 [coreos:vars] ansible_ssh_user=core -ansible_python_interpreter="PATH=/home/core/bin:$PATH python" +ansible_python_interpreter="/home/core/bin/python" ``` This will configure ansible to use the python interpreter at `/home/core/bin/python` which will be created by the coreos-bootstrap role. From cbd3ff07a3571185a4f52a9b87d99820a59ade77 Mon Sep 17 00:00:00 2001 From: Joseph Tam Date: Tue, 7 Apr 2015 11:55:26 -0400 Subject: [PATCH 2/2] added comments / download URL variable --- files/bootstrap.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/files/bootstrap.sh b/files/bootstrap.sh index 8470be8..165818c 100644 --- a/files/bootstrap.sh +++ b/files/bootstrap.sh @@ -4,19 +4,24 @@ set -e cd +## if already bootstrapped, quit if [[ -e $HOME/.bootstrapped ]]; then exit 0 fi +## define download version and URL PYPY_VERSION=2.4.0 +PYPY_URL=https://bitbucket.org/pypy/pypy/downloads -wget -O - https://bitbucket.org/pypy/pypy/downloads/pypy-$PYPY_VERSION-linux64.tar.bz2 |tar -xjf - +## download and untar pypy +wget -O - $PYPY_URL/pypy-$PYPY_VERSION-linux64.tar.bz2 |tar -xjf - mv -n pypy-$PYPY_VERSION-linux64 pypy ## library fixup mkdir -p pypy/lib ln -snf /lib64/libncurses.so.5.9 $HOME/pypy/lib/libtinfo.so.5 +## create python shell stub mkdir -p $HOME/bin cat > $HOME/bin/python < $HOME/bin/python <