Skip to content
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

Serviceset CLI preview is incorrect #2204

Closed
lazyfrosch opened this issue Oct 22, 2020 · 6 comments
Closed

Serviceset CLI preview is incorrect #2204

lazyfrosch opened this issue Oct 22, 2020 · 6 comments

Comments

@lazyfrosch
Copy link
Contributor

I think the CLI for service sets never has been implemented correctly in the first place.

Also see #1760

Example

# icingacli director serviceset show Webserver
template ServiceSet "Webserver" {
    assign where "webserver" in host.vars.system_roles
}
@Tqnsls
Copy link
Contributor

Tqnsls commented Oct 22, 2020

I'd like to add that as far as I can check the editing of a service in a serviceset (like changing vars of the service) over "icingacli director [service|serviceset] set [...]" iss not working properly, too.
Correct me if I'm wrong.

@lazyfrosch
Copy link
Contributor Author

I think set should work, but you are only able to change stuff on the actual serviceset. Or what are you trying?

@Tqnsls
Copy link
Contributor

Tqnsls commented Oct 27, 2020

I would for example like to add/remove/rename the included services in the service set, vars of the services in the serviceset.
The stuff that we talked about in the director workshop :)

for example icingacli director serviceset set "serviceset1" "service_in_serviceset1" --vars.notification_sla="never" does add the custom var "notification_sla" with value "never" to all services in the serviceset and not only to the service "service_in_serviceset1".
so at least the documentation on how to change stuff is lacking some information.

@dgoetz
Copy link
Contributor

dgoetz commented Jul 16, 2021

I would expect the CLI to handle services in a serviceset to be like it is for services at a host.

icingacli director service set SERVICE --service_set SERVICESET

Not sure if service-set, serviceset or service_set is the best option, but I think the last one fits best how other attributes are used.

@dbu1986
Copy link

dbu1986 commented Sep 22, 2021

The same feature request applies to Director's REST API, where it is currently not possible to list all Services in a ServiceSet, e.g. like this:

curl -H 'Accept: application/json' -u 'USER:PASSWORD' 'http://localhost/icingaweb2/director/serviceset/services?name=SS_Test'

@Thomas-Gelf
Copy link
Contributor

The initial request will be fixed with #2550, for related issues/feature requests please open dedicated issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants