Git Product home page Git Product logo

ansible-openshift-eclipse-che's Introduction

Ansible Role: Eclipse Che on OpenShift Build Status

Ansible Role for deploying Eclipse Che web-based IDE in single-user mode on OpenShift.

Role Variables

Variable Default Value Required Description
route_suffix 127.0.0.1.nip.io Required Apps route suffix in the OpenShift cluster
che_version 6.7.1 Optional Eclipse Che image version as available on Docker Hub
project_name eclipse-che Optional OpenShift project name for the Gogs container
project_display_name Eclipse Che IDE Optional OpenShift project display name for the Gogs container
project_desc Eclipse Che IDE Optional OpenShift project description for the Gogs container
project_annotations - Optional OpenShift project annotations for the Gogs container
project_admin - Optional If set, the user to be assigned as project admin
multi_user false Optional Multi-user or single-user mode
multi_user_che_tls false Optional For multi-user mode, enable TLS
multi_user_che_protocol http Optional For multi-user mode, http or https protocol
multi_user_che_ws_protocol ws Optional For multi-user mode, ws or wss protocol
keycloak_admin_user admin Optional For multi-user mode, Keycloak admin user to be created
keycloak_admin_pwd admin Optional For multi-user mode, Keycloak admin password to be created
che_generate_user_count 0 Optional For multi-user mode, number of users to be pre-created in che realm
che_generate_user_format user%d Optional For multi-user mode, format for the usernames for the users to be pre-created in che realm
che_generate_user_password password Optional For multi-user mode, password for the users to be pre-created in che realm
install_java_oc_stack false Optional Install a Java stack with Maven, OpenShift CLI and Ansible
install_custom_stacks_json - Optional Install custom stacks. The value is a list of stack jsons
install_factory_template_filename - Optional Install custom factory for every user. It loads the value processing it as a template
openshift_cli oc Optional OpenShift CLI command and arguments (e.g. auth)

OpenShift Version Compatibility

When listing this role in requirements.yml, make sure to pin the version of the role via one of the tags:

- src: siamaksade.openshift_che
  version: 1.2.0

The following tables shows the version combinations that are tested and verified:

Role Version OpenShift Version
1.0.x 3.9.x
1.1.x 3.10.x
1.2.x 3.11.x

Note that if a version combination is not listed above, it does NOT mean that it won't work on that version. The above table is merely the combinations that we have verified and tested.

Example Playbook

name: Example Playbook
hosts: localhost
tasks:
- import_role:
    name: siamaksade.openshift_che
  vars:
    project_name: "ide"
    che_version: "latest"
    install_custom_stacks_json: [ "{{ lookup('file','files/custom-stack.json') }}" ]
    install_factory_template_filename: "che-factory.json.j2"

NOTE: In the previous example, the factory json template will be processed in the calling playbook, when loaded.

Test locally

If you want to test this role locally:

ansible-playbook tests/test.yml \
        -e route_suffix=apps.example.com \
        -e multi_user=true \
        -e che_generate_user_count=2 \
        -e install_factory_template_filename="che-factory.json.j2.example"

NOTE: Add as many parameter variations from the defaults as you want

ansible-openshift-eclipse-che's People

Contributors

jorgemoralespou avatar siamaksade avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.