Skip to content

Scripts to manage my nginx instance (Ansible, Terraform)

Notifications You must be signed in to change notification settings

TanguyAndreani/deploy-to-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Scripts to manage my nginx instance (Ansible, Terraform)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published