-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
526e5bb
commit 8fceff6
Showing
9 changed files
with
116 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
secret/ | ||
secret/ | ||
roles/void-deployment/files/netboot.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,6 @@ | |
[submodule "roles/greeter-theme/files/lug-greeter-theme"] | ||
path = roles/greeter-theme/files/lug-greeter-theme | ||
url = [email protected]:utdlug/lug-greeter-theme.git | ||
[submodule "roles/preseed-overlay"] | ||
path = roles/preseed-overlay | ||
url = [email protected]:SimpleGateway/preseed-overlay.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule preseed-overlay
added at
05b37c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#!/bin/sh | ||
# Void Linux Automatic Install Configuration | ||
|
||
# === | ||
# Disk Configuration | ||
# === | ||
# disk: the disk to install to | ||
# default: the first disk that isn't the installer | ||
#disk=/dev/hda | ||
|
||
# bootpartitionsize: controls how large the boot partition will be | ||
# default: 500M | ||
#bootpartitionsize=500M | ||
|
||
# swapsize: how large should the swap partition be | ||
# default: equal to the installed physical memory | ||
#swapsize= | ||
|
||
# === | ||
# XBPS Configuration | ||
# === | ||
# xbpsrepository: which repo should the install pull from | ||
# default: http://repo.voidlinux.eu/current | ||
#xbpsrepository="http://repo.voidlinux.eu/current" | ||
|
||
# pkgs: additional packages to install into the target | ||
# default: none | ||
#pkgs="" | ||
|
||
# === | ||
# Default User | ||
# === | ||
# username: the username of the user to be created | ||
# default: voidlinux | ||
username="lug" | ||
|
||
# password: password to set for the new user | ||
# default: unset (will prompt during install) | ||
# Warning: This does not work in musl! | ||
password="lug" | ||
|
||
# === | ||
# Misc. Options | ||
# === | ||
# timezone: Timezone in TZ format | ||
# default: America/Chicago | ||
#timezone="America/Chicago" | ||
|
||
# keymap: Keymap to use by default | ||
# default: us | ||
#keymap="us" | ||
|
||
# locale: initial glibc locale | ||
# default: en_US.UTF-8 | ||
#libclocale=en.US.UTF-8 | ||
|
||
# hostname: static hostname for the system | ||
# default: derived from DNS | ||
#hostname=VoidLinux | ||
|
||
# end_action: what to do at the end of the install | ||
# default: shutdown | ||
# alternate values: reboot, script, func | ||
#end_action=shutdown | ||
|
||
# end_script: script to optionally run at end of install | ||
# the user script must reside somewhere xbps-uhelper fetch | ||
# can retrieve it from | ||
# default: not set | ||
#end_script="" | ||
|
||
# end_function: a function to optionally be run at | ||
# the end of the install. | ||
end_function() { | ||
printf "Linking default services" | ||
chroot ${target} ln -s /etc/sv/dhcpcd /etc/runit/runsvdir/default/dhcpcd | ||
chroot ${target} ln -s /etc/sv/sshd /etc/runit/runsvdir/default/sshd | ||
|
||
printf "Installing python" | ||
xbps-install -r ${target} -R ${xbpsrepository} -Sy python | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
dependencies: | ||
- { role: preseed-overlay } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: Copy the void archive | ||
copy: src=netboot.tar.gz dest=/srv/tftpboot/netboot.tar.gz owner=root group=wheel mode=0644 | ||
|
||
- name: Install the void archive | ||
command: tar xvzf /srv/tftpboot/netboot.tar.gz -C /srv/tftpboot creates=/srv/tftpboot/pxelinux.0 | ||
|
||
- name: Copy the autoinstall.cfg | ||
copy: src=autoinstall.cfg dest=/var/www/htdocs/preseed/autoinstall.cfg owner=root group=wheel mode=0644 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
- hosts: void-deployment | ||
gather_facts: false | ||
become: yes | ||
become_method: doas | ||
roles: | ||
- gateway-base | ||
- void-deployment |