项目作者: maxkrukov

项目描述 :
Tool for deployment
高级语言: Shell
项目地址: git://github.com/maxkrukov/capians.git
创建时间: 2017-02-24T08:38:32Z
项目社区:https://github.com/maxkrukov/capians

开源协议:MIT License

下载


capians

Tool for deployment (deploy & rollback) via git (https or ssh).

About

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.

How to test

Console usage

Requirements

  • ansible 2.4.1.0
  • Vagrant 1.8.1
  • virtualbox 4.3 or higher

You need to install ansible, vagrant and virtualbox

  1. yum install -y git ansible vagrant virtualbox

or

  1. apt install -y git ansible vagrant virtualbox
continue
  1. git clone https://github.com/maxkrukov/capians.git
  2. cd ./capians
  3. vagrant up
  4. cp vars.example vars # Set your vars into it
To deploy:
  1. ansible-playbook deploy.yml
To rollback:
  1. ansible-playbook deploy.yml -e "act=rollback"

Custom tasks

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.

Jenkins integration with telegram massaging

About

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.

Requirements