From ddb43fb5860676f7e3292fdd65856572339ebce7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Wed, 22 Nov 2017 23:34:09 +0100 Subject: added inital role vm-host --- roles/vm-install/templates/preseed_stretch.cfg.j2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'roles/vm-install/templates/preseed_stretch.cfg.j2') diff --git a/roles/vm-install/templates/preseed_stretch.cfg.j2 b/roles/vm-install/templates/preseed_stretch.cfg.j2 index b197395e..1d91b8c7 100644 --- a/roles/vm-install/templates/preseed_stretch.cfg.j2 +++ b/roles/vm-install/templates/preseed_stretch.cfg.j2 @@ -10,14 +10,14 @@ d-i keyboard-configuration/xkb-keymap select de #d-i netcfg/choose_interface select enp1s1 #d-i netcfg/disable_autoconfig boolean false -#d-i netcfg/get_ipaddress string {{ srv_network.internal.ip }} -#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.254 +#d-i netcfg/get_ipaddress string {{ vm_network.internet.ip }} +#d-i netcfg/get_netmask string {{ vm_network.internet.mask }} +#d-i netcfg/get_gateway string {{ vm_network.internet.gateway }} +#d-i netcfg/get_nameservers string {{ vm_network.internet.nameservers }} #d-i netcfg/confirm_static boolean true d-i netcfg/get_hostname string {{ inventory_hostname }} -d-i netcfg/get_domain string helsinki.at +d-i netcfg/get_domain string {{ vm_network.internet.domain }} d-i netcfg/wireless_wep string @@ -98,4 +98,4 @@ d-i grub-installer/with_other_os boolean false d-i finish-install/reboot_in_progress note -d-i preseed/late_command string in-target bash -c "passwd -d root; passwd -l root; umask 077; mkdir -p /root/.ssh/; echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDSWnaaAe6PwzB+XaU4kLUnc7BaUbg6wtgLv3M9JkUix ansible config-management' > /root/.ssh/authorized_keys" +d-i preseed/late_command string in-target bash -c "passwd -d root; passwd -l root; umask 077; mkdir -p /root/.ssh/; echo '{{ root_ssh_keys | default('') }}' > /root/.ssh/authorized_keys" -- cgit v1.2.3