commit ca5fed619c6155bd171cebb0c19ec98f4fa9ef89 Author: Wojciech Janota Date: Tue Jan 17 18:38:40 2023 +0100 first diff --git a/pliki-konfiguracyjne-serwera-pxe/.DS_Store b/pliki-konfiguracyjne-serwera-pxe/.DS_Store new file mode 100644 index 0000000..fc6a105 Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/.DS_Store differ diff --git a/pliki-konfiguracyjne-serwera-pxe/etc/apache2/sites-available/ks-server.conf b/pliki-konfiguracyjne-serwera-pxe/etc/apache2/sites-available/ks-server.conf new file mode 100644 index 0000000..9198219 --- /dev/null +++ b/pliki-konfiguracyjne-serwera-pxe/etc/apache2/sites-available/ks-server.conf @@ -0,0 +1,17 @@ + + ServerAdmin root@192.168.1.25 + DocumentRoot / + ServerName pxe-ks.nixenos.ovh + ErrorLog ${APACHE_LOG_DIR}/ks-server.example.com-error_log + CustomLog ${APACHE_LOG_DIR}/ks-server.example.com-access_log common + + Options Indexes MultiViews + AllowOverride All + Require all granted + + + Options Indexes MultiViews + AllowOverride All + Require all granted + + diff --git a/pliki-konfiguracyjne-serwera-pxe/ks/meta-data b/pliki-konfiguracyjne-serwera-pxe/ks/meta-data new file mode 100644 index 0000000..e69de29 diff --git a/pliki-konfiguracyjne-serwera-pxe/ks/user-data b/pliki-konfiguracyjne-serwera-pxe/ks/user-data new file mode 100755 index 0000000..da666bd --- /dev/null +++ b/pliki-konfiguracyjne-serwera-pxe/ks/user-data @@ -0,0 +1,67 @@ +#cloud-config +autoinstall: + apt: + geoip: true + preserve_sources_list: false + primary: + - arches: [amd64, i386] + uri: http://archive.ubuntu.com/ubuntu + - arches: [default] + uri: http://ports.ubuntu.com/ubuntu-ports + identity: {hostname: client, password: $1$oxSzFxh3$YL4WgVnYjJmrbHlFJ1oxQ1, + realname: admin, username: admin} + packages_update: true + packages_upgrade: true + packages: + - git + - make + - python3 + - python3-pip + - qemu + - qemu-system + - rxvt-unicode + - i3 + - xorg + - xterm + keyboard: {layout: us, toggle: null, variant: ''} + locale: en_US.UTF-8 + users: + - name: ansible + gecos: Ansible User + groups: users,admin,wheel + sudo: ALL=(ALL) NOPASSWD:ALL + shell: /bin/bash + lock_passwd: true + ssh_authorized_keys: + - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtUmNykJt6STpGnAVtCl/EkIou5P02Q4T5o+PVn/gK6" + +# network: +# ethernets: +# eno49: {dhcp4: true} +# eno50: {critical: true, dhcp-identifier: mac, dhcp4: true} +# version: 2 + ssh: {allow-pw: true, authorized-keys: ['ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKtUmNykJt6STpGnAVtCl/EkIou5P02Q4T5o+PVn/gK6'], install-server: true} +# storage: +# config: +# - {ptable: gpt, serial: 3600508b1001c576619b6670156e25877, wwn: '0x600508b1001c576619b6670156e25877', +# path: /dev/sda, wipe: superblock, preserve: false, name: '', grub_device: true, +# type: disk, id: disk-sda} +# - {device: disk-sda, size: 1048576, flag: bios_grub, number: 1, preserve: false, +# grub_device: false, type: partition, id: partition-0} +# - {device: disk-sda, size: 1073741824, wipe: superblock, flag: '', number: 2, +# preserve: false, grub_device: false, type: partition, id: partition-1} +# - {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-0} +# - {device: disk-sda, size: 899074228224, wipe: superblock, flag: '', number: 3, +# preserve: false, grub_device: false, type: partition, id: partition-2} +# - name: ubuntu-vg +# devices: [partition-2] +# preserve: false +# type: lvm_volgroup +# id: lvm_volgroup-0 +# - {name: ubuntu-lv, volgroup: lvm_volgroup-0, size: 214748364800B, wipe: superblock, +# preserve: false, type: lvm_partition, id: lvm_partition-0} +# - {fstype: ext4, volume: lvm_partition-0, preserve: false, type: format, id: format-1} +# - {path: /, device: format-1, type: mount, id: mount-1} +# - {path: /boot, device: format-0, type: mount, id: mount-0} + updates: security + version: 1 diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/.DS_Store b/pliki-konfiguracyjne-serwera-pxe/srv/.DS_Store new file mode 100644 index 0000000..2b303bc Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/srv/.DS_Store differ diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/tftp/.DS_Store b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/.DS_Store new file mode 100644 index 0000000..bea484f Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/.DS_Store differ diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/tftp/bootx64.efi b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/bootx64.efi new file mode 100755 index 0000000..e75c6cc Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/bootx64.efi differ diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/tftp/grub/grub.cfg b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/grub/grub.cfg new file mode 100755 index 0000000..d311f40 --- /dev/null +++ b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/grub/grub.cfg @@ -0,0 +1,34 @@ +set default="0" +set timeout=-30 + +if loadfont unicode ; then + set gfxmode=auto + set locale_dir=$prefix/locale + set lang=en_US +fi +terminal_output gfxterm + +set menu_color_normal=white/black +set menu_color_highlight=black/light-gray +if background_color 44,0,30; then + clear +fi + +function gfxmode { + set gfxpayload="${1}" + if [ "${1}" = "keep" ]; then + set vt_handoff=vt.handoff=7 + else + set vt_handoff= + fi +} + +set linux_gfx_mode=keep + +export linux_gfx_mode + +menuentry 'Install Ubuntu 22.04' { + gfxmode $linux_gfx_mode + linux vmlinuz ip=dhcp url=http://192.168.1.25/images/ubuntu22/ubuntu.iso autoinstall ds=nocloud-net\;s=http://192.168.1.25/ks/ cloud-config-url=/dev/null fsck.mode=skip + initrd initrd +} diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/tftp/grubx64.efi b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/grubx64.efi new file mode 100644 index 0000000..5ad7172 Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/grubx64.efi differ diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/tftp/initrd b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/initrd new file mode 100755 index 0000000..ddf413c Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/initrd differ diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/tftp/unicode.pf2 b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/unicode.pf2 new file mode 100755 index 0000000..7848a5d Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/unicode.pf2 differ diff --git a/pliki-konfiguracyjne-serwera-pxe/srv/tftp/vmlinuz b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/vmlinuz new file mode 100755 index 0000000..358175f Binary files /dev/null and b/pliki-konfiguracyjne-serwera-pxe/srv/tftp/vmlinuz differ