Hi,
It seems in 2.4 (perhaps earlier as well) the automation user is no longer created. I’ve used its secret in Ansible to use the Rest API to perform configuration.
Are there any options to create a user with API permissions? cmkadmin is not an API user and I guess agent_registration cant use all functions of the rest api?
can I do that from shell? The site is being setup with Ansible to using the GUI is not possible.
I’m. just thinking of creating it manually by creating a folder in the web folder with an .secret but does not feel so future proof
I also looked at the Checkmk Ansible and it seems it also relies on automation_secret that is no longer available in 2.4
That role uses the RestAPI and /domain-types/user_config/collections/all" and needs the secret for the automation user, so catch-22
I ended up doing what I wrote in my previous post, just rsync some files from Ansible files from an existing automation user in another site and that seems to work fine. Minimal effort.
I guess I could do some fancy HTTP POST to the web ui, using the cmkadmin user but seems complicated.
I hope Checkmk will add the possibility to create an API user using the cmk command or something else
I’ll look into this from a collection perspective. We are almost done finalizing 2.4.0 support, but I did not actively consider this use case. I’ll get back to y’all.
using the “user_config” that @Maximilian suggested - didnt know you could use the rest api with a user + pass so will try this. Maybe that can help you @robin.gierse as well?