summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorRoberto Berto <463349+robertoberto@users.noreply.github.com>2024-05-13 19:53:14 +0000
committerRoberto Berto <463349+robertoberto@users.noreply.github.com>2024-05-13 19:53:14 +0000
commit8e90d13f6d762bbd0167ddfe26dddd2884ab3dfe (patch)
tree50e428b1ec0fbbfa4ec3b5390b97a5fcc2b5ca02 /http
parent666055f758690ee24926e4a421e08f7c97deee09 (diff)
downloadpacker-vyos-8e90d13f6d762bbd0167ddfe26dddd2884ab3dfe.tar.gz
packer-vyos-8e90d13f6d762bbd0167ddfe26dddd2884ab3dfe.zip
image build ready level1 install-image
Diffstat (limited to 'http')
-rw-r--r--http/debian_11-vyos.list6
-rw-r--r--http/debian_11.list5
-rw-r--r--http/debian_12-vyos.list6
-rw-r--r--http/debian_12.list5
-rw-r--r--http/install-image.py55
5 files changed, 77 insertions, 0 deletions
diff --git a/http/debian_11-vyos.list b/http/debian_11-vyos.list
new file mode 100644
index 0000000..f91508d
--- /dev/null
+++ b/http/debian_11-vyos.list
@@ -0,0 +1,6 @@
+# temporary debian list to add debian software
+deb http://deb.debian.org/debian buster main contrib non-free
+deb-src http://deb.debian.org/debian buster main contrib non-free
+deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
+deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free
+deb http://dev.packages.vyos.net/repositories/equuleus equuleus main
diff --git a/http/debian_11.list b/http/debian_11.list
new file mode 100644
index 0000000..a791d21
--- /dev/null
+++ b/http/debian_11.list
@@ -0,0 +1,5 @@
+# temporary debian list to add debian software
+deb http://deb.debian.org/debian buster main contrib non-free
+deb-src http://deb.debian.org/debian buster main contrib non-free
+deb http://security.debian.org/debian-security/ buster/updates main contrib non-free
+deb-src http://security.debian.org/debian-security/ buster/updates main contrib non-free
diff --git a/http/debian_12-vyos.list b/http/debian_12-vyos.list
new file mode 100644
index 0000000..46e7c28
--- /dev/null
+++ b/http/debian_12-vyos.list
@@ -0,0 +1,6 @@
+# temporary debian list to add debian software
+deb http://deb.debian.org/debian bookworm main contrib non-free
+deb-src http://deb.debian.org/debian bookworm main contrib non-free
+deb http://security.debian.org/debian-security/ bookworm/updates main contrib non-free
+deb-src http://security.debian.org/debian-security/ bookworm/updates main contrib non-free
+deb http://dev.packages.vyos.net/repositories/current current main
diff --git a/http/debian_12.list b/http/debian_12.list
new file mode 100644
index 0000000..8dc95b8
--- /dev/null
+++ b/http/debian_12.list
@@ -0,0 +1,5 @@
+# temporary debian list to add debian software
+deb http://deb.debian.org/debian bookworm main contrib non-free
+deb-src http://deb.debian.org/debian bookworm main contrib non-free
+deb http://security.debian.org/debian-security/ bookworm/updates main contrib non-free
+deb-src http://security.debian.org/debian-security/ bookworm/updates main contrib non-free
diff --git a/http/install-image.py b/http/install-image.py
new file mode 100644
index 0000000..6a7f314
--- /dev/null
+++ b/http/install-image.py
@@ -0,0 +1,55 @@
+#!/usr/bin/python
+
+import pexpect
+import time
+import sys
+import os
+
+var_vm_name = os.getenv("VM_NAME", "vyos")
+var_ssh_password = os.getenv("VM_PASSWORD", "vyos")
+
+install_process = pexpect.spawn("/opt/vyatta/sbin/install-image", logfile=sys.stdout, encoding='utf-8')
+
+install_process.expect("Would you like to continue")
+time.sleep(0.2)
+install_process.sendline("Yes")
+
+install_process.expect("Partition")
+time.sleep(0.2)
+install_process.sendline("Auto")
+
+install_process.expect("Install the image on")
+time.sleep(0.2)
+install_process.sendline("")
+
+install_process.expect("Continue")
+time.sleep(0.2)
+install_process.sendline("Yes")
+
+install_process.expect("How big of a root partition should I create")
+time.sleep(0.2)
+install_process.sendline("")
+
+install_process.expect("What would you like to name this image")
+time.sleep(0.2)
+install_process.sendline(var_vm_name)
+
+install_process.expect("Which one should I copy to")
+time.sleep(0.2)
+install_process.sendline("")
+
+install_process.expect("Enter password for user")
+time.sleep(0.2)
+install_process.sendline(var_ssh_password)
+
+install_process.expect("Retype password for user")
+time.sleep(0.2)
+install_process.sendline(var_ssh_password)
+
+install_process.expect("Which drive should GRUB modify the boot partition on")
+time.sleep(0.2)
+install_process.sendline("")
+
+# wait until process ends
+install_process.wait()
+