Skip to content

Instantly share code, notes, and snippets.

View russmckendrick's full-sized avatar

Russ McKendrick russmckendrick

View GitHub Profile
@russmckendrick
russmckendrick / moby-counter.yml
Last active November 13, 2016 15:33
Example Kubernetes App
apiVersion: v1
kind: Service
metadata:
name: moby-counter-frontend
labels:
app: moby-counter
tier: frontend
spec:
type: NodePort
ports:
@russmckendrick
russmckendrick / windows.yml
Created December 2, 2016 08:37
Random Ansible file !!!
- name: Add russ.mckendrick user
win_user:
name: russ.mckendrick
password: "mymegasecurepassword"
groups: ["Users", "Administrators"]
- name: Install Git with Chocolatey
win_chocolatey:
name: "{{ item }}"
with_items:
@russmckendrick
russmckendrick / docker-compose.yml
Created January 21, 2017 16:03
Minio Docker Compose
version: "3"
services:
minio1:
image: minio/minio
ports:
- "9000:9000"
networks:
- minionet
version: "3"
services:
traefik:
image: traefik
command: --web --docker --docker.domain=local.media-glass.es --docker.watch --logLevel=DEBUG
networks:
- scale
ports:
- "80:80"
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos/7"
config.vm.provider :virtualbox do |v|
v.memory = 4048
v.cpus = 2
@russmckendrick
russmckendrick / stack.yml
Created January 6, 2018 16:05
Docker + Kubernetes demo app
version: '3.3'
services:
web:
build: web
image: dockerdemos/lab-web
volumes:
- "./web/static:/static"
ports:
- "80:80"
@russmckendrick
russmckendrick / main.tf
Created February 9, 2019 17:41
Terraform Quirks
module "application-rg" {
source = "modules/vnet"
name = "${var.resource_group_name}"
location = "${var.location}"
tags = "${merge(var.default_tags, map("type","resource"))}"
}
module "application-vnet" {
source = "modules/vnet"
resource_group_name = "${module.application-rg.rg_name}"
# initialization file (not found)
@russmckendrick
russmckendrick / 01.yml
Last active November 11, 2019 14:32
Ansible and the Azure Rest API
- name: Create a Azure Private DNS zone using Ansible
hosts: localhost
connection: local
gather_facts: true
vars:
resource_group: "myResourceGroup"
location: "uksouth"
network:
name: "iac-vnet"
@russmckendrick
russmckendrick / 01.yml
Created June 8, 2020 15:40
AzureDevOpsAnsiblePipeline
trigger:
- master
pool:
vmImage: 'ubuntu-latest'