Fix hostname setting for Centos.
[csit.git] / resources / tools / virl / topologies / double-ring-nested.centos7.virl
index e426597..218851e 100644 (file)
@@ -7,16 +7,20 @@
         <extensions>
             <entry key="config" type="String">#cloud-config
 hostname: tg1
-manage_etc_hosts: true
+manage_etc_hosts: false
 nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
 nfs_server_common: $$NFS_SERVER_COMMON$$
 runcmd:
+- hostnamectl set-hostname tg1
 - systemctl start rc-local
 - touch /tmp/before-sed
 - sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
-- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config
+- sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
+- sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_config
 - service ssh restart
 - service sshd restart
+- ln -s /sbin/lspci /usr/bin/lspci
+- ln -s /sbin/pidof /usr/bin/pidof
 users:
 - default
 - gecos: User configured by VIRL Configuration Engine 0.21.4
@@ -82,18 +86,23 @@ write_files:
         <extensions>
             <entry key="config" type="string">#cloud-config
 hostname: sut1
-manage_etc_hosts: true
+manage_etc_hosts: false
 nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
 nfs_server_common: $$NFS_SERVER_COMMON$$
 runcmd:
+- hostnamectl set-hostname sut1
 - systemctl start rc-local
 - sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
-- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config
+- sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
+- sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_config
 - service ssh restart
 - service sshd restart
 - sed -i 's/no-pci//' /opt/cisco/vpe/etc/qn.conf
 - sed -i 's/1024/1024 decimal-interface-names/g' /opt/cisco/vpe/etc/qn.conf
 - ln -s /dev/null /etc/sysctl.d/80-vpp.conf
+- ln -s /sbin/pidof /usr/bin/pidof
+- ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64
+- ln -s /sbin/fuser /usr/bin/fuser
 users:
 - default
 - gecos: User configured by VIRL Configuration Engine 0.21.4
@@ -182,18 +191,23 @@ write_files:
         <extensions>
             <entry key="config" type="string">#cloud-config
 hostname: sut2
-manage_etc_hosts: true
+manage_etc_hosts: false
 nfs_server_scratch: $$NFS_SERVER_SCRATCH$$
 nfs_server_common: $$NFS_SERVER_COMMON$$
 runcmd:
+- hostnamectl set-hostname sut2
 - systemctl start rc-local
 - sed -i 's/^\s*PasswordAuthentication\s\+no/PasswordAuthentication yes/' /etc/ssh/sshd_config
-- echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config
+- sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
+- sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_config
 - service ssh restart
 - service sshd restart
 - sed -i 's/no-pci//' /opt/cisco/vpe/etc/qn.conf
 - sed -i 's/1024/1024 decimal-interface-names/g' /opt/cisco/vpe/etc/qn.conf
 - ln -s /dev/null /etc/sysctl.d/80-vpp.conf
+- ln -s /sbin/pidof /usr/bin/pidof
+- ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64
+- ln -s /sbin/fuser /usr/bin/fuser
 users:
 - default
 - gecos: User configured by VIRL Configuration Engine 0.21.4