Roles to setup Cockpit on RHEL 8 beta (this one works on RHEL 7 as well!). Inventory consists of 3 hosts across 2 groups, master
and nodes
.
Hosts must be registered first using subscription-manager
. cockpit.yml
calls roles for common tasks and master which adds hosts in nodes
group to cockpit-dashboard
on the master
node using a template and writes their ssh pubkeys to a known_hosts file for Cockpit.
This automates adding all hosts to a single Cockpit management instance!
The firewall rule for tcp/9090 only needs to be added on the master where cockpit-dashboard
is installed. Metrics and management of the other nodes are done through ssh so cockpit.socket doesn't need to be enabled/started on the nodes group.