freebox_vpn_user (Resource)

Manages a VPN user account on the Freebox OpenVPN server. The ovpn_config attribute contains the ready-to-use OpenVPN client configuration file content.

Example

resource "freebox_vpn_user" "example" {
  login       = "myuser"
  password    = "s3cr3t"
  description = "Example VPN user"
}

output "ovpn_config" {
  value     = freebox_vpn_user.example.ovpn_config
  sensitive = true
}

Schema

Required

  • login (String) VPN username (immutable after creation)
  • password (String, Sensitive) VPN password

Read-Only

  • ovpn_config (String, Sensitive) OpenVPN client configuration file content (.ovpn format). Ready to import into any OpenVPN client.

Import

# ----------------------------------------- 👇 is the login of the VPN user
terraform import "freebox_vpn_user.example" myuser