Difference between revisions of "Terraform Libvirt provider"
Jump to navigation
Jump to search
m (Welcome moved page Terraform Libvirt module to Terraform Libvirt provider) |
|||
Line 15: | Line 15: | ||
} | } | ||
− | module "vm" { | + | module "[[vm]]" { |
source = "MonolithProjects/vm/libvirt" | source = "MonolithProjects/vm/libvirt" | ||
version = "1.6.0" | version = "1.6.0" |
Revision as of 19:34, 27 October 2022
terraform { required_version = ">= 0.13" required_providers { libvirt = { source = "dmacvicar/libvirt" version = "0.6.3" } } } provider "libvirt" { uri = "qemu+ssh://[email protected]/system" } module "vm" { source = "MonolithProjects/vm/libvirt" version = "1.6.0" vm_hostname_prefix = "server" vm_count = 3 memory = "2048" hugepages = false vcpu = 1 pool = "terra_pool" system_volume = 20 dhcp = true local_admin = "local-admin" ssh_admin = "ci-user" ssh_private_key = "~/.ssh/id_ed25519" local_admin_passwd = "$6$rounds=4096$xxxxxxxxHASHEDxxxPASSWORD" ssh_keys = [ "ssh-ed25519 AAAAxxxxxxxxxxxxSSHxxxKEY example", ] time_zone = "CET" os_img_url = "file:///home/myuser/ubuntu-20.04-server-cloudimg-amd64.img" } output "ip_addresses" { value = module.nodes }
See also
- Terraform, OpenTofu, Terrakube.org, Installation, Terraform AWS, Terraform GCP, Terraform commands, Terraform Cloud, Terraform Enterprise (TFE), HCL, HIL, meta-arguments, providers, modules, resource, provisioners, data sources, backends: remote backends, examples, configuration files, state files, variables, types, Terraform Registry, conditionals:
depends_on
, functions, Blocks, dynamic blocks, errors, Terragrunt, Terraformer, Terratest, Terraform certifications, Terraform map type, Terraform Associate, Terraform: list type,TF_VAR_, TF_LOG
, Terraform provider versioning, Terraform Style Conventions, Required version, Terraform plugin, Terraform Named Values, tags, Changelog,tfsec, tflint
, Operators, Expressions:for, splat
, Debugging, Namespaces, Terraform Landing Zones, CDKTF, Atmos
Advertising: