Skip to content

jkrue/theia-ide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theia-IDE

Install and configure Theia-IDE on supported cloud images.

Supported cloud images are:

Other distros based on Debian or RHEL might also work.

Configuration

The role comes with an (in my opinion) useful default configuration. The following variables are supported and can be used to modify the setup.

  • nvm_install_dir: /opt/nvm
  • theia_ide_user: default is the ansible user
  • theia_ide_workspace: default is the ansible users homedir
  • theia_ide_install_dir: /opt/theia-ide
  • theia_ide_bind_address: localhost
  • theia_ide_bind_port: 8080

Security

Attention ! Theia-IDE (and also this role) does not come with any kind of auth mechanism. The idea is to leave the auth part to the webserver / reverse proxy. However if you need this feature you have to take care about it by yourself.

Example playbook

Depending on your cloud image the playbook (and the hosts file) might look different.

hosts

[ubuntu1804]
192.168.0.93 ansible_python_interpreter=/usr/bin/python3 ansible_ssh_user=ubuntu

[ubuntu1604]
192.168.0.109 ansible_ssh_user=ubuntu

[debian9]
192.168.0.112 ansible_ssh_user=debian

[centos]
192.168.0.110 ansible_ssh_user=centos

site.yml

- hosts: ubuntu1804
  become: 'yes'
  gather_facts: false
  pre_tasks:
    - name: Install python2 on Ubuntu 18.04 cloud-image 
      raw: bash -c "test -e /usr/bin/python || (apt -qqy update && apt-get install -qqy python-minimal)
      register: output
      changed_when: output.stdout != ""
    - name: Gathering facts
      setup:    
  roles:
  - jkrue.theia_ide


- hosts: ["ubuntu1804","debian","centos"]
  become: 'yes'
  roles:
  - jkrue.theia_ide

Run the playbook on all hosts:

$ ansible-playbook -i hosts site.yml

About

An ansible role building and installing theia-ide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages