[WIP]Add zaqar deploy ansible.#100
Open
cdyangzhenyu wants to merge 1 commit intoeayunstack:masterfrom
Open
Conversation
zhaochao
reviewed
Dec 13, 2017
| roles: | ||
| - trove | ||
| - haproxy | ||
| - zaqar |
| service_type: "messaging" | ||
| endpoint_dict: "{{ zaqar_endpoints }}" | ||
|
|
||
| #- name: Creating zaqar mongodb user and setting permissions |
Contributor
There was a problem hiding this comment.
注释部份需要保留的话,要说明一下原因,不然就直接去掉了。
| @@ -0,0 +1,49 @@ | |||
| [loggers] | |||
Contributor
There was a problem hiding this comment.
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 }}" |
Contributor
There was a problem hiding this comment.
zaqar_mongodb_nodes 这个看起来只能执行 ansible-play 时通过命令直接赋值了?
那 zaqar_database_password 看起来稍微麻烦一点,这个变量是 genpwd.py 生成写到 eayunstack_passwords_file 里去的,但是实际目前没有创建 MongoDB 用户的 task (后面被注释了?),所以目前只能是 genpwd.py 之后,手动去创建?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
暂不合并