Cockpit Plugin Tabs

Hello Foreman-Cockpit users!

We have a server which have a customized Cockpit configuration running. The following Tabs are visible on the customized Cockpit page of this Server:
Configuration
System
Networking
Software Updates
Supervision
Logs

On our Foreman we have installed: tfm-rubygem-foreman_cockpit-2.0.3-3.fm1_18.el7.noarch

If I click on the Cockpit Plugin Icon i will see the following Cockpit Tabs from the Server which uses a customized Cockpit Dashboard, but it shoes me only the Default Cockpit menus.

System
Terminal
Journal
Services
Networking
Containers
Storage
Accounts

You can see that this differs. Do you know which configuration Needs to be modified to only see my customized Cockpit menus in the Cockpit plugin Icon for selection?

Thanks
Br
Michael

Hi,

Just additional question…

Could it be that it has to be modified in this file?

[root@katello ~]# cat /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_cockpit-2.0.3/lib/foreman_cockpit.rb
require 'foreman_cockpit/engine'

# Module required to start the Rails engine
# We store all cockpit actions in a constant here to use them later
module ForemanCockpit
  COCKPIT_ACTIONS = %w(system terminal journal
                       services networking containers
                       storage accounts)

  COCKPIT_SUBURL = { :system => 'system/index.html',
                     :terminal => 'system/terminal.html',
                     :journal => 'system/logs.html',
                     :services => 'system/services.html',
                     :networking => 'network/index.html',
                     :containers => 'docker/index.html',
                     :storage => 'storage/index.html',
                     :accounts => 'users/index.html' }
end

Br
Michael

It is possible, why don’t you go ahead and make a change, file a PR and maintainers of the plugin will review the changes?

There are plans to vastly improve this nice plugin, looking forward your contribution! Thanks.

Hi,

It was working. I was able to modify the file and i get the subtabs in the Icon Cockpit as needed.

cat foreman_cockpit.rb
require 'foreman_cockpit/engine'

# Module required to start the Rails engine
# We store all cockpit actions in a constant here to use them later
module ForemanCockpit
  COCKPIT_ACTIONS = %w(pet system network updates supervision logs)

  COCKPIT_SUBURL = { :pet => 'keg/index.html',
                     :system => 'system/index.html',
                     :network => 'network/index.html',
                     :updates => 'pet/updates.html',
                     :supervision => 'pet/supervision.html',
                     :logs => 'system/logs.html' }
end

I’ve corrected the formatting once again.

Please file a PR if you think this is useful for others.