From 1648ea265848004b442cb2b3641044363c13507b Mon Sep 17 00:00:00 2001 From: lepetitedejeuner <lepetitedejeuner@localhost> Date: Sun, 1 Jan 2023 13:51:23 -0600 Subject: [PATCH] Added syslog-ng, telegraph, and auditd services and unified the cloud_init scripts. Also added automatic daily upgrades --- debian.json | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/debian.json b/debian.json index 61c02d5..07c1065 100644 --- a/debian.json +++ b/debian.json @@ -5,7 +5,7 @@ "insecure_skip_tls_verify": true, "memory": 1024, "qemu_agent": false, - "node": "thunderdome", + "node": "ge", "network_adapters": [ { "bridge": "vmbr0" @@ -186,6 +186,60 @@ } ], "provisioners": [ + { + "type": "shell-local", + "inline": ["./telegraf_prep.sh"] + }, + { + "type": "file", + "source": "settings.rules", + "destination": "/tmp/settings.rules" + }, + { + "type": "file", + "source": "file_operations.rules", + "destination": "/tmp/file_operations.rules" + }, + { + "type": "file", + "source": "process_operations.rules", + "destination": "/tmp/process_operations.rules" + }, + { + "type": "file", + "source": "shell_operations.rules", + "destination": "/tmp/shell_operations.rules" + }, + { + "type": "file", + "source": "file_monitoring.rules", + "destination": "/tmp/file_monitoring.rules" + }, + { + "type": "file", + "source": "telegraf.conf", + "destination": "/tmp/telegraf.conf" + }, + { + "type": "file", + "source": "rc.local", + "destination": "/tmp/rc.local" + }, + { + "type": "file", + "source": "upgrade.timer", + "destination": "/tmp/upgrade.timer" + }, + { + "type": "file", + "source": "upgrade.service", + "destination": "/tmp/upgrade.service" + }, + { + "type": "file", + "source": "network.conf", + "destination": "/tmp/network.conf" + }, { "environment_vars": [ "DESKTOP={{user `desktop`}}", @@ -206,7 +260,7 @@ "script/systemd.sh", "script/update.sh", "script/desktop.sh", - "script/cloud_init_debian.sh", + "cloud_init.sh", "script/vagrant.sh", "script/vmware.sh", "script/virtualbox.sh", @@ -219,6 +273,12 @@ "type": "shell", "pause_before": "10s", "expect_disconnect": "true" + }, + { + "type": "shell-local", + "inline": ["if [ -f influxdb_telegraf_url.txt.pgp ]; then shred -u influxdb_telegraf_url.txt; fi", + "if [ -f influxdb_telegraf_username.txt.pgp ]; then shred -u influxdb_telegraf_username.txt; fi", + "if [ -f influxdb_telegraf_password.txt.pgp ]; then shred -u influxdb_telegraf_password.txt; fi"] } ], "variables": { -- GitLab