Tool for deployment (deploy & rollback) via git (https or ssh).
It is based on ansible with capistrano3 algorithm. It keeps git repo in bare form. So it saves time especially using a large repos. Optionally it is integrated with jenkins with Telegram massaging.
- ansible 2.4.1.0
- Vagrant 1.8.1
- virtualbox 4.3 or higher
You need to install ansible, vagrant and virtualbox
yum install -y git ansible vagrant virtualbox
or
apt install -y git ansible vagrant virtualbox
git clone https://github.com/maxkrukov/capians.git
cd ./capians
vagrant up
cp vars.example vars # Set your vars into it
ansible-playbook deploy.yml
ansible-playbook deploy.yml -e "act=rollback"
You can also configure templates, {pre,after}-symlink tasks for deploy/rollback . Configure files located in roles/{deploy/rollback}/tasks/custom/ . It has ansible yaml syntax.
It is very simple tool for deploy, rollback, testing based on ansible and jenkins. Job is fully parameterized. You need to run jenkins.dsl script to configure job structure. Then set all parameters for your environment. Instruction will be provided below soon.
- ansible 2.4.1.0
- jenkins 2.40 or higher
- install suggested plugins
- Ansible Plugin
- SSH Agent Plugin
- Job DSL plugin
- build-user-vars-plugin