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:
Andrea Dell'Amico 2016-05-05 19:33:37 +02:00
parent 41a279eff2
commit 6fd104026f
2 changed files with 25 additions and 0 deletions

13
opencpu/defaults/main.yml Normal file
View File

@ -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

12
opencpu/tasks/main.yml Normal file
View File

@ -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