Skip to content

Instantly share code, notes, and snippets.

@IssacTran
IssacTran / defaults.yml
Created June 13, 2016 09:50 — forked from akisvolanis/defaults.yml
Upload ssh key to gitlab for deploy user with ansible
deploy_user_name: 'deployer'
# More info about password: http://docs.ansible.com/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module
# password created with: python -c "from passlib.hash import sha512_crypt; print sha512_crypt.encrypt('example_password')"
deploy_user_password: <encrypted_password>
user_shell: "/bin/bash"
deploy_user_home: "/home/{{ deploy_user_name }}"
repo_api_token: <your_api_token>
repo_project_id: <your_project_id>
@IssacTran
IssacTran / gitlab.conf
Created June 7, 2016 01:13 — forked from sameersbn/gitlab.conf
Nginx reverse proxy configuration for GitLab
upstream gitlab {
server 172.17.42.1:10080 fail_timeout=0;
}
# let gitlab deal with the redirection
server {
listen 80;
server_name git.example.com;
server_tokens off;
root /dev/null;
@IssacTran
IssacTran / ansible-summary.md
Created May 29, 2016 08:02
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@IssacTran
IssacTran / git.css
Created May 2, 2016 22:21 — forked from neilgee/git.css
Git Command Line Reference - Notes and reminders on set up and commands
/*
* Set up your Git configuration
*/
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "nano"
@IssacTran
IssacTran / kafka_to_elastic.conf
Last active April 25, 2016 09:10 — forked from ashrithr/readme.md
Installing ELK on a single machine
input {
kafka {
zk_connect => "localhost:2181"
group_id => "logstash"
topic_id => "metric"
reset_beginning => false
consumer_threads => 1
codec => "line"
}
}
@IssacTran
IssacTran / Git push deployment in 7 easy steps.md
Created February 23, 2016 01:15 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook