配置虚拟私有云
![](https://i-blog.csdnimg.cn/direct/e576f53edcd04d6a92bdecfcac180ace.png)
![](https://i-blog.csdnimg.cn/direct/0fbbd6397af94a53a5047a0638651e46.png)
![](https://i-blog.csdnimg.cn/direct/99b78db82fb740c3b2dce427d5ea7a42.png)
![](https://i-blog.csdnimg.cn/direct/6db284e3b1f54517afe188243ec1cb3a.png)
![](https://i-blog.csdnimg.cn/direct/0d3156cb54dd470199b8e9b77daae8a6.png)
![](https://i-blog.csdnimg.cn/direct/037452d107f448f0b25e90cf5543d540.png)
![](https://i-blog.csdnimg.cn/direct/2b51cedd84004c429a8da6fe355ec9b4.png)
![](https://i-blog.csdnimg.cn/direct/4571492e64364266ac79c184bfe74635.png)
![](https://i-blog.csdnimg.cn/direct/875ac763e5f8495f86abefe86c42a08c.png)
![](https://i-blog.csdnimg.cn/direct/2d34919aa63d43a3865c6b727d1f8cc7.png)
![](https://i-blog.csdnimg.cn/direct/ff28c017063d4b299e4f45bfbc56d6e7.png)
云平台架管理
![](https://i-blog.csdnimg.cn/direct/1261c88590f8449299e8e6d510b49527.png)
跳板机配置
![](https://i-blog.csdnimg.cn/direct/f1f978a6e92f4f53bb17106581629b1e.png)
ansible 管理主机
dnf install -y ansible-core glibc-langpack-zh
ssh-keygen
chmod 0400 /root/.ssh/id_rsa
ssh-copy-id -i /root/.ssh/id_rsa.pub 192.168.1.125
ansible --version
![](https://i-blog.csdnimg.cn/direct/27ceb6472dbb4fd5861c4edc7f75a9d6.png)
![](https://i-blog.csdnimg.cn/direct/89735683efeb47cbb6b974c0ce9c4ce0.png)
代理 Yum 仓库
dnf install -y nginx
vim /etc/nginx/default.d/dnf_proxy.conf
resolver 100.125.1.250 100.125.129.250 valid=5 ipv6=off;
location ~ ^/rockylinux/(.*)$ {
proxy_pass https://repo.huaweicloud.com/rockylinux/$1;
}
systemctl enable --now nginx
私有 Yum 仓库
dnf install -y createrepo
mkdir -p /var/localrepo
createrepo --update /var/localrepo
ln -s /var/localrepo /usr/share/nginx/html/
配置 Yum 客户端
![](https://i-blog.csdnimg.cn/direct/fb3b378f05de4eb9bea2052870d33957.png)
![](https://i-blog.csdnimg.cn/direct/775d9c8a735e4962a25f6f59909d17d9.png)