From 4df23c6b9db8a956dad560f09d62a3589c30ae26 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 27 Apr 2021 03:27:50 +0200 Subject: [PATCH] Switch to new VPS --- README.md | 4 ++-- inv/host_vars/{new.chosto.me => chosto.me}/secrets.yml | 0 inv/host_vars/{new.chosto.me => chosto.me}/vars.yml | 0 inv/static.yml | 2 +- roles/funkwhale/templates/conf.env.j2 | 1 + 5 files changed, 4 insertions(+), 3 deletions(-) rename inv/host_vars/{new.chosto.me => chosto.me}/secrets.yml (100%) rename inv/host_vars/{new.chosto.me => chosto.me}/vars.yml (100%) diff --git a/README.md b/README.md index ebe6429..c2730ee 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ To manage secrets, this repository use Ansible Vault. Create a secret ``` -ansible-vault create inv/host_vars/new.chosto.me/secrets.yml +ansible-vault create inv/host_vars/chosto.me/secrets.yml ``` Edit a secret ``` -ansible-vault edit inv/host_vars/new.chosto.me/secrets.yml +ansible-vault edit inv/host_vars/chosto.me/secrets.yml ``` ### Server diff --git a/inv/host_vars/new.chosto.me/secrets.yml b/inv/host_vars/chosto.me/secrets.yml similarity index 100% rename from inv/host_vars/new.chosto.me/secrets.yml rename to inv/host_vars/chosto.me/secrets.yml diff --git a/inv/host_vars/new.chosto.me/vars.yml b/inv/host_vars/chosto.me/vars.yml similarity index 100% rename from inv/host_vars/new.chosto.me/vars.yml rename to inv/host_vars/chosto.me/vars.yml diff --git a/inv/static.yml b/inv/static.yml index 5bedaeb..faceb7b 100644 --- a/inv/static.yml +++ b/inv/static.yml @@ -1,6 +1,6 @@ all: hosts: - new.chosto.me: + chosto.me: ansible_port: 2220 ansible_user: chosto ansible_ssh_private_key_file: ~/.ssh/scaleway diff --git a/roles/funkwhale/templates/conf.env.j2 b/roles/funkwhale/templates/conf.env.j2 index 3e670d5..3acb3ff 100644 --- a/roles/funkwhale/templates/conf.env.j2 +++ b/roles/funkwhale/templates/conf.env.j2 @@ -26,4 +26,5 @@ AWS_ACCESS_KEY_ID={{ scaleway_s3_id }} AWS_SECRET_ACCESS_KEY={{ scaleway_s3_key }} AWS_STORAGE_BUCKET_NAME=celiglyphe AWS_S3_ENDPOINT_URL=https://s3.fr-par.scw.cloud +AWS_S3_REGION_NAME=fr-par PROXY_MEDIA=false