Skip to content

Commit

Permalink
feat: rewrite cloud-init config (#2853)
Browse files Browse the repository at this point in the history
### Description

Fix and update the could init config to install an insecure LibreTime
server.
  • Loading branch information
jooola committed Dec 29, 2023
1 parent f72b7f9 commit 8406d52
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions cloud-init.yml
@@ -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"

0 comments on commit 8406d52

Please sign in to comment.