Move Jinja2 template files into templates directory #137
3
Vagrantfile
vendored
3
Vagrantfile
vendored
|
@ -21,9 +21,6 @@ Vagrant.configure(2) do |config|
|
||||||
ansible.playbook = "playbook.yml"
|
ansible.playbook = "playbook.yml"
|
||||||
ansible.ask_vault_pass = true
|
ansible.ask_vault_pass = true
|
||||||
ansible.verbose = "v"
|
ansible.verbose = "v"
|
||||||
ansible.extra_vars = {
|
|
||||||
base_domain: "datacoop.devel"
|
|
||||||
}
|
|
||||||
|
|
||||||
# If the VM is already provisioned, we need to use the new port
|
# If the VM is already provisioned, we need to use the new port
|
||||||
if provisioned?
|
if provisioned?
|
||||||
|
|
|
@ -117,6 +117,21 @@ services:
|
||||||
- "{{ base_domain }}"
|
- "{{ base_domain }}"
|
||||||
- "www.{{ base_domain }}"
|
- "www.{{ base_domain }}"
|
||||||
|
|
||||||
|
new_data_coop_website:
|
||||||
|
file: websites/new.data.coop.yml
|
||||||
|
domain: "new.{{ base_domain }}"
|
||||||
|
version: hugo
|
||||||
|
|
||||||
|
new_new_data_coop_website:
|
||||||
|
file: websites/new-new.data.coop.yml
|
||||||
|
domain: "new-new.{{ base_domain }}"
|
||||||
|
version: latest
|
||||||
|
|
||||||
|
slides_2022_website:
|
||||||
|
file: websites/2022.slides.data.coop.yml
|
||||||
|
domain: "2022.slides.{{ base_domain }}"
|
||||||
|
version: latest
|
||||||
|
|
||||||
cryptohagen_website:
|
cryptohagen_website:
|
||||||
file: websites/cryptohagen.dk.yml
|
file: websites/cryptohagen.dk.yml
|
||||||
domains:
|
domains:
|
||||||
|
@ -174,3 +189,7 @@ services:
|
||||||
domain: "member.{{ base_domain }}"
|
domain: "member.{{ base_domain }}"
|
||||||
django_admins: "Vidir:valberg@orn.li"
|
django_admins: "Vidir:valberg@orn.li"
|
||||||
allowed_sender_domain: true
|
allowed_sender_domain: true
|
||||||
|
|
||||||
|
watchtower:
|
||||||
|
file: watchtower.yml
|
||||||
|
version: amd64-1.5.1
|
||||||
|
|
2
roles/docker/files/configs/vhost/www
Normal file
2
roles/docker/files/configs/vhost/www
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
server_name www.data.coop;
|
||||||
|
return 301 $scheme://data.coop$request_uri;
|
|
@ -36,11 +36,6 @@
|
||||||
src: configs/riot/riot.im.conf
|
src: configs/riot/riot.im.conf
|
||||||
dest: "{{ services.riot.volume_folder }}/data/riot.im.conf"
|
dest: "{{ services.riot.volume_folder }}/data/riot.im.conf"
|
||||||
|
|
||||||
- name: upload vhost config for root domain
|
|
||||||
copy:
|
|
||||||
src: configs/vhost/root
|
|
||||||
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
|
|
||||||
|
|
||||||
- name: upload vhost config for matrix domain
|
- name: upload vhost config for matrix domain
|
||||||
copy:
|
copy:
|
||||||
src: configs/vhost/matrix
|
src: configs/vhost/matrix
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: watchtower container
|
- name: watchtower container
|
||||||
docker_container:
|
docker_container:
|
||||||
name: watchtower
|
name: watchtower
|
||||||
image: containrrr/watchtower:1.4.0
|
image: containrrr/watchtower:{{ services.watchtower.version }}
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- name: external_services
|
- name: external_services
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: setup 2022.slides.data.coop website using unipi
|
- name: setup 2022.slides.data.coop website using unipi
|
||||||
docker_container:
|
docker_container:
|
||||||
name: 2022.slides.data.coop_website
|
name: 2022.slides.data.coop_website
|
||||||
image: docker.data.coop/unipi:latest
|
image: docker.data.coop/unipi:{{ services.slides_2022_website.version }}
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
purge_networks: yes
|
purge_networks: yes
|
||||||
networks:
|
networks:
|
||||||
- name: external_services
|
- name: external_services
|
||||||
env:
|
env:
|
||||||
VIRTUAL_HOST: "2022.slides.{{ services.data_coop_website.domains|join(',') }}"
|
VIRTUAL_HOST: "{{ services.slides_2022_website.domain }}"
|
||||||
LETSENCRYPT_HOST: "2022.slides.{{ services.data_coop_website.domains|join(',') }}"
|
LETSENCRYPT_HOST: "{{ services.slides_2022_website.domain }}"
|
||||||
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
||||||
# Temporarily hosting on github
|
# Temporarily hosting on github
|
||||||
command: "--remote=https://github.com/sorbusursina/datacoop-slides.git#slides2022"
|
command: "--remote=https://github.com/sorbusursina/datacoop-slides.git#slides2022"
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
---
|
---
|
||||||
|
- name: Upload vhost config for root domain
|
||||||
|
copy:
|
||||||
|
src: configs/vhost/root
|
||||||
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/{{ base_domain }}"
|
||||||
|
|
||||||
|
- name: Upload vhost config for WWW domain
|
||||||
|
copy:
|
||||||
|
src: configs/vhost/www
|
||||||
|
dest: "{{ services.nginx_proxy.volume_folder }}/vhost/www.{{ base_domain }}"
|
||||||
|
|
||||||
- name: setup data.coop website docker container
|
- name: setup data.coop website docker container
|
||||||
docker_container:
|
docker_container:
|
||||||
|
|
|
@ -1,14 +1,15 @@
|
||||||
|
---
|
||||||
- name: setup new-new data.coop website using unipi
|
- name: setup new-new data.coop website using unipi
|
||||||
docker_container:
|
docker_container:
|
||||||
name: new-new.data.coop_website
|
name: new-new.data.coop_website
|
||||||
image: docker.data.coop/unipi:latest
|
image: docker.data.coop/unipi:{{ services.new_new_data_coop_website.version }}
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
purge_networks: yes
|
purge_networks: yes
|
||||||
networks:
|
networks:
|
||||||
- name: external_services
|
- name: external_services
|
||||||
env:
|
env:
|
||||||
VIRTUAL_HOST: "new-new.{{ services.data_coop_website.domains|join(',') }}"
|
VIRTUAL_HOST: "{{ services.new_new_data_coop_website.domain }}"
|
||||||
LETSENCRYPT_HOST: "new-new.{{ services.data_coop_website.domains|join(',') }}"
|
LETSENCRYPT_HOST: "{{ services.new_new_data_coop_website.domain }}"
|
||||||
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
||||||
# The ssh-key is for read-only only
|
# The ssh-key is for read-only only
|
||||||
command: "--remote=git@git.data.coop:halfd/new-website.git#main --ssh-key ed25519:Ag9RekCyC2eow4P/e5crVvSTQ7dTK46WkG0wqEPVJbU= --ssh-authenticator SHA256:l9kdLkb0kJm46pOJ4tCHCtFUaqV1ImbZWMA5oje10fI"
|
command: "--remote=git@git.data.coop:halfd/new-website.git#main --ssh-key ed25519:Ag9RekCyC2eow4P/e5crVvSTQ7dTK46WkG0wqEPVJbU= --ssh-authenticator SHA256:l9kdLkb0kJm46pOJ4tCHCtFUaqV1ImbZWMA5oje10fI"
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: setup new data.coop website using hugo
|
- name: setup new data.coop website using hugo
|
||||||
docker_container:
|
docker_container:
|
||||||
name: new.data.coop_website
|
name: new.data.coop_website
|
||||||
image: docker.data.coop/data-coop-website:hugo
|
image: docker.data.coop/data-coop-website:{{ services.new_data_coop_website.version }}
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- name: external_services
|
- name: external_services
|
||||||
env:
|
env:
|
||||||
VIRTUAL_HOST : "new.{{ services.data_coop_website.domains|join(',') }}"
|
VIRTUAL_HOST : "{{ services.new_data_coop_website.domain }}"
|
||||||
LETSENCRYPT_HOST: "new.{{ services.data_coop_website.domains|join(',') }}"
|
LETSENCRYPT_HOST: "{{ services.new_data_coop_website.domain }}"
|
||||||
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
||||||
labels:
|
labels:
|
||||||
com.centurylinklabs.watchtower.enable: "true"
|
com.centurylinklabs.watchtower.enable: "true"
|
||||||
|
|
Loading…
Reference in a new issue