-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP]Add zaqar deploy ansible. #100
base: master
Are you sure you want to change the base?
Conversation
@@ -19,6 +19,7 @@ | |||
roles: | |||
- trove | |||
- haproxy | |||
- zaqar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zaqar 应该在 haproxy 之前。
service_type: "messaging" | ||
endpoint_dict: "{{ zaqar_endpoints }}" | ||
|
||
#- name: Creating zaqar mongodb user and setting permissions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释部份需要保留的话,要说明一下原因,不然就直接去掉了。
@@ -0,0 +1,49 @@ | |||
[loggers] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging.conf 这个文件稍微研究了下,没找到是哪里用到了,所以怀疑实际上只有 zaqar.conf 里的 log_file 起作用?
另外之前有一个 commit 64a6c47 ,由于目前 docker 版本较低,不能保留 stderr 日志,所以也需要改一下。(如果是 logging.conf 起作用的话,需要改这个文件,不然应该是和 Trove 之一样的直接改 zaqar.conf ) 。
|
||
zaqar_log_directory: "/var/log/{{ project_name }}" | ||
zaqar_logging_debug: "True" | ||
zaqar_mongodb_uri: "mongodb+replicaSet://zaqar:{{ zaqar_database_password }}@{{ zaqar_mongodb_nodes }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zaqar_mongodb_nodes 这个看起来只能执行 ansible-play 时通过命令直接赋值了?
那 zaqar_database_password 看起来稍微麻烦一点,这个变量是 genpwd.py 生成写到 eayunstack_passwords_file 里去的,但是实际目前没有创建 MongoDB 用户的 task (后面被注释了?),所以目前只能是 genpwd.py 之后,手动去创建?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯 这个目前还没做
暂不合并