我只想在文件(/ usr / local / bin / papply)不存在时执行以下命令。不知道该放在哪里。
exec { 'git add url':
command =>'git remote add origin https://github.com/testing/puppet.git',
require => Exec['git init'],
cwd => '/home/vagrant/django',
user => 'vagrant',
onlyif => "not sure what to put here"
}