Last active
May 31, 2016 22:32
-
-
Save yamamoto-febc/14ec4e8f1b0e7ddc48a166995215da0a to your computer and use it in GitHub Desktop.
[10分チャレンジ]瞬殺!さくらのクラウドでDC/OSを動かすよ! ref: http://qiita.com/yamamoto-febc/items/35783b4cdeb2daaf0824
This file contains hidden or 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
| export SAKURACLOUD_ACCESS_TOKEN="取得したAPIトークン" | |
| export SAKURACLOUD_ACCESS_TOKEN_SECRET="取得したAPIシークレット" |
This file contains hidden or 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
| $ terraform output |
This file contains hidden or 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
| $ terraform output |
This file contains hidden or 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
| $ ssh-keygen -C "" -f keys/id_rsa |
This file contains hidden or 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
| $ terraform get # tfファイル内で使っているモジュールの取得 | |
| $ terraform plan # 実行内容の確認 | |
| $ terraform apply # 実行 |
This file contains hidden or 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
| $ git clone https://github.com/yamamoto-febc/dcos-on-sakuracloud.git | |
| $ cd dcos-on-sakuracloud |
This file contains hidden or 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
| variable "private_ip" { | |
| default = { | |
| "bootstrap" = "192.168.2.11" | |
| "master01" = "192.168.2.101" | |
| "agent01" = "192.168.2.201" | |
| "agent02" = "192.168.2.202" | |
| } | |
| } | |
| variable "spec" { | |
| default = { | |
| # Bootstrapノード | |
| bootstrap_core = 2 | |
| bootstrap_memory = 4 | |
| # Masterノード | |
| master_core = 4 | |
| master_memory = 8 | |
| # Agentノード | |
| agent_core = 2 | |
| agent_memory = 4 | |
| } | |
| } |
This file contains hidden or 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
| $ terraform output |
This file contains hidden or 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
| $ $(terraform output ssh_bootstrap) # Bootstrapノード | |
| $ $(terraform output ssh_master01) # Masterノード | |
| $ $(terraform output ssh_agent01) # Agentノード(01) | |
| $ $(terraform output ssh_agent02) # Agentノード(02) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment