OLVM DR Setup

Install Development tools

yum groupinstall "Development tools" -y
Install epel

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

yum install ansible -y
编辑ansible hosts文件

[olvm]
192.168.10.51

[olvm-dr]
192.168.10.52

[cluster:children]
olvm
olvm-dr
配置免密登录

ssh-keygen
ssh-copy-id 192.168.10.51
ssh-copy-id 192.168.10.52
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"
}
安装ovirt角色

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

[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
Generate dr.conf
发表评论

相关文章