From d6d7718b7b241a82f3c97e4d48008378116e02dc Mon Sep 17 00:00:00 2001 From: Haibin Lee Date: Tue, 26 Sep 2023 11:00:33 +0800 Subject: [PATCH] REV: update docs --- README.md | 6 +++++- docs/02-pre-set.md | 4 ++++ docs/03-deploy.md | 13 +++++++++++++ roles/openGauss/tasks/install/install.yml | 2 +- 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d3e2d9c..c2f1882 100644 --- a/README.md +++ b/README.md @@ -56,4 +56,8 @@ # 开发指南 -(待补充) \ No newline at end of file +(待补充) + +# 问题反馈 + +请提交 [issue](https://gitee.com/opengauss/ansible-for-opengauss/issues),或电邮与我联系 haibin.l@linkingcloud.cn \ No newline at end of file diff --git a/docs/02-pre-set.md b/docs/02-pre-set.md index 6a1011d..c04f03d 100644 --- a/docs/02-pre-set.md +++ b/docs/02-pre-set.md @@ -70,4 +70,8 @@ combined_vars: 整个部署任务,都会大量使用 combined_vars 里的变量。 +# 使用自定义的 cluster_config.xml + +如果你需要手动定制集群,这里也是支持的,只需要把写好的 `cluster_config.xml` 改名为 `cluster_config.xml.j2`,存放到 `ansible-docker/inventories/opengauss/templates/cluster_config.xml.j2`,部署时会优先使用你的自定义配置。 + 接下来就可以[开始部署](03-deploy.md) \ No newline at end of file diff --git a/docs/03-deploy.md b/docs/03-deploy.md index 163a056..14a042e 100644 --- a/docs/03-deploy.md +++ b/docs/03-deploy.md @@ -18,6 +18,19 @@ 这里的 `pansible` 是我预置的命令别名,对应的是 `ansible-playbook`。 +1. 部署过程中自动生成的公私钥,以及账号密码,存放在 `ansible-docker/inventories/opengauss/credentials` + + ``` + ls -l ansible-docker/inventories/opengauss/credentials/ + total 24 + -rw------- 1 root root 387 9月24日 14:24 openGauss_id_om + -rw-r--r-- 1 root root 82 9月24日 14:24 openGauss_id_om.pub + -rw------- 1 root root 3357 9月24日 14:24 openGauss_id_rsa + -rw-r--r-- 1 root root 726 9月24日 14:24 openGauss_id_rsa.pub + -rw------- 1 root root 21 9月24日 13:36 openGauss_omm_pass + -rw------- 1 root root 17 9月24日 13:36 openGauss_root_pass + ``` + # 顺利部署后,你可看到一下输出内容 ## 单节点 diff --git a/roles/openGauss/tasks/install/install.yml b/roles/openGauss/tasks/install/install.yml index 3249ec1..5ed4225 100644 --- a/roles/openGauss/tasks/install/install.yml +++ b/roles/openGauss/tasks/install/install.yml @@ -7,7 +7,7 @@ backup: true lstrip_blocks: true with_first_found: - - "{{ inventory_dir }}/templates/openGauss/cluster_config.xml.j2" + - "{{ inventory_dir }}/templates/cluster_config.xml.j2" - "cluster_config.xml.j2" - name: Starting pre install -- Gitee