我试图在使用puppet的新流浪盒上安装节点,但是在运行清单时,我在盒子上得到以下错误。在流浪汉上使用木偶设置nodejs
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Warning: Scope(Apt::Source[nodesource]): $include_src is deprecated and will be removed in the next major release, please use $include => { 'src' => false } instead
Warning: Scope(Apt::Source[nodesource]): $required_packages is deprecated and will be removed in the next major release, please use package resources instead.
Warning: Scope(Apt::Source[nodesource]): $key_source is deprecated and will be removed in the next major release, please use $key => { 'source' => https://deb.nodesource.com/gpgkey/nodesource.gpg.key } instead.
Warning: Scope(Apt::Key[Add key: 9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280 from Apt::Source nodesource]): $key_source is deprecated and will be removed in the next major release. Please use $source instead.
Error: undefined method `ref' for nil:NilClass on node vagrant-ubuntu-trusty-64.efiling.local
Error: undefined method `ref' for nil:NilClass on node vagrant-ubuntu-trusty-64.efiling.local
我流浪汉文件看起来像这样:
config.vm.provision :shell do |shell|
shell.inline = "mkdir -p /etc/puppet/modules;
puppet module install puppetlabs-apt;
puppet module install puppetlabs/nodejs"
end
config.vm.provision "puppet" do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "default.pp"
end
这是我的清单文件:
class { 'nodejs': }
接下来的部分是让无业游民运行清单文件,但我相信这些错误阻止了这种情况的发生。
这对我来说都是比较新的,所以在这个问题上寻找一些指导。
得到同样的问题,我摧毁了箱子并跑了起来。命令行确认已安装新软件包 - ==>默认:/ etc/puppet/modules ==>默认:puppetlabs-nodejs(v0.8.0) –
您正在使用哪个版本的puppet? –
我正在运行3.4.3,将调查更新木偶版本,看看会发生什么,虽然我也发布了另一种解决方案。这可能是也可能不是更好的方法。 –