diff --git a/configs/asrock04.config b/configs/asrock04.config new file mode 100644 index 0000000..a49e229 --- /dev/null +++ b/configs/asrock04.config @@ -0,0 +1,15 @@ +hypervisor_name=asrock04 +hypervisor_ip=10.0.1.244 +hypervisor_mac="a8:a1:59:e4:92:b8" +hypervisor_tag="asrock" + +ip_suffix=244 + +external_ip=192.168.1.214 + +compute="as4-maas-node" + +# Disks that exist on the server +disk_name=() +disk_names+=(sda) +disk_names+=(nvme0n1) diff --git a/user-data.yaml b/user-data.yaml index 16094c2..aadb72a 100644 --- a/user-data.yaml +++ b/user-data.yaml @@ -66,17 +66,18 @@ write_files: ln -s /usr/bin/virsh /home/virsh/bin/virsh sh -c echo "PATH=/home/virsh/bin" >> /home/virsh/.bashrc - cat >> /etc/ssh/sshd_config << EOF + systemctl restart sshd + + usermod -a -G libvirt,libvirt-qemu virsh + permissions: '0755' + owner: root:root + - path: /etc/ssh/sshd_config.d/90-virsh-user.conf + content: | Match user virsh X11Forwarding no AllowTcpForwarding no PermitTTY no ForceCommand nc -q 0 -U /var/run/libvirt/libvirt-sock - EOF - systemctl restart sshd - - usermod -a -G libvirt,libvirt-qemu virsh - permissions: '0755' owner: root:root - path: /root/wipe_disk.sh content: |