#冲刺创作新星# OLVM DR Setup 原创

GabrielWu
发布于 2022-9-27 09:56
浏览
0收藏

Install Development tools

yum groupinstall "Development tools" -y
  • 1.
Install epel

rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/epel/epel-release-latest-7.noarch.rpm
  • 1.
yum install ansible

yum install ansible -y
  • 1.
编辑ansible hosts文件

[olvm]
192.168.10.51

[olvm-dr]
192.168.10.52

[cluster:children]
olvm
olvm-dr
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
配置免密登录

ssh-keygen
ssh-copy-id 192.168.10.51
ssh-copy-id 192.168.10.52
  • 1.
  • 2.
  • 3.
ansible测试

[root@ansible ansible]# ansible all -m ping
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
[WARNING]: Platform linux on host 192.168.10.52 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
192.168.10.52 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    },
    "changed": false,
    "ping": "pong"
}
[WARNING]: Platform linux on host 192.168.10.51 is using the discovered Python interpreter at /usr/bin/python, but future installation of another Python interpreter could change this. See
https://docs.ansible.com/ansible/2.9/reference_appendices/interpreter_discovery.html for more information.
192.168.10.51 | SUCCESS => {
    "ansible_facts": {
        "discovered_interpreter_python": "/usr/bin/python"
    },
    "changed": false,
    "ping": "pong"
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
安装ovirt角色

ansible-galaxy install oVirt.ovirt-ansible-roles -p /usr/share/ansible/roles/
ansible-galaxy install oVirt.infra -p /usr/share/ansible/roles/
  • 1.
  • 2.
检查安装结果

[root@ansible ansible]# ls /root/.ansible/roles/
ovirt.cluster-upgrade    ovirt.engine-setup         ovirt.image-template  oVirt.infra     oVirt.ovirt-ansible-roles  ovirt.shutdown_env         ovirt.vm-infra
ovirt.disaster-recovery  ovirt.hosted_engine_setup  ovirt.infra           ovirt.manageiq  ovirt.repositories         ovirt.v2v-conversion-host
  • 1.
  • 2.
  • 3.
Generate dr.conf

yum install python-pip python3 libcurl-devel python3-devel libxslt-devel -y
pip3 install ovirt-engine-sdk-python pycurl pyyaml
pip install pycurl ovirt-engine-sdk-python
  • 1.
  • 2.
  • 3.

©著作权归作者所有,如需转载,请注明出处,否则将追究法律责任
已于2022-9-27 09:56:38修改
1
收藏
回复
举报
1
回复
    相关推荐