我正在尝试在流浪客人中安装puppetlabs apt模块,但是我遇到了以下错误:
==> default: Running provisioner: puppet...
==> default: Running Puppet with default.pp...
==> default: stdin: is not a tty
==> default: Info: Loading facts in /tmp/modules/puppetlabs-stdlib/lib/facter/pe_version.rb
==> default: Info: Loading facts in /tmp/modules/puppetlabs-stdlib/lib/facter/puppet_vardir.rb
==> default: Info: Loading facts in /tmp/modules/puppetlabs-stdlib/lib/facter/facter_dot_d.rb
==> default: Info: Loading facts in /tmp/modules/puppetlabs-stdlib/lib/facter/root_home.rb
==> default: Info: Loading facts in /tmp/modules/puppetlabs-apt/lib/facter/apt_package_updates.rb
==> default: Info: Loading facts in /tmp/modules/puppetlabs-apt/lib/facter/apt_update_last_success.rb
==> default: Info: Loading facts in /tmp/modules/puppetlabs-apt/lib/facter/apt_security_updates.rb
==> default: Info: Loading facts in /tmp/modules/puppetlabs-apt/lib/facter/apt_updates.rb
==> default: Error: Could not find class apt for vagrant-ubuntu-trusty-64.home on node vagrant-ubuntu-trusty-64.home
我的Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", inline: "apt-get install -y ruby1.9.1-dev git"
config.vm.provision "shell", inline: "gem install librarian-puppet -v 1.0.0"
config.vm.provision "shell", inline: "cp /vagrant/Puppetfile /tmp/"
config.vm.provision "shell", inline: "cd /tmp/ && librarian-puppet install --verbose"
config.vm.provision "puppet" do |puppet|
puppet.temp_dir = "/tmp"
puppet.options = ['--modulepath=/tmp/modules', '--verbose', '--debug']
end
end
我的Puppetfile:
forge "https://forge.puppetlabs.com"
mod 'puppetlabs-apt',
:git => "git://github.com/puppetlabs/puppetlabs-apt.git"
mod 'puppetlabs-stdlib',
:git => "git://github.com/puppetlabs/puppetlabs-stdlib.git"
我的清单/ default.pp:
include apt
我对木偶缺乏经验,所以任何指针都会受到赞赏。
答案 0 :(得分:1)
librarian-puppet将模块放在/ tmp / modules / puppetlabs-apt而不是/ tmp / modules / apt
您需要将librarian-puppet更新为1.1.3+,因为1.0.0不使用owner-module语法,它之前是owner / module。