Init repo
This commit is contained in:
89
http/preseed.cfg.j2
Executable file
89
http/preseed.cfg.j2
Executable file
@@ -0,0 +1,89 @@
|
||||
debconf debconf/language string fr
|
||||
d-i debconf/language string fr
|
||||
d-i debian-installer/language string fr
|
||||
d-i debian-installer/locale string fr_FR.UTF-8
|
||||
d-i debian-installer/splash boolean false
|
||||
d-i debian-installer/language string fr
|
||||
d-i debian-installer/country string FR
|
||||
d-i console-setup/ask_detect boolean false
|
||||
d-i console-setup/layoutcode string fr
|
||||
d-i keyboard-configuration/xkb-keymap select fr
|
||||
d-i keyboard-configuration/layoutcode string fr
|
||||
d-i preseed/early_command string anna-install parted-udeb cryptsetup-udeb crypto-dm-modules lvm2-udeb mdadm-udeb md-modules
|
||||
d-i mirror/country string manual
|
||||
d-i mirror/http/hostname string deb.debian.org
|
||||
d-i mirror/http/directory string /debian
|
||||
d-i mirror/http/proxy string
|
||||
d-i netcfg/get_hostname string {{ vm_name }}
|
||||
d-i netcfg/choose_interface select auto
|
||||
d-i netcfg/get_ipaddress string 192.168.1.90
|
||||
d-i netcfg/get_netmask string 255.255.255.0
|
||||
d-i netcfg/get_gateway string 192.168.1.254
|
||||
d-i netcfg/get_nameservers string 192.168.1.25 9.9.9.9
|
||||
d-i netcfg/confirm_static boolean true
|
||||
d-i netcfg/get_hostname string debian-13-tf
|
||||
d-i netcfg/get_domain string local
|
||||
d-i netcfg/wireless_wep string
|
||||
d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
d-i partman-auto/disk string /dev/{{ prefix_disk }}a
|
||||
d-i partman-auto/method string lvm
|
||||
d-i partman-lvm/device_remove_lvm boolean true
|
||||
d-i partman-lvm/device_remove_lvm_span boolean true
|
||||
d-i partman-auto/purge_lvm_from_device boolean true
|
||||
d-i partman-auto-lvm/new_vg_name string vg00
|
||||
d-i partman-auto/choose_recipe select boot-root
|
||||
d-i partman-lvm/confirm boolean true
|
||||
d-i partman-lvm/confirm_nooverwrite boolean true
|
||||
d-i partman/confirm_write_new_label boolean true
|
||||
d-i partman/choose_partition select Finish partitioning and write changes to disk
|
||||
d-i partman/confirm boolean true
|
||||
d-i partman/confirm_nooverwrite boolean true
|
||||
d-i partman/mount_style select uuid
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i clock-setup/ntp boolean true
|
||||
d-i clock-setup/ntp-server string ntp.ubuntu.com
|
||||
d-i time/zone string Europe/Paris
|
||||
d-i passwd/root-login boolean true
|
||||
d-i passwd/root-password password {{ ssh_password }}
|
||||
d-i passwd/root-password-again password {{ ssh_password }}
|
||||
d-i passwd/make-user boolean true
|
||||
d-i passwd/user-fullname string ansible deploy
|
||||
d-i passwd/username string deploy
|
||||
d-i passwd/user-password password {{ userdeploy_password }}
|
||||
d-i passwd/user-password-again password {{ userdeploy_password }}
|
||||
d-i grub-installer/only_debian boolean true
|
||||
d-i grub-installer/with_other_os boolean false
|
||||
d-i grub-installer/choose_bootdev string /dev/{{ prefix_disk }}a
|
||||
d-i partman/mount_style select uuid
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i clock-setup/ntp boolean true
|
||||
d-i clock-setup/ntp-server string ntp.ubuntu.com
|
||||
d-i time/zone string Europe/Paris
|
||||
d-i pkgsel/upgrade select safe-upgrade
|
||||
d-i pkgsel/language-packs multiselect
|
||||
d-i pkgsel/update-policy select none
|
||||
d-i pkgsel/updatedb boolean true
|
||||
tasksel tasksel/first multiselect standard, openssh-server
|
||||
d-i grub-installer/only_debian boolean true
|
||||
d-i finish-install/keep-consoles boolean true
|
||||
d-i finish-install/reboot_in_progress note
|
||||
d-i cdrom-detect/eject boolean true
|
||||
d-i debian-installer/exit/halt boolean false
|
||||
d-i debian-installer/exit/poweroff boolean false
|
||||
|
||||
d-i ebian-installer/add-kernel-opts string net.ifnames=0 biosdevname=0
|
||||
|
||||
d-i pkgsel/include string vim openssh-server sudo htop iotop rsync mc curl python3 python3-pip python3-apt dnsutils net-tools net-tools gnupg2 wget hostname ansible qemu-guest-agent parted
|
||||
|
||||
d-i preseed/late_command string \
|
||||
in-target sed -i '/^#PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config; \
|
||||
in-target mkdir -p /root/.ssh; \
|
||||
in-target /bin/sh -c "echo '{{ vm_keys }}' > /root/.ssh/authorized_keys"; \
|
||||
in-target chmod -R go-rwx /root/.ssh/authorized_keys; \
|
||||
in-target sed -i 's/# alias ll/alias ll/g' /root/.bashrc; \
|
||||
in-target sed -i 's/# alias ls/alias ls/g' /root/.bashrc; \
|
||||
in-target sed -i 's/# alias l/alias l/g' /root/.bashrc; \
|
||||
in-target sed -i 's/# export LS_OPTIONS/export LS_OPTIONS/g' /root/.bashrc; \
|
||||
in-target sed -i 's/# eval/eval/g' /root/.bashrc;
|
||||
Reference in New Issue
Block a user