library/roles/opencpu: Role that installs opencpu.
d4science-ghn-cluster: Install opencpu on opencpu-d4s.d4science.org. Create a reverse proxy rule on access.d4science.org.
This commit is contained in:
parent
41a279eff2
commit
6fd104026f
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
# https://www.opencpu.org/download.html
|
||||||
|
# It installs a local apache instance
|
||||||
|
opencpu_install: True
|
||||||
|
opencpu_version: 1.5
|
||||||
|
opencpu_repo: 'ppa:opencpu/opencpu-{{ opencpu_version }}'
|
||||||
|
opencpu_pkg_state: latest
|
||||||
|
opencpu_pkgs:
|
||||||
|
- opencpu
|
||||||
|
|
||||||
|
opencpu_proxy_port: 8004
|
||||||
|
opencpu_context: /ocpu
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
- block:
|
||||||
|
|
||||||
|
- name: Install the opencpu repository
|
||||||
|
apt_repository: repo={{ opencpu_repo }} update_cache=yes
|
||||||
|
|
||||||
|
- name: Install the opencpu package
|
||||||
|
apt: pkg={{ item }} state={{ opencpu_pkg_state }}
|
||||||
|
with_items: '{{ opencpu_pkgs }}'
|
||||||
|
|
||||||
|
tags: opencpu
|
||||||
|
when: opencpu_install
|
Loading…
Reference in New Issue