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:
parent
f72b7f9c97
commit
8406d520d7
|
@ -1,20 +1,10 @@
|
||||||
# Maintainer: Zachary Klosko (kloskoz@vcu.edu)
|
#cloud-config
|
||||||
|
package_update: true
|
||||||
hostname: libretimeTest
|
package_upgrade: true
|
||||||
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 }
|
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- git
|
- 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:
|
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"
|
||||||
|
|
Loading…
Reference in New Issue