我已经在GitHub上克隆了存储库,我正在寻找安装说明。
到目前为止,我已经完成了这些步骤(在Mac终端中):
现在是什么?
答案 0 :(得分:1)
到目前为止你所做的一切都很完美!
在运行安装程序之前,将/ opt / cloud-manager添加到PATH变量中。对于Bash,您可以在主目录中的.bash_profile文件的底部添加以下内容:
export PATH=${PATH}:/opt/cloud-manager
下一步是运行安装程序,它会询问您有关基础架构的一系列问题,以便配置Cloud Manager(CM)。
注意:在执行安装之前,您应该以要运行CM的用户帐户登录 - 包括'git clone'命令。
以下是如何开始采访:
$ ./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,那么您希望将所有内容重置为默认值。
要使用响应文件重新运行安装程序,请运行:
$ ./methods/cm-init -c -r templates/your-response-file.resp
现在配置了CM,只需输入'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