Skip to content

Instantly share code, notes, and snippets.

Avatar

Romain Bigeard rbigeard

View GitHub Profile
View create_swarm.ps1
# Docker swarm + nginx + load balancer simple automation example
# Romain Bigeard romain.bigeard@gmail.com 2017
# v 1.1
param (
[string]$omsWorkspaceKey = "",
[string]$omsWorkspaceId = ""
)
# manager is first machine in array
View k8status.ps1
kubectl get deployment,pod,svc,endpoints,pvc -o wide ; kubectl get secret mysql-pass ; kubectl get pv
View k8WordPressAzureTestExec.ps1
k8WordPressAzureTest.ps1 -azureSshKey C:\Users\rafb\Documents\keys\azure `
-kubeWordPressLocation "C:\Users\rafb\OneDrive\Documents\kubetest\examples\mysql-wordpress-pd"
View k8WordPressAzureTest.ps1
# k8WordPressAzureTest.ps1
# Romain Bigeard romain.bigeard@gmail.com 2017
# Start up a simple 2 node K8 cluster in Azure and deploy a Wordpress stack spread over two containers
# Two parameters are needed:
# azureSshKey = path to private ssh key that will be used to connect to VMs running containers
# kubeWordPressLocation = path to Kuberetes wordpress example (https://github.com/kubernetes/examples/tree/master/mysql-wordpress-pd)
# Also deploys OMS agents on underlying Linux servers if oms parameters are not null
param (
@rbigeard
rbigeard / iis_ansible_role.yml
Created Jun 12, 2017
Simple IIS Enabling with Ansible
View iis_ansible_role.yml
---
- name: Install IIS
win_feature:
name: "Web-Server"
state: present
restart: yes
include_sub_features: yes
include_management_tools: yes
@rbigeard
rbigeard / windows_template.yml
Created Jun 9, 2017
Simple ASW Cloudformation template for spinning up Windows Servers
View windows_template.yml
AWSTemplateFormatVersion: 2010-09-09
Description: >-
This template creates a single server installation of Microsoft
Windows Server 2012r2 ready for Ansible.
**WARNING** This template creates Amazon EC2 Windows instance
and related resources. You will be billed for the AWS resources used if you
create a stack from this template. Also, you are solely responsible for
complying with the license terms for the software downloaded and installed by
this template. By creating a stack from this template, you are agreeing to
such terms.
@rbigeard
rbigeard / provision.yml
Created Jun 9, 2017
Ansible spin up of Windows servers in AWS and automated retrieval of automatically generated password
View provision.yml
---
- hosts: localhost
vars:
- aws_region: "ap-southeast-2"
tasks:
- name: launch Windows Ansible Test cloudformation stack
cloudformation:
stack_name: "AnsibleWindowsTest1"
region: "{{ aws_region }}"
state: "present"
View keybase.md

Keybase proof

I hereby claim:

  • I am rbigeard on github.
  • I am rbigeard (https://keybase.io/rbigeard) on keybase.
  • I have a public key whose fingerprint is 12A6 DF32 762A 87E6 219B 10A7 E969 8041 F2ED BC50

To claim this, I am signing this object:

You can’t perform that action at this time.