Project

General

Profile

action #34414 ยป autoyast.xml

AY profile from the bug - riafarov, 2019-03-12 15:35

 
<?xml version="1.0"?>
<!DOCTYPE profile>
<profile xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns">
<deploy_image>
<image_installation config:type="boolean">false</image_installation>
</deploy_image>
<language>
<language>en_US</language>
<languages>en_GB,de_DE</languages>
</language>
<general>
<mode>
<confirm config:type="boolean">false</confirm>
<final_halt config:type="boolean">false</final_halt>
<final_reboot config:type="boolean">true</final_reboot>
<halt config:type="boolean">false</halt>
<second_stage config:type="boolean">true</second_stage>
</mode>
<signature-handling>
<accept_file_without_checksum config:type="boolean">false</accept_file_without_checksum>
<accept_non_trusted_gpg_key config:type="boolean">false</accept_non_trusted_gpg_key>
<accept_unknown_gpg_key config:type="boolean">false</accept_unknown_gpg_key>
<accept_unsigned_file config:type="boolean">false</accept_unsigned_file>
<accept_verification_failed config:type="boolean">false</accept_verification_failed>
<import_gpg_key config:type="boolean">false</import_gpg_key>
</signature-handling>
<storage/>
</general>
<software>
<install_recommended config:type="boolean">false</install_recommended>
<packages config:type="list">
<package>cron</package>
<package>dracut</package>
<package>eject</package>
<package>gcc</package>
<package>gdisk</package>
<package>gptfdisk</package>
<package>iputils</package>
<package>kdump</package>
<package>kernel-firmware</package>
<package>kexec-tools</package>
<package>man</package>
<package>openssh</package>
<package>python</package>
<package>python-xml</package>
<package>rsync</package>
<package>rsyslog</package>
<package>sudo</package>
</packages>
</software>
<kdump>
<add_crash_kernel config:type="boolean">true</add_crash_kernel>
<crash_kernel config:type="list">
<listentry>72M,low</listentry>
<listentry>128M,high</listentry>
</crash_kernel>
</kdump>
<networking>
<interfaces config:type="list">
<interface>
<bootproto>dhcp</bootproto>
<device>eth0</device>
<dhclient_set_default_route>yes</dhclient_set_default_route>
<dhclient_set_hostname>no</dhclient_set_hostname>
<dhclient_route_priority>100</dhclient_route_priority>
<startmode>auto</startmode>
</interface>
</interfaces>
<ipv6 config:type="boolean">true</ipv6>
<keep_install_network config:type="boolean">true</keep_install_network>
<managed config:type="boolean">false</managed>
<routing>
<ipv4_forward config:type="boolean">false</ipv4_forward>
<ipv6_forward config:type="boolean">false</ipv6_forward>
</routing>
</networking>
<partitioning config:type="list">
<drive>
<device>/dev/sda</device>
<disklabel>gpt</disklabel>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">ext4</filesystem>
<mount>/boot</mount>
<size>512M</size>
</partition>
<partition>
<lvm_group>ardana-vg</lvm_group>
</partition>
</partitions>
<type config:type="symbol">CT_DISK</type>
<use>all</use>
</drive>
<drive>
<device>/dev/ardana-vg</device>
<partitions config:type="list">
<partition>
<create config:type="boolean">true</create>
<format config:type="boolean">true</format>
<filesystem config:type="symbol">ext4</filesystem>
<lv_name>root</lv_name>
<mount>/</mount>
<size>3G</size>
</partition>
</partitions>
<type config:type="symbol">CT_LVM</type>
<use>all</use>
</drive>
</partitioning>
<scripts>
<init-scripts config:type="list">
<script>
<filename>autoyast-init-scripts-0.sh</filename>
<source><![CDATA[
systemctl enable sshd.service
systemctl start sshd.service
systemctl enable kdump rsyslog
]]></source>
</script>
<script>
<filename>autoyast-init-scripts-1.sh</filename>
<source><![CDATA[
# set flag
#wget http://$http_server/preseed/timestamp -O /etc/cobbler_ardana_installed

# stack access

# All ssh from deployer
mkdir --mode=700 /home/stack/.ssh
chown stack:stack /home/stack/.ssh

# Enable passwordless sudo access for stack
echo "stack ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/stack
chmod 0440 /etc/sudoers.d/stack

# Make ssh faster by not waiting on DNS
echo "UseDNS no" >> /etc/ssh/sshd_config

# SSH
sed -i "s,PasswordAuthentication no,PasswordAuthentication yes,g" /etc/ssh/sshd_config

#
rm /etc/resolv.conf

]]></source>
</script>
</init-scripts>
</scripts>
<groups config:type="list">
<group>
<groupname>sudo</groupname>
<gid>1000</gid>
<userlist>stack</userlist>
</group>
<group>
<groupname>stack</groupname>
<gid>1001</gid>
<userlist>stack</userlist>
</group>
</groups>
<users config:type="list">
<user>
<username>stack</username>
<gid>1001</gid>
<user_password>$6$m9drJaYFiBQ2x9yN$dlxSB/Yb2Vck4GyuBJ10XO.upoYIizIpoSpBRK1orVmir4K/0erZ3Go2Nu08KGcWePopv/yLOwz9ZxRZ3qi7B/</user_password><encrypted config:type="boolean">true</encrypted>
<home>/home/stack</home>
</user>
</users>
</profile>
    (1-1/1)