Skip to content

binoymvas/contribution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Horizon plugins consist a bunch of files. openstack_dashboard dir 'mirrors' corresponding directory structure of Horizon installation.

Directories under openstack_dashboard/dashboards are actual dashboards implementations (top level main menu items and its views).

openstack_dashboard/dashboards/inventory directory:

  1. dashboard.py - Inventory dashboard declaration module.
  2. chef and nodes - Inventory dashboard views modules for Inventory/Chef and Inventory/Nodes.
  3. templates/* - Inventory views templates.
  4. static/* - support files and libs.

openstack_dashboard/enabled direcoty contains dashboards and their views 'triggers` -- files for enabling plugins:

  1. _5000_inventory.py - Inventory dashboard 'trigger'.
  2. _5010_inventory_nodes.py - Inventory/Nodes view 'trigger'.
  3. _5020_inventory_chef.py - Inventory/Chef view 'trigger'.

Files should be respectively placed under OpenStack Horizon root openstack_dashboards directory.

openstack_dashboard/local/local_settings.py must provide following configuration options:

Inventory/Chef options:

  • INVENTORY_CHEF_URL
  • INVENTORY_CHEF_KEY
  • INVENTORY_CHEF_USER

Inventory/Nodes options:

  • INVENTORY_MAAS_KEY
  • INVENTORY_MAAS_URL

Installation

  1. $ pip install PyChef
  2. $ git clone git@github.com:nephoscale/horizon-plugins.git
  3. $ cd horizon-plugins
  4. `$ sudo cp -R openstack_dashboard/dashboards/* ${HORIZON_ROOT}/openstack_dashboard/dashboards/``
  5. $ sudo cp -R openstack_dashboard/enabled/* ${HORIZON_ROOT}/openstack_dashboard/enabled/
  6. Edit ${HORIZON_ROOT}/openstack_dashboard/local/local_settings.py and add/edit required config options.

Note:

If you see OSError: libcrypto.so: cannot open shared object file: No such file or directory in apache logs, just ln -s libcrypto.so.1.0.0 into system lib directory and restart apache. For example, on Ubuntu 14.04 x64 do:

$ sudo ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so
$ sudo service apache2 restart 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •