Created
December 11, 2016 13:08
-
-
Save wate/f6680602936959d24af859a7462bb32e to your computer and use it in GitHub Desktop.
Vagrant Sakura Providerサンプル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.box_url = 'https://github.com/tsahara/vagrant-sakura/raw/master/dummy.box' | |
config.ssh.username = "ubuntu" | |
config.vm.provider :sakura do |sakura| | |
sakura.access_token = "さくらのクラウドAPIにアクセスするためのAPIキー(ACCESS TOKEN)" | |
sakura.access_token_secret = "APIキーのシークレットトークン(ACCESS TOKEN SECRET)" | |
# ゾーン ID | |
# -------------- | |
# 石狩第2: is1b | |
# 東京第1: tk1a | |
# -------------- | |
sakura.zone_id = "is1b" | |
# サーバで利用するディスクのベースとするアーカイブ | |
# 「vagrant sakura-list-id」で利用可能なアーカイブの一覧が参照できる | |
# ※同じ構成であっても、ゾーン毎にIDが違うので注意! | |
sakura.disk_source_archive = 112801078740 | |
# 作成するサーバのプラン ID | |
# 変更したい場合は、以下のコメントアウトを解除 | |
# 「vagrant sakura-list-id」で利用可能なアーカイブの一覧が参照できる | |
# sakura.server_plan = 1001 | |
# Vagrant 付属の "insecure key" をそのまま使う | |
# ※安全性の面でいろいろと懸念点があるので非推奨 | |
sakura.use_insecure_key = true | |
# 登録済みのSSH公開鍵を指定する場合は、 | |
# 以下のコメントアウトを解除する | |
# sakura.sshkey_id = "サーバへのログインに利用するSSH公開鍵のリソースID(コントロールパネルで調べてね)" | |
# 公開鍵に対応する秘密鍵のパスを以下に設定 | |
# override.ssh.private_key_path = File.expand_path("~/.ssh/vagrant") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment