我们可以在通用预置文件中的 if 语句中使用哪些变量

我们可以在通用预置文件中的 if 语句中使用哪些变量

我发现我们可以在 maas 的预置文件中使用 if 语句

{{if node.architecture in {'i386/generic', 'amd64/generic'} }}
d-i     mirror/http/hostname string archive.ubuntu.com
d-i     mirror/http/directory string /ubuntu
{{else}}
d-i     mirror/http/hostname string ports.ubuntu.com
d-i     mirror/http/directory string /ubuntu-ports
{{endif}}

我想知道是否也可以使用带有标签的此类 if 语句,因此如果节点具有标签 raid5

使用了 raid 5 partman 代码

是否有一些文档可以让我们找到可以使用的变量,例如 node.tags 或 node.memory

相关内容