mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 03:38:51 +00:00

- Add variables to cloud-init.yaml - Allow to set Linux OS password via cloud-init - Pass the tpot.conf file as inline content to allow variables - Remove obsolete tpot.conf file in terraform/ directory
25 lines
549 B
YAML
25 lines
549 B
YAML
#cloud-config
|
|
timezone: ${timezone}
|
|
|
|
packages:
|
|
- git
|
|
|
|
runcmd:
|
|
- git clone https://github.com/dtag-dev-sec/tpotce /root/tpot
|
|
- /root/tpot/iso/installer/install.sh --type=auto --conf=/root/tpot.conf
|
|
- rm /root/tpot.conf
|
|
- /sbin/shutdown -r now
|
|
|
|
password: ${password}
|
|
chpasswd:
|
|
expire: false
|
|
|
|
write_files:
|
|
- content: |
|
|
# tpot configuration file
|
|
myCONF_TPOT_FLAVOR='${tpot_flavor}'
|
|
myCONF_WEB_USER='${web_user}'
|
|
myCONF_WEB_PW='${web_password}'
|
|
owner: root:root
|
|
path: /root/tpot.conf
|
|
permissions: '0600'
|