我有一些看起来像这样的hiera yaml:
vars:
psuName: xxxxx
liveCustomers: 100
notes: some notes here (more info in backets)
uplink: uplink01
yaml由脚本自动生成,它主要用于帮助构建icinga2配置。我遇到的问题是输出在配置文件中如下所示:
vars.psuName = "xxxxx"
vars.liveCustomers = 100
vars.notes = some notes here ("more info in backets")
vars.uplink = "uplink01"
因此,木偶在大多数字段周围放置了引号,这是我想要的,但在注释字段中它只在引号内的文本周围加上引号,我希望它看起来像这样:
vars.notes = "some notes here (more info in backets)"
我尝试将hiera yaml更改为:
notes: "some notes here (more info in backets)"
但没有区别。
有什么想法吗?