GithubHelp home page GithubHelp logo

pinodeca / tatu-dashboard Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 166 KB

OpenStack SSH As A Service (Tatu) Horizon Plugin http://openstack.org

License: Apache License 2.0

JavaScript 60.76% Python 37.95% HTML 1.29%

tatu-dashboard's Introduction

Team and repository tags

tatudashboard

Tatu Horizon UI bits

  • Free software: Apache license

Features

  • TODO

Howto

  1. Package the tatudashboard by running:

    python setup.py sdist
    

    This will create a python egg in the dist folder, which can be used to install on the horizon machine or within horizon's python virtual environment.

    -- or --

    Install directly from source by running "python setup.py --install"

    Note: On some systems python may throw an error like

    'Exception: Versioning for this project requires either an sdist tarball, or access

    to an upstream git repository'

    this seems to be a result of mismatched pbr versioning. A hacking workaround for development purposes is replacing the pbr call with a hard-coded version (e.g. '1.0.1') in tatudashboard/__init__.py.

  2. Copy panel plugin files into your Horizon config. These files can be found in tatudashboard/enabled and should be copied to /usr/share/openstack-dashboard/openstack_dashboard/local/enabled or the equivalent directory for your openstack-dashboard install.

  3. Make sure your keystone catalog contains endpoints for service type 'ssh'. If no such endpoints are found, the tatudashboard panels will not render.

  4. (Optional) Copy the tatu policy file into horizon's policy files folder, and add this config:

    'ssh': 'tatu_policy.json',
    
  5. (Optional) Within your horizon settings file(s) (either the local settings or the other settings.py), add the line below. This will make it so the record create/update screen uses a drop down of your floating ip addresses instead of a free form text field:

    TATU = { 'records_use_fips': True }
    

Test

  • How to run JS tests:

    • Install npm and nodejs=4.8.4

    $ sudo apt-get install npm $ curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - $ sudo apt-get install -y nodejs

    1. npm install (to create virtual environment and install all dependencies in package.json)
    2. npm run lint for eslint
    3. npm run test for JS unit tests

tatu-dashboard's People

Contributors

pinodeca avatar gdecandia avatar

Watchers

James Cloos 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.