github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/contrib/cirrus/packer/make-user-data.sh (about)

     1  #!/bin/bash
     2  
     3  # This script is utilized by Makefile, it's not intended to be run by humans
     4  
     5  cat <<EOF > user-data
     6  #cloud-config
     7  timezone: US/Eastern
     8  growpart:
     9      mode: auto
    10  disable_root: false
    11  ssh_pwauth: True
    12  ssh_import_id: [root]
    13  ssh_authorized_keys:
    14      - $(cat cidata.ssh.pub)
    15  users:
    16     - name: root
    17       primary-group: root
    18       homedir: /root
    19       system: true
    20  EOF