|
5 yıl önce | |
---|---|---|
.gitignore | 5 yıl önce | |
README.md | 5 yıl önce | |
lpi.tf | 5 yıl önce | |
terraform.tfvars.example | 5 yıl önce | |
variables.tf | 5 yıl önce |
This is a teraform setup for my LPI Labs. The servers are deployed on DigitalOcean. The DNS is automatically updated with the server names.
$ wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip
$ unzip terraform_0.11.7_linux_amd64.zip
$ sudo cp terraform /usr/local/bin
$ git clone https://git.theo-andreou.org/Personal/lpi-deploy-digitalocean.git
$ cd lpi-deploy-digitalocean
do_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
domain = "example.org"
count = 14
server_name = {
"debian" = "lpi-deb"
"centos" = "lpi-centos"
}
images = {
"debian" = "debian-9-x64"
"centos" = "centos-7-x64"
}
ssh_keys = [
"xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx",
]
dns_server = "ns1.example.org"
dns_key_name = "control.ns1.example.org"
dns_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxx+xxx=="
$ terraform init
$ terraform plan -out lpi.plan
$ terraform apply "lpi.plan"