I'm trying to set up a Puppet module with an if statement and Facter. Something like:
if $something-factor = macpro
do THIS
elsif $something factor = macair
do THIS
I just can't seem to find the Facter variable to do this.
答案 0 :(得分:0)
您可能会尝试使用一些事实,具体取决于您对模型信息的具体要求。
$ facter | grep -i air
productname => MacBookAir5,2
sp_machine_model => MacBookAir5,2
sp_machine_name => MacBook Air