Skip to content

Shef a simple automation tool for provisioning and deployment written in POSIX Shell

License

Notifications You must be signed in to change notification settings

alefbragin/shef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shef

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.

Installation

sudo make install

Usage

SHEF_REMOTE_SH_RUNNER='ssh -T [email protected] -- sh' \
    shef \
        -I lib -I prod-config \
        prepare.sh provision.remote.sh

Configure runners

TODO

Inclusion

TODO

Base environment variables

TODO

License

MIT License

See LICENSE to see the full text.

BUGS

  • If there is no a newline (the \n character) at end of file file, last line will not be preprocessed

TODO

# 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

About

Shef a simple automation tool for provisioning and deployment written in POSIX Shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published