Add wipe_disk.sh

* This will allow to run a quick script to wipe the headers
  of the disk, so that we don't have to login after a
  re-comission of the machine to manually reboot it
This commit is contained in:
2020-12-28 11:19:11 +00:00
parent d5bb8a353c
commit 8b623b739d
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -2,9 +2,9 @@
1. add the hypervisor as a flag rather then the configuration file when adding
hypervisors.
1. Add script to cloud-init, that will allow to wipe disk. This will allow to
1. ~~Add script to cloud-init, that will allow to wipe disk. This will allow to
reboot the hypervisor, such that we don't have to log back in after the
machine has been re-commissioned.
machine has been re-commissioned.~~
1. ~~Update hypervisor config such that it works with focal~~
1. Add the ability to add multiple storage pools (1 x SSD, 1 x HDD)
1. Update `boostrap-maas.sh`
+7
View File
@@ -70,6 +70,13 @@ write_files:
usermod -a -G libvirt,libvirt-qemu virsh
permissions: '0755'
owner: root:root
- path: /root/wipe_disk.sh
content: |
#!/bin/bash
dd if=/dev/zero of=/dev/sda bs=1M count=1000
permissions: '0755'
owner: root:root
# Runs any command that we need to run post install
runcmd: