infra_code

infrastructure-as-code
git clone git://git.pyratebeard.net/infra_code.git
Log | Files | Refs | README

cloud_init.cfg (459B)


      1 #cloud-config
      2 ssh_pwauth: false
      3 
      4 preserve_hostname: false
      5 fqdn: ${hostname}.tilde.gdn
      6 hostname: ${hostname}
      7 
      8 runcmd:
      9   - useradd -omd /usr/dwarf -u 0 -g 0 -s /bin/bash dwarf
     10   - mkdir /usr/dwarf/.ssh
     11   - sed -i 's/.*\(PermitRootLogin.*\)/\1/' /etc/ssh/sshd_config
     12   - systemctl reload sshd
     13 
     14 write_files:
     15   - path: "/usr/dwarf/.ssh/authorized_keys"
     16     append: true
     17     content: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICSluiY54h5FlGxnnXqifWPnfvKNIh1/f0xf0yCThdqV