Switch Guacamole image, add docs

This commit is contained in:
David Stephens 2020-01-25 00:24:00 +00:00
parent bb3e764eed
commit 151200e3ed
3 changed files with 41 additions and 36 deletions

View file

@ -0,0 +1,13 @@
# Jellyfin
Homepage: [hhttps://guacamole.apache.org/](https://guacamole.apache.org/)
Apache Guacamole is a clientless remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH.
## Usage
Set `guacamole_enabled: true` in your `inventories/<your_inventory>/nas.yml` file.
## Specific Configuration
The default username and password is `guacadmin`. Change it!

View file

@ -592,8 +592,6 @@ nginx_port_https: "443"
### Guacamole
###
guacamole_available_externally: "false"
guacamole_docker_image: guacamole/guacamole:0.9.14
guacamole_guacd_docker_image: guacamole/guacd:0.9.14
guacamole_data_directory: "{{ docker_home }}/guacamole"
guacamole_port: "8090"

View file

@ -4,55 +4,49 @@
path: "{{ item }}"
state: directory
with_items:
- "{{ guacamole_data_directory }}/mysql"
- "{{ guacamole_data_directory }}/config"
- name: Copy Guacamole database init script
copy:
src: files/guacamole/initdb-0.9.14.sql
dest: "{{ guacamole_data_directory }}/initdb-0.9.14.sql"
- name: Guacamole Mysql Docker Container
- name: Remove Old Guacamole Mysql Docker Container
docker_container:
name: guacamole-mysql
image: mysql:5.7
pull: true
volumes:
- "{{ guacamole_data_directory }}/mysql:/var/lib/mysql:rw"
- "{{ guacamole_data_directory }}/initdb-0.9.14.sql:/docker-entrypoint-initdb.d/initdb-0.9.14.sql:ro"
env:
MYSQL_DATABASE: "guacamole"
MYSQL_USER: "guacamole-user"
MYSQL_PASSWORD: "guacamole-pass"
MYSQL_ROOT_PASSWORD: "guacamole-secret"
restart_policy: unless-stopped
memory: 1g
state: absent
keep_volumes: true
- name: Guacamole guacd Container
- name: Remove Old Guacamole guacd Docker Container
docker_container:
name: guacamole-guacd
image: "{{ guacamole_guacd_docker_image }}"
pull: true
restart_policy: unless-stopped
memory: 1g
state: absent
keep_volumes: true
- name: Guacamole guacamole Container
- name: Remove old Guacamole directories
file:
path: "{{ item }}"
state: absent
with_items:
- "{{ guacamole_data_directory }}/mysql"
# docker run -v /home/david/.guac:/config:rw -p 8080:8080 oznu/guacamole
- name: Guacamole Container
docker_container:
name: guacamole
image: "{{ guacamole_docker_image }}"
image: "oznu/guacamole"
pull: true
links:
- guacamole-mysql:mysql
- guacamole-guacd:guacd
volumes:
- "{{ guacamole_data_directory }}/config:/config:rw"
ports:
- "{{ guacamole_port }}:8080"
env:
MYSQL_DATABASE: "guacamole"
MYSQL_USER: "guacamole-user"
MYSQL_PASSWORD: "guacamole-pass"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "guacamole"
traefik.frontend.rule: "Host:guacamole.{{ ansible_nas_domain }}"
traefik.enable: "{{ guacamole_available_externally }}"
traefik.port: "8080"
traefik.port: "8080"
- name: Restart Guacamole Container
docker_container:
name: guacamole
image: "oznu/guacamole"
restart: true