Skip to content
Snippets Groups Projects
Verified Commit 936d481b authored by Vincent Sellier's avatar Vincent Sellier
Browse files

Cleanup the old logs before running puppet and installing journalbeat

Related to infra/sysadm-environment#4646
parent 553f161b
No related branches found
No related tags found
1 merge request!91Cleanup the old logs before running puppet and installing journalbeat
......@@ -81,7 +81,9 @@ resource "proxmox_vm_qemu" "node" {
inline = concat(
var.pre_provision_steps,
[
# First install facts...
# clean the systemd logs dating from the vm creation
"journalctl --vacuum-time=1d",
# install facts...
"mkdir -p /etc/facter/facts.d",
"echo deployment=${var.config["facter_deployment"]} > /etc/facter/facts.d/deployment.txt",
"echo subnet=${var.config["facter_subnet"]} > /etc/facter/facts.d/subnet.txt",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment