forked from ISTI-ansible-roles/ansible-roles
library/roles/shinyproxy/defaults/main.yml: New version. Add more configuration options, and the ability to list a number of additional apps.
This commit is contained in:
parent
167cb17a88
commit
ce2c6e484f
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
shinyproxy_install: False
|
shinyproxy_install: False
|
||||||
shinyproxy_version: 0.8.6
|
shinyproxy_version: 0.9.2
|
||||||
shinyproxy_file_name: 'shinyproxy-{{ shinyproxy_version }}.jar'
|
shinyproxy_file_name: 'shinyproxy-{{ shinyproxy_version }}.jar'
|
||||||
shinyproxy_url: 'https://www.shinyproxy.io/downloads/{{ shinyproxy_file_name }}'
|
shinyproxy_url: 'https://www.shinyproxy.io/downloads/{{ shinyproxy_file_name }}'
|
||||||
shinyproxy_app_name: shinyproxy.jar
|
shinyproxy_app_name: shinyproxy.jar
|
||||||
|
@ -9,6 +9,10 @@ shinyproxy_install_dir: /opt/shinyproxy
|
||||||
shinyproxy_http_port: 8080
|
shinyproxy_http_port: 8080
|
||||||
# For logrotate. In days
|
# For logrotate. In days
|
||||||
shinyproxy_log_retention: 10
|
shinyproxy_log_retention: 10
|
||||||
|
shinyproxy_default_apps: True
|
||||||
|
shinyproxy_docker_url: 'http://localhost:2375/'
|
||||||
|
shinyproxy_docker_host: 127.0.0.1
|
||||||
|
shinyproxy_docker_port_range_start: 20000
|
||||||
|
|
||||||
shinyproxy_app_title: 'Open Analytics Shiny Proxy'
|
shinyproxy_app_title: 'Open Analytics Shiny Proxy'
|
||||||
shinyproxy_logo_url: 'http://www.openanalytics.eu/sites/www.openanalytics.eu/themes/oa/logo.png'
|
shinyproxy_logo_url: 'http://www.openanalytics.eu/sites/www.openanalytics.eu/themes/oa/logo.png'
|
||||||
|
|
|
@ -5,7 +5,7 @@ shiny:
|
||||||
landing-page: /
|
landing-page: /
|
||||||
heartbeat-rate: 10000
|
heartbeat-rate: 10000
|
||||||
heartbeat-timeout: 60000
|
heartbeat-timeout: 60000
|
||||||
port: 8080
|
port: {{ shinyproxy_http_port }}
|
||||||
authentication: {{ shinyproxy_authentication }}
|
authentication: {{ shinyproxy_authentication }}
|
||||||
admin-groups: {{ shinyproxy_admin_group }}
|
admin-groups: {{ shinyproxy_admin_group }}
|
||||||
{% if shinyproxy_ldap_enabled %}
|
{% if shinyproxy_ldap_enabled %}
|
||||||
|
@ -29,10 +29,11 @@ shiny:
|
||||||
# Docker configuration
|
# Docker configuration
|
||||||
docker:
|
docker:
|
||||||
cert-path: /home/none
|
cert-path: /home/none
|
||||||
url: http://localhost:2375
|
url: {{ shinyproxy_docker_url }}
|
||||||
host: 127.0.0.1
|
host: {{ shinyproxy_docker_host }}
|
||||||
port-range-start: 20000
|
port-range-start: {{ shinyproxy_docker_port_range_start }}
|
||||||
apps:
|
apps:
|
||||||
|
{% if shinyproxy_default_apps %}
|
||||||
- name: 01_hello
|
- name: 01_hello
|
||||||
display-name: Hello Application
|
display-name: Hello Application
|
||||||
description: Application which demonstrates the basics of a Shiny app
|
description: Application which demonstrates the basics of a Shiny app
|
||||||
|
@ -43,6 +44,16 @@ shiny:
|
||||||
docker-cmd: ["R", "-e shinyproxy::run_06_tabsets()"]
|
docker-cmd: ["R", "-e shinyproxy::run_06_tabsets()"]
|
||||||
docker-image: openanalytics/shinyproxy-demo
|
docker-image: openanalytics/shinyproxy-demo
|
||||||
groups: scientists
|
groups: scientists
|
||||||
|
{% endif %}
|
||||||
|
{% if shinyproxy_apps is defined %}
|
||||||
|
{% for app in shinyproxy_apps %}
|
||||||
|
- name: {{ app.name }}
|
||||||
|
display-name: {{ app.display_name }}
|
||||||
|
description: {{ app.description }}
|
||||||
|
docker-cmd: ["R", "-e {{ app.cmd }}"]
|
||||||
|
docker-image: {{ app.docker_image }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
security:
|
security:
|
||||||
basic:
|
basic:
|
||||||
|
|
Loading…
Reference in New Issue