summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-08-09 09:42:07 +0300
committerLars Wirzenius <liw@liw.fi>2016-08-09 09:42:07 +0300
commit5cb203b9d45439dfb3fafd31299ed23e98a20ce2 (patch)
treeb68a0dcfc6f4e7fe5ab2f35fe677db0ac84ecde2
parenta0b4c66a3c8112026aff5a02ff52a9e6576dc2f7 (diff)
downloadminipc-router-5cb203b9d45439dfb3fafd31299ed23e98a20ce2.tar.gz
Use YAML for config files
So much nicer.
-rwxr-xr-xbuild.sh4
-rw-r--r--installer.yaml20
-rw-r--r--router.yaml21
3 files changed, 43 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index a047852..e3fbf68 100755
--- a/build.sh
+++ b/build.sh
@@ -3,6 +3,6 @@
set -eu
rm -f router.img router.img.gz installer.img
-vmdebootstrap --config router.conf
+vmdebootstrap --config router.yaml
gzip router.img
-vmdebootstrap --config installer.conf
+vmdebootstrap --config installer.yaml
diff --git a/installer.yaml b/installer.yaml
new file mode 100644
index 0000000..8f6e61e
--- /dev/null
+++ b/installer.yaml
@@ -0,0 +1,20 @@
+config:
+ mirror: http://debmirror/debian
+ enable-dhcp: no
+ size: 1G
+ verbose: yes
+ grub: yes
+ sparse: yes
+ sudo: yes
+ package:
+ - ssh
+ - python
+ - pv
+ - psmisc
+ hostname: installer
+ arch: amd64
+ distribution: jessie
+ image: installer.img
+ customize: ./installer.customize
+ use-uefi: yes
+ log: installer.log
diff --git a/router.yaml b/router.yaml
new file mode 100644
index 0000000..fa2c75d
--- /dev/null
+++ b/router.yaml
@@ -0,0 +1,21 @@
+config:
+ mirror: http://debmirror/debian
+ enable-dhcp: no
+ size: 4G
+ verbose: yes
+ grub: yes
+ sparse: yes
+ sudo: yes
+ package:
+ - ssh
+ - python
+ - dnsmasq
+ - psmisc
+ customize: ./router.customize
+ hostname: router
+ arch: amd64
+ distribution: jessie
+ image: router.img
+ use-uefi: yes
+ log: router.log
+ \ No newline at end of file