2019-06-25 15:33:56 +00:00
|
|
|
#cloud-config
|
2020-03-25 12:34:22 +00:00
|
|
|
timezone: ${timezone}
|
2019-06-25 15:33:56 +00:00
|
|
|
|
|
|
|
packages:
|
|
|
|
- git
|
|
|
|
|
|
|
|
runcmd:
|
2021-05-19 13:57:30 +00:00
|
|
|
- curl -sS --retry 5 https://github.com
|
2022-02-08 21:19:34 +00:00
|
|
|
- git clone -b 22.x https://github.com/telekom-security/tpotce /root/tpot
|
2019-06-25 15:33:56 +00:00
|
|
|
- /root/tpot/iso/installer/install.sh --type=auto --conf=/root/tpot.conf
|
|
|
|
- rm /root/tpot.conf
|
2020-03-25 12:34:22 +00:00
|
|
|
- /sbin/shutdown -r now
|
|
|
|
|
|
|
|
password: ${password}
|
|
|
|
chpasswd:
|
|
|
|
expire: false
|
2019-06-25 15:33:56 +00:00
|
|
|
|
|
|
|
write_files:
|
2020-03-25 12:34:22 +00:00
|
|
|
- content: |
|
|
|
|
# tpot configuration file
|
|
|
|
myCONF_TPOT_FLAVOR='${tpot_flavor}'
|
|
|
|
myCONF_WEB_USER='${web_user}'
|
|
|
|
myCONF_WEB_PW='${web_password}'
|
2019-06-25 15:33:56 +00:00
|
|
|
owner: root:root
|
|
|
|
path: /root/tpot.conf
|
|
|
|
permissions: '0600'
|