Add config_s3_20260123_113133.yaml
This commit is contained in:
parent
cd490bbbb1
commit
6d182c8d59
30
config_s3_20260123_113133.yaml
Normal file
30
config_s3_20260123_113133.yaml
Normal file
@ -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!"
|
||||
Loading…
Reference in New Issue
Block a user