feat: rewrite cloud-init config (#2853)

### Description

Fix and update the could init config to install an insecure LibreTime
server.
This commit is contained in:
Jonas L 2023-12-29 17:57:59 +01:00 committed by GitHub
parent f72b7f9c97
commit 8406d520d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 16 deletions

View File

@ -1,20 +1,10 @@
# Maintainer: Zachary Klosko (kloskoz@vcu.edu)
hostname: libretimeTest
timezone: America/New York # change as needed
ntp:
pools: ["north-america.pool.ntp.org"]
servers: ["0.north-america.pool.ntp.org", "0.pool.ntp.org"]
password: hackme
chpasswd: { expire: False }
#cloud-config
package_update: true
package_upgrade: true
packages:
- git
apt_update: true
apt_upgrade: true
# Clone repo on init (Change repo url if needed)
# If you need to clone a branch, use git clone --branch branchname repourl
runcmd:
- git clone https://github.com/libretime/libretime
- git clone https://github.com/libretime/libretime /root/libretime
- cd /root/libretime
- HOME=/root bash install "http://$(ip route get 8.8.8.8 | awk '{print $7}'):8080"