From db5033dce65fbf686682b5ce2f21a9cf28f50079 Mon Sep 17 00:00:00 2001 From: Rahul Desai Date: Mon, 25 Mar 2024 12:44:22 -0700 Subject: [PATCH] add sysbox service files --- sysbox-eks.pkr.hcl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sysbox-eks.pkr.hcl b/sysbox-eks.pkr.hcl index e54de6a..23f2646 100644 --- a/sysbox-eks.pkr.hcl +++ b/sysbox-eks.pkr.hcl @@ -136,6 +136,21 @@ build { ] } + provisioner "file" { + source = "systemd/system" + destination = "/home/ubuntu" + } + + provisioner "shell" { + inline_shebang = "/usr/bin/env bash" + inline = [ + "echo '>>> Configuring Systemd for Sysbox'", + "sudo mv /home/ubuntu/systemd/system/sysbox-mgr.service /lib/systemd/system/sysbox-mgr.service", + "sudo mv /home/ubuntu/systemd/system/sysbox-fs.service /lib/systemd/system/sysbox-fs.service", + "sudo mv /home/ubuntu/systemd/system/sysbox.service /lib/systemd/system/sysbox.service", + ] + } + provisioner "shell" { inline_shebang = "/usr/bin/env bash" inline = [