A Terraform plan to set up a Splunk cluster in the cloud for testing purposes.
- DigitalOcean
- Google Cloud Platform
- Terraform
- Ansible (install through your package manager or pip)
- A cloud platform account - either:
- A DigitalOcean account (referral link for free credit)
- A GCP project
- Python (tested on 3.7 and 2.7, but will likely work in all versions that Ansible supports)
- Clone the repo, then
cd
into the directory for the appropriate plan and cloud provider cp terraform.tfvars.exmaple terraform.tfvars
, then add your provider key and the password you wish to be set across the Splunk cluster. Also look invars.tf
to check you are happy with the default values - overriding interraform.tfvars
where requiredterraform init
to download and set up the required providersterraform apply
to begin creating the instances- Once complete, instance information (such as IPs) can be viewed with
terraform show
- When you're finished with the cluster, run
terraform destroy
to delete the created resources
Pull requests are welcome - please ensure that you update any READMEs and Travis tests where required