PrabhuVignesh.push_to_deploy
Ansible role for GIT push to deploy
Configure GIT hooks by installing this role.
Installation:
From ansible.galaxy :
ansible-galaxy install PrabhuVignesh.push_to_deploy
Useage:
Just keep the workstation machine's public key in a file and mention the path of the file where public keys are stored. (I mean Workstation machine as developer's machine)
---
roles:
- role: PrabhuVignesh.push_to_deploy
path_for_authorized_keys: /path/to/public_key/file
git_repository_path: /home/path/to/your/repo.git
post_receive_script: "script to deploy the code"
pre_receive_script: "Prepare storing code"
After the ansible playbook run, Workstation machine should have this remote in git repository
git remote add production git@gitserver:repo.git
when ever developer push the code to gitserver, script for post-receive and pre-receive will run. for example "puppet deploy script", "cap deploy..." etc.. Test 3
Install
ansible-galaxy install PrabhuVignesh.push_to_deployLicense
Unknown
Downloads
132
Owner
Experienced DevOps and Cloud Consultant, Has experience with
the Public and Private Cloud, as well as DevOps automation, development for Linux and windows.
