This commit is contained in:
root 2023-11-26 21:35:49 +02:00
parent 89a23662d2
commit 3505869c55
5 changed files with 75 additions and 0 deletions

View File

@ -2,3 +2,8 @@ build.log
init.iso
*-init-*.*.iso
tmp/
*.iso
user-data
meta-data
user-data.in
meta-data.in

View File

@ -0,0 +1,2 @@
instance-id: ##INSTANCE_ID##
local-hostname: ##HOSTNAME##

View File

@ -0,0 +1,2 @@
instance-id: ##INSTANCE_ID##
local-hostname: ##HOSTNAME##

View File

@ -0,0 +1,33 @@
#cloud-config
# remove this block entirely if not using password authentication
password: ###PASSWORD###
ssh_pwauth: True
chpasswd: { expire: False }
#package_upgrade: true
#packages:
#- git
#- tmux
#- wget
# replace with your own public key (e.g. ~/.ssh/id_rsa.pub)
ssh_authorized_keys:
- ###SSH_KEY_1###
- ###SSH_KEY_2###
- ###SSH_KEY_3###
users:
- default
- name: root
ssh_authorized_keys:
- ###SSH_KEY_1###
- ###SSH_KEY_2###
- ###SSH_KEY_3###
runcmd:
- [ "/usr/bin/curl" , "https://gist.githubusercontent.com/elico/aa7cf0bf563361b72afe9cadafdbf688/raw/7ca31701051cd3bfd8974cfd31eaaeaa32b4c4c0/rhel-create-swap-file.sh" , "-o" , "/usr/loca/bin/rhel-create-swap-file.sh" ]
- [ "/bin/bash" , "/usr/loca/bin/rhel-create-swap-file.sh" ]
- [ "/usr/bin/curl" , "http://www.ngtech.co.il/static/finihsed" , "-o" , "/dev/null" ]
final_message: "The system is finally up, after $UPTIME seconds"

View File

@ -0,0 +1,33 @@
#cloud-config
# remove this block entirely if not using password authentication
password: ###PASSWORD###
ssh_pwauth: True
chpasswd: { expire: False }
#package_upgrade: true
#packages:
#- git
#- tmux
#- wget
# replace with your own public key (e.g. ~/.ssh/id_rsa.pub)
ssh_authorized_keys:
- ###SSH_KEY_1###
- ###SSH_KEY_2###
- ###SSH_KEY_3###
users:
- default
- name: root
ssh_authorized_keys:
- ###SSH_KEY_1###
- ###SSH_KEY_2###
- ###SSH_KEY_3###
runcmd:
- [ "/usr/bin/curl" , "https://gist.githubusercontent.com/elico/aa7cf0bf563361b72afe9cadafdbf688/raw/7ca31701051cd3bfd8974cfd31eaaeaa32b4c4c0/rhel-create-swap-file.sh" , "-o" , "/usr/loca/bin/rhel-create-swap-file.sh" ]
- [ "/bin/bash" , "/usr/loca/bin/rhel-create-swap-file.sh" ]
- [ "/usr/bin/curl" , "http://www.ngtech.co.il/static/finihsed" , "-o" , "/dev/null" ]
final_message: "The system is finally up, after $UPTIME seconds"