solar/resources/fuel_library/actions/run.sh
2015-10-09 14:22:53 +03:00

21 lines
364 B
Bash

#!/bin/bash
mkdir -p {{temp_directory}}
pushd {{temp_directory}}
if [ ! -d fuel-library ]
then
git clone -b {{ git['branch'] }} {{ git['repository'] }}
else
pushd ./fuel-library
git pull
popd
fi
pushd ./fuel-library/deployment
./update_modules.sh
popd
mkdir -p {{puppet_modules}}
cp -r ./fuel-library/deployment/puppet/* {{puppet_modules}}
popd