0
我正在嘗試爲基於Facter變量的Windows Server設置Puppet exec
資源。但是,它看起來像onlyif
只接受命令文件而不是內聯表達式。puppet onlyif邏輯表達式
可能有人請幫我設置onlyif
這個表達式提前(無論是作爲一個條件表達式或內嵌-DOS命令)
exec { 'C:\Users\validate.cmd validate':
onlyif => "$validate_enabled" == true, => This not recognized as command
provider => powershell,
}
感謝。