summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/make-user-data.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/cirrus/packer/make-user-data.sh')
-rw-r--r--contrib/cirrus/packer/make-user-data.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/cirrus/packer/make-user-data.sh b/contrib/cirrus/packer/make-user-data.sh
new file mode 100644
index 000000000..7f7fa1c1a
--- /dev/null
+++ b/contrib/cirrus/packer/make-user-data.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+# This script is utilized by Makefile, it's not intended to be run by humans
+
+cat <<EOF > user-data
+#cloud-config
+timezone: US/Eastern
+growpart:
+ mode: auto
+disable_root: false
+ssh_pwauth: True
+ssh_import_id: [root]
+ssh_authorized_keys:
+ - $(cat cidata.ssh.pub)
+users:
+ - name: root
+ primary-group: root
+ homedir: /root
+ system: true
+EOF