Fedora 21
Sponsored Link

OpenStack Juno : 連携サービスのインストール2015/01/03

 
OpenStack Juno によるクラウド基盤の構築です。
ここでは例として All in One 構成で 1台のサーバーに各コンポーネントをインストールします。
まずは、OpenStack の各コンポーネントが必要とするいくつかのサービスを事前にインストールしておきます。
[1]
こちらを参考に NTPサーバーをインストールして、時刻同期ができるようにしておいてください。
[2]
こちらを参考に KVMハイパーバイザをインストールしておいてください。
なお、リンク先 [2] のブリッジの設定は必要ありません。後ほど OpenStack システムの中でブリッジ化されます。
[3] Openstack Juno のリポジトリを追加しておきます。
[root@dlp ~]#
yum -y install http://repos.fedorapeople.org/repos/openstack/openstack-juno/rdo-release-juno.rpm

[4] バックエンドデータベースとして利用する MariaDB サーバーをインストールしておきます。
[root@dlp ~]#
yum -y install mariadb-galera-server
[root@dlp ~]#
systemctl start mariadb

[root@dlp ~]#
systemctl enable mariadb

[root@www ~]#
mysql_secure_installation

/usr/bin/mysql_secure_installation: line 379: find_mysql_client: command not found

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

# root パスワードを設定

Set root password? [Y/n]
y

New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!

By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.
# 匿名ユーザーは削除

Remove anonymous users? [Y/n]
y

 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

# root のリモートログインは無効

Disallow root login remotely? [Y/n]
y

 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

# テストデータベースは削除

Remove test database and access to it? [Y/n]
y

 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

# 特権情報リロード

Reload privilege tables now? [Y/n]
y

 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
[5] RabbitMQ, Memcached をインストールしておきます。
[root@dlp ~]#
yum -y install rabbitmq-server memcached
[root@dlp ~]#
systemctl start rabbitmq-server

[root@dlp ~]#
systemctl enable rabbitmq-server

# guest のパスワード変更

[root@dlp ~]#
rabbitmqctl change_password guest password

Changing password for user "guest" ...
...done.
[root@dlp ~]#
systemctl start memcached

[root@dlp ~]#
systemctl enable memcached

関連コンテンツ