Many things
This commit is contained in:
		
							parent
							
								
									05d4287d05
								
							
						
					
					
						commit
						4ecb167ff6
					
				
					 5 changed files with 52 additions and 67 deletions
				
			
		|  | @ -6,37 +6,6 @@ locals { | |||
| 
 | ||||
| } | ||||
| 
 | ||||
| # module "virtnode" { | ||||
| #   source = "../terraform-modules/coreos-agent" | ||||
| #  | ||||
| #   name       = "virtnode" | ||||
| #   pool       = "default" | ||||
| #   base_image = "http://matchbox.lab.cowley.tech:8080/assets/fedora-coreos/fedora-coreos-39.20231101.3.0-qemu.x86_64.qcow2" | ||||
| #   memory     = 2048 | ||||
| #   vcpu       = 1 | ||||
| #   disk_size  = 30 | ||||
| #  | ||||
| #   bridge   = "br6" | ||||
| #   ignition = data.ignition_config.worker.rendered | ||||
| # } | ||||
| 
 | ||||
| #resource "matchbox_profile" "worker" { | ||||
| #  name   = "worker" | ||||
| #  kernel = local.kernel | ||||
| #  initrd = [ | ||||
| #    "--name main ${local.initrd}" | ||||
| #  ] | ||||
| #  args = [ | ||||
| #    "ip=dhcp", | ||||
| #    "initrd=main", | ||||
| #    "coreos.live.rootfs_url=${local.rootfs}", | ||||
| #    "coreos.inst.install_dev=/dev/vda", | ||||
| #    "coreos.inst.ignition_url=${var.matchbox_http_endpoint}/ignition?uuid=$${uuid}&mac=$${mac:hexhyp}", | ||||
| #    "console=tty0", | ||||
| #    "console=ttyS0", | ||||
| #  ] | ||||
| #  raw_ignition = data.ignition_config.worker.rendered | ||||
| #} | ||||
| 
 | ||||
| resource "matchbox_profile" "nuc" { | ||||
|   name   = "nuc" | ||||
|  | @ -67,25 +36,6 @@ resource "matchbox_group" "nuc" { | |||
|   } | ||||
| } | ||||
| 
 | ||||
| #resource "matchbox_group" "slowworker" { | ||||
| #  for_each = var.slowworkers | ||||
| # | ||||
| #  name    = each.key | ||||
| #  profile = matchbox_profile.worker.name | ||||
| #  selector = { | ||||
| #    mac = each.value | ||||
| #  } | ||||
| # | ||||
| #} | ||||
| 
 | ||||
| #resource "matchbox_group" "worker" { | ||||
| #  name    = "worker" | ||||
| #  profile = matchbox_profile.worker.name | ||||
| #  selector = { | ||||
| #    mac = "52:54:00:c3:51:e8" | ||||
| #  } | ||||
| # | ||||
| #} | ||||
| 
 | ||||
| data "ignition_user" "core" { | ||||
|   name = "core" | ||||
|  | @ -95,23 +45,7 @@ data "ignition_user" "core" { | |||
|     var.ssh_authorized_key | ||||
|   ] | ||||
| } | ||||
| # | ||||
| #data "ignition_config" "worker" { | ||||
| #  users = [ | ||||
| #    data.ignition_user.core.rendered | ||||
| #  ] | ||||
| #  systemd = [ | ||||
| #    data.ignition_systemd_unit.qemu_ga.rendered, | ||||
| #    data.ignition_systemd_unit.k3s_install.rendered, | ||||
| #    data.ignition_systemd_unit.worker-images-clean-service.rendered, | ||||
| #    data.ignition_systemd_unit.worker-images-clean-timer.rendered | ||||
| #  ] | ||||
| #  files = [ | ||||
| #    data.ignition_file.worker-options.rendered, | ||||
| #    data.ignition_file.k3s_agent_install_script.rendered, | ||||
| #    data.ignition_file.worker-images-clean.rendered | ||||
| #  ] | ||||
| #} | ||||
| 
 | ||||
| data "ignition_config" "nuc" { | ||||
|   users = [ | ||||
|     data.ignition_user.core.rendered | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue