change structure
add alerts
This commit is contained in:
parent
306abe6c32
commit
106116528d
14 changed files with 432 additions and 9 deletions
36
terraform/.gitignore
vendored
Normal file
36
terraform/.gitignore
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Local .terraform directories
|
||||
**/.terraform/*
|
||||
|
||||
# .tfstate files
|
||||
*.tfstate
|
||||
*.tfstate.*
|
||||
|
||||
# Crash log files
|
||||
crash.log
|
||||
crash.*.log
|
||||
|
||||
# Exclude all .tfvars files, which are likely to contain sensitive data, such as
|
||||
# password, private keys, and other secrets. These should not be part of version
|
||||
# control as they are data points which are potentially sensitive and subject
|
||||
# to change depending on the environment.
|
||||
*.tfvars
|
||||
*.tfvars.json
|
||||
|
||||
# Ignore override files as they are usually used to override resources locally and so
|
||||
# are not checked in
|
||||
override.tf
|
||||
override.tf.json
|
||||
*_override.tf
|
||||
*_override.tf.json
|
||||
|
||||
# Include override files you do wish to add to version control using negated pattern
|
||||
# !example_override.tf
|
||||
|
||||
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
|
||||
# example: *tfplan*
|
||||
|
||||
# Ignore CLI configuration files
|
||||
.terraformrc
|
||||
terraform.rc
|
||||
.terraform.lock.hcl
|
||||
*.tfbackend
|
26
terraform/main.tf
Normal file
26
terraform/main.tf
Normal file
|
@ -0,0 +1,26 @@
|
|||
terraform {
|
||||
backend "pg" {
|
||||
schema_name = "alexander"
|
||||
conn_str = "postgres://terraform@10.42.0.1/terraform_state"
|
||||
}
|
||||
|
||||
required_providers {
|
||||
libvirt = {
|
||||
source = "dmacvicar/libvirt"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
provider "libvirt" {
|
||||
uri = "qemu+ssh://root@lewis.hyp/system"
|
||||
}
|
||||
|
||||
module "alexander" {
|
||||
source = "git::https://git.pim.kunis.nl/home/tf-modules.git//debian"
|
||||
name = "alexander"
|
||||
domain_name = "tf-alexander"
|
||||
hypervisor_host = "lewis.hyp"
|
||||
mac = "CA:FE:C0:FF:EE:0B"
|
||||
memory = 1024 * 2
|
||||
insecure_password = true
|
||||
}
|
Reference in a new issue