summaryrefslogtreecommitdiff
path: root/contrib/cirrus/packer/make-user-data.sh
blob: 676a50f5c9f949317c617039673210a1d50d4db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env 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