add asrock04 and fine tune user-data
This commit is contained in:
parent
d2074bf788
commit
ac7d9ca361
15
configs/asrock04.config
Normal file
15
configs/asrock04.config
Normal file
@ -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)
|
@ -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: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user