6
This commit is contained in:
parent
89a23662d2
commit
3505869c55
5
gen-cloud-init/.gitignore
vendored
5
gen-cloud-init/.gitignore
vendored
@ -2,3 +2,8 @@ build.log
|
|||||||
init.iso
|
init.iso
|
||||||
*-init-*.*.iso
|
*-init-*.*.iso
|
||||||
tmp/
|
tmp/
|
||||||
|
*.iso
|
||||||
|
user-data
|
||||||
|
meta-data
|
||||||
|
user-data.in
|
||||||
|
meta-data.in
|
||||||
|
2
gen-cloud-init/meta-data-alma
Normal file
2
gen-cloud-init/meta-data-alma
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
instance-id: ##INSTANCE_ID##
|
||||||
|
local-hostname: ##HOSTNAME##
|
2
gen-cloud-init/meta-data-rocky
Normal file
2
gen-cloud-init/meta-data-rocky
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
instance-id: ##INSTANCE_ID##
|
||||||
|
local-hostname: ##HOSTNAME##
|
33
gen-cloud-init/user-data-alma
Normal file
33
gen-cloud-init/user-data-alma
Normal 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"
|
33
gen-cloud-init/user-data-rocky
Normal file
33
gen-cloud-init/user-data-rocky
Normal 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"
|
Loading…
Reference in New Issue
Block a user