-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create an "apply_for" service with "vars += config" #210
Comments
Hey @MarcusCaepio, the service_apply module has the argument
Is this what you're looking for? |
Hey @rndmh3ro |
Can you provide us with some example code that's not working? |
Given the example in my first post, I tried:
all result in errors |
Okay, can you please create a service_apply object in the director-frontend? Then show via the API what's stored in the director. You can either do this via curl (or similar):
or with Ansible:
|
There's the point: The director-frontend currently does not allow to create such an "apply-for" service.
But for the host dictionaries, it is possible with your module and I can easily create them ( although I just notified that these dictionaries are not shown in the dirtector-frontend too.... ).
So I hoped, I can create services like this too :) |
If you find a way to create this object via the director (frontend or API), then please share it with us, so we can see if and how it is possible to do it with Ansible. |
I'll try my best. But as I am currently testing on a docker-compose playground, I am struggling on this issue ^^ |
Your struggle is my struggle. :) |
Hi all,
i am freshly looking at this module which looks very promising. I can do things via the director API, which I cannot do in the director WebUI, e.g. defining a dictionary in a host object. So first of all, thanks a lot to all contributors!
I am currently trying to create a service apply rule, which is written in DSL like this:
But the apply_for parameter does not create the "tcp =>" and the "vars += config" part ( or I am doing it wrong).
The ansible role of icinga supports it in their module ( https://github.com/Icinga/ansible-collection-icinga/blob/main/doc/role-icinga2/objects.md#service-apply-for ). Anyway, there are using the DSL ( I guess) and I want to have everythinbg visible and maybe editable in the director beside of ansible, as I don't want to mix places for configs. Could anybody give me a hand here?
Thanks and cheers,
Marcus
The text was updated successfully, but these errors were encountered: