Connect to the Karaf shell with user admin and password admin
ssh -p 8201 admin@localhost
Configure REST endpoints, ActiveMQ and remote location name
config:edit org.opennms.minion.controller(1)
config:property-set location my-location(2)
config:property-set http-url http://core-instance-ip:8980/opennms(3)
config:property-set broker-url failover:tcp://core-instance-ip:61616(4)
config:update(5)
1 Edit the minion configuration
2 Replace my-location with a location name representing your remote location the Minion is running
3 Replace the REST endpoint URL which goes to your Horizon Core instance
4 Replace the Broker URL which goes to your Horizon Core instance. If you have ActiveMQ with SSL running replace tcp with ssl.
5 Save the configuration
By default the Minion generates a unique id. If you want to provide a human readable Minion identifier yourself with config:property-set id my-minion-name
Configure the credentials and exit Karaf shell
opennms:scv-set opennms.http my-minion-user my-minion-password(1)
opennms:scv-set opennms.broker my-minion-user my-minion-password(2)
1 Set the credentials for the REST endpoint created in your Horizon Core instance
2 Set the credentials for the ActiveMQ message broker
The credentials are encrypted on disk in etc/scv.jce.

Exit the Karaf Shell with Ctrl+d

Restart the Minion to apply the configuration
sudo systemctl restart minion
Verify the configuration using the health check in the Karaf Shell
ssh -p 8201 admin@localhost
Run the health check to verify connectivity
opennms:health-check
The result should show Success for each component
Connecting to OpenNMS ReST API   [ Success  ]
Verifying installed bundles      [ Success  ]
Connecting to JMS Broker         [ Success  ]
=> Everything is awesome