Skip to content

Instantly share code, notes, and snippets.

@akanehara
Last active August 29, 2015 14:08
Show Gist options
  • Save akanehara/4207d5c7aaa4018f1690 to your computer and use it in GitHub Desktop.
Save akanehara/4207d5c7aaa4018f1690 to your computer and use it in GitHub Desktop.
Fabric と fabric-vagrant プラグインの導入

Fabric と fabric-vagrant プラグインの導入

仮想サーバーのプロビジョニングにPython製の Fabric というツールを使います。Pythonを常用していない人は次の手順でPythonならびにFabricを導入してください。

Fabricの日本語ドキュメント

Pythonの導入

$ brew install python

.bash_profile (あるいは .zprofile) にパスを追加

PATH=$(brew --prefix python)/bin:$PATH
$ source .bash_profile

pipコマンド(Pythonのパッケージマネージャ)が使えるかどうか確認

$ pip
Usage:
  pip <command> [options]
...

Fabricの導入

$ pip install fabric

vagrant-fabricプラグインの導入

$ vagrant plugin install vagrant-fabric

以上

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment