我在Windows10下运行Vagrant,为它配置了木偶。我需要来自forge的一些模块,所以我添加了Puppet文件并使用vagrant plugin install vagrant-r10k安装了vagrant r10k plugin
首先,我尝试了puppet模块,所以我的Puppetfile看起来像这样:
forge 'http://forge.puppetlabs.com'
mod 'stankevich/python'
mod 'saz/locales'我不得不在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
发布于 2016-12-09 20:58:27
好的,如果有人有这样的问题:
https://stackoverflow.com/questions/40934569
复制相似问题