Add packer scripts to build mosk image
Automate steps with building image for virtual mosk deployments.
Related-Prod: PRODX-35395
Change-Id: Ideff56310d153ceb034899f2efd8995f930e65d9
diff --git a/mosk-images/config-drive/user-data b/mosk-images/config-drive/user-data
new file mode 100644
index 0000000..28d97fd
--- /dev/null
+++ b/mosk-images/config-drive/user-data
@@ -0,0 +1,13 @@
+#cloud-config
+debug: True
+ssh_pwauth: True
+disable_root: false
+chpasswd:
+ list: |
+ root:r00tme
+ expire: False
+output: {all: '| tee -a /var/log/cloud-init-output.log'}
+runcmd:
+ - sed -i'.orig' -e's/\#PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
+ - service sshd restart
+ - sed -i'.orig' -e's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config