我在 Windows 10 下运行 Vagrant,使用 puppet 对其进行配置。我需要一些来自 forge的模块,所以我添加了 Puppet 文件并安装了vagrant r10k 插件vagrant plugin install vagrant-r10k
首先,我尝试了 puppet 模块,所以我的 Puppetfile 看起来像:
forge 'http://forge.puppetlabs.com'
mod 'stankevich/python'
mod 'saz/locales'
我必须安装 vagrant plugin puppet 以及vagrant plugin install puppet
. 但是,当我跑步时,vagrant up mymachine
我得到:
==> mymachine: vagrant-r10k: Beginning r10k deploy of puppet modules into c:/test/puppet/vendor using c:/test/puppet/Puppetfile
INFO -> Loading modules from Puppetfile into queue
INFO -> Deploying locales into c:/test/puppet/vendor
ERROR -> Task #<R10K::Task::Module::Sync:0x5afab00> failed while running: Permission denied - puppet module --modulepath c:/test/puppet/vendor --color false install --force saz/locales
INFO -> Deploying python into c:/test/puppet/vendor
ERROR -> Task #<R10K::Task::Module::Sync:0x5afab30> failed while running: Permission denied - puppet module --modulepath c:/test/puppet/vendor --color false install --force stankevich/python
RuntimeError: Permission denied - puppet module --modulepath c:/test/puppet/vendor --color false install --force saz/locales
不放弃,我尝试使用存储库,所以我的 Puppetfile 看起来像:
mod 'locales',
:git => "https://github.com/saz/puppet-locales.git"
mod 'python',
:git => "https://github.com/stankevich/puppet-python.git"
这一次,我得到:
==> mymachine: Invalid syntax in Puppetfile at c:/test/puppet/Puppetfile
NilClass:
我从命令行运行所有内容,尝试了正常模式和管理员模式。流浪者版本:1.8.6