Skip to content

Commit

Permalink
Merge pull request #9 from Oefenweb/ANSPB-394-upgrade-r-and-r-studio-…
Browse files Browse the repository at this point in the history
…to-rece

Upgrade R-studio to recent version
  • Loading branch information
tersmitten authored Feb 27, 2020
2 parents 328f059 + 59ffbae commit 3c54b4c
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sudo: required
dist: trusty
dist: xenial

language: python
python: "2.7"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Set up (the latest version of) [RStudio Server](https://www.rstudio.com/products

#### Variables

* `rstudio_server_version` [default: `1.1.463`]: Version to install
* `rstudio_server_version` [default: `1.2.5033`]: Version to install
* `rstudio_server_install` [default: `[]`]: Additional packages to install (e.g. `r-base`)

* `rstudio_server_www_port` [default: `8787`]: The port you want RStudio to listen on
Expand Down
14 changes: 7 additions & 7 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
role = File.basename(File.expand_path(File.dirname(__FILE__)))

boxes = [
{
:name => "ubuntu-1204",
:box => "bento/ubuntu-12.04",
:ip => '10.0.0.11',
:cpu => "50",
:ram => "256"
},
{
:name => "ubuntu-1404",
:box => "bento/ubuntu-14.04",
Expand Down Expand Up @@ -46,6 +39,13 @@ boxes = [
:cpu => "50",
:ram => "256"
},
{
:name => "debian-10",
:box => "bento/debian-10",
:ip => '10.0.0.18',
:cpu => "50",
:ram => "256"
},
]

Vagrant.configure("2") do |config|
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# defaults file for rstudio-server
---
rstudio_server_version: 1.1.463
rstudio_server_version: 1.2.5033
rstudio_server_install: []

rstudio_server_www_port: 8787
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ galaxy_info:
platforms:
- name: Ubuntu
versions:
- precise
- trusty
- xenial
- bionic
- name: Debian
versions:
- jessie
- stretch
- buster
galaxy_tags:
- development
- system
Expand Down
10 changes: 5 additions & 5 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@

- name: install | download deb
command: >
curl -sSL
https://download2.rstudio.org/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb
-o {{ rstudio_server_downloads_path }}/rstudio-server_{{ rstudio_server_version }}_{{ rstudio_server_machine_map[ansible_machine] }}.deb
curl --silent --show-error --fail --location
{{ rstudio_server_download_url }}
-o {{ rstudio_server_downloads_path }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb
args:
creates: "{{ rstudio_server_downloads_path }}/rstudio-server_{{ rstudio_server_version }}_{{ rstudio_server_machine_map[ansible_machine] }}.deb"
creates: "{{ rstudio_server_downloads_path }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb"
warn: false
tags:
- rstudio-server-install-download
- rstudio-server-install-download-deb

- name: install | install deb
apt:
deb: "{{ rstudio_server_downloads_path }}/rstudio-server_{{ rstudio_server_version }}_{{ rstudio_server_machine_map[ansible_machine] }}.deb"
deb: "{{ rstudio_server_downloads_path }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb"
tags:
- rstudio-server-install-install
- rstudio-server-install-install-deb
11 changes: 11 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# tasks file for rstudio-server
---
- name: include variables
include_vars: "{{ item }}"
with_first_found:
- "_{{ ansible_distribution_release }}.yml"
- "_{{ ansible_distribution | lower }}.yml"
- _default.yml
tags:
- configuration
- rstudio-server
- rstudio-server-include-variables

- include: install.yml
tags:
- configuration
Expand Down
3 changes: 3 additions & 0 deletions vars/_buster.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vars file for rstudio-server
---
rstudio_server_download_url: "https://download2.rstudio.org/server/bionic/{{ rstudio_server_machine_map[ansible_machine] }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb"
3 changes: 3 additions & 0 deletions vars/_jessie.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vars file for rstudio-server
---
rstudio_server_download_url: "https://download2.rstudio.org/server/trusty/{{ rstudio_server_machine_map[ansible_machine] }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb"
3 changes: 3 additions & 0 deletions vars/_stretch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vars file for rstudio-server
---
rstudio_server_download_url: "https://download2.rstudio.org/server/debian9/{{ ansible_machine }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb"
3 changes: 3 additions & 0 deletions vars/_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vars file for rstudio-server
---
rstudio_server_download_url: "https://download2.rstudio.org/server/{{ ansible_distribution_release }}/{{ rstudio_server_machine_map[ansible_machine] }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb"
3 changes: 3 additions & 0 deletions vars/_xenial.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# vars file for rstudio-server
---
rstudio_server_download_url: "https://download2.rstudio.org/server/trusty/{{ rstudio_server_machine_map[ansible_machine] }}/rstudio-server-{{ rstudio_server_version }}-{{ rstudio_server_machine_map[ansible_machine] }}.deb"

0 comments on commit 3c54b4c

Please sign in to comment.