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
.PHONY: new renew upload download | |
ENDPOINT=--endpoint-url https://nyc3.digitaloceanspaces.com | |
AWS=aws ${ENDPOINT} | |
LEGO=lego --accept-tos --email xxx --dns digitalocean | |
S3_PATH="s3://domain-certificates/acme" | |
LOCAL_PATH=${PWD}/.lego | |
DOMAINS=`ls .lego/certificates | grep key | sed "s/.key$$//"` | |
new: | |
@$(if ${DOMAIN}, echo "Setting up ${DOMAIN}", echo "Please set DOMAIN env var" ; exit 1 ) |
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
- 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 |
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
# 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 |