index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | deployments/00:11:22:33:44:55.json | 8 | ||||
-rw-r--r-- | deployments/default.json | 19 | ||||
-rw-r--r-- | deployments/gitea.json | 13 | ||||
-rw-r--r-- | deployments/vmhost.json | 26 |
diff --git a/deployments/00:11:22:33:44:55.json b/deployments/00:11:22:33:44:55.json index e96fc01b..909b4256 100644 --- a/deployments/00:11:22:33:44:55.json +++ b/deployments/00:11:22:33:44:55.json @@ -6,14 +6,14 @@ "post" : "don't reboot" }, "post" : { + "Setup user" : { + "useradd -m -G wheel -s /bin/bash anton" : null, + "sh -c \"echo {user}:{password} | chpasswd\"" : {"pass-args" : true} + }, "Setup a basic virtual environment": { "mkdir -p /home/{user}/virts" : {"pass-args" : true}, "qemu-img create -f qcow2 /home/{user}/virts/test_deploy.qcow2 4G" : {"pass-args" : true}, "chown -R {user}.{user} /home/{user}/virts" : {"pass-args" : true} - }, - "Setup user" : { - "useradd -m -G wheel -s /bin/bash anton" : null, - "sh -c \"echo {user}:{password} | chpasswd\"" : {"pass-args" : true} } } } diff --git a/deployments/default.json b/deployments/default.json index 5deded3e..cd205f84 100644 --- a/deployments/default.json +++ b/deployments/default.json @@ -1,6 +1,17 @@ { - "args" : { - "password" : "<STDIN>", - "post" : "reboot" - } + "args" : { + "password" : "0000", + "post" : "stay" + }, + "post" : { + "test exit codes" : { + "ssh test@77.80.220.176" : {"events" : { + "continue connecting" : "yes\n", + "s password" : "test\n" + }, + "boot" : true, + "debug" : true + } + } + } } diff --git a/deployments/gitea.json b/deployments/gitea.json new file mode 100644 index 00000000..efb4c15e --- /dev/null +++ b/deployments/gitea.json @@ -0,0 +1,13 @@ +{ + "args" : { + "password" : "<STDIN>", + "_editor" : "nano", + "_utils" : "openssh git curl dhclient", + "post" : "don't reboot" + }, + "post" : { + "Install workstation packages": { + "pacman -Syy --noconfirm {_utils} {_editor}" : {"pass-args" : true} + } + } +} diff --git a/deployments/vmhost.json b/deployments/vmhost.json new file mode 100644 index 00000000..0b2dabec --- /dev/null +++ b/deployments/vmhost.json @@ -0,0 +1,26 @@ +{ + "args" : { + "password" : "<STDIN>", + "_keyboard_layout" : "us", + "_editor" : "vim", + "_window_manager" : "i3", + "_window_manager_dependencies" : "xorg-server xorg-xrandr xorg-xinit xterm", + "_window_manager_utilities" : "slock xscreensaver terminus-font-otb gnu-free-fonts ttf-liberation xsel", + "_virtulization" : "qemu ovmf", + "_utils" : "git htop dhclient curl", + "post" : "don't reboot" + }, + "post" : { + "Install workstation packages": { + "pacman -Syy --noconfirm {_editor} {_utils} {_window_manager} {_window_manager_dependencies} {_window_manager_utilities} {_virtulization}" : {"pass-args" : true} + }, + "Setup virtulization" : { + "sh -c \"Description=\\\"Bridge for virtual machines\\\"\nInterface=br0\nConnection=bridge\nBindsToInterfaces=(eno1)\nIP=no\nExecUpPost=\\\"ip link set dev br0 address $(cat /sys/class/net/eno1/address); IP=dhcp; ip_set\\\"\nExecDownPre=\\\"IP=dhcp\\\"\n\n## Ignore (R)STP and immediately activate the bridge\nSkipForwardingDelay=yes\"" : null + }, + "Setup localization" : { + "sh -c \"echo 'setxkbmap us' >> /etc/X11/xinit/xinitrc\"" : null, + "sh -c \"echo 'KEYMAP={_keyboard_layout}\nFONT=lat9w-16' >> /etc/vconsole.conf\"" : {"pass-args" : true} + }, + "Configure desktop environment" : "i3" + } +} |