In these examples we will use nix-shell to setup our local environment,
including: creation of an SSH key and acquiring any dependencies.
cd into the example directory you want to try and enter nix-shell. Specific
instructions for any particular example should be echoed to the terminal.
Install libvirt and start default pool and net:
virsh --connect "qemu:///system" pool-define-as default dir - - - - /var/lib/libvirt/images
virsh --connect "qemu:///system" pool-start default
virsh --connect "qemu:///system" net-start defaultcd libvirt
nix-shellInit Terraform plugins and apply plan:
terraform init
terraform applyInitialize Nixiform using the Terraform state:
nixiform initTake a look at the inputs given to Nixiform from Terraform:
nixiform inputBuild and push the configuration in nixiform.nix to the instances created by
Terraform:
nixiform pushCheck result by browsing to web server:
xdg-open http://$(nixiform input nodes.server_01.ip)