Skip to content

Instantly share code, notes, and snippets.

---
- hosts: elasticsearch
serial: 1
user: ubuntu
# First we make sure the cluster is not in a weird state before we begin rebooting
# That would be bad.
# We turn on sharding, making sure all nodes are "in sync" with each other
@echo-devnull
echo-devnull / FAQ.md
Last active June 10, 2022 13:51
Frequently Asked Questions for recruitment

Frequently Asked Questions or: FAQ

Freelancers, SysOps people, Devops practitioners, IT crowd people. We tend to attract recruiters. In some cases a lot of recruiters.

This is not a bad thing! In fact I would say we are in a very luxurious position if we attract so much attention right?

But answering so many calls and emails with the same questions can take away time from the actual work day! So to speed things up, here are my Frequently Asked Questions:

0. Price

@echo-devnull
echo-devnull / Terms and Conditions.md
Last active July 7, 2019 10:47
My Terms and Conditions for recruiters

Terms and Conditions may apply ;-)

Freelancers, SysOps people, Devops practitioners, IT crowd people. We tend to attract recruiters. In some cases a lot of recruiters.

This is not a bad thing! In fact I would say we are in a very luxurious position if we attract so much attention right?

Unfortunately, there are a few recruiters that still maintain a somewhat antiquated Terms and Conditions system for our future partnership.

For instance they would like you to keep your hours up, you cannot simply take a day off without contacting them in advance. Or they expect you to be at their "team days" where you get to meet the other contractors they placed with other companies. (Why? I do not know these people?).

@echo-devnull
echo-devnull / create user.yml
Created February 27, 2018 09:42
Creating a Jenkins User and automatically add the SSH key to github
- name: Setup Jenkins user
user:
name: jenkins
state: present
groups: docker,admin
generate_ssh_key: true
append: yes
comment: "Jenkins Slave User"
update_password: on_create
password: "$6$rounds=656000$tEpd0QsWMpIusdfgdgdfgdfgdfgdgdfgYWe6qhOxheJwsiDM/"
DATE := $(shell date)
# The "?=" in this command assigns "acceptance" only when "ENVIRONMENT" has not
# already been set on the commandline or environment variables. Jenkins will have
# this set to "production" so it will use production values.
ENVIRONMENT ?= acc
NAMESPACE ?= k8snamespace
.ONESHELL:
.PHONY: secrets status namespace configmap service deploy autoscale delete syncelasticsearch
This program may only be used by Maas-Martin B.V.
// This terraform file will setup an autoscaling group for a grafan server
// Deciding which AMI to use
// aws ec2 describe-images --owners 099720109477 --filters Name=virtualization-type,Values=paravirtual
data "aws_ami" "ubuntu" {
most_recent = true
filter {
name = "name"
values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"]
@echo-devnull
echo-devnull / dirtycow.yml
Created October 27, 2016 07:01
Ansible Playbook to patch Debian and RedHat based servers
---
# This playbook patches dirty cow
- hosts: all
gather_facts: true
tasks:
- name: Grouping!
group_by:
key: "{{ ansible_os_family }}"
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDCxT44A9ysynesmkLWRSnlx5gwaD9poG3qE2QW+8KxsoMskqT4Nlb67zcOvw/YU/rbhVeB30eW05Y4oSCUEDlvjLhxDAAdz1fETHBu+uDK1sHG51rVL6yqatR811J47zKgqo6sSxyS4LaWh2Led51NdkdyPsRR+PGacdfV9NY7hopB/aFKEP1xyPGWq837vHKNyNgGixbS+kD+PcM7HBWwMr965zFL44eLMeC1Kw/CJG3mNjKLFGa2nfHMev2C+v6ucIyn534m3HgSI8EKgV8L7sBO76eQ7vyWWZWFXGehJnBvYIx1Pgq1VQS/oHSmHcw5NKflUMASn49N40cSsSLWxioFVjD+bO+LlvQitWJY5Q3MX7CmOuOiNhkCqWWoC1F6qZkGJkVEWjsk0gHofLl8+gIiPkDr9DsQwGmddXrDy66afH8O9WxWqBi/PALOqXxklTGiPYS4MtTjTylmul9sjUAdTLbbHlugqhWMJkbfmsHrll2w6HnpX1A8WWy7OsS6/WkmTzVS8aAlOFzYM2LWOFK0eiK5XT6ytifgZALM5kW2bNt746HLoOzEqmHO3LIu2veO8olJk9S7L6aVTVgaHafxGzVpCEYWxFz2ZurKMbC9It0Wrr/50Y7TkyqQYzE3CJ6LkLnnutFm7eC6wtu/cmqxqpm+zGHbJ3+rs5u+Pw== ansible@servers
# Add groups to the system
# groups:
# - provision #: [ansible]
# ssh-authorized-keys:
# - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCsHrUUZAfJeaDJ8gnUIMRPRL+r8LLrPV7jNPE8xFl5XUhhFdwCajta4r2nJ2mpkIIRJGJBWijmN7//r9b5H50KxWu6YBlEimtNomczs9oA2ij
#cloud-config
# Add groups to the system
# groups:
# - provision #: [ansible]
# ssh-authorized-keys:
# - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCsHrUUZAfJeaDJ8gnUIMRPRL+r8LLrPV7jNPE8xFl5XUhhFdwCajta4r2nJ2mpkIIRJGJBWijmN7//r9b5H50KxWu6YBlEimtNomczs9oA2ijP0+o7buvx4xiC+pAo/taRz0E/dpd56Ef0qt3610gJe4yDuWlvgP+S1X1FnOcPcDfrCoxyUd5V9kA1G3/p9AjdlGQOGAN9VB0+IlIpN0EP2Vc5O79U0yQIzrEWLUG151/3/Cq3jFKQPeW0n9qQcTzwjwDMWfn8I5nHu+0o+C2QhBwm2TWhjUwl/LjKXzWtsXasDKaE+mnZsDar8SXnH/L9nuTUBVHaKexmSnyKJyPMcy0GfwbqOzDb16Z7xPsqlnohXa7P53QOalfwQjPkwdhCOdrSR0KL6xdUWg3o5EPtPfUPTIJbYj8uj5js+n93UJgQ5yLcGr/sro524tNmox/TTJOWsh5asWQoa5R/GZ1nwPEENeV7/wgeuFwm498JhnTOGpZG5D2dGI2dlo3vGebNQGRoG39+42aQ/jXZNvWvIsEpMJ1b7cDHdX+eV8cdTyWibGl5SN0JK8sUIGtzm0x/QYuih4Mgr2Nh/jxDIzMmm6FEzCIryc00MGTyTJxdtusf5hRRVYLlK1Q7qNN9jAUWspyMgZ6m+0pQEBN4/huCNPKeUstYqql8K1POu4UHqw== Mark Maas Persgroep
# Add users to the system. Users are added after groups are added.