-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support all in one
- Loading branch information
Showing
5 changed files
with
70 additions
and
32 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
nebula_packages: | ||
name: | ||
"{%- if install_source_type == 'GA' -%} | ||
name: "{%- if install_source_type == 'GA' -%} | ||
nebula-graph-{{ nebula_version }}.{{ os_version }}.{{ arc }}.{{ pkg }} | ||
{%- else -%} | ||
{%- else -%} | ||
nebula-graph-{{ now()|yesterday_format }}-nightly.{{ os_version }}.{{ arc }}.{{ pkg }} | ||
{%- endif -%}" | ||
|
||
version: | ||
"{%- if install_source_type.lower() == 'ga' -%} | ||
|
||
version: "{%- if install_source_type.lower() == 'ga' -%} | ||
{{ nebula_version }} | ||
{%- else -%} | ||
{%- else -%} | ||
{{ nebula_version }}-{{ now()|yesterday_format }}-nightly | ||
{%- endif -%}" | ||
|
||
url: | ||
"{%- if install_source_type.lower() == 'ga' -%} | ||
https://oss-cdn.nebula-graph.io/package/{{ nebula_version }}/nebula-graph-{{ nebula_version }}.{{ os_version }}.{{ arc }}.{{ pkg }} | ||
{%- else -%} | ||
https://oss-cdn.nebula-graph.io/package/nightly/{{ now()|yesterday_format }}/nebula-graph-{{ now()|yesterday_format }}-nightly.{{ os_version }}.{{ arc }}.{{ pkg }} | ||
url: "{%- if install_source_type.lower() == 'ga' -%} | ||
https://oss-cdn.nebula-graph.com.cn/package/{{ nebula_version }}/nebula-graph-{{ nebula_version }}.{{ os_version }}.{{ arc }}.{{ pkg }} | ||
{%- else -%} | ||
https://oss-cdn.nebula-graph.com.cn/package/nightly/{{ now()|yesterday_format }}/nebula-graph-{{ now()|yesterday_format }}-nightly.{{ os_version }}.{{ arc }}.{{ pkg }} | ||
{%- endif -%}" | ||
|
||
|
||
|
||
metad_port: 9559 | ||
graphd_port: 9669 | ||
storaged_port: 9779 | ||
meta_server_addrs: [ | ||
"{%- for metad in groups['metad'] -%} | ||
{%- if loop.index != 1 -%} | ||
, | ||
{%- endif -%} | ||
{{ hostvars[metad].ansible_default_ipv4.address }}:{{ hostvars[metad].metad_port }} | ||
{%- endfor -%}", | ||
] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[all:vars] | ||
# GA or nightly | ||
install_source_type = nightly | ||
#install_source_type = GA | ||
nebula_version = 2.6.1 | ||
os_version = el7 | ||
arc = x86_64 | ||
pkg = rpm | ||
|
||
packages_dir = {{ playbook_dir }}/packages | ||
deploy_dir = /home/vesoft/nebula | ||
data_dir = {{ deploy_dir }}/data | ||
|
||
# ssh user | ||
ansible_ssh_user = vesoft | ||
|
||
force_download = False | ||
|
||
[metad] | ||
metad1 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula1 metad_port=1559 | ||
metad2 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula2 metad_port=2559 | ||
metad3 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula3 metad_port=3559 | ||
|
||
[graphd] | ||
graphd1 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula1 graphd_port=1669 | ||
graphd2 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula2 graphd_port=2669 | ||
graphd3 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula3 graphd_port=3669 | ||
|
||
[storaged] | ||
storaged1 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula1 storaged_port=1779 | ||
storaged2 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula2 storaged_port=2779 | ||
storaged3 ansible_ssh_host=192.168.15.13 deploy_dir=/home/vesoft/nebula/nebula3 storaged_port=3779 |
This file contains 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
This file contains 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
This file contains 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