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 997a31e + 2f7255a commit a89d9dd
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 14 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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## rstudio

[![Build Status](https://travis-ci.org/Oefenweb/ansible-rstudio.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-rstudio) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-rstudio-blue.svg)](https://galaxy.ansible.com/Oefenweb/rstudio/)
[![Build Status](https://travis-ci.org/Oefenweb/ansible-rstudio.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-rstudio)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-rstudio-blue.svg)](https://galaxy.ansible.com/Oefenweb/rstudio/)

Set up (the latest version of) [RStudio (IDE)](https://www.rstudio.com/products/rstudio/download/) in Debian-like systems.

Expand All @@ -11,7 +12,7 @@ Set up (the latest version of) [RStudio (IDE)](https://www.rstudio.com/products/

#### Variables

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

## Dependencies
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,4 +1,4 @@
# defaults file for rstudio
---
rstudio_version: 1.1.463
rstudio_version: 1.2.5033
rstudio_install: []
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
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

- name: install | download deb
command: >
curl -sSL
https://download1.rstudio.org/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb
curl --silent --show-error --fail --location
{{ rstudio_download_url }}
-o {{ rstudio_downloads_path }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb
args:
creates: "{{ rstudio_downloads_path }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb"
Expand Down
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
---
- name: include variables
include_vars: "{{ item }}"
with_first_found:
- "_{{ ansible_distribution_release }}.yml"
- "_{{ ansible_distribution | lower }}.yml"
- _default.yml
tags:
- configuration
- rstudio
- rstudio-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
---
rstudio_download_url: "https://download1.rstudio.org/desktop/bionic/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_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
---
rstudio_download_url: "https://download1.rstudio.org/desktop/trusty/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_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
---
rstudio_download_url: "https://download1.rstudio.org/desktop/debian9/{{ ansible_machine }}/rstudio-{{ rstudio_version }}-{{ rstudio_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
---
rstudio_download_url: "https://download1.rstudio.org/desktop/{{ ansible_distribution_release }}/{{ rstudio_machine_map[ansible_machine] }}/rstudio-{{ rstudio_version }}-{{ rstudio_machine_map[ansible_machine] }}.deb"

0 comments on commit a89d9dd

Please sign in to comment.