Puppet 3.x 的 key.subkey 语法是什么?

What is the key.subkey syntax for Puppet 3.x?

In Puppet and Hiera, you often need to work with structured data in hashes and arrays.

In the Puppet language, you can access hash and array members with square brackets, like $facts['networking']['fqdn']. Hiera doesn’t use square brackets; instead, it uses a key.subkey notation, like facts.networking.fqdn.

这是针对 5.2 的。 3.8 中是否有相同的功能?我在文档中找不到它。

Is there the same functionality available in 3.8?

没有。 Puppet 3——已过时且不再受支持——使用 Hiera 版本 1,它不支持键/子键语法。为此,您至少需要 Puppet 4 / Hiera 3,但即使那样也很旧。最新的 Puppet 是 v6.4(带有 Hiera 5)。