Skip to content

Instantly share code, notes, and snippets.

@conmame
Created September 20, 2012 03:25
Show Gist options
  • Save conmame/3753807 to your computer and use it in GitHub Desktop.
Save conmame/3753807 to your computer and use it in GitHub Desktop.
CloudFoundry Multi Node Install Setting yml
---
deployment:
name: "dea"
domain: "hoge.com" #使用するドメイン
jobs:
install:
- stager
- dea:
local_route: "192.168.249.44" #自分の環境に合わせる (この設定ファイルが置かれるDEAのIPアドレス)
secure: "true"
runtimes: #使用するランタイム
- "ruby18"
- "ruby19"
- "node04"
- "node06"
- "node08"
- "java"
- "java7"
- "php"
- "python2"
installed:
- nats_server:
host: "192.168.249.43" #自分の環境に合わせる (Cloud_controllerのIPアドレス)
port: "4222"
user: "nats"
password: "nats"
---
deployment:
domain: "hoge.com" #使用するドメイン
name: "rest"
jobs:
install: #CC/health_manager/gatewayは同じノードで動かす
- nats_server
- cloud_controller:
builtin_services:
- mysql
- redis
- mongodb
- rabbitmq
- postgresql
- vblob
- filesystem
- health_manager
- ccdb #cloud_controller用のDB作成
- uaa
- uaadb #uaa用のDB作成
- filesystem_gateway
- rabbitmq_gateway
- vblob_gateway
- postgresql_gateway
- redis_gateway
- mysql_gateway
- mongodb_gateway
---
deployment:
name: "router"
domain: "hoge.com" #使用するドメイン
jobs:
install:
- router
installed:
- nats_server:
host: "192.168.249.43" #自分の環境に合わせる (Cloud_controllerのIPアドレス)
port: "4222"
user: "nats"
password: "nats"
---
deployment:
name: "service"
jobs:
install: #自分の環境に合わせる (インストールするサービス)
- mysql_node:
index: "0"
- mongodb_node:
index: "0"
- redis_node:
index: "0"
- vblob_node:
index: "0"
- postgresql_node:
index: "0"
- rabbitmq_node:
index: "0"
installed:
- nats_server:
host: "192.168.249.43" #自分の環境に合わせる (Cloud_controllerのIPアドレス)
port: "4222"
user: "nats"
password: "nats"
@conmame
Copy link
Author

conmame commented Sep 20, 2012

インストール時は各ノードで

./vcap/dev_setup/bin/vcap_dev_setup -c ../install_config/*****.yml -d /home/cf

@conmame
Copy link
Author

conmame commented Sep 20, 2012

起動時は

/home/cf/vcap/dev_setup/bin/vcap_dev -n rest start
/home/cf/vcap/dev_setup/bin/vcap_dev -n dea start
/home/cf/vcap/dev_setup/bin/vcap_dev -n router start
/home/cf/vcap/dev_setup/bin/vcap_dev -n service start

@conmame
Copy link
Author

conmame commented Sep 21, 2012

cloud_controllerがインストールされているノードで

/home/cf/.deployments/rest/config/runtimes.yml

を編集して、deaでruntimeがインストールされているパスを指定する

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