Skip to content

Files

Latest commit

 

History

History
29 lines (20 loc) · 769 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 769 Bytes

deploy-to-nginx

This is a repo to manage cyberpunked.me and most of its subdomains and servers.

Aims to be a readable repository but nothing more. Also automate things as much as possible.

Aim for a zero downtime setup

I'd like to make a system where I don't have to wait for DNS to propagate to setup the SSL certificates with let's encrypt.

Let's say that the server crashes, or that I destroy it. I could launch terraform apply immediately, but the Ansible playbook in nginx.yml must wait for DNS records to propagate.

I could make it work with a two servers setup.

Virtualenv

I usually install ansible using virtualenv, just like that:

cd deploy-to-nginx
virtualenv .
source bin/activate
pip instal ansible