Skip to content

Instantly share code, notes, and snippets.

@yamamoto-febc
Last active May 31, 2016 22:32
Show Gist options
  • Select an option

  • Save yamamoto-febc/14ec4e8f1b0e7ddc48a166995215da0a to your computer and use it in GitHub Desktop.

Select an option

Save yamamoto-febc/14ec4e8f1b0e7ddc48a166995215da0a to your computer and use it in GitHub Desktop.
[10分チャレンジ]瞬殺!さくらのクラウドでDC/OSを動かすよ! ref: http://qiita.com/yamamoto-febc/items/35783b4cdeb2daaf0824
export SAKURACLOUD_ACCESS_TOKEN="取得したAPIトークン"
export SAKURACLOUD_ACCESS_TOKEN_SECRET="取得したAPIシークレット"
$ terraform output
$ terraform output
$ ssh-keygen -C "" -f keys/id_rsa
$ terraform get # tfファイル内で使っているモジュールの取得
$ terraform plan # 実行内容の確認
$ terraform apply # 実行
$ git clone https://github.com/yamamoto-febc/dcos-on-sakuracloud.git
$ cd dcos-on-sakuracloud
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
}
}
$ $(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