Skip to content
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

etcd配置模板etcd-3.4.yml.j2问题导致etcd服务拉起失败 #6

Open
chinaloryu opened this issue Apr 28, 2021 · 3 comments
Open

Comments

@chinaloryu
Copy link

etcd-3.4.yml.j2中,listen-peer-urls、listen-client-urls、advertise-client-urls和initial-advertise-peer-urls使用inventory_hostname初始化服务,导致服务无法正常启动,修改为使用eth0接口的ip地址后启动正常,将模板中配置值订正为ansible_eth0.ipv4.address

@liyongjian5179
Copy link
Owner

这个inventory_hostname取的值是 inventory/hosts 中的第一列,考虑到有的系统网卡使用的是 eno ,而非 eth,就直接传了,如果是非 IP 的主机名,在 /etc/hosts 下做好解析,或者内部 dns 可以解析的情况下,问题也不大

@chinaloryu
Copy link
Author

chinaloryu commented Apr 28, 2021 via email

@liyongjian5179
Copy link
Owner

嗯嗯,可以针对自身环境修改下,现有的配置参数只是适配我现状的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants