Mais conteúdo relacionado
Semelhante a The Chef integrations Z Cloud(Joyent) (20)
Mais de Yukihiko SAWANOBORI (20)
The Chef integrations Z Cloud(Joyent)
- 1. THE CHEF
INTEGRATIONS
Z CLOUD(JPN)
KnifeプラグインでZ Cloud(Joyent)にリソース作成
10.2012 HiganWorks LLC
(@sawanoboly)
- 8. リポジトリ&インストール
リポジトリ: Github の HiganWorks Organization 内
https://github.com/higanworks/knife-zcloudjp
※gem形式、rubygems登録予定
インストール:bundle
Gemfileに下記を追記してbundle実行
gem 'knife-zcloudjp', :git => "git://github.com/higanworks/
knife-zcloudjp.git"
- 9. knife zcloudjp product list
現在作成可能なマシンの一覧を取得するコマンド
$ knife zcloudjp product list
name os dataset package
SmartOS Small 1 SmartOS sdc:sdc:smartos64:1.5.3 Small_1GB
SmartOS Large 8 SmartOS sdc:sdc:smartos64:1.5.3 Large_8GB
MySQL Small 1 SmartOS sdc:sdc:mysql:1.4.1 Small_1GB
MySQL Medium 2 SmartOS sdc:sdc:mysql:1.4.1 Medium_2GB
-- snip --
Percona Large 1 SmartOS sdc:sdc:percona:1.2.2 Large_8GB
Riak Small 1 SmartOS sdc:sdc:riak:1.5.5 Small_1GB
-- snip --
Riak Large 1 SmartOS sdc:sdc:riak:1.5.5 Large_8GB
Node.js Small 1 SmartOS sdc:sdc:nodejs:1.3.0 Small_1GB
-- snip --
CentOS Large 8 CentOS 6.0 sdc:sdc:centos6:0.1.1 Large_8GB
Debian Small 1 Debian 6.0.3 sdc:sdc:debian603:0.1.0 Small_1GB
-- snip --
Ubuntu Medium 2 Ubuntu 10.04 sdc:sdc:ubuntu10.04:0.1.0 Medium_2GB
-- snip --
Fedora Medium 4 Fedora 14 sdc:sdc:fedora14:0.1.0 Medium_4GB
- 10. knife zcloudjp machine list
現在所有するマシン一覧を確認するコマンド
ログインやChef上のNode管理に
$ knife zcloudjp machine list
name id ips dataset package state
Son_of_Jenkins_02 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ["210.xxx.xxx.xxx"] sdc:sdc:ubuntu10.04:0.1.0 Medium_2GB running
chef-sv01 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ["210.xxx.xxx.xxx"] sdc:sdc:ubuntu10.04:0.1.0 Small_1GB running
shinobra xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ["210.xxx.xxx.xxx"] sdc:sdc:smartos64:1.5.1 Small_1GB running
growthforecast xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ["210.xxx.xxx.xxx"] sdc:sdc:smartos64:1.5.3 Small_1GB running
rabi01 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ["210.xxx.xxx.xxx"] sdc:sdc:smartos64:1.5.3 Small_1GB running
zootest_south xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ["210.xxx.xxx.xxx"] sdc:sdc:smartos64:1.5.3 Small_1GB running
- 11. knife zcloudjp machine create
名称、データセット(OS種別)、パッケージ(性能)を指
定したマシンを作成し、Chefのbootstrapを実行するコ
マンド。
マシン作成からChef (hosting/private)への登録、zcloudjp
アトリビュートの付与やrun_list実行してのサーバセッ
トアップ&環境維持更新を自動で行う。
Notas do Editor
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n