forked from notthebee/infra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Alpine variables, add OpenBooks
- Loading branch information
Showing
15 changed files
with
65 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
container_name: openbooks | ||
|
||
dashboard_url: "http://openbooks.box/" | ||
|
||
health_url: "http://{{ ansible_default_ipv4.address }}:3000/http://openbooks.box" | ||
|
||
homer_category: media | ||
|
||
dashboard_name: "OpenBooks" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- name: Make sure the {{ container_name }} container is created and running | ||
docker_container: | ||
name: "{{ container_name }}" | ||
image: "evanbuss/openbooks" | ||
pull: yes | ||
state: 'started' | ||
labels: | ||
"flame.type": "application" | ||
"flame.name": "{{ dashboard_name }}" | ||
"flame.url": "{{ dashboard_url }}" | ||
"flame.icon": "custom" | ||
volumes: | ||
- "{{ mergerfs_root }}/Downloads/Books:/books" | ||
env: | ||
"TZ": "{{ timezone }}" | ||
restart_policy: unless-stopped | ||
|
||
- name: Add {{ container_name }} to the SWAG network (reverse-proxy) | ||
docker_network: | ||
name: swag_network | ||
connected: | ||
- "{{ container_name }}" | ||
appends: yes | ||
when: enable_swag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
roles/containers/swag/templates/openbooks.subdomain.conf.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
server { | ||
{% include "common/internal.j2" %} | ||
{% include "common/params.j2" %} | ||
server_name {{ swag_urls['openbooks'] }}; | ||
|
||
location / { | ||
{% include "common/cors.j2" %} | ||
include /config/nginx/proxy.conf; | ||
include /config/nginx/resolver.conf; | ||
set $upstream_app openbooks; | ||
set $upstream_port 80; | ||
set $upstream_proto http; | ||
proxy_pass $upstream_proto://$upstream_app:$upstream_port; | ||
proxy_buffering off; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
roles/essential/vars/Debian.yml → roles/essential/defaults/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
--- | ||
extra_packages: | ||
- fish | ||
- iperf3 | ||
- speedtest-cli | ||
- htop | ||
- stow | ||
- git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters