diff --git a/roles/pxe/templates/ks/edubuntu-trusty.cfg b/roles/pxe/templates/ks/edubuntu-trusty.cfg index 77085de..918b20c 100644 --- a/roles/pxe/templates/ks/edubuntu-trusty.cfg +++ b/roles/pxe/templates/ks/edubuntu-trusty.cfg @@ -40,9 +40,16 @@ firewall --disabled skipx #Install packages %packages -edubuntu-desktop -ubuntu-edu-secondary +@ edubuntu-desktop +@ edubuntu-fonts +@ ubuntu-edu-secondary vim screen cifs-utils openssh-server +#Post installation commands +%post --nochroot +#the target filesystem in nochroot environment is in /target +TARGETHOSTNAME=$(wget -qO- http://{{ serverfqdn }}:3000/whatsmyhostname) +echo $TARGETHOSTNAME > /target/etc/hostname +sed -i "s/kickseed/$TARGETHOSTNAME/g" /target/etc/hosts diff --git a/roles/pxe/templates/ks/ubuntu-trusty.cfg b/roles/pxe/templates/ks/ubuntu-trusty.cfg index 263235e..a4d1625 100644 --- a/roles/pxe/templates/ks/ubuntu-trusty.cfg +++ b/roles/pxe/templates/ks/ubuntu-trusty.cfg @@ -42,3 +42,9 @@ skipx %packages @ ubuntu-desktop openssh-server +#Post installation commands +%post --nochroot +#the target filesystem in nochroot environment is in /target +TARGETHOSTNAME=$(wget -qO- http://{{ serverfqdn }}:3000/whatsmyhostname) +echo $TARGETHOSTNAME > /target/etc/hostname +sed -i "s/kickseed/$TARGETHOSTNAME/g" /target/etc/hosts