Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krestomatio/terraform-libvirt-fcos-stalwart-mail
Terraform module for creating a Stalwart mail server using Fedora CoreOS, and Libvirt.
https://github.com/krestomatio/terraform-libvirt-fcos-stalwart-mail
cerbot fedora-coreos livbirt terraform terraform-module
Last synced: 20 days ago
JSON representation
Terraform module for creating a Stalwart mail server using Fedora CoreOS, and Libvirt.
- Host: GitHub
- URL: https://github.com/krestomatio/terraform-libvirt-fcos-stalwart-mail
- Owner: krestomatio
- Created: 2023-08-17T00:22:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-09T17:46:03.000Z (over 1 year ago)
- Last Synced: 2024-11-09T11:40:29.167Z (3 months ago)
- Topics: cerbot, fedora-coreos, livbirt, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Terraform module for creating a [Stalwart mail server](https://stalw.art) using [Fedora CoreOS](https://docs.fedoraproject.org/en-US/fedora-coreos/), and [Libvirt](https://libvirt.org/).
## Dependencies
The following are the dependencies to create the VM with this module:
* [libvirt](https://libvirt.org/)## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.2.0 |
| [ct](#requirement\_ct) | 0.11.0 |
| [libvirt](#requirement\_libvirt) | ~> 0.7 |## Providers
| Name | Version |
|------|---------|
| [template](#provider\_template) | n/a |## Modules
| Name | Source | Version |
|------|--------|---------|
| [butane\_snippet\_install\_certbot](#module\_butane\_snippet\_install\_certbot) | krestomatio/butane-snippets/ct//modules/certbot | 0.0.12 |
| [stalwart\_mail](#module\_stalwart\_mail) | krestomatio/fcos/libvirt | 0.0.28 |## Resources
| Name | Type |
|------|------|
| [template_file.butane_snippet_install_stalwart_mail](https://registry.terraform.io/providers/hashicorp/template/latest/docs/data-sources/file) | data source |## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [additional\_rpms](#input\_additional\_rpms) | Additional rpms to install during boot using rpm-ostree, along with any pre or post command |object(|
{
cmd_pre = optional(list(string), [])
list = optional(list(string), [])
cmd_post = optional(list(string), [])
}
){| no |
"cmd_post": [],
"cmd_pre": [],
"list": []
}
| [autostart](#input\_autostart) | Autostart with libvirt host | `bool` | `null` | no |
| [backup\_volume\_pool](#input\_backup\_volume\_pool) | Node default backup volume pool | `string` | `null` | no |
| [backup\_volume\_size](#input\_backup\_volume\_size) | Node default backup volume size in bytes | `number` | `null` | no |
| [butane\_snippets\_additional](#input\_butane\_snippets\_additional) | Additional butane snippets | `list(string)` | `[]` | no |
| [certbot](#input\_certbot) | Certbot config |object(| `null` | no |
{
agree_tos = bool
staging = optional(bool)
email = string
http_01_port = optional(number)
}
)
| [cidr\_ip\_address](#input\_cidr\_ip\_address) | CIDR IP Address. Ex: 192.168.1.101/24 | `string` | `null` | no |
| [cpu\_mode](#input\_cpu\_mode) | Libvirt default cpu mode for VMs | `string` | `null` | no |
| [cpus\_limit](#input\_cpus\_limit) | Number of CPUs to limit the container | `number` | `0` | no |
| [data\_volume\_pool](#input\_data\_volume\_pool) | Node default data volume pool | `string` | `null` | no |
| [data\_volume\_size](#input\_data\_volume\_size) | Node default data volume size in bytes | `number` | `null` | no |
| [etc\_hosts](#input\_etc\_hosts) | /etc/host list |list(| `null` | no |
object(
{
ip = string
hostname = string
fqdn = string
}
)
)
| [etc\_hosts\_extra](#input\_etc\_hosts\_extra) | /etc/host extra block | `string` | `null` | no |
| [external\_fqdn](#input\_external\_fqdn) | FQDN to access Stalwart mail | `string` | n/a | yes |
| [fqdn](#input\_fqdn) | Node FQDN | `string` | n/a | yes |
| [ignition\_pool](#input\_ignition\_pool) | Default ignition files pool | `string` | `null` | no |
| [image](#input\_image) | Stalwart mail container image |object(|
{
name = optional(string, "docker.io/stalwartlabs/mail-server")
version = optional(string, "latest")
}
){| no |
"name": "docker.io/stalwartlabs/mail-server",
"version": "latest"
}
| [keymap](#input\_keymap) | Keymap | `string` | `null` | no |
| [log\_volume\_pool](#input\_log\_volume\_pool) | Node default log volume pool | `string` | `null` | no |
| [log\_volume\_size](#input\_log\_volume\_size) | Node default log volume size in bytes | `number` | `null` | no |
| [mac](#input\_mac) | Mac address | `string` | `null` | no |
| [memory](#input\_memory) | Node default memory in MiB | `number` | `512` | no |
| [memory\_limit](#input\_memory\_limit) | Amount of memory to limit the container | `string` | `""` | no |
| [nameservers](#input\_nameservers) | List of nameservers for VMs | `list(string)` | `null` | no |
| [network\_bridge](#input\_network\_bridge) | Libvirt default network bridge name for VMs | `string` | `null` | no |
| [network\_id](#input\_network\_id) | Libvirt default network id for VMs | `string` | `null` | no |
| [network\_name](#input\_network\_name) | Libvirt default network name for VMs | `string` | `null` | no |
| [periodic\_updates](#input\_periodic\_updates) | Only reboot for updates during certain timeframes
{
time\_zone = "localtime"
windows = [
{
days = ["Sat"],
start\_time = "23:30",
length\_minutes = "60"
},
{
days = ["Sun"],
start\_time = "00:30",
length\_minutes = "60"
}
]
} |object(| `null` | no |
{
time_zone = optional(string, "")
windows = list(
object(
{
days = list(string)
start_time = string
length_minutes = string
}
)
)
}
)
| [rollout\_wariness](#input\_rollout\_wariness) | Wariness to update, 1.0 (very cautious) to 0.0 (very eager) | `string` | `null` | no |
| [root\_base\_volume\_name](#input\_root\_base\_volume\_name) | Node default base root volume name | `string` | n/a | yes |
| [root\_base\_volume\_pool](#input\_root\_base\_volume\_pool) | Node default base root volume pool | `string` | `null` | no |
| [root\_volume\_pool](#input\_root\_volume\_pool) | Node default root volume pool | `string` | `null` | no |
| [root\_volume\_size](#input\_root\_volume\_size) | Node default root volume size in bytes | `number` | `null` | no |
| [ssh\_authorized\_key](#input\_ssh\_authorized\_key) | Authorized ssh key for core user | `string` | n/a | yes |
| [timezone](#input\_timezone) | Timezone for VMs as listed by `timedatectl list-timezones` | `string` | `null` | no |
| [vcpu](#input\_vcpu) | Node default vcpu count | `number` | `null` | no |
| [wait\_for\_lease](#input\_wait\_for\_lease) | Wait for network lease | `bool` | `null` | no |## Outputs
No outputs.
## [About Krestomatio](https://krestomatio.com/about)
[Krestomatio is a managed service for Moodle™ e-learning platforms](https://krestomatio.com/). It allows you to have open-source instances managed by a service optimized for Moodle™, complete with an additional plugin pack and customization options.