2016-09-10 15 views

答えて

1

これまでのことは完璧です!

インストーラを実行する前に、PATH変数に/ opt/cloud-managerを追加してください。次のステップはするためにあなたのインフラについての質問の束を聞いてきます、インストーラを実行することです

export PATH=${PATH}:/opt/cloud-manager 

:Bashのために、あなたは下のようなあなたのホームディレクトリ内の.bash_profileファイルを次のよう追加しますクラウドマネージャ(CM)を設定します。

注:インストールを実行する前に、git cloneコマンドを含め、CMを実行するユーザーアカウントとしてログインする必要があります。ここで

はインタビューを開始する方法は次のとおりです。

$ ./methods/cm-install 

それは次のようになります:それはあなたの応答ファイルを保存するように要求されますインタビューの終わりに

## Welcome to Cloud Manager (CM) Installer 
This installer was launched because CM could not find a configuration file 
and/or Ansible inventory file where expected. The following interview will 
prompt you for all information needed to configure CM. 

After the interview, you'll be prompted to save your answers to a response file. This is convenient in the event you want to re-configure CM without answering all the (annoying) questions again. 

To do so, run "./methods/cm-init -r templates/<your_responseFile>" 

## Configuring CM Core Server 

Enter hostname/ip for the CM control node [localhost]: 
--> accepted: localhost 

Master Private Key (managed server access) [keys/master/cm-master]: 
--> accepted: keys/master/cm-master 

Master Public Key (managed server access) [keys/master/cm-master.pub]: 
--> accepted: keys/master/cm-master.pub 

Master User Account [cmadmin]: 
--> accepted: cmadmin 

Master Password - Cleartext [null-disallowed]: 
--> accepted: ******** 

... 

。後で時間を節約できるので、CMを使用することを学んでいるときに、すべてをデフォルトに戻したい場合は、お勧めします。

するには、応答ファイルを使用してインストーラを再実行し、実行します。

$ cm 
Usage: cm [<options>] <method> [args] 

[methods] 
Configuration: 
    group <add|remove|addAttr|removeAttr|addRule|removeRule> [args] 
    ipam <subnet|range|checkout|checkin> [args] 

Infrastructure: 
    create [-s][-f] <hostname> <group> [args] 
    createN [-s|-r] <clusterName> <N> <hostnameBase> <group> [args] 
    configure [-s] <hostname> [args] 
    deploy [-s] <hostname> <playbookName> [args] 
    power [-s] <on|off|cycle> [args] 
    decommission [-s] [-h <hostname>|all] 
     [-g <groupName>] 
     [-c <clusterName>] 
    reprovision [-s] <hostname> 

Continuous Integration: 
    dso [-s] <name> <ansible|chef|puppet|cm> [args] 
    pipeline <add|remove|addAttr|removeAttr> [args] 

System: 
    show <server|group|job|subnet|subnetMap|cluster> [args] 
    connect <hostname> [args] 
    system <vboxCli|encrypt> [args] 
    runScript <scriptName> 
    runCmd <hostname> <command> 

[options] 
    -s : show standard output from ansible playbook 
    -x : show extended help 

は今、そのCMが設定されている
$ ./methods/cm-init -c -r templates/your-response-file.resp 

、ちょうど使用方法の説明文を表示するには、「CM」と入力

関連する問題