plugins - 安装 vagrant-vsphere 插件

标签 plugins development-environment vagrant puppet vsphere

所以,在经历了 ruby​​ 版本和依赖项的冒险之后,我最近使用 vagrant plugin install vagrant-aws 安装了 vagrant-aws 插件。不管怎样,对于我们的部署管道,我需要找到一种方法来使用 vagrant 启动 vSphere 机器,并且有一个 vagrant-vsphere plugin on github ,但我不知道该怎么办。一般来说,我对 ruby​​/programming/devOps 很陌生,而且 vagrant 看起来不允许你从本地文件安装插件。

我在 vagrant 文档中看到,您可以使用 require 'my_plugin' 在 vagrant 文件中要求一个插件,并且我尝试了 my_plugin 所在的 .gemspec 文件的路径,但似乎无法弄清楚如何工作。如果有人提供帮助或指向我可以查看的互联网上的位置,我将非常感激:)我将在网络上搜索很长时间以找到解决方案。

最佳答案

您应该能够在从源代码构建后安装它:

mkdir ~/tmpbuild
cd ~/tmpbuild
git clone git://github.com/nsidc/vagrant-vsphere.git
cd vagrant-vsphere
gem build vSphere.gemspec
vagrant plugin install vagrant-vsphere-0.0.1

关于plugins - 安装 vagrant-vsphere 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17176710/

相关文章:

c# - 将对象转换为基础接口(interface)

java - maven项目执行失败 "maven-thrift-plugin"

javascript - Dreamweaver 缩小插件

git - 如何为 laravel5.2 忽略 .gitignore 中的 .env 文件

angular - Dart 中的构建时值注入(inject)

development-environment - 开发人员是否应该在其 PC 上拥有管理员权限

vagrant - 有没有办法保护 Vagrant 配置的代理用户/密码?

mysql - 静音 mysql 警告消息 : mysql: [Warning] Using a password on the command line interface can be insecure

javascript - 监控来自 IE BHO 的 ajax 调用

css - Vagrant 和 wordpress 不工作