chef-icinga2 icon indicating copy to clipboard operation
chef-icinga2 copied to clipboard

[dev.icinga.com #11453] icinga2_environment host templates do not escape incoming data

Open icinga-migration opened this issue 9 years ago • 3 comments
trafficstars

This issue has been migrated from Redmine: https://dev.icinga.com/issues/11453

Created by hfinucane on 2016-03-25 18:50:16 +00:00

Assignee: vkhatri Status: Assigned Target Version: (none) Last Update: 2016-07-21 15:25:17 +00:00 (in Redmine)


I use add_node_vars pretty heavily, and I've run into an issue- hashes get dumped via `.inspect`, and Ruby hashrockets are not valid Icinga dictionaries in Icinga version 2.4.4.

Attachments

icinga-migration avatar Mar 25 '16 18:03 icinga-migration

Updated by hfinucane on 2016-03-25 18:52:27 +00:00

  • File added 0001-Add-function-to-format-ruby-data.patch
  • File added 0002-Be-more-conservative-with-Chef-attributes.patch
  • File added 0003-Add-unit-tests-for-formatting-output.patch

hfinucane wrote:

I use add_node_vars pretty heavily, and I've run into an issue- hashes get dumped via `.inspect`, and Ruby hashrockets are not valid Icinga dictionaries in Icinga version 2.4.4.

I've written some patches for this, too, available on github (https://github.com/Icinga/chef-icinga2/pull/46) and attached.

icinga-migration avatar Mar 25 '16 18:03 icinga-migration

Updated by vkhatri on 2016-07-21 15:25:17 +00:00

  • Status changed from New to Assigned
  • Assigned to set to vkhatri

PR Merged. Keeping it open for now.

icinga-migration avatar Jul 21 '16 15:07 icinga-migration

These patches were merged, but the fix was not made for all templates.

hfinucane avatar Jan 17 '17 17:01 hfinucane