CL LAB

HOME > CL LAB > Chef > Scalr Next Generation Installer #ScalrJP #getchef_ja #opschef_ja

Scalr Next Generation Installer #ScalrJP #getchef_ja #opschef_ja

 ★ 1

Scalr Next Generation Installerとは

Scalr Next Generation Installerとは、オープンソース版ScalrのChefベースインストーラです。
すべての手順を手動で行う場合(Scalr 3.5のインストール, Open-Source Installation)に比べ、格段に簡単・確実にオープンソース版Scalrのインストールが行えるようになっています。

本項ではUbuntu 12.04 LTS (amd64)で確認しています。
なお、CentOS 6.5 (x86_64)でも動作は変わりません。
これはChefを採用したことによる恩恵の1つと言えるでしょう。

インストーラの実行

まず、インストーラをダウンロードします。

ubuntu@ubuntu:~$ curl -O https://raw.github.com/Scalr/installer-ng/master/scripts/install.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 15743  100 15743    0     0  30699      0 --:--:-- --:--:-- --:--:-- 35457
ubuntu@ubuntu:~$ 

ubuntu@ubuntu:~$ ls -l install.py 
-rw-rw-r-- 1 ubuntu ubuntu 15743  2月 20 12:30 install.py
ubuntu@ubuntu:~$

root権限でインストーラを実行します。

まず、他のクラウドインスタンスからScalrに対するアクセスを受け付けるIPアドレスを入力します。

ubuntu@ubuntu:~$ sudo python install.py 
Outputting configuration
Enter the IP (v4) address your instances should use to connect to this server. 
> 192.168.122.209

次に、Scalrに対して入力トラフィックを受け付けるローカルIPアドレスを入力します。
NATなどを用いていなければ、先に入力したIPアドレスと同じです。

Enter the local IP incoming traffic reaches this instance through. If you are not using NAT or a Cloud Elastic IP, this should be the same IP
> 192.168.122.209

Scalrがクラウドインスタンスに接続する際に、プライベートIPアドレス(local)、パブリックIPアドレス(public)、自動選択(auto)のいずれかを入力します。
よくわからなければautoでかまいません。

To connect to your instances, should Scalr use the private IP, public IP, or automatically choose the best one? Use `auto` if you are unsure. [`auto`, `public`, `local`]
> auto

以降はChef-Soloを用いて自動的にScalrのインストールが行われます。
多数のパッケージインストールやビルドが行われるので、しばらく待ちます。

利用するCookbookはscalr/installer-ngです。
平易なCookbookなので是非参照してみてください。

Installing Chef Solo
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13347  100 13347    0     0  16237      0 --:--:-- --:--:-- --:--:-- 21492
Downloading Chef  for ubuntu...
	:
	:
	:
Chef Client finished, 214/264 resources updated in 397.416209942 seconds

Chef-SoloによるScalrのインストールが完了すると、設定内容などが表示されます。

Congratulations! Scalr has successfully finished installing!

Installer cookbook version: `1.1.4`.

-- Configuration --

Some optional modules have not been installed: DNS, LDAP.

-- Credentials file --

All the credentials that were used are stored in `/home/ubuntu/solo.json`.

Consider making a backup of those, and deleting this file.

-- MySQL credentials --

Use these credentials to access Scalr's MySQL database.

root : `★★★★★★`
scalr: `★★★★★★`

-- Accessing Scalr --

Scalr is installed at: `/opt/scalr/current`

Launch Scalr by browsing to `http://192.168.122.209`

If you can't access Scalr, update your firewall rules and / or security groups.

If you need help, check out Scalr's online documentation: `http://wiki.scalr.com`

-- Login credentials --

Use these credentials to login to Scalr's web control panel.

Username: `admin`
Password: `★★★★★★`

-- Quickstart Roles --

Scalr provides, free of charge, up-to-date role images for AWS. Those will help you get started with Scalr.

To get access, you will need to provide the Scalr team with your Scalr installation ID.
Your Scalr installation ID is located in this file: `/opt/scalr/current/app/etc/id`
We've read the file for you, its contents are:      `★★★★★★`

Please submit those contents to this form `http://hub.am/1fDAc2B`

Once done, please run this command `php /opt/scalr/current/app/tools/sync_shared_roles.php`

このように、とても簡単にオープンソース版Scalrがインストールできました。

なお、Scalr社では、Scalrの評価目的でオープンソース版Scalrを利用することは推奨していません。
Scalrの評価には30日間のフリートライアル付のHosted Scalrをご利用ください。

CL LAB Mail Magazine

CL LABの情報を逃さずチェックしよう!

メールアドレスを登録すると記事が投稿されるとメールで通知します。

メールアドレス: 登録

※登録後メールに記載しているリンクをクリックして認証してください。

Related post

Neo4j[ホワイトペーパー]CCPA