Skip to content

Terraform script to deploy Wazuh using their quick start installation method

Notifications You must be signed in to change notification settings

aloha/homelab-wazuh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

  • Proxmox version 7.4+
  • Two environment variables set: PM_USER & PM_PASS
  • Cloud Init template created, ideally Ubuntu 2204 (tested)

Usage

  • Create tfvars file in env folder for your configuration
  • Set variables according to your environment

Example

proxmox = {
  target_node    = "megatron"
  target_storage = "cybertron"
  clone_template = "ubuntu-cloudinit-2204"
  ip_address     = "10.13.37.10"
}

instance = {
  cpus = 4
  memory = 8192
  disk_size = "50G"
  hostname = "wazuh"
  network-cidr = "10.20.77.0/24"
  network-vlan = "2077" // Optionally set to your vlan configuration
  network-cidr-start = 10
}
  • Run terraform init to install necessary dependencies
  • Run terraform apply --var-file=./env/<your var file>.tfvars
  • Stdout will have Wazuh default credentials that are generated, don't lose them!
proxmox_vm_qemu.instance[0] (remote-exec): 05/12/2023 14:54:25 INFO: You can access the web interface https://<wazuh-dashboard-ip>:443
proxmox_vm_qemu.instance[0] (remote-exec):     User: admin
proxmox_vm_qemu.instance[0] (remote-exec):     Password: P5E?4ZTqBoJKoTb.3tECwY83qgZQqL.d     <------ Nice password!
proxmox_vm_qemu.instance[0] (remote-exec): 05/12/2023 14:54:25 INFO: Installation finished.

TODO

  • Support PM_API_TOKEN_ID & PM_API_TOKEN_SECRET instead of USER/PASS

About

Terraform script to deploy Wazuh using their quick start installation method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published