CockpitPlugin
This plugin adds a button "Cockpit" in host details. It opens a new browser tab with Cockpit management UI for a selected host, if a host has an IP which exists in Foreman.
Installation
There are several options:
If building Foreman from source, go to bundler.d/Gemfile.local.rb, and add there: gem 'foreman_cockpit_plugin' Then run 'bundle install' and start Foreman with 'rails server'
gem install foreman_cockpit_plugin
See How_to_Install_a_Plugin for how to install Foreman plugins
Usage
TODO
Check if url of Cockpit responds, and only then display the button in Foreman.
Contributing
Fork and send a Pull Request. Thanks!
Copyright
Copyright (c) 2014 Alissa Bonas
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.