From 8039974fc8a92006c78439e35ea9cd75b940b93c Mon Sep 17 00:00:00 2001 From: Peter Wall Date: Thu, 28 Nov 2024 15:01:53 +0100 Subject: [PATCH] add initial sketch of a cloud-init for gha runners --- cloud-init.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 cloud-init.yaml diff --git a/cloud-init.yaml b/cloud-init.yaml new file mode 100644 index 0000000..fdc0016 --- /dev/null +++ b/cloud-init.yaml @@ -0,0 +1,25 @@ +#cloud-config +users: + - name: username + password: password + chpasswd: { expire: false } + sudo: ALL=(ALL) NOPASSWD:ALL + shell: /bin/bash + +disable_root: true + +ssh_pwauth: false +ssh_deletekeys: true + +packages: + - ufw +package_update: true +package_upgrade: true + +write_files: + - path: /etc/motd + content: | + Hello there. +runcmd: + - systemctl stop sshd + - systemctl disable sshd