【文件属性】:
文件名称:terraform-lab:使用Terraform部署的实验室
文件大小:19KB
文件格式:ZIP
更新时间:2021-04-04 20:42:25
HCL
地形实验室
先决条件
CentOS Stream 8
安装
安装terraform。
cat > hashicorp.repo << " EOF "
[hashicorp]
name=Hashicorp Stable - $basearch
baseurl=https://rpm.releases.hashicorp.com/RHEL/8/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://rpm.releases.hashicorp.com/gpg
EOF
sudo dnf config-manager --add-repo hashicorp.repo
sudo dnf -y install packer
安装libvirt的terraform提供程序。
curl -Lo /tmp/libvirt-provider.tgz h
【文件预览】:
terraform-lab-main
----.gitignore(68B)
----coreos()
--------main.tf(481B)
--------coreos.tf(2KB)
--------variables.tf(589B)
--------provider.tf(47B)
--------README.md(403B)
--------network.tf(244B)
----windows()
--------main.tf(1KB)
--------templates()
--------variables.tf(583B)
--------provider.tf(47B)
--------ansible()
--------README.md(150B)
--------network.tf(244B)
--------windows.tf(1KB)
--------packer()
----.gitmodules(141B)
----README.md(1KB)
----centos()
--------main.tf(1KB)
--------templates()
--------centos.tf(2KB)
--------variables.tf(588B)
--------provider.tf(47B)
--------ansible()
--------README.md(315B)
--------network.tf(244B)