Skip to content

Instantly share code, notes, and snippets.

Laurent Charignon charignon

Block or report user

Report or block charignon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
charignon / Makefile
Created Oct 11, 2017
Makefile to simplify let's encrypt domain maintenance using lego, digital ocean spaces and dns
View Makefile
.PHONY: new renew upload download
LEGO=lego --accept-tos --email xxx --dns digitalocean
DOMAINS=`ls .lego/certificates | grep key | sed "s/.key$$//"`
@$(if ${DOMAIN}, echo "Setting up ${DOMAIN}", echo "Please set DOMAIN env var" ; exit 1 )
charignon / runbook.yaml
Created Jul 22, 2017
ansible runbook to set up digital ocean block storage
View runbook.yaml
- name: Get the volume name
shell: ls /dev/disk/by-id/ | grep -v part
register: volume_name_raw
- set_fact:
volume_name: "{{ volume_name_raw.stdout }}"
- name: Check if the volume is already setup
command: grep '{{ volume_name }}' /etc/fstab -q
register: volume_present
# Script to query the numerous API
# make sure that your API key is set in the apikey file
import json
import os
import sys
import argparse
import requests
from termcolor import cprint
You can’t perform that action at this time.