【发布时间】:2016-02-13 02:38:53
【问题描述】:
我正在创建一个木偶清单,并尝试使用基于 MAC 模型的内置事实变量。我正在使用本指南:https://docs.puppetlabs.com/facter/3.1/core_facts.html
我看到system_profiler 带有model_identifier 的选项,但我不确定正确的语法是什么。
这是我感到困惑的地方:
class::something::mac
if $<% system_profiler %> eq "macpro"; then
do the thing
else
don't do the thing
我在哪里/如何实际使用 model_identifier?我是 puppet 和 MAC 的新手,所以任何建议都会很棒!
【问题讨论】: