Shef a simple automation tool for provisioning and deployment written in POSIX Shell.
Also Shef can be used to make scripts with conditional inclusion. It is helpful for make packages for variuos platforms.
WARNING: This software is in an early experimental stage, use it with caution.
sudo make install
SHEF_REMOTE_SH_RUNNER='ssh -T [email protected] -- sh' \
shef \
-I lib -I prod-config \
prepare.sh provision.remote.sh
TODO
TODO
TODO
MIT License
See LICENSE to see the full text.
- If there is no a newline (the
\n
character) at end of file file, last line will not be preprocessed
# TODO allow preprocess script like for Shef
read_into --preprocess ma_pers_bk_script << 'EOF'
#!/bin/sh
#. shef/utils.sh
dump_name="$(date +%s)" || die
mkdir -p /root/ma-pers-dumps && gzip -c /var/lib/redis/dump.rdb > "/root/ma-pers-dumps/$(date +%s).rdb.gz"
EOF