969 Commits

Author SHA1 Message Date
Thomas Gelf
922b19397c IcingaObject: resolve related properties when...
...telling an object to be "unmodified"

fixes #2559
2022-07-12 10:02:58 +02:00
Thomas Gelf
d13919681a IcingaEndpoint: give meaningful error...
...when trying to get an ApiUser where there is no such
2022-07-12 10:00:58 +02:00
Thomas Gelf
56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf
75b73604a8 SyncRule: remove unused property 2022-06-20 09:59:01 +02:00
Thomas Gelf
11f621df30 IcingaServiceSet: do not eport the UUID for now
fixes #2488
2022-04-05 08:48:42 +02:00
Thomas Gelf
9afa3313ab cli: implement deployment grace period and...
...refactor/restructure related code to achieve the same behavior on CLI and
via automated job

fixes #2499
2022-03-22 10:46:36 +01:00
raviks789
71f3654c0b Fix sync rule restore from snapshot on name change
On name change new Sync rule would be created, hence we do not have to preserve the Sync rule Ids in SyncRule::import() method.
2022-03-17 14:55:35 +01:00
Thomas Gelf
0f1ef78815 IcingaArguments: remove superfluous semicolon 2022-02-17 15:37:44 +01:00
Thomas Gelf
984e931954 BasketSnapshot: support datafield categories
fixes #2256
2022-02-16 23:14:38 +01:00
Thomas Gelf
aeef51ffa6 IcingaArguments: allow to restore set_if_format
fixes #2291
2022-02-09 21:59:53 +01:00
raviks789
4f38557374 Prevent deletion of data lists that are in use.
Deletion of data lists which are used in icinga objects (through custom variables) or in sync rules is prevented.
2022-02-09 15:17:47 +01:00
Thomas Gelf
b7aa578dee IcingaHost: filter internal properties from enum 2022-02-06 11:41:20 +01:00
Thomas Gelf
eddaf7c9a4 IcingaObject: some cleanup 2022-02-06 11:39:03 +01:00
Thomas Gelf
891b6112aa IcingaObject: ignore uuid when resolving properties 2022-02-06 11:37:01 +01:00
Thomas Gelf
324cc9ed5b IcingaObject: do not unset unresolved related...
...properties, as long as they do not give us an object with an ID.
This is the case when adding new services to hosts which exist in a
branch only, and will no longer be a problem once our internal caches
work with UUIDs
2022-02-06 11:35:00 +01:00
raviks789
b04fe28932 Delete newly added Services in Service Set when restoring it from snapshot
The Services which were added into the Service Set after the snapshot was created
must be deleted when the Service Set is being restored from the snapshot.
2022-01-24 15:26:48 +01:00
Thomas Gelf
0fcbc2783b IcingaServiceSet: load services by UUID
fixes #2454
2022-01-10 13:31:25 +01:00
Thomas Gelf
2113484b20 IcingaArguments: fix delete 2022-01-09 21:42:39 +01:00
Thomas Gelf
caccecded6 IcingaHost: ignore warning 2021-12-23 13:46:04 +01:00
Thomas Gelf
673c1c520e DirectorDeploymentLog: do not query empty stage
fixes #2426
2021-12-22 11:46:18 +01:00
Thomas Gelf
68814e0de6 IcingaObjectImports: fix PHP 8.1 notice 2021-12-21 09:01:06 +01:00
Thomas Gelf
376344257c DbObjectStore: inject into DbObject for related...
...objects in a branch
2021-12-17 12:51:24 +01:00
Thomas Gelf
bfdcafca52 Ranges: common class, fix store/delete issues
This removes duplicate code, fixes some issues introduced with UUIDs and does
some cleanup

fixes #2415
fixes #2442
2021-12-14 08:33:50 +01:00
Thomas Gelf
100bc4b777 library: php8-related cleanup 2021-12-06 23:03:06 +01:00
Thomas Gelf
215988c3ca library: some hints for PHP 8.1 2021-12-01 23:50:04 +01:00
Ravi Kumar Kempapura Srinivasa
388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +01:00
Thomas Gelf
82656de2c2 Director: some PHP 8.1-related changes 2021-11-28 11:13:08 +01:00
Thomas Gelf
6786cc768f Director: some fixes for PHP v8.1
refs #2435
2021-11-24 11:56:18 +01:00
Markus Frosch
4f959572f2 Add feature to specify a custom endpoint name for a host
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Markus Frosch
8237d84cdb Add feature to specify a custom endpoint name for a host
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Thomas Gelf
7b4e9b4f91 IcingaObject: fix null check for ranges
fixes #2408
2021-10-11 17:45:55 +02:00
Thomas Gelf
57c4dda117 Objects/*, CVs, others: unify setBeingLoadedFromDb 2021-10-05 23:33:30 +02:00
Thomas Gelf
835d01cdec IcingaObject: disabled = null is not a thing 2021-10-05 23:33:30 +02:00
Thomas Gelf
5aba966a4b IcingaCommandArgument: use a combined key 2021-10-05 23:33:30 +02:00
Thomas Gelf
792ff03a6d Objects: add uuid column 2021-10-05 23:33:30 +02:00
Thomas Gelf
65bbaa9f98 IcingaObject: custom vars, also load them only...
...when we got an id
2021-10-05 23:33:30 +02:00
Thomas Gelf
182d1b519b IcingaObject: do not load groups when we have...
...no id. With branches this is now possible
2021-10-05 23:33:30 +02:00
Thomas Gelf
1a5df745e3 IcingaObject: add some type-hints 2021-10-05 23:33:30 +02:00
Thomas Gelf
a29efe478c IcingaArguments: remove Argument set to null 2021-10-05 23:33:30 +02:00
Ravi Kumar Kempapura Srinivasa
90b5f6fdac Convert $imports keys to string explicitly
The keys of $imports in IcingaObjectImports must be converted to string explicitly or else it establishes incorrect parent-child relation
in icinga_host_inheritance table in case the key is integer value and there is an host object with id = key(integer) icinga_host table.
This results in undefined offset while triggering sync rule.
2021-10-01 10:47:54 +02:00
Ravi Kumar Kempapura Srinivasa
6289bf065f Pass $resolved as False for arguments to toPlainObject()
IcingaArguments passes the $resolved through to the individual argument in the toPlainObject. There lies the error,
simply pass false - because the argument itself cannot have any parents and therefore cannot be resolved
2021-10-01 10:47:12 +02:00
Thomas Gelf
f0deb11e7f IcingaObject: no empty vars for unmodified plain 2021-08-16 06:33:34 +02:00
Thomas Gelf
1d5b00a675 IcingaObject: unify DB boolean value converter
Hint: fixes booleans for "plain unmodified" objects
2021-08-16 06:33:23 +02:00
Thomas Gelf
77fca39ff3 IcingaObject: getAppliedGroups with id=null 2021-08-16 06:21:50 +02:00
Thomas Gelf
66de47b10b DbObjectTypeRegistry: move logic from IcingaObject 2021-08-04 13:18:30 +02:00
Thomas Gelf
7f16d648cc IcingaUser: add basket support
fixes #2328
2021-07-15 19:11:20 +02:00
Sebastian Gumprich
fed74eb33d IcingaObject: alias scheduled_downtime
Fixes an error when trying to create scheduled_downtime via api

fixes #1879
2021-07-12 23:25:42 +02:00
Thomas Gelf
2cff396fe4 DbDataFormatter: new helper class
Trying to reduce logic in IcingaObject
2021-05-20 16:21:46 +02:00
Thomas Gelf
7de5b03877 IcingaObject: readability, style 2021-05-20 15:11:12 +02:00
Thomas Gelf
80965053cf IcingaDependency: isApplyForArrayClone(), cleanup 2021-05-20 11:48:17 +02:00