我试图创build自动安装zend服务器CE的puppet模块,这在这里并不重要,但步骤如下 更新/etc/apt/source.list 通过wget下载回购密钥 做apt-get更新 apt-get install zend-server-ce-5.2 我有init.pp文件 class zendserverce { # https://github.com/puppetlabs/puppetlabs-stdlib file_line { 'debian_package': path => '/etc/apt/sources.list', line => 'deb http://repos.zend.com/zend-server/deb server non-free' } exec { "wget http://repos.zend.com/zend.key -O- |apt-key add -": path => ["/usr/bin", "/usr/sbin"] } exec { "apt-get update": command => "/usr/bin/apt-get update", onlyif => "/bin/sh -c '[ ! -f /var/cache/apt/pkgcache.bin […]