Commit Graph

79 Commits

Author SHA1 Message Date
Thomas Gelf 3e98d828e5 OverriddenVarsResolver: externalize lookup logic
This now also takes into account properties overridden on intermediate
Host templates
2019-12-04 12:36:47 +01:00
Thomas Gelf 606d71501e Use ipl, try to keep dipl compatibility 2019-09-11 23:02:39 +02:00
Thomas Gelf e1565c9990 Revert "Merge branch 'next'"
This reverts commit f45f925e5e, reversing
changes made to 90c07943e4.

This was too early, need to check for incubator
2019-09-06 09:54:03 +02:00
Thomas Gelf 17f8ef1dd0 Use ipl, try to keep dipl compatibility 2019-09-06 09:48:11 +02:00
Thomas Gelf 4413a44d65 IcingaServiceForm: allow to set check_command...
...for Service Apply rules, given that admin permissions have been granted.
This also fixes the problem that inherited command names haven't been shown.

fixes #1899
2019-07-08 16:27:44 +02:00
Thomas Gelf 1953a7b0f7 Forms: explain "contains", mention wildcards 2019-07-08 14:12:30 +02:00
Markus Frosch b8809af2af
Merge pull request #1433 from dgoetz/servicegroup-set
Add Servicegroups directly to Services
2018-09-26 09:25:46 +02:00
Thomas Gelf 49d9ed7ecd IcingaServiceForm: fix blacklist service from set
fixes #1519
2018-08-13 09:52:07 +02:00
Thomas Gelf 85ea19d12e IcingaServiceForm: fix phpcs complaint 2018-06-05 11:37:02 +02:00
Thomas Gelf 6790ff1c30 IcingaServiceForm: show a warning and no...
...override details for blacklisted services
2018-06-05 11:30:18 +02:00
Thomas Gelf bd5ad64f02 IcingaServiceForm: fix "blacklist" for overrides
...when defined being such via Sync rule
2018-06-05 11:05:43 +02:00
Thomas Gelf 2045f98016 IcingaServiceForm: allow to define apply rules...
...based on templates.

fixes #1359
2018-05-28 15:50:18 +02:00
Thomas Gelf 4df11f8bd7 IcingaServiceForm: fix clear overrides on blacklist 2018-05-25 19:11:50 +02:00
Thomas Gelf 8073128d0e IcingaServiceForm: add blacklist/delete button...
...and a lot of related boilerplate to get the "blacklist" feature working
2018-05-25 19:11:50 +02:00
Dirk Goetz 5201221bf6 add Servicegroups to Services in Set and at Host templates
refs #619
2018-03-19 08:56:22 +00:00
Thomas Gelf 344e6a8e59 IcingaServiceForm: same buttons for any use case
fixes #1393
2018-02-20 14:10:21 +01:00
Thomas Gelf 550959d858 NamePattern: allow to combine multiple patterns
fixes #1331
2017-12-12 15:49:22 +01:00
Thomas Gelf 0e10545175 ServiceSet: allow controlled/restricted access
fixes #1235
2017-10-12 16:54:31 +02:00
Thomas Gelf d1e116a5a1 ipl: rename to dipl
fixes #1217
2017-10-09 15:23:27 +02:00
Thomas Gelf 45eaf0e987 IcingaServiceForm: add NamePattern validator 2017-10-02 08:45:32 +02:00
Thomas Gelf d83cf594cc IcingaServiceForm: provide Choices also for...
...services on Hosts, form field has been forgotten.

fixes #1171
2017-09-12 10:00:47 +02:00
Thomas Gelf da2968a6d3 ServiceForm: add more helpful links to services...
...on hosts
2017-08-26 14:13:13 +02:00
Thomas Gelf 75fb983622 Forms: transform addHtmlHint into ipl-aware code 2017-08-25 18:12:39 +02:00
Thomas Gelf b2736e1776 ObjectForms: fix weird issues with 'add' forms 2017-07-28 18:46:11 +02:00
Thomas Gelf fadbde5e9b HostForm: take over logic from base form, clean up 2017-07-25 10:18:07 +02:00
Thomas Gelf 9e044c558e IcingaServiceForm: allow to use choices 2017-07-14 13:21:42 +02:00
Thomas Gelf 4860082d4b host/services: show applied service sets
fixes #735
2017-02-17 08:44:08 +01:00
Thomas Gelf 5af80479a5 ServiceForm: support all new kinds of overrides 2017-01-18 15:17:17 +01:00
Thomas Gelf b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf 457fee77a4 IcingaServiceForm: support services from sets...
...on hosts for variable overrides
2017-01-13 16:14:28 +01:00
Thomas Gelf 886ba0e168 IcingaService (on host): add applied services...
...and improve ServiceSet handling

fixes #13849
2017-01-02 10:51:54 +01:00
Thomas Gelf 7a2665646f IcingaServiceForm: restructure to allow more...
...variants with less code

refs #13849
2017-01-02 10:16:55 +01:00
Thomas Gelf 4c1ab4dae6 php: just some comments and cleanup 2016-12-13 18:25:14 +01:00
Thomas Gelf d59604bd93 ServiceSet: rework sets, allow for vars and...
...all other service properties when adding services to a set
2016-10-25 23:12:23 +00:00
Thomas Gelf 0d86c24cd8 Huge change, getting rid of legacy assignment...
...code. All objects should work with the new code base right now
2016-10-24 03:41:37 +00:00
Thomas Gelf aeafec37d7 FormDataFilter: simplify HTML, Code and style 2016-10-23 04:23:38 +00:00
Thomas Gelf 3fbf3e9115 IcingaServiceForm: use new assign_filter property 2016-10-22 07:02:09 +00:00
Thomas Gelf 9349ba0f2a FormDataFilter: new implementation for assignments
First prototype
2016-10-22 07:02:09 +00:00
Thomas Gelf 1f660b514a IcingaServiceForm: allow empty name for apply rule 2016-10-22 06:09:10 +00:00
Thomas Gelf 7c31b37f27 IcingaServiceForm: remove duplicate code
Elements in this list are optional and may be used in various forms,
so keeping this in the base class is preferrable here
2016-10-22 06:09:00 +00:00
Thomas Gelf 5b4e7509f4 Just a couple of phpcs complaints fixed 2016-10-22 06:08:52 +00:00
Thomas Gelf 0791b900f3 QuickBaseForm: allow translation tools find 'None' 2016-10-22 06:08:44 +00:00
Corentin Ardeois 3e30d34098 Use `config` variable in apply for rules
* use `config` instead of `value` in apply for rules
* update documentation

refs #11976
2016-10-22 06:07:57 +00:00
Corentin Ardeois e7bd4343b5 Add support for Apply for rules in services
Apply for rules are defined through `apply_for` property
Only Array custom variables will be eligible in apply_for dropdown.

API Example:
```bash
 ./director-curl POST director/service?name=my_service '{"apply_for": "for (checked_tcp_port in host.vars.checked_tcp_ports)" }'
 ```

 Will render as:
 ```
  apply Service "my_service" for (checked_tcp_port in host.vars.checked_tcp_ports) {
      ...
  }
  ```
Feature: https://dev.icinga.org/issues/11976

Depends-On: https://github.com/Icinga/icingaweb2-module-director/pull/20
refs #11976
2016-10-22 06:00:54 +00:00
Thomas Gelf 32790dbedc IcingaServiceForm: move hint to custom vars group 2016-10-20 01:35:36 +00:00
Markus Frosch 1a2cede13f ServiceController|IcingaServiceForm: Catching NestingError for the form to load
fixes #11803
2016-10-13 12:25:30 +02:00
Thomas Gelf 0ac7c0f448 IcingaServiceForm: fix setting submit label 2016-10-11 14:36:07 +00:00
Thomas Gelf 960fb4a3d0 IcingaServiceForm: allow to delete Services...
...created in an automated way while still allowing one to override
vars.
2016-10-11 14:33:44 +00:00
Thomas Gelf ffe16b472c IcingaServiceForm: no override check on new object 2016-09-09 13:25:57 +00:00
Thomas Gelf b2b189c425 IcingaServiceForm: support use_var_overrides...
...even for single host-assigned services
2016-09-08 18:43:25 +00:00