This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
### 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] ***************************************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# cloudflareddns.sh - dynamic dns updater module for Synology | |
# | |
# Author: | |
# Michael Wildman (http://mwild.me) | |
# | |
# Version: | |
# 0.2 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# ^^^ 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy | |
container_name: reverse-proxy | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer