run-admin-script
Run an admin script against a deployed system, executed from the admin node.
Syntax
rumi cloud hetzner run-admin-script \
--api-key <token> \
--network <network> \
--key-pair <keypair> \
--system <system> \
--script <script> \
[options]Options
--api-key
-k
The Hetzner Cloud project API token (or set HCLOUD_TOKEN)
Required
--region
-r
The Hetzner location the network is in
fsn1
--network
-n
The name of the network
Required
--key-pair
-K
The SSH key pair to reach the bastion
Required
--system
The system to run the admin script against
Required
--script
The admin script to run
Required
--param
The admin script parameters
none
Example
Troubleshooting
Script execution failed [exit code '1'], and the admin's log shows Permission denied (publickey) for a service instance. The admin does not have the network's SSH key, which it needs to reach the service instances. An admin receives it at launch-admin; admins launched before that was added did not. Copy it over from the bastion:
Log in to the bastion with the key pair you launched with. Its public IP is printed by provision and launch-bastion (
Bastion ready at <ip>), and shown for the<network>-rumi-bastionserver in the Hetzner Cloud Console.On the bastion, copy its key to the admin:
Then run the script again.
See Also
Last updated

