Hi John

Thanks for the reply

The hiera is generated by a custom Ruby script. I have tried tweaking it to 
output both with quotes and without but it didn't help

The end config file on the server is being created with an Ensure_resources 
statement like this:

ensure_resources('icinga2::object::host', 
lookup('profile::icinga2_master::monitoring::objects::servers'), {'ensure' 
=> 'present'})

so maybe the issue is with the puppet - icinga2 plugin... after some more 
playing around I have made it work in a slightly less than satisfactory way:
I added a line into the ruby script to strip out any brackets in the notes 
string  and use a - to separate the string out a bit like this

notes: some notes here - more info no longer in brackets

but It still gave me output where everything after the - was in quotes.

what finally worked was to have the ruby output the string like this 
(basically without the spaces around the -):

notes: some notes here-more info no longer in brackets



-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9aa71fca-bc2f-42b3-bf82-ccc0d6f96c76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to