2. ・※行のコメントアウトを外す
$ vi .juju/environments.yaml
(略)
## https://juju.ubuntu.com/docs/config-local.html
local:
type: local
admin-secret: 7104d1e0cfa3efe41dd0f620ee2011e6
# Override the directory that is used for the storage files and database.
# The default location is $JUJU_HOME/<ENV>.
# $JUJU_HOME defaults to /.juju
※root-dir: /.juju/local
# Override the storage port if you have multiple local providers, or if the
# default port is used by another program.
※storage-port: 8040
# Override the shared storage port if you have multiple local providers, or$
# default port is used by another program.
※shared-storage-port: 8041
# Override the network bridge if you have changed the default lxc bridge
※network-bridge: lxcbr0
!
ブリッジ接続用のNIC(br0)を作ってnetwork-bridgeに指定することで、ユーザーのネット
ワークでUbuntu Jujuを管理することができます。
!
・local動作モードに切り替えてJujuを実行状態にする
$ juju switch local #local動作モードに切り替え
$ sudo juju bootstrap
!
■参考
Jujuのその他環境向け設定など
https://juju.ubuntu.com/docs/getting-started.html
!
Jujuのリセット
・sudo juju destory-environmentコマンドの実行
・/etc/lxc/auto配下の設定ファイルを削除
・/var/lib/lxc配下のディレクトリを削除
!
3. !
■Juju GUIの利用
Juju GUIはコマンドではなくGUIの操作で必要なチャームを追加できる、ブラウザアプリケー
ションベースのツールです。端末で「juju-quickstart」コマンドを実行すると、残りの作業を
自動的に行うことができます。
!
$ juju-quickstart
juju quick start v0.4.2
bootstrapping the local environment (type:local)
sudo privileges required to bootstrap the environment
(略)
connecting to wss://172.17.14.27:17070
(略)
charm URL: cs:precise/juju-gui-80
(略)
juju-gui/0 is ready on machine 1
url: https://172.17.14.113
password: juju
done!
$
!
自動的にブラウザが起動するので、標準出力されているパスワードでJuju-GUIにアクセスして
ください。
!
■参考
チャームの説明や情報など
https://manage.jujucharms.com/charms
!
!
!