Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 if 语句和 Facter 设置 Puppet 模块。就像是:
if $something-factor = macpro do THIS elsif $something factor = macair do THIS
我似乎无法找到 Facter 变量来执行此操作。
您可以尝试使用一些事实,具体取决于您对模型信息的具体程度。
$ facter | grep -i air productname => MacBookAir5,2 sp_machine_model => MacBookAir5,2 sp_machine_name => MacBook Air