From 6d182c8d59a8b61584a9edd0acbb21a54ea3e0a5 Mon Sep 17 00:00:00 2001 From: gitops_test Date: Fri, 23 Jan 2026 11:31:33 +0000 Subject: [PATCH] Add config_s3_20260123_113133.yaml --- config_s3_20260123_113133.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 config_s3_20260123_113133.yaml diff --git a/config_s3_20260123_113133.yaml b/config_s3_20260123_113133.yaml new file mode 100644 index 0000000..7171679 --- /dev/null +++ b/config_s3_20260123_113133.yaml @@ -0,0 +1,30 @@ +hostname: s3-server +manage_etc_hosts: true +package_update: true +package_upgrade: true +packages: + - s3fs + +runcmd: +- echo "regenerating host keys" +- rm -f /etc/ssh/ssh_host_* +- ssh-keygen -A +- echo "restarting sshd" +- systemctl restart sshd +debug: true +output: + all: "| tee -a /var/log/cloud-init-debug.log" +final_message: "Default VM Cloudinit done" + +write_files: + - path: /etc/passwd-s3fs + permissions: '0400' + content: | + 18f9a538581b60f3940f:3hOtaviFtfn1vOr7pdqpYBexPTG+lyO5miRBiDbv + +runcmd: + - mkdir -p /mnt/s3bucket + - chmod 0700 /mnt/s3bucket + - echo "s3fs#pjcbucket /mnt/s3bucket fuse _netdev,allow_other,use_path_request_style,url=https://s3-eu-central-1.ionoscloud.com 0 0" >> /etc/fstab + - s3fs pjcbucket /mnt/s3bucket -o passwd_file=/etc/passwd-s3fs -o url=https://s3-eu-central-1.ionoscloud.com -o use_path_request_style -o allow_other +final_message: "The system is finally up and running!" \ No newline at end of file