saltstack-formulas / rstudio-formula

Deploy RStudio on GNU/Linux (server/desktop) and MacOS (desktop) using Salt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rstudio-formula

Formula to manage RStudio on GNU/Linux (server/desktop) and MacOS (desktop).

The R language is available in 'rlang-formula'.

Travis CI Build Status Semantic Release

Table of Contents

General notes

See the full SaltStack Formulas installation and usage instructions. If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section. If you want to use this formula, please pay attention to the FORMULA file and/or git tag, which contains the currently released version. This formula is versioned according to Semantic Versioning. See Formula Versioning Section for more details.

Contributing to this repo

Commit message formatting is significant!!

Please see How to contribute <CONTRIBUTING> for more details.

Available states

rstudio ^^^^^^^^^

Meta-state (This is a state that includes other states).

This installs from rstudio solution.

rstudio.desktop ^^^^^^^^^^^^^^^^^

This state will install rstudio desktop and configuration on MacOS and GNU/Linux.

rstudio.desktop.clean ^^^^^^^^^^^^^^^^^^^^^^^

This state will uninstall rstudio desktop and configuration.

rstudio.desktop.package ^^^^^^^^^^^^^^^^^^^^^^^^^

This state will install rstudio desktop package.

rstudio.desktop.package.clean ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This state will uninstall rstudio desktop package.

rstudio.desktop.archive ^^^^^^^^^^^^^^^^^^^^^^^^^

This state will install rstudio desktop from archive.

rstudio.desktop.archive.clean ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This state will uninstall rstudio desktop directory.

rstudio.desktop.clean ^^^^^^^^^^^^^^^^^^^^^^^

This state will uninstall rstudio desktop and configuration from MacOS and GNU/Linux.

rstudio.server ^^^^^^^^^^^^^^^^

This state will install rstudio server on GNU/Linux.

rstudio.server.package ^^^^^^^^^^^^^^^^^^^^^^^^

This state will install rstudio server package.

rstudio.server.package.clean ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This state will uninstall the rstudio server package.

rstudio.server.clean ^^^^^^^^^^^^^^^^^^^^^^

This state will uninstall rstudio server from GNU/Linux.

rstudio.clean ^^^^^^^^^^^^^^^

Meta-state (This is a state that includes other states).

This removes the rstudio solution on MacOS and GNU/Linux.

Testing

Linux testing is done with kitchen-salt.

Requirements

  • Ruby
  • Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]

Where [platform] is the platform name defined in kitchen.yml, e.g. debian-9-2019-2-py3.

bin/kitchen converge

Creates the docker instance and runs the rstudio main state, ready for testing.

bin/kitchen verify

Runs the inspec tests on the actual instance.

bin/kitchen destroy

Removes the docker instance.

bin/kitchen test

Runs all of the stages above in one go: i.e. destroy + converge + verify + destroy.

bin/kitchen login

Gives you SSH access to the instance for manual testing.

About

Deploy RStudio on GNU/Linux (server/desktop) and MacOS (desktop) using Salt

License:Other


Languages

Language:SaltStack 47.1%Language:Jinja 27.5%Language:JavaScript 15.6%Language:Ruby 6.5%Language:Shell 3.4%