Decom peertube, add jenkins

This commit is contained in:
Salt 2022-01-22 09:48:47 -06:00
parent 380781b1eb
commit 5e9c137b34
2 changed files with 34 additions and 3 deletions

View File

@ -91,8 +91,8 @@
include_tasks: tasks/{{ item }} include_tasks: tasks/{{ item }}
with_items: with_items:
- app/redis.yml - app/redis.yml
- web/jenkins.yml
- web/libreddit.yml - web/libreddit.yml
- web/peertube.yml
- web/pleroma.yml - web/pleroma.yml
tags: [ always ] tags: [ always ]
roles: roles:
@ -106,13 +106,25 @@
ingress_servers: ingress_servers:
- name: cowfee.moe - name: cowfee.moe
proxy_pass: http://pleroma:4000 proxy_pass: http://pleroma:4000
- name: tube.cowfee.moe
proxy_pass: http://peertube:9000
- name: lr.cowfee.moe - name: lr.cowfee.moe
directives: directives:
- "access_log /dev/null" - "access_log /dev/null"
- "error_log /dev/null" - "error_log /dev/null"
proxy_pass: http://libreddit:8080 proxy_pass: http://libreddit:8080
- name: jenkins.desu.ltd
proxy_pass: http://jenkins:8080
locations:
- location: |
~ "^/static/[0-9a-fA-F]{8}\/(.*)$"
contents: |
rewrite "^/static/[0-9a-fA-F]{8}\/(.*)" /$1 last;
- location: "/userContent"
contents: |
root /data/jenkins/home/;
if (!-f $request_filename) {
rewrite (.*) /$1 last;
break;
}
tags: [ web, docker, ingress ] tags: [ web, docker, ingress ]
- hosts: web3.dallas.mgmt.desu.ltd - hosts: web3.dallas.mgmt.desu.ltd
module_defaults: module_defaults:

View File

@ -0,0 +1,19 @@
# vim:ft=ansible:
- name: docker deploy jenkins
docker_container:
name: jenkins
image: jenkins/jenkins:jdk11
# Uncomment me for inbound agent connections
# Otherwise, use 8080 for the web UI
# ports:
# - 50000:50000
env:
JAVA_OPTS: "-Dhudson.footerURL=https://jenkins.desu.ltd"
networks:
- name: web
aliases: [ "jenkins" ]
volumes:
- /data/jenkins/home:/var/jenkins_home
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
tags: [ docker, jenkins ]