Skip to content

seapath/cockpit-cluster-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

cockpit-cluster-dashboard

This is a Cockpit plugin displaying general information about a SEAPATH cluster.

Information displayed:

  • Pacemaker node status
  • Pacemaker cluster status
  • Pacemaker resources status (including VMs)
  • Ceph status (OSD, MON, MGR, Pool RBD)

This plugin requires administrative access to display all the information.

Getting and building the source

This React project uses npm as package manager.

The first build of the plugin requires to run the following command that will install the dependencies defined in the package.json. It will also build the sources on the directory /dist.

npm run init

To rebuild the project, the script build.js can be used using:

npm run build

The build files and the dependencies can be removed using:

npm run clean

Installing

Yocto recipe

The plugin is packaged on SEAPATH Yocto and available by default on the test image.

Ansible

To install this Cockpit plugin, the build sources located in the /dist directory must be copied to /usr/share/cockpit/cockpit-cluster-dashboard. The installation can be verified by looking at the list of cockpit packages given by cockpit-bridge --packages.

The following ansible playbook can also be used:

---
- name: cockpit plugins installation
  hosts:
    - cluster_machines
  become: true
  vars:
    cockpit_plugin_path: "/usr/share/cockpit"
  tasks:
    - name: Check if cockpit is installed
      command: which cockpit-bridge
      register: cockpit_status

    - name: Install plugin
      ansible.builtin.copy:
        src: dist_directory/
        dest: "{{ cockpit_plugin_path }}/cockpit-cluster-dashboard"
        mode: '644'
        owner: root
      when: cockpit_status.rc == 0

About

A Cluster dashborad cockpit plugin for SEAPATH

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published