Skip to content

Instantly share code, notes, and snippets.

View titom73's full-sized avatar
:octocat:

Thomas Grimonet titom73

:octocat:
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.define "ubuntu" do |ubuntu|
# ----------------
### Box Defintion
# ----------------
ubuntu.vm.box = "juniper/netdevops-ubuntu1404-headless"
@titom73
titom73 / Issue #19
Created November 3, 2016 14:07
Issue #19 ZTP
---
### Create configuration files locally
### Must be executed only if local structure has been created with playbook: playbook-ztp-init.yml
- name: Populate local ZTP configurations
hosts: all
connection: local
gather_facts: no
vars_files:
- "group_vars/ansible-server/ztp-init.yaml"
- "group_vars/ztp-servers/ztp.yaml"
@titom73
titom73 / gist:eb35ba65b868ff29a3e380bef6b63c21
Created November 5, 2016 11:07
ansible-ztp / Issue #19 Test & Validation
[tom@spy01 ansible-junos-ztp (master)]$ ansible-playbook -i hosts.ini playbook-ztp-init.yml
PLAY [Init ZTP directory strucutre to store local files] ***********************
TASK [ztp-init : Print build path version] *************************************
ok: [ansible01] => {
"msg": "Build directory conf/ztp"
}
TASK [ztp-init : Check if path exists] *****************************************
@titom73
titom73 / secure-repository.sh
Created October 2, 2017 05:22
Ansible Vault - Encrypt / Decrypt files
#!/bin/sh
VAULT_PASSWORD="~/scripting/ansible_vault_pass"
# Die if they fat finger arguments, this program will be run as root
[ $? = 0 ] || die "Error parsing arguments. Use -e to encrypt or -d to decrypt"
while true; do
case $1 in
-e)
@titom73
titom73 / cloudflaredns.sh
Created February 5, 2018 10:41 — forked from m-wild/cloudflaredns.sh
CloudFlare dynamic dns updater module for Synology
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#
@titom73
titom73 / pedantically_commented_playbook.yml
Created February 20, 2018 09:31 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@titom73
titom73 / gitlab.rb
Last active April 6, 2018 12:41
gitlab.rb behind Reverse Proxy
## GitLab configuration settings
##! This file is generated during initial installation and **is not** modified
##! during upgrades.
##! Check out the latest version of this file to know about the different
##! settings that can be configured by this file, which may be found at:
##! https://gitlab.com/gitlab-org/omnibus-gitlab/raw/master/files/gitlab-config-template/gitlab.rb.template
## GitLab URL
##! URL on which GitLab will be reachable.
@titom73
titom73 / gitlab.awx.topology.yml
Created April 8, 2018 13:11
gitlab.awx.topology.yml
version: '2'
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: reverse-proxy
ports:
- "80:80"
- "443:443"
volumes:
@titom73
titom73 / instances.yaml
Created April 18, 2018 16:33
contrail 5.0 AIO VM
provider_config:
bms:
ssh_pwd: <PUT YOUR ROOT PASSWORD HERE>
ssh_user: root
domainsuffix: home
ntpserver: 66.129.255.62
instances:
bms1:
provider: bms
ip: <IP OF YOUR FIRST INTERFACE>
heat_template_version: 2015-10-15
description: A Group of Load Balanced Servers
parameters:
app_port:
type: number
default: 8080
description: Port used by the servers