Skip to content

Provision Fedora CoreOS VMs using a libvirt-kvm hypervisor.

License

Notifications You must be signed in to change notification settings

TkPegatron/tf-libvirt-fcos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform CoreOS KVM

Intended use case: Provision Fedora CoreOS virtual machines using libvirt. Further configuring them utilizing Ansible.

Requirements

Variables

  • fcos_version: Corresponds to the version in the url.
    • https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/${FCOS_VERSION}/x86_64/fedora-coreos-${FCOS_VERSION}-qemu.x86_64.qcow2.xz
    • This file will be downloaded and decompressed on the local machine and uploaded to the target hypervisor if it is not present.

Butane

This project comes with a butane configuration file with the following parameters:

  • The ansible user's password is set to ChangeMe123. You can generate a new password using mkpasswd.
  • The timezone is set to America/Detroit.
  • Installs Python on boot for Ansible.

main.tf will look first for a file in the format ${path.module}/butane/${node.name}.yaml, if it isnt found it will fallback to the generic butane file included in this repository.

The butane yaml will be passed through the terraform templatefile function and then handed off the the fcos_vm module's poseidon/ct resource to convert it to the ignition format.

Documentation for butane is here

Borrowed sources

I used the following projects to piece this together as I learn terraform.

License

Apache License 2.0

About

Provision Fedora CoreOS VMs using a libvirt-kvm hypervisor.

Topics

Resources

License

Stars

Watchers

Forks